/* ==========================================================================
   Pricing Page Styles - Black Theme
   ========================================================================== */

/* ==========================================================================
   1. Billing Toggle
   ========================================================================== */

.billing-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.billing-toggle-option {
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.billing-toggle-option.active {
  background: white;
  color: #070707;
}

.billing-toggle-option:not(.active) {
  color: rgba(255, 255, 255, 0.6);
}

.billing-toggle-option:not(.active):hover {
  color: white;
}

.billing-toggle-option.active .text-emerald-400 {
  color: #10b981; /* emerald-500 */
}

/* ==========================================================================
   2. Pricing Cards
   ========================================================================== */

.pricing-card {
  background: radial-gradient(
    89.36% 183.33% at 37.06% -14.58%,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.featured {
  border-color: rgba(255, 255, 255, 0.3);
  background: radial-gradient(
    89.36% 183.33% at 37.06% -14.58%,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   3. Badge
   ========================================================================== */

.pricing-badge {
  background: #ffffff; /* Opaque dark background to cover card border */
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  color: black;
  z-index: 10;
}

/* ==========================================================================
   4. Calculator Inputs
   ========================================================================== */

.calculator-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  width: 100%;
  appearance: none;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23999'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.calculator-select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}

.calculator-select option {
  background: #0f0f0f;
  color: white;
}

.calculator-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  width: 100%;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.calculator-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}

.calculator-input::-webkit-inner-spin-button,
.calculator-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calculator-input[type='number'] {
  -moz-appearance: textfield;
}

/* ==========================================================================
   5. Comparison Table
   ========================================================================== */

.comparison-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
}

.comparison-table thead th {
  background: rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table .section-header {
  background: rgba(255, 255, 255, 0.03);
}

.comparison-table .section-header td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   6. FAQ Accordion
   ========================================================================== */

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
  cursor: pointer;
  transition: color 0.3s ease;
  background: transparent;
  border: none;
  text-align: left;
}

.faq-question:hover {
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

/* ==========================================================================
   7. Icons
   ========================================================================== */

.feature-check {
  color: #4ade80;
}

.feature-x {
  color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   8. Text Link
   ========================================================================== */

.text-link {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.text-link:hover {
  color: white;
}

/* ==========================================================================
   9. Scroll Animations
   ========================================================================== */

.pricing-section {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.pricing-section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   10. Responsive Adjustments
   ========================================================================== */

@media screen and (max-width: 768px) {
  .billing-toggle {
    width: 100%;
    justify-content: center;
  }

  .billing-toggle-option {
    flex: 1;
    justify-content: center;
    padding: 10px 16px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 16px;
    font-size: 13px;
  }

  .comparison-table th:first-child,
  .comparison-table td:first-child {
    position: sticky;
    left: 0;
    background: #070707;
    z-index: 5;
  }

  .comparison-table thead th:first-child {
    z-index: 15;
  }
}

@media screen and (max-width: 640px) {
  .pricing-badge {
    font-size: 11px;
    padding: 3px 10px;
  }
}
