:root {
  --bg-page: #f4f7fa;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  /* Brand & Section Colors matching the original infographic */
  --navy-dark: #0f2f4a;
  --navy-mid: #164265;
  --teal-dark: #0b6e5e;
  --teal-mid: #0d8a75;
  --teal-light: #e6f6f2;
  --emerald-text: #066949;
  --emerald-bg: #e8f8f0;
  --emerald-border: #a7e3c5;

  /* Package Theme Colors */
  --basic-color: #475569;
  --basic-bg: #f8fafc;
  --basic-badge: #e2e8f0;

  --premium-color: #0d9488;
  --premium-bg: #f0fdfa;
  --premium-badge: #ccfbf1;

  --gold-color: #b45309;
  --gold-accent: #d97706;
  --gold-bg: #fffdf5;
  --gold-header-bg: #fef9e7;
  --gold-border: #fde68a;

  --vip-color: #1d4ed8;
  --vip-bg: #eff6ff;
  --vip-badge: #dbeafe;

  --border-light: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow-sm: 0 2px 8px rgba(15, 47, 74, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 47, 74, 0.08);
  --shadow-lg: 0 14px 36px rgba(15, 47, 74, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
}

body {
  line-height: 1.65;
  overflow-x: hidden;
}

.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Navigation */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-dark), var(--teal-mid));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-icon svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy-dark);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 7px 13px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy-dark);
  background: #e8f1f8;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--navy-mid);
  background: transparent;
  color: var(--navy-dark);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: var(--navy-dark);
  color: #fff;
}

/* Hero Banner */
.hero-header {
  position: relative;
  background: linear-gradient(135deg, #0d2b45 0%, #164468 55%, #0f5266 100%);
  color: #ffffff;
  padding: 46px 0 42px;
  text-align: center;
  overflow: hidden;
  border-bottom: 4px solid var(--teal-mid);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #e0f2fe;
  margin-bottom: 16px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
}

.hero-title {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.18rem);
  color: #cbd5e1;
  font-weight: 500;
  max-width: 920px;
  margin: 0 auto 26px;
}

.hero-highlights {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.highlight-pill {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 9px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hl-num {
  font-weight: 900;
  font-size: 1.05rem;
  color: #fbbf24;
}

.hl-text {
  font-size: 0.88rem;
  color: #f1f5f9;
  font-weight: 600;
}

.highlight-pill-special {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.35), rgba(180, 83, 9, 0.45));
  border-color: #fbbf24;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.25);
}

/* Promotional AI-Valley Banner */
.aivalley-promo-banner {
  background: linear-gradient(135deg, #0f2f4a 0%, #164e63 55%, #065f46 100%);
  border: 2px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 18px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 10px 28px rgba(15, 47, 74, 0.14);
  position: relative;
  overflow: hidden;
}

.promo-banner-right {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 280px;
}

.promo-fire-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  flex-shrink: 0;
  margin-top: 2px;
}

.promo-text-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.promo-title {
  font-size: 1.08rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.35;
}

.brand-accent {
  color: #fbbf24;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.promo-desc {
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.55;
}

.promo-desc strong {
  color: #fde68a;
}

.promo-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.promo-cta-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.2s ease;
}

.promo-cta-btn span {
  font-weight: 900;
  font-size: 0.88rem;
}

.promo-cta-btn small {
  font-size: 0.74rem;
  font-weight: 700;
  opacity: 0.92;
}

.promo-cta-annual {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.promo-cta-annual:hover {
  background: #059669;
  transform: translateY(-2px);
}

.promo-cta-fouryear {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.38);
}

.promo-cta-fouryear:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-2px);
}

/* Incentive Pointer on Annual Button */
.toggle-btn-incentive {
  position: relative;
}

.incentive-pointer {
  position: absolute;
  top: -22px;
  right: 8px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.4);
  animation: bouncePulse 1.6s infinite ease-in-out;
  pointer-events: none;
}

.incentive-pointer::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 16px;
  border-width: 4px 4px 0;
  border-style: solid;
  border-color: #ef4444 transparent transparent;
}

.toggle-btn.active .incentive-pointer {
  display: none;
}

