/* ===========================
   plans.css — Dedicated Plans Page Styles
   =========================== */

/* ============================
   1. PLANS HERO
   ============================ */
.plans-hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid var(--gold-1);
  border-radius: 50px;
  color: var(--gold-1);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  background: rgba(212, 168, 67, 0.08);
}

.plans-hero .hero-content h1 {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 20px;
}

.plans-hero .hero-content .subtitle {
  font-size: 1.15rem;
  color: var(--white-alpha-60);
  margin-bottom: 40px;
  line-height: 2;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================
   2. PAIN POINTS
   ============================ */
.pain-section {
  background: var(--dark-3);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.pain-card {
  padding: 28px;
  transition: var(--transition);
  border-top: 3px solid rgba(220, 53, 69, 0.6);
}

.pain-card:hover {
  transform: translateY(-4px);
  border-top-color: rgba(220, 53, 69, 0.9);
}

.pain-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(220, 53, 69, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pain-icon svg {
  width: 26px;
  height: 26px;
  color: #dc3545;
}

.pain-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pain-card p {
  font-size: 0.9rem;
  color: var(--white-alpha-60);
  line-height: 1.8;
}

.micro-cta {
  text-align: center;
}

.micro-cta .btn {
  font-size: 0.95rem;
}

/* ============================
   3. PLAN TYPES DEEP-DIVE (TABS)
   ============================ */
.plans-deep {
  background: var(--dark-1);
}

.plan-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.plan-tab {
  padding: 10px 24px;
  border-radius: 50px;
  background: var(--white-alpha-05);
  border: 1px solid var(--white-alpha-10);
  color: var(--white-alpha-60);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.plan-tab:hover {
  color: var(--gold-1);
  border-color: var(--gold-1);
}

.plan-tab.active {
  background: var(--gold-gradient);
  color: var(--dark-1);
  border-color: transparent;
}

.plan-panel {
  display: none;
}

.plan-panel.active {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 40px;
  align-items: start;
  animation: fadeInPanel 0.4s ease;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.plan-detail h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.plan-detail .en-badge {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--gold-1);
  margin-bottom: 20px;
  direction: ltr;
}

.plan-detail > p {
  color: var(--white-alpha-60);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 2;
}

.plan-pros,
.plan-cons {
  margin-bottom: 20px;
}

.plan-pros h5,
.plan-cons h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.plan-pros h5 {
  color: var(--gold-1);
}

.plan-cons h5 {
  color: #dc3545;
}

.plan-pros li,
.plan-cons li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--white-alpha-80);
  padding: 4px 0;
}

.plan-pros li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold-1);
}

.plan-cons li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #dc3545;
}

.plan-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.plan-tag {
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.25);
  color: var(--gold-1);
  font-size: 0.8rem;
  font-weight: 500;
}

/* CSS-Only Network Diagrams */
.plan-diagram {
  position: relative;
  min-height: 320px;
  background: var(--white-alpha-05);
  border: 1px solid var(--white-alpha-10);
  border-radius: var(--radius);
  overflow: hidden;
}

.plan-diagram .node {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--dark-1);
  z-index: 2;
  opacity: 0;
  animation: nodeAppear 0.5s ease forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-diagram .node:hover {
  transform: scale(1.2);
  box-shadow: 0 0 16px rgba(212, 168, 67, 0.5);
}

.plan-diagram .node.root {
  width: 48px;
  height: 48px;
  font-size: 0.75rem;
}

.plan-diagram .node.ghost {
  background: transparent;
  border: 2px dashed var(--white-alpha-60);
  color: var(--white-alpha-60);
  font-size: 1rem;
}

@keyframes nodeAppear {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: scale(1); }
}

.plan-diagram .connector {
  position: absolute;
  background: rgba(212, 168, 67, 0.3);
  z-index: 1;
}

.plan-diagram .connector.vertical {
  width: 2px;
}

.plan-diagram .connector.horizontal {
  height: 2px;
}

.plan-diagram .connector.dashed {
  background: transparent;
  border-right: 2px dashed rgba(212, 168, 67, 0.4);
  width: 2px;
}

.plan-diagram .diagram-label {
  position: absolute;
  font-size: 0.65rem;
  color: var(--white-alpha-60);
  white-space: nowrap;
  z-index: 3;
}

/* ============================
   4. COMPARISON TABLE
   ============================ */
.comparison-section {
  background: var(--dark-3);
}

.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--white-alpha-10);
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.9rem;
}

.comparison-table thead th {
  background: rgba(212, 168, 67, 0.1);
  padding: 16px 14px;
  font-weight: 700;
  color: var(--gold-1);
  border-bottom: 2px solid var(--white-alpha-10);
  white-space: nowrap;
}

.comparison-table tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--white-alpha-05);
  color: var(--white-alpha-80);
  vertical-align: middle;
}

.comparison-table tbody td:first-child {
  text-align: right;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}

.comparison-table tbody tr:hover {
  background: var(--white-alpha-05);
}

.star--filled {
  color: var(--gold-1);
  font-size: 1rem;
}

.star--empty {
  color: var(--white-alpha-10);
  font-size: 1rem;
}

/* ============================
   5. PLAN COMPONENTS
   ============================ */
.plan-components {
  background: var(--dark-1);
}

