/* ==========================================================================
   Nol Card Desk (nolcarddesk.org) — Dubai Royal Sapphire & Mashrabiya UI
   Bilingual LTR (English) & RTL (Arabic) Architectural Design System
   ========================================================================== */

:root {
  /* Palette — Dubai Midnight Sapphire, Brushed Champagne Gold & Metro Cobalt */
  --bg-canvas: #F7F5F0;
  --bg-alt: #EFECE3;
  --bg-surface: #FFFFFF;
  --bg-obsidian: #080F20;
  --bg-sapphire: #0E1C3A;
  --bg-sapphire-elevated: #152850;

  --brand-cobalt: #1D4ED8;
  --brand-cobalt-hover: #1E40AF;
  --brand-cyan: #0EA5E9;
  --brand-gold: #C9963B;
  --brand-gold-bright: #E5BD6E;
  --brand-gold-soft: #FDF8EC;

  --text-main: #0B1426;
  --text-secondary: #3B4A62;
  --text-muted: #64748B;
  --text-on-dark: #F8FAFC;
  --text-on-dark-muted: #B9C8DF;

  --border-subtle: #E3DEC9;
  --border-strong: #CCC4AF;

  --status-ready-bg: #ECFDF5;
  --status-ready-border: #34D399;
  --status-ready-text: #065F46;

  --status-warn-bg: #FFFBEB;
  --status-warn-border: #F59E0B;
  --status-warn-text: #92400E;

  --status-block-bg: #FEF2F2;
  --status-block-border: #F87171;
  --status-block-text: #991B1B;

  --shadow-xs: 0 2px 6px rgba(8, 15, 32, 0.04);
  --shadow-sm: 0 6px 20px rgba(8, 15, 32, 0.06);
  --shadow-md: 0 16px 38px rgba(8, 15, 32, 0.10);
  --shadow-lg: 0 28px 64px rgba(8, 15, 32, 0.18);

  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 999px;

  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Readex Pro', 'Tahoma', sans-serif;

  --container-max: 1240px;
  --header-height: 76px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  background-image: url('/assets/images/mashrabiya-light.svg');
  background-size: 120px 120px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.66;
  overflow-x: hidden;
}

/* Arabic RTL Typography Safeguards */
html[dir="rtl"] body {
  font-family: var(--font-ar);
  line-height: 1.78;
  letter-spacing: 0 !important;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .section-tag,
html[dir="rtl"] .btn {
  letter-spacing: 0 !important;
}

.ltr-isolate {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-cobalt);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover {
  color: var(--brand-cyan);
}

h1, h2, h3, h4 {
  margin-block: 0 0.6em;
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.022em;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  line-height: 1.35;
}

p {
  margin-block: 0 1rem;
  color: var(--text-secondary);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 16px;
  background: var(--bg-obsidian);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 700;
}
.skip-link:focus {
  inset-block-start: 12px;
}

/* ==========================================================================
   1. Top Ribbon & Sticky Glassmorphic Header
   ========================================================================== */
.top-ribbon {
  background: linear-gradient(90deg, #070D1D 0%, #101F42 50%, #070D1D 100%);
  color: #D4DFEF;
  font-size: 0.8125rem;
  padding-block: 8px;
  border-block-end: 1px solid rgba(229, 189, 110, 0.22);
}

.top-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.top-ribbon-slogan {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #E2ECF8;
  font-weight: 500;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22);
  flex-shrink: 0;
}

.top-ribbon-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
}

.top-ribbon-links a {
  color: var(--brand-gold-bright);
  font-weight: 600;
}
.top-ribbon-links a:hover {
  color: #fff;
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-block-end: 1px solid rgba(204, 196, 175, 0.65);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text-main);
  flex-shrink: 0;
}
.brand-logo:hover {
  color: var(--text-main);
}

.brand-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(14, 28, 58, 0.25);
  flex-shrink: 0;
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-logo-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--bg-obsidian);
}

.brand-logo-sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.nav-link.drawer-only {
  display: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--bg-sapphire);
  background: rgba(29, 78, 216, 0.08);
}