@keyframes bouncePulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.discount-pill-gold {
  background: linear-gradient(90deg, #d97706, #f59e0b);
  color: #ffffff;
}

/* Main Content Layout */
.main-content {
  padding-top: 28px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Interactive Controls Bar */
.controls-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.control-label {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy-dark);
}

.control-divider {
  width: 1px;
  height: 36px;
  background: var(--border-light);
}

.billing-toggle,
.frequency-toggle {
  display: inline-flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.toggle-btn,
.freq-btn {
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.toggle-btn.active,
.freq-btn.active {
  background: var(--navy-dark);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 47, 74, 0.2);
}

.discount-pill {
  background: #10b981;
  color: #fff;
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 800;
}

.sub-pill {
  background: rgba(100, 116, 139, 0.15);
  color: inherit;
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Interactive Pricing Cards Grid */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.pkg-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

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

.pkg-card.card-gold {
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 40%);
  border: 2px solid var(--gold-accent);
  box-shadow: 0 10px 28px rgba(217, 119, 6, 0.12);
}

.pkg-card.card-vip {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 40%);
}

.card-top-ribbon {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 10px;
  letter-spacing: 0.2px;
}

.card-basic .card-top-ribbon {
  background: #f1f5f9;
  color: var(--basic-color);
}

.card-premium .card-top-ribbon {
  background: #ccfbf1;
  color: #0f766e;
}

.card-gold .card-top-ribbon {
  background: linear-gradient(90deg, #d97706, #f59e0b);
  color: #ffffff;
}

.card-vip .card-top-ribbon {
  background: linear-gradient(90deg, #1e40af, #2563eb);
  color: #ffffff;
}

.card-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.card-pkg-ar {
  font-size: 1.18rem;
  font-weight: 900;
  color: var(--navy-dark);
}

.card-gold .card-pkg-ar {
  color: var(--gold-color);
}

.card-vip .card-pkg-ar {
  color: var(--vip-color);
}

.card-pkg-en {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card-price-box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--border-light);
}

.card-gold .card-price-box {
  background: #fef9e7;
  border-color: var(--gold-border);
}

.card-price-main {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--navy-dark);
  line-height: 1.2;
}

.card-price-period {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.card-price-sub {
  font-size: 0.8rem;
  color: var(--emerald-text);
  font-weight: 700;
  margin-top: 4px;
}

.card-price-strike {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.card-saving-pill {
  display: inline-block;
  margin-top: 6px;
  background: var(--emerald-bg);
  color: var(--emerald-text);
  border: 1px solid var(--emerald-border);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.card-incentive-click-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 6px;
  width: 100%;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px dashed #93c5fd;
  padding: 5px 10px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
}

.card-incentive-click-btn:hover {
  background: #dbeafe;
  border-style: solid;
}

.card-fouryear-offer-box {
  margin-top: 8px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 7px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.card-fouryear-offer-box:hover {
  border-color: #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.fy-badge-title {
  font-size: 0.74rem;
  font-weight: 900;
  color: #92400e;
  display: block;
}

.fy-before-after {
  font-size: 0.73rem;
  font-weight: 700;
  color: #78350f;
  margin-top: 2px;
}

.fy-before-after del {
  color: #94a3b8;
  margin: 0 2px;
}

.fy-doctor-saving {
  display: inline-block;
  margin-top: 3px;
  background: #065f46;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 999px;
}

.card-total-output {
  background: var(--emerald-bg);
  border-top: 1px solid var(--emerald-border);
  border-bottom: 1px solid var(--emerald-border);
  padding: 10px 16px;
  text-align: center;
}

.output-num {
  font-weight: 900;
  font-size: 1.02rem;
  color: var(--emerald-text);
  display: block;
}

.output-Formula {
  font-size: 0.76rem;
  color: #047857;
  font-weight: 600;
}

.card-features-list {
  list-style: none;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-feature-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.84rem;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
}

.card-feature-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cf-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.cf-val {
  font-weight: 800;
  text-align: left;
  color: var(--navy-dark);
  flex-shrink: 0;
}

.cf-val.val-yes {
  color: var(--emerald-text);
}

.cf-val.val-no {
  color: #94a3b8;
  font-weight: 600;
}

.card-footer {
  padding: 14px 18px 18px;
}

.btn-select-pkg {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--navy-dark);
  background: var(--navy-dark);
  color: #ffffff;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-gold .btn-select-pkg {
  background: var(--gold-accent);
  border-color: var(--gold-accent);
}

.card-vip .btn-select-pkg {
  background: var(--vip-color);
  border-color: var(--vip-color);
}

.btn-select-pkg:hover {
  opacity: 0.92;
  transform: scale(1.01);
}

/* Section Headers & Blocks */
.section-block,
.controls-section {
  scroll-margin-top: 86px;
}

.section-block {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.section-header-bar {
  padding: 18px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-indicator {
  width: 6px;
  height: 26px;
  background: var(--teal-mid);
  border-radius: 4px;
  display: inline-block;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--navy-dark);
}

.table-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text-secondary);
  padding: 5px 13px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--navy-dark);
  color: #ffffff;
  border-color: var(--navy-dark);
}

/* Main Comparison Table */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
}