.components-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.component-card {
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

.component-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 67, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.component-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(212, 168, 67, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: var(--transition);
}

.component-card:hover .component-icon {
  background: var(--gold-gradient);
}

.component-icon svg {
  width: 26px;
  height: 26px;
  color: var(--gold-1);
  transition: var(--transition);
}

.component-card:hover .component-icon svg {
  color: var(--dark-1);
}

.component-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.component-card p {
  font-size: 0.85rem;
  color: var(--white-alpha-60);
}

/* ============================
   6. BEFORE / AFTER
   ============================ */
.before-after {
  background: var(--dark-3);
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.ba-card {
  padding: 32px;
}

.ba-card--before {
  border-right: 4px solid #dc3545;
}

.ba-card--after {
  border-right: 4px solid var(--gold-1);
}

.ba-label {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.ba-card--before .ba-label {
  background: rgba(220, 53, 69, 0.15);
  color: #dc3545;
}

.ba-card--after .ba-label {
  background: rgba(212, 168, 67, 0.15);
  color: var(--gold-1);
}

.ba-card ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--white-alpha-80);
  padding: 8px 0;
}

.ba-card ul li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ba-card--before ul li svg {
  color: #dc3545;
}

.ba-card--after ul li svg {
  color: var(--gold-1);
}

.ba-highlight {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(212, 168, 67, 0.08);
  border: 1px solid rgba(212, 168, 67, 0.2);
}

.ba-highlight p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-1);
  line-height: 2;
}

/* ============================
   7. LEGAL COMPLIANCE
   ============================ */
.compliance-section {
  background: var(--dark-1);
}

.compliance-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 30px;
  align-items: start;
}

.compliance-grid > div > p {
  color: var(--white-alpha-60);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 2;
}

.compliance-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.compliance-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--white-alpha-80);
}

.compliance-list li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold-1);
}

.warning-card {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 193, 7, 0.06);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.warning-card .warning-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 193, 7, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.warning-card .warning-icon svg {
  width: 26px;
  height: 26px;
  color: #ffc107;
}

.warning-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffc107;
}

.warning-card p {
  font-size: 0.9rem;
  color: var(--white-alpha-60);
  line-height: 1.8;
}

/* ============================
   8. PLANS PROCESS TIMELINE
   ============================ */
.plans-process {
  background: var(--dark-3);
}

/* Reuses .timeline styles from sections.css */

/* ============================
   9. AUTHORITY STATS BAND
   ============================ */
.authority-stats {
  background: var(--gold-gradient);
  padding: 60px 0;
  position: relative;
}

.authority-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.authority-stat .stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--dark-1);
  background: none;
  -webkit-text-fill-color: var(--dark-1);
  direction: ltr;
}

.authority-stat .stat-label {
  font-size: 0.95rem;
  color: rgba(10, 22, 40, 0.7);
  margin-top: 4px;
  font-weight: 600;
}

/* ============================
   10. FAQ ACCORDION
   ============================ */
.plans-faq {
  background: var(--dark-1);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-sm);
  background: var(--white-alpha-05);
  border: 1px solid var(--white-alpha-10);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: rgba(212, 168, 67, 0.3);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: right;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--gold-1);
}

.faq-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold-1);
  transition: transform 0.3s ease;
}

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

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

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

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--white-alpha-60);
  font-size: 0.93rem;
  line-height: 2;
}

/* ============================
   11. FINAL CTA
   ============================ */
.plans-cta {
  background: var(--dark-3);
  position: relative;
  overflow: hidden;
}

.plans-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(212, 168, 67, 0.08), transparent);
}

.plans-cta .cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.value-props {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.value-prop {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--white-alpha-80);
}

.value-prop svg {
  width: 22px;
  height: 22px;
  color: var(--gold-1);
  flex-shrink: 0;
}

/* Select styling */
.contact-form select {
  width: 100%;
  padding: 14px 18px;
  background: var(--white-alpha-05);
  border: 1px solid var(--white-alpha-10);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
  direction: rtl;
  appearance: none;
  -webkit-appearance: none;
  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='rgba(255,255,255,0.6)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  cursor: pointer;
}

.contact-form select:focus {
  outline: none;
  border-color: var(--gold-1);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}

.contact-form select option {
  background: var(--dark-1);
  color: var(--white);
}

/* ============================
   RESPONSIVE — Plans Page
   ============================ */

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

  .authority-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .plan-panel.active {
    grid-template-columns: 1fr;
  }

  .plan-diagram {
    min-height: 280px;
  }

  .compliance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .plans-hero .hero-content h1 {
    font-size: 2rem;
  }

  .plans-hero .hero-content .subtitle {
    font-size: 1rem;
  }

  .plans-hero {
    min-height: 70vh;
  }

  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan-tabs {
    gap: 6px;
  }

  .plan-tab {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .plan-panel.active {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .plan-diagram {
    min-height: 260px;
    order: -1;
  }

  .before-after-grid {
    grid-template-columns: 1fr;
  }

  .compliance-grid {
    grid-template-columns: 1fr;
  }

  .components-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .authority-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .authority-stat .stat-number {
    font-size: 2.4rem;
  }

  .value-props {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .faq-question {
    font-size: 0.93rem;
    padding: 16px 20px;
  }

  .comparison-table {
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .plans-hero .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 6px 18px;
  }

  .pain-grid {
    grid-template-columns: 1fr;
  }

  .plan-tab {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .plan-detail h3 {
    font-size: 1.3rem;
  }

  .plan-diagram {
    min-height: 240px;
  }

  .plan-diagram .node {
    width: 32px;
    height: 32px;
    font-size: 0.6rem;
  }

  .plan-diagram .node.root {
    width: 38px;
    height: 38px;
  }

  .components-grid {
    grid-template-columns: 1fr;
  }

  .authority-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .authority-stat .stat-number {
    font-size: 2rem;
  }

  .before-after-grid {
    grid-template-columns: 1fr;
  }

  .faq-question {
    font-size: 0.88rem;
    padding: 14px 16px;
  }

  .faq-answer-inner {
    padding: 0 16px 16px;
    font-size: 0.88rem;
  }

  .ba-card {
    padding: 24px;
  }
}