.nav-link.active {
  color: var(--brand-cobalt);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-cta {
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.83rem;
  font-weight: 700;
  font-family: var(--font-ar);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.lang-switch:hover {
  border-color: var(--brand-cobalt);
  color: var(--brand-cobalt);
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--bg-obsidian);
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.94rem;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, #2563EB 0%, #163A8F 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(29, 78, 216, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.36);
}

.btn-gold {
  background: linear-gradient(135deg, #E5BD6E 0%, #BE8A2D 100%);
  color: #080F20;
  box-shadow: 0 8px 22px rgba(201, 150, 59, 0.28);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #EED08E 0%, #CA9638 100%);
  color: #080F20;
}

.btn-outline {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--brand-cobalt);
  color: var(--brand-cobalt);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-sm {
  padding: 9px 15px;
  font-size: 0.85rem;
  border-radius: 10px;
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   2. Hero Section with Layered Mashrabiya & Aurora Lighting
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(circle at 82% 18%, rgba(14, 165, 233, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 14% 82%, rgba(229, 189, 110, 0.18) 0%, transparent 45%),
    url('/assets/images/mashrabiya-dark.svg'),
    linear-gradient(160deg, #070E1F 0%, #0E1D3D 58%, #132954 100%);
  background-size: auto, auto, 120px 120px, auto;
  color: var(--text-on-dark);
  padding-block: 56px 72px;
  overflow: hidden;
  border-block-end: 2px solid rgba(229, 189, 110, 0.28);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 44px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(229, 189, 110, 0.14);
  border: 1px solid rgba(229, 189, 110, 0.38);
  color: var(--brand-gold-bright);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-block-end: 18px;
}

.hero-content h1 {
  color: #FFFFFF;
  font-size: clamp(2.05rem, 3.6vw, 3.1rem);
  line-height: 1.14;
  margin-block-end: 18px;
}

.hero-content h1 .gold-accent {
  background: linear-gradient(120deg, #F5DA9B 0%, #D9A546 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--text-on-dark-muted);
  font-size: 1.06rem;
  line-height: 1.7;
  margin-block-end: 24px;
  max-width: 600px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-block-end: 26px;
}

.highlight-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E6EFFA;
  font-size: 0.84rem;
  font-weight: 600;
}

.highlight-chip .chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-gold-bright);
  flex-shrink: 0;
}

.hero-visual-frame {
  margin-block-start: 26px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(229, 189, 110, 0.32);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-visual-frame img {
  width: 100%;
  height: 246px;
  object-fit: cover;
}

.hero-visual-caption {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: 14px 18px;
  background: linear-gradient(to top, rgba(7, 14, 31, 0.94), rgba(7, 14, 31, 0));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: #E2E8F0;
}

/* ==========================================================================
   3. Interactive 3-Tab Nol Balance & Readiness Desk Console
   ========================================================================== */
.desk-console {
  background: var(--bg-surface);
  color: var(--text-main);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(229, 189, 110, 0.45);
  position: relative;
  overflow: hidden;
}

.desk-console::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-gold) 0%, var(--brand-cobalt) 50%, var(--brand-cyan) 100%);
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-block-end: 14px;
}

.console-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--bg-obsidian);
  margin: 0;
}

.live-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(14, 165, 233, 0.12);
  color: #0369A1;
  text-transform: uppercase;
}

.console-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  background: var(--bg-canvas);
  padding: 5px;
  border-radius: 13px;
  margin-block-end: 20px;
  border: 1px solid var(--border-subtle);
}

.console-tab {
  border: none;
  background: transparent;
  padding: 9px 8px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}

.console-tab.active {
  background: var(--bg-sapphire);
  color: #fff;
  box-shadow: var(--shadow-xs);
}

.console-pane {
  display: none;
}
.console-pane.active {
  display: block;
}

.form-group {
  margin-block-end: 15px;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-block-end: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-cobalt);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.13);
}

.quick-bal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block-start: 8px;
}

.bal-chip {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-canvas);
  font-family: inherit;
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}
.bal-chip:hover {
  border-color: var(--brand-cobalt);
  color: var(--brand-cobalt);
}

/* Gate Status Result Card */
.gate-status-box {
  border-radius: 14px;
  padding: 16px;
  margin-block-top: 14px;
  border: 1.5px solid var(--status-ready-border);
  background: var(--status-ready-bg);
  color: var(--status-ready-text);
  transition: all 0.2s ease;
}

.gate-status-box.warn {
  border-color: var(--status-warn-border);
  background: var(--status-warn-bg);
  color: var(--status-warn-text);
}

