/* Buttons */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cta-button.primary-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
  color: white;
  box-shadow: var(--shadow-md);
}

.cta-button.primary-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.3);
}

.cta-button.primary-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.cta-button.primary-cta:hover:not(:disabled)::before {
  left: 100%;
}

.cta-button.secondary-cta {
  background: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.cta-button.secondary-cta:hover:not(:disabled) {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.cta-button svg {
  width: 20px;
  height: 20px;
}

/* Cards */
.card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-gray-900);
}

.card-description {
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 20px;
  background: var(--color-green);
  color: white;
}

.badge.warning {
  background: var(--color-amber);
}

.badge.primary {
  background: var(--color-primary);
}

/* Trust Badge */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-green);
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Input Fields */
input[type="range"] {
  width: 100%;
  height: 8px;
  background: var(--color-gray-200);
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: var(--shadow-sm);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: var(--shadow-sm);
  border: none;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.1);
}

select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--color-gray-900);
  cursor: pointer;
  transition: border-color 0.2s;
}

select:hover, select:focus {
  border-color: var(--color-primary);
  outline: none;
}

/* Labels */
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-gray-900);
}

/* Icon */
.icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.icon-lg {
  width: 48px;
  height: 48px;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
  }
}