.packages-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
  text-align: center;
}

.packages-table th,
.packages-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.packages-table thead th {
  background: #f1f5f9;
  border-bottom: 3px solid var(--navy-mid);
  position: relative;
  padding-top: 22px;
  padding-bottom: 16px;
}

.packages-table th.col-feature {
  text-align: right;
  width: 28%;
  font-size: 1rem;
  font-weight: 900;
  color: var(--navy-dark);
  background: #f8fafc;
}

.packages-table th.col-pkg {
  width: 18%;
}

.packages-table th.pkg-gold {
  background: var(--gold-header-bg);
  border-bottom-color: var(--gold-accent);
}

.pkg-featured-ribbon,
.pkg-vip-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 10px;
  border-radius: 0 0 6px 6px;
  white-space: nowrap;
}

.pkg-featured-ribbon {
  background: var(--gold-accent);
  color: #fff;
}

.pkg-vip-ribbon {
  background: var(--vip-color);
  color: #fff;
}

.pkg-th-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pkg-ar-name {
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--navy-dark);
}

.pkg-gold .pkg-ar-name {
  color: var(--gold-color);
}

.pkg-en-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pkg-gold .pkg-en-name {
  color: var(--gold-accent);
}

.packages-table td.feature-cell {
  text-align: right;
  font-weight: 700;
  color: var(--text-main);
  background: #fcfdfe;
  border-left: 1px solid #f1f5f9;
}

.packages-table td.featured-col {
  background-color: var(--gold-bg);
}

.packages-table tbody tr:hover td {
  background-color: #f1f7fd;
}

.packages-table tbody tr:hover td.featured-col {
  background-color: #fef5d1;
}

.feature-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-left: 6px;
}

.feature-title-strong {
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--navy-dark);
}

.tag-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  vertical-align: middle;
}