.gate-status-box.blocked {
  border-color: var(--status-block-border);
  background: var(--status-block-bg);
  color: var(--status-block-text);
}

.gate-status-title {
  font-weight: 800;
  font-size: 0.98rem;
  margin-block-end: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gate-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-block: 10px;
  padding-block: 10px;
  border-block: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.82rem;
}

.gate-metrics strong {
  display: block;
  font-size: 1rem;
}

/* Pending Sync Timeline Steps */
.sync-timeline {
  display: grid;
  gap: 10px;
  margin-block-start: 14px;
}

.sync-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  font-size: 0.83rem;
}

.sync-step.current {
  background: rgba(29, 78, 216, 0.07);
  border-color: var(--brand-cobalt);
}

.sync-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-sapphire);
  color: var(--brand-gold-bright);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   4. Decorative Arabesque Dividers, Sections, Cards & Tables
   ========================================================================== */
.section {
  padding-block: 74px;
  position: relative;
}

.section-alt {
  background-color: var(--bg-alt);
  background-image: url('/assets/images/mashrabiya-light.svg');
  background-size: 120px 120px;
  border-block: 1px solid var(--border-subtle);
}

.section-surface {
  background: var(--bg-surface);
}

.section-dark {
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(circle at 85% 20%, rgba(29, 78, 216, 0.22) 0%, transparent 45%),
    url('/assets/images/mashrabiya-dark.svg');
  background-size: auto, 120px 120px;
  color: var(--text-on-dark);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--text-on-dark-muted); }

.arabesque-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-block-end: 16px;
  color: var(--brand-gold);
  font-size: 0.9rem;
}
.arabesque-divider::before,
.arabesque-divider::after {
  content: "";
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
}

.section-header {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  margin-block-end: 48px;
}

.section-tag {
  display: inline-block;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: rgba(29, 78, 216, 0.09);
  color: var(--brand-cobalt);
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-block-end: 12px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
}

/* Key Metrics Strip */
.metrics-strip {
  background: var(--bg-surface);
  border-block-end: 1px solid var(--border-subtle);
  padding-block: 26px;
}

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

.metric-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.metric-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand-gold-soft), #F5E8C7);
  border: 1px solid rgba(201, 150, 59, 0.3);
  color: #9A6B19;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.metric-item strong {
  display: block;
  font-size: 1rem;
  color: var(--bg-obsidian);
  margin-block-end: 2px;
}

.metric-item span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Grids & Architectural Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-cobalt));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card:hover::after {
  opacity: 1;
}

.card-featured {
  border: 2px solid var(--brand-gold);
  box-shadow: var(--shadow-sm);
}
.card-featured::after {
  opacity: 1;
}

.card-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--brand-gold-soft);
  color: #926314;
  border: 1px solid rgba(201, 150, 59, 0.28);
  margin-block-end: 14px;
}

.step-orb {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bg-sapphire), var(--bg-obsidian));
  color: var(--brand-gold-bright);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: 18px;
  border: 1px solid rgba(229, 189, 110, 0.35);
}

.price-figure {
  font-size: 2rem;
  font-weight: 800;
  color: var(--bg-obsidian);
  margin-block: 6px 12px;
  font-variant-numeric: tabular-nums;
}
.price-figure small {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.check-list li {
  position: relative;
  padding-inline-start: 26px;
  margin-block-end: 10px;
  color: var(--text-secondary);
  font-size: 0.93rem;
}
.check-list li::before {
  content: "✦";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(29, 78, 216, 0.11);
  color: var(--brand-cobalt);
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Split Editorial Section */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.split-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-strong);
}

/* Data Tables */
.table-wrap {
  overflow-x: auto;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  min-width: 620px;
}

.data-table th,
.data-table td {
  padding: 15px 20px;
  border-block-end: 1px solid var(--border-subtle);
}

