/* ==========================================================================
   Components Design System
   ========================================================================== */

/* 1. Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  width: fit-content;
}

.badge-brand {
  background: rgba(41, 234, 211, 0.1);
  color: var(--brand-secondary);
  border: 1px solid rgba(41, 234, 211, 0.35);
  box-shadow: 0 0 15px -3px rgba(41, 234, 211, 0.2);
}

.badge-emerald {
  background: rgba(0, 245, 160, 0.1);
  color: var(--brand-primary);
  border: 1px solid rgba(0, 245, 160, 0.35);
}

.badge-pill-glow {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(10px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  box-shadow: 0 0 0 0 rgba(0, 245, 160, 0.7);
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 245, 160, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(0, 245, 160, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 245, 160, 0);
  }
}

/* 2. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-secondary);
  color: #050B14;
  box-shadow: var(--shadow-glow-btn);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  background: #25F0D9;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -6px rgba(41, 234, 211, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.btn-emerald {
  background: var(--brand-primary);
  color: #050B14;
  box-shadow: 0 6px 20px -4px rgba(0, 245, 160, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-emerald:hover {
  background: #14FFA6;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px -6px rgba(0, 245, 160, 0.75);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 6px 20px -4px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp:hover {
  background: #22bf5b;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -4px rgba(37, 211, 102, 0.7);
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

/* 3. Cards & Glass Surfaces */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-4px);
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(41, 234, 211, 0.15);
}

/* 4. Switch & Toggles */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 3.5rem;
}

.toggle-container {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 0.3rem;
  position: relative;
}

.toggle-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
  z-index: 2;
}

.toggle-btn.active {
  background: var(--brand-secondary);
  color: #050B14;
  box-shadow: 0 4px 14px rgba(41, 234, 211, 0.4);
}

.save-badge {
  background: var(--brand-primary);
  color: #050B14;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  margin-left: 0.4rem;
  text-transform: uppercase;
}

/* 5. Currency Selector Dropdown */
.currency-selector-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  color: #FFFFFF;
}

.currency-selector-wrap label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.currency-select {
  background: transparent;
  color: var(--brand-secondary);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2329EAD3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}

.currency-select option {
  background: var(--bg-secondary);
  color: #FFFFFF;
}

/* 6. Comparison Table Component */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 680px;
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.col-feature {
  width: 42%;
  font-weight: 600;
  color: var(--text-primary);
}

.col-without {
  width: 29%;
  background: rgba(239, 68, 68, 0.03);
  color: #F87171;
}

.col-with {
  width: 29%;
  background: rgba(0, 245, 160, 0.05);
  color: #34D399;
  font-weight: 600;
  position: relative;
}

.col-with.header-highlight {
  background: rgba(0, 245, 160, 0.12);
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  color: var(--brand-primary);
}

.table-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

.status-icon-bad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.status-icon-good {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 245, 160, 0.18);
  color: var(--brand-primary);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* 7. Interactive Slider */
.slider-group {
  margin-bottom: 2rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.slider-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.slider-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-secondary);
}

.custom-range {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-secondary);
  box-shadow: 0 0 12px rgba(41, 234, 211, 0.8);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* 8. Accordion (FAQ) */
.faq-list {
  display: flex;
  flex-col;
  flex-direction: column;
  gap: 1rem;
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-item.active {
  border-color: var(--border-highlight);
  background: var(--bg-elevated);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
  color: var(--brand-secondary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--brand-secondary);
  color: #050B14;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.35rem 1.5rem;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 9. Floating WhatsApp Button */
.whatsapp-float-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.7);
}

.whatsapp-float-btn::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.6;
  z-index: -1;
  animation: pulseFloat 2.2s infinite;
}

@keyframes pulseFloat {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.whatsapp-float-tooltip {
  position: absolute;
  right: 74px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  color: #FFFFFF;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-fast);
}

.whatsapp-float-btn:hover .whatsapp-float-tooltip {
  opacity: 1;
  transform: translateX(0);
}