.tag-blue {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.tag-amber {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.check-included {
  color: var(--emerald-text);
  font-weight: 800;
  font-size: 0.92rem;
}

.not-included {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-block;
  line-height: 1.35;
}

.neutral-text {
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.88rem;
}

.dual-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.metric-wk {
  font-weight: 800;
  color: var(--text-main);
}

.metric-sep {
  color: #cbd5e1;
}

.metric-mo {
  background: var(--emerald-bg);
  color: var(--emerald-text);
  border: 1px solid var(--emerald-border);
  padding: 1px 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
}

.live-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-weight: 800;
  font-size: 0.86rem;
  padding: 2px 12px;
  border-radius: 999px;
  margin-bottom: 3px;
}

.sub-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Summary Row Green (Row 6) */
.summary-row-green td {
  background-color: #ecfdf5 !important;
  border-top: 2px solid #10b981;
  border-bottom: 2px solid #10b981;
}

.summary-row-green td.feature-cell .feature-title-strong {
  color: #065f46;
}

.content-calc {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.content-total {
  font-size: 0.98rem;
  font-weight: 900;
  color: #047857;
  margin-top: 2px;
}

/* Pricing Rows */
.pricing-divider-row td {
  border-top: 2.5px solid var(--navy-dark);
  background-color: #f8fafc;
}

.discount-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
  font-weight: 800;
  font-size: 0.86rem;
  padding: 3px 14px;
  border-radius: 999px;
}

.discount-gold {
  background: #dbeafe;
  color: #1e40af;
}

.discount-vip {
  background: #dbeafe;
  color: #1e40af;
}

.price-monthly {
  font-size: 1.04rem;
  font-weight: 900;
  color: var(--navy-dark);
}

.price-strike {
  font-size: 0.9rem;
  color: #64748b;
  text-decoration: line-through;
  font-weight: 700;
}

.price-annual-mid {
  font-size: 1.05rem;
  font-weight: 900;
  color: #065f46;
}

.annual-equiv {
  font-size: 0.76rem;
  color: #047857;
  font-weight: 700;
}

/* Final Summary Row (Row 15) */
.summary-row-final td {
  background-color: #e6f9ef !important;
  border-top: 1.5px solid #a7f3d0;
  border-bottom: 2.5px solid #10b981;
  padding-top: 16px;
  padding-bottom: 16px;
}

.summary-row-final td.feature-cell .feature-title-strong {
  color: #065f46;
}

.final-price-big {
  font-size: 1.18rem;
  font-weight: 900;
  color: #065f46;
}

.final-instead {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.final-saving {
  font-size: 0.8rem;
  font-weight: 800;
  color: #047857;
  margin-top: 2px;
}

/* 4-Year AI-Valley Table Rows */
.fouryear-divider-row td {
  border-top: 2.5px solid #d97706;
  background-color: #fffbeb !important;
}

.discount-fouryear {
  background: linear-gradient(90deg, #d97706, #f59e0b);
  color: #ffffff;
  border-color: #b45309;
  font-weight: 900;
}

.summary-row-fouryear td {
  background-color: #fef3c7 !important;
  border-top: 1.5px solid #fcd34d;
  border-bottom: 3px solid #d97706;
  padding-top: 16px;
  padding-bottom: 16px;
}

.summary-row-fouryear td.feature-cell .feature-title-strong {
  color: #92400e;
}

.summary-row-fouryear .final-price-big {
  color: #92400e;
}

.summary-row-fouryear .final-price-big small {
  font-size: 0.78rem;
  font-weight: 700;
}

.final-saving-highlight {
  display: inline-block;
  margin-top: 4px;
  background: #065f46;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
}

.calc-cycle-fouryear {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

/* Highlighted column when selected via JS */
.col-highlighted {
  box-shadow: inset 0 0 0 2px var(--navy-mid);
}

/* SECTION 2: Analytical Growth Section */
.analytics-banner-header {
  background: linear-gradient(90deg, #0a6859 0%, #0d7f6d 100%);
  color: #ffffff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.analytics-title-side h2 {
  font-size: 1.15rem;
  font-weight: 900;
}

.analytics-badge-side span {
  background: rgba(255, 255, 255, 0.16);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #ecfdf5;
}

.analytics-body {
  padding: 24px;
}

.analytics-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.month-Interactive-control {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.month-Interactive-control label {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--navy-dark);
}

#monthSlider {
  width: 160px;
  accent-color: var(--teal-mid);
  cursor: pointer;
}

.month-badge {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 0.84rem;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #99f6e4;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #f8fafc;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.84rem;
  color: var(--text-main);
  transition: all 0.18s ease;
}

.legend-item.inactive {
  opacity: 0.4;
  text-decoration: line-through;
}

.legend-swatch {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  display: inline-block;
}

.swatch-basic { background: #5a6578; }
.swatch-premium { background: #0d9488; }
.swatch-gold { background: #d97706; }
.swatch-vip { background: #1d4ed8; }

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 26px;
}

.chart-card {
  background: #fcfdfe;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.chart-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--navy-dark);
  text-align: center;
  margin-bottom: 14px;
}

.svg-chart-container {
  width: 100%;
  position: relative;
}

.svg-chart-container svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  direction: ltr;
}

.svg-chart-container svg text {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Outcome Bars */
.outcome-section-heading {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--navy-dark);
  margin-bottom: 14px;
}

.outcome-bars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 18px;
}

.outcome-card {
  background: #fcfdfe;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px 20px;
}

.outcome-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 14px;
}

.bars-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.bar-row {
  display: grid;
  grid-template-columns: 70px 1fr 64px;
  align-items: center;
  gap: 12px;
}

.bar-pkg-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: right;
}

.bar-track {
  width: 100%;
  height: 13px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-val-label {
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--text-main);
  text-align: left;
  direction: ltr;
}

.analytics-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.6;
}

/* SECTION 3: Standalone Services */
.standalone-banner-header {
  background: linear-gradient(90deg, #133b5c 0%, #1d4e75 100%);
  color: #ffffff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.standalone-title-side h2 {
  font-size: 1.12rem;
  font-weight: 900;
}

.standalone-badge-side span {
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.standalone-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.standalone-table th,
.standalone-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.standalone-table thead th {
  background: #f1f5f9;
  color: var(--navy-dark);
  font-weight: 900;
  font-size: 0.94rem;
  border-bottom: 2px solid var(--border-strong);
}

.col-service-name {
  text-align: right;
  width: 28%;
}

.col-service-desc {
  text-align: right;
  width: 48%;
}

.col-service-price {
  text-align: center;
  width: 24%;
}

.service-name-cell {
  font-weight: 800;
  color: var(--navy-dark);
  font-size: 0.94rem;
}

.service-desc-cell {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

.free-app-highlight {
  background: var(--emerald-bg);
  color: var(--emerald-text);
  border: 1px solid var(--emerald-border);
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 6px;
}

.service-price-cell {
  text-align: center;
  background: #fcfdfe;
}

.standalone-price-main {
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--emerald-text);
}

.standalone-price-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* SECTION: Smart Calculator */
.calc-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 600;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  padding: 24px;
  align-items: start;
}

.calc-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-step-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.calc-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.calc-mode-btn {
  padding: 11px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: #f8fafc;
  color: var(--text-secondary);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-mode-btn.active {
  background: var(--navy-dark);
  color: #ffffff;
  border-color: var(--navy-dark);
}

.calc-mode-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.calc-mode-body.hidden {
  display: none;
}

.calc-pkg-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.calc-radio-card {
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  background: #fcfdfe;
  transition: all 0.18s ease;
}

.calc-radio-card input {
  display: none;
}

.calc-radio-card.selected {
  border-color: var(--teal-mid);
  background: var(--teal-light);
  box-shadow: 0 0 0 2px rgba(13, 138, 117, 0.15);
}

.radio-card-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.radio-card-content strong {
  font-size: 0.88rem;
  color: var(--navy-dark);
}

.radio-card-content small {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.calc-cycle-selector {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.calc-cycle-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  background: #f8fafc;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.calc-addons-list,
.standalone-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.addon-row,
.standalone-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 10px;
}

.standalone-check-item {
  justify-content: flex-start;
  cursor: pointer;
}

.standalone-check-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal-mid);
}

.addon-info,
.sa-check-text {
  display: flex;
  flex-direction: column;
}

.addon-info strong,
.sa-check-text strong {
  font-size: 0.88rem;
  color: var(--navy-dark);
}

.addon-info small,
.sa-check-text small {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.addon-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 3px 8px;
}

.cnt-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: #f1f5f9;
  color: var(--navy-dark);
  font-weight: 900;
  border-radius: 6px;
  cursor: pointer;
}

.cnt-btn:hover {
  background: var(--navy-dark);
  color: #fff;
}

/* Summary Panel */
.calc-summary-panel {
  background: linear-gradient(160deg, #0f2f4a 0%, #14496b 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.summary-box-title {
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 10px;
  color: #e2e8f0;
}

.summary-line strong {
  color: #ffffff;
}

.summary-total-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.25);
}

.summary-total-label {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.summary-total-value {
  font-size: 1.75rem;
  font-weight: 900;
  color: #34d399;
  line-height: 1.25;
}

.summary-saving-banner {
  margin-top: 12px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #d1fae5;
  font-weight: 700;
}

/* SECTION 4: Terms & Conditions */
.terms-section {
  background: #f8fafc;
  padding: 24px 28px;
  border-right: 5px solid var(--navy-dark);
}

.terms-heading {
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--navy-dark);
  margin-bottom: 14px;
}

.terms-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.terms-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.term-bullet {
  color: var(--teal-mid);
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1.3;
}

.term-content strong {
  color: var(--navy-dark);
  font-weight: 800;
}

/* SECTION 5: About Us (من نحن — Ai-Valley) */
.nav-link-about {
  color: var(--teal-dark);
  background: var(--teal-light);
  border: 1px solid #99f6e4;
}

.nav-link-about:hover,
.nav-link-about.active {
  background: var(--teal-mid);
  color: #ffffff;
  border-color: var(--teal-mid);
}

.about-section {
  background: var(--bg-card);
  border: 1.5px solid #cbd5e1;
}

.about-banner-header {
  background: linear-gradient(135deg, #0f2f4a 0%, #134e6f 55%, #0d8a75 100%);
  color: #ffffff;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.about-title-side {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
  flex-shrink: 0;
}

.about-title-side h2 {
  font-size: 1.16rem;
  font-weight: 900;
}

.about-badge-side span {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 15px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #fef3c7;
}

.about-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.about-identity-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-right: 6px solid var(--teal-mid);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.about-logo-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0f2f4a 0%, #0d8a75 100%);
  color: #ffffff;
  padding: 18px 22px;
  border-radius: 16px;
  min-width: 135px;
  box-shadow: 0 8px 20px rgba(13, 138, 117, 0.2);
  flex-shrink: 0;
}

.about-logo-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-brand-tag {
  font-weight: 900;
  font-size: 1.08rem;
  letter-spacing: 0.5px;
  direction: ltr;
  color: #fbbf24;
}

.about-identity-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.about-kicker {
  display: inline-block;
  align-self: flex-start;
  background: var(--teal-light);
  color: var(--teal-dark);
  border: 1px solid #99f6e4;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 2px 12px;
  border-radius: 999px;
}

.about-headline {
  font-size: 1.32rem;
  font-weight: 900;
  color: var(--navy-dark);
  line-height: 1.4;
}

.about-highlight {
  color: var(--teal-dark);
  background: #e6f6f2;
  padding: 0 8px;
  border-radius: 6px;
  direction: ltr;
  display: inline-block;
}

.about-lead {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.65;
}

.about-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.about-pillar-tag {
  background: #f1f5f9;
  color: var(--navy-dark);
  border: 1px solid var(--border-light);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Contact Cards Grid */
.about-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.about-contact-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.about-contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #94a3b8;
}

.contact-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-phone {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.icon-email {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.icon-web {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.contact-value {
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--navy-dark);
  text-decoration: none;
  word-break: break-all;
  transition: color 0.18s ease;
}

.contact-value:hover {
  color: var(--teal-mid);
}

.dir-ltr {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
  text-align: right;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  flex: 1;
  white-space: nowrap;
}

.btn-call {
  background: var(--navy-dark);
  color: #ffffff;
}

.btn-call:hover {
  background: var(--navy-mid);
}

.btn-whatsapp {
  background: #10b981;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #059669;
}

.btn-mail {
  background: #2563eb;
  color: #ffffff;
}

.btn-mail:hover {
  background: #1d4ed8;
}

.btn-web {
  background: #d97706;
  color: #ffffff;
}

.btn-web:hover {
  background: #b45309;
}

.btn-copy {
  flex: 0 0 auto;
  background: #f1f5f9;
  color: var(--text-secondary);
  border-color: var(--border-strong);
}

.btn-copy:hover {
  background: #e2e8f0;
  color: var(--navy-dark);
}

.btn-copy.copied {
  background: #065f46;
  color: #ffffff;
  border-color: #065f46;
}

/* Contact Form Card */
.contact-form-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-top: 5px solid var(--navy-dark);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}

.contact-form-header {
  margin-bottom: 20px;
}

.contact-form-badge {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.contact-form-title {
  font-size: 1.22rem;
  font-weight: 900;
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.contact-form-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--navy-dark);
}

.req-star {
  color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--teal-mid);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(13, 138, 117, 0.14);
}

.form-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-start;
}