.data-table th {
  background: var(--bg-sapphire);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

.data-table tr:last-child td {
  border-block-end: none;
}

.data-table tr:nth-child(even) td {
  background: rgba(247, 245, 240, 0.6);
}

/* Inner Page Sub-Hero */
.page-hero {
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(circle at 80% 25%, rgba(14, 165, 233, 0.2) 0%, transparent 45%),
    url('/assets/images/mashrabiya-dark.svg'),
    linear-gradient(160deg, #070E1F 0%, #112349 100%);
  background-size: auto, 120px 120px, auto;
  color: #fff;
  padding-block: 46px 54px;
  border-block-end: 2px solid rgba(229, 189, 110, 0.26);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  max-width: 840px;
  margin-block-end: 12px;
}

.page-hero p {
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
  max-width: 760px;
  margin: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: #94A3B8;
  margin-block-end: 16px;
}
.breadcrumbs a {
  color: var(--brand-gold-bright);
}
.breadcrumbs a:hover {
  color: #fff;
}

/* Zone Calculator Panel */
.calc-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 32px;
  align-items: start;
}

.zone-result-panel {
  background-color: var(--bg-obsidian);
  background-image: url('/assets/images/mashrabiya-dark.svg');
  background-size: 120px 120px;
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 30px;
  border: 1px solid rgba(229, 189, 110, 0.35);
  position: sticky;
  inset-block-start: 96px;
}
.zone-result-panel h3 { color: #fff; }

.zone-big-fare {
  font-size: 2.55rem;
  font-weight: 800;
  color: var(--brand-gold-bright);
  margin-block: 6px 14px;
  font-variant-numeric: tabular-nums;
}

.zone-stat-row {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  padding: 13px 16px;
  margin-block-end: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.zone-route-visualizer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  margin-block-end: 16px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* FAQ Accordion */
.faq-list {
  max-width: 860px;
  margin-inline: auto;
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-block-end: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  text-align: start;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-canvas);
  color: var(--brand-cobalt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--brand-cobalt);
  color: #fff;
}
.faq-answer {
  display: none;
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.72;
}
.faq-item.open .faq-answer {
  display: block;
}

/* Legal Prose */
.legal-prose {
  max-width: 840px;
  margin-inline: auto;
  background: var(--bg-surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}
.legal-prose h2 {
  font-size: 1.32rem;
  margin-block-start: 28px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--border-subtle);
}
.legal-prose h2:first-of-type {
  margin-block-start: 0;
  padding-block-start: 0;
  border-block-start: none;
}

/* Footer & Consent Mode v2 Cookie Banner */
.site-footer {
  background-color: #060B18;
  background-image: url('/assets/images/mashrabiya-dark.svg');
  background-size: 120px 120px;
  color: #CBD5E1;
  padding-block: 64px 34px;
  border-block-start: 2px solid rgba(229, 189, 110, 0.24);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-block-end: 42px;
}

.footer-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-block-end: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-block-end: 10px; }
.footer-links a { color: #9FB2CC; font-size: 0.9rem; }
.footer-links a:hover { color: var(--brand-gold-bright); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-block-end: 12px;
  font-size: 0.88rem;
  color: #B9C8DF;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-block-start: 22px;
  border-block-start: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.82rem;
  color: #7E92B0;
}

.cookie-banner {
  position: fixed;
  inset-block-end: 14px;
  inset-inline-end: 18px;
  max-width: 400px;
  background: rgba(10, 21, 46, 0.96);
  backdrop-filter: blur(12px);
  color: #E2E8F0;
  border: 1px solid rgba(229, 189, 110, 0.4);
  border-radius: var(--radius-md);
  padding: 15px 18px;
  box-shadow: var(--shadow-lg);
  z-index: 950;
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-banner h4 { color: #fff; font-size: 0.98rem; margin-block-end: 6px; }
.cookie-banner p { color: #B9C8DF; font-size: 0.82rem; margin-block-end: 14px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Responsive Breakpoints */
@media (max-width: 1140px) {
  .main-nav {
    display: none;
    position: absolute;
    inset-block-start: var(--header-height);
    inset-inline: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 22px;
    border-block-end: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .nav-link.drawer-only { display: block; }
  .mobile-menu-btn { display: inline-flex; }
}

@media (max-width: 1040px) {
  .hero-grid, .split-feature, .calc-grid { grid-template-columns: 1fr; }
  .metrics-grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .header-cta, .brand-logo-sub, .top-ribbon-links { display: none; }
  .section { padding-block: 52px; }
  .hero-highlights, .metrics-grid, .grid-2, .grid-3, .grid-4, .footer-grid, .console-tabs {
    grid-template-columns: 1fr;
  }
  .legal-prose { padding: 24px 18px; }
  .cookie-banner { inset-inline: 14px; max-width: none; }
}