.btn-submit-form {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--teal-mid) 100%);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(13, 138, 117, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-submit-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(13, 138, 117, 0.35);
}

.btn-submit-form:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.form-status-msg {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

.form-status-msg.status-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.form-status-msg.status-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #cbd5e1;
  padding: 22px 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-main-text strong {
  color: #fbbf24;
}

.footer-contact-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
}

.footer-contact-link {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.18s ease;
}

.footer-contact-link:hover {
  color: #34d399;
}

.footer-sep {
  color: #475569;
}

.back-to-top {
  color: #34d399;
  text-decoration: none;
  font-weight: 800;
}

.no-underline {
  text-decoration: none;
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}

.about-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: block;
}

/* Dynamic Card & Calculator Utility Classes */
.card-price-box-fouryear {
  background: #fffbeb !important;
  border-color: #f59e0b !important;
}

.card-price-main-fouryear {
  color: #b45309 !important;
}

.card-price-sub-fouryear {
  color: #065f46 !important;
}

.card-fouryear-offer-active {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  cursor: default !important;
}

.fy-badge-title-emerald {
  color: #065f46 !important;
}

.fy-before-after-emerald {
  color: #047857 !important;
}

.text-emerald-accent {
  color: #34d399 !important;
}

.summary-line-tight {
  margin-top: 6px;
  margin-bottom: 0;
}

.summary-saving-warn {
  background: rgba(245, 158, 11, 0.2) !important;
  border-color: rgba(251, 191, 36, 0.45) !important;
  color: #fef3c7 !important;
}

.summary-saving-emerald {
  background: rgba(16, 185, 129, 0.28) !important;
  border-color: #34d399 !important;
  color: #ecfdf5 !important;
}

/* 404 Error Page Styles */
.error-page-wrapper {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background: radial-gradient(circle at top right, #e6f6f2 0%, #f4f7fa 60%);
}

.error-card {
  max-width: 640px;
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #cbd5e1;
  border-top: 6px solid #0d8a75;
  padding: 44px 36px;
  text-align: center;
  box-shadow: 0 14px 36px rgba(15, 47, 74, 0.1);
}

.error-code {
  font-size: clamp(4.2rem, 10vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #0f2f4a 0%, #0d8a75 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.error-title {
  font-size: 1.55rem;
  font-weight: 900;
  color: #0f2f4a;
  margin-bottom: 10px;
}

.error-desc {
  font-size: 1rem;
  color: #475569;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 28px;
}

.error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-home-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0f2f4a 0%, #0d8a75 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.96rem;
  padding: 12px 26px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(13, 138, 117, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-home-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 138, 117, 0.35);
}

.btn-whatsapp-alt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  color: #065f46;
  border: 1.5px solid #6ee7b7;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.94rem;
  padding: 11px 22px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.btn-whatsapp-alt:hover {
  background: #d1fae5;
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
  .pricing-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calculator-grid {
    grid-template-columns: 1fr;
  }
  .about-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .charts-grid,
  .outcome-bars-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .calc-pkg-selector {
    grid-template-columns: repeat(2, 1fr);
  }
  .control-divider {
    display: none;
  }
  .about-identity-card {
    flex-direction: column;
    text-align: center;
  }
  .about-kicker {
    align-self: center;
  }
  .about-pillars {
    justify-content: center;
  }
  .billing-toggle,
  .frequency-toggle {
    flex-wrap: wrap;
    width: 100%;
  }
  .toggle-btn,
  .freq-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .pricing-cards-grid,
  .calc-pkg-selector,
  .calc-mode-tabs {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 0 14px;
  }
  .hero-header {
    padding: 32px 0 28px;
  }
  .aivalley-promo-banner,
  .controls-card,
  .section-header-bar,
  .analytics-body,
  .calculator-grid,
  .about-body,
  .contact-form-card,
  .terms-section {
    padding: 16px;
  }
  .promo-banner-actions,
  .promo-cta-btn,
  .btn-submit-form {
    width: 100%;
    justify-content: center;
  }
  .nav-links {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .nav-link {
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 6px 10px;
  }
  .error-card {
    padding: 32px 20px;
  }
}

/* Print Styles */
@media print {
  body {
    background: #ffffff;
  }
  .no-print {
    display: none !important;
  }
  .main-content {
    gap: 18px;
    padding: 10px 0;
  }
  .section-block {
    box-shadow: none;
    border: 1px solid #cbd5e1;
    break-inside: avoid;
  }
  .hero-header {
    padding: 20px 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
