/* ==========================================================================
   TravelGPT — Secondary Pages 2027 Skyline Spatial & Midnight Navy Engine
   Shared across plans, affiliates, how-it-works, case-studies, faq, partner (p),
   legal documents (terms, privacy, refund-policy), and e-voucher pages.
   ========================================================================== */

/* ---------- 2027 Editorial Display Typography ---------- */
h1,
h2,
.v-brand,
.route-big,
.big-num,
.price,
.calc-output .big {
  font-family: 'Bricolage Grotesque', 'Geist', 'Inter', system-ui, sans-serif;
}

.price,
.big-num,
.stat b,
.stat-tile .val,
.pnr-code,
.calc-output .big {
  font-variant-numeric: tabular-nums;
}

/* ---------- Skyline Daylight Cleanup (Purge Legacy Cream & Mint) ---------- */
.nav {
  background: rgba(244, 248, 254, 0.86);
  border-bottom: 1px solid rgba(13, 27, 42, 0.06);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(13, 27, 42, 0.09);
}

.eyebrow,
.section-eyebrow,
.hero .badge,
.hero-info .verified {
  background: rgba(10, 95, 214, 0.10);
  color: #0A5FD6;
  border: 1px solid rgba(10, 95, 214, 0.16);
}

.cta-final .eyebrow {
  background: rgba(78, 158, 255, 0.18) !important;
  color: #9FC6FF !important;
  border-color: rgba(126, 182, 255, 0.26) !important;
}

h1 em,
.hero h1 em {
  background: rgba(62, 139, 255, 0.15);
  color: #0A5FD6;
}

.btn-mint {
  background: linear-gradient(135deg, #2575FC 0%, #0A5FD6 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 24px -10px rgba(10, 95, 214, 0.55);
}

.btn-mint:hover {
  background: linear-gradient(135deg, #3B84FF 0%, #0952BA 100%);
  color: #FFFFFF;
}

.plan.featured .btn,
.cta-final .btn {
  background: linear-gradient(135deg, #3E8BFF 0%, #0A5FD6 100%);
  color: #FFFFFF;
}

.plan.featured .btn:hover,
.cta-final .btn:hover {
  background: linear-gradient(135deg, #569BFF 0%, #166CE4 100%);
  color: #FFFFFF;
}

.step .n {
  background: rgba(10, 95, 214, 0.12);
  color: #0A5FD6;
}

.steps .step > .n {
  background: #0B1C33;
  color: #6EB0FF;
}

.bene-card .bic,
.benefit .ic,
.floater.f1 .ic {
  background: rgba(10, 95, 214, 0.10);
  color: #0A5FD6;
}

.benefit.peach .ic,
.floater.f2 .ic {
  background: rgba(255, 82, 56, 0.12);
  color: #FF5238;
}

.chart {
  background: linear-gradient(180deg, rgba(62, 139, 255, 0.18), rgba(62, 139, 255, 0));
}

.row3 .cell {
  background: #F4F8FE;
  border: 1px solid rgba(13, 27, 42, 0.06);
}

.banner-img.photo .cta {
  color: #9FC6FF;
}

.case-body blockquote {
  background: rgba(10, 95, 214, 0.06);
  border-left-color: #0A5FD6;
}

details[open] {
  border-color: rgba(10, 95, 214, 0.28);
}

/* ---------- Shared Sun / Moon Theme Toggle Button ---------- */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line, rgba(13, 27, 42, 0.10));
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink, #0B1C33);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 95, 214, 0.35);
}

.theme-toggle .ico-s {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: inline-flex;
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(15, 27, 48, 0.85);
  border-color: rgba(148, 187, 255, 0.20);
  color: #ECF3FE;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: inline-flex;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* ---------- Skyline Midnight Dark Mode ---------- */
@media screen {
  html[data-theme="dark"] {
    --bg: #081120;
    --surface: #0F1B30;
    --ink: #ECF3FE;
    --ink-2: #A3B4CC;
    --ink-3: #687A96;
    --mint: #4E9EFF;
    --mint-dark: #6EB0FF;
    --accent: #4E9EFF;
    --green: #38D399;
    --peach: rgba(78, 158, 255, 0.22);
    --peach-soft: rgba(78, 158, 255, 0.09);
    --vermil: #FF6B4F;
    --line: rgba(148, 187, 255, 0.13);
    --sh-sm: 0 4px 16px rgba(2, 6, 16, 0.45);
    --sh-md: 0 14px 36px -10px rgba(2, 6, 16, 0.65);
    --sh-lg: 0 28px 64px -20px rgba(2, 6, 16, 0.80);
    color-scheme: dark;
  }

  html[data-theme="dark"],
  html[data-theme="dark"] body {
    background: #081120;
    color: #ECF3FE;
  }

  html[data-theme="dark"] .nav {
    background: rgba(8, 17, 32, 0.84);
    border-bottom-color: rgba(148, 187, 255, 0.10);
  }

  html[data-theme="dark"] .nav.scrolled {
    background: rgba(8, 17, 32, 0.94);
    border-bottom-color: rgba(148, 187, 255, 0.15);
    box-shadow: 0 10px 30px -16px rgba(0, 0, 0, 0.7);
  }

  html[data-theme="dark"] .logo {
    color: #ECF3FE;
  }

  html[data-theme="dark"] .eyebrow,
  html[data-theme="dark"] .section-eyebrow,
  html[data-theme="dark"] .hero .badge,
  html[data-theme="dark"] .hero-info .verified {
    background: rgba(78, 158, 255, 0.14);
    color: #7EB6FF;
    border-color: rgba(126, 182, 255, 0.24);
  }

  html[data-theme="dark"] h1 em,
  html[data-theme="dark"] .hero h1 em {
    background: rgba(78, 158, 255, 0.18);
    color: #7EB6FF;
  }

  /* Buttons */
  html[data-theme="dark"] .btn-pri,
  html[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #2575FC 0%, #0A5FD6 100%);
    color: #FFFFFF;
    border-color: rgba(126, 182, 255, 0.32);
    box-shadow: 0 10px 26px -10px rgba(10, 95, 214, 0.65);
  }

  html[data-theme="dark"] .btn-pri:hover,
  html[data-theme="dark"] .btn-primary:hover {
    background: linear-gradient(135deg, #3C86FF 0%, #1468E0 100%);
  }

  html[data-theme="dark"] .btn-sec,
  html[data-theme="dark"] .toolbar .btn:not(.btn-primary) {
    background: #0F1B30;
    border-color: rgba(148, 187, 255, 0.18);
    color: #ECF3FE;
  }

  html[data-theme="dark"] .btn-sec:hover,
  html[data-theme="dark"] .toolbar .btn:not(.btn-primary):hover {
    border-color: rgba(126, 182, 255, 0.42);
    background: #152540;
  }

  html[data-theme="dark"] .btn-ghost:hover {
    background: rgba(148, 187, 255, 0.08);
  }

  /* Standard Spatial Cards */
  html[data-theme="dark"] .plan,
  html[data-theme="dark"] .prize-card,
  html[data-theme="dark"] .cat-card,
  html[data-theme="dark"] .lo,
  html[data-theme="dark"] details,
  html[data-theme="dark"] .card,
  html[data-theme="dark"] .benefit,
  html[data-theme="dark"] .step,
  html[data-theme="dark"] .wp-card,
  html[data-theme="dark"] .banner-card,
  html[data-theme="dark"] .banner-tabs,
  html[data-theme="dark"] .ladder-step,
  html[data-theme="dark"] .affm,
  html[data-theme="dark"] .final-cta,
  html[data-theme="dark"] .pipe-step,
  html[data-theme="dark"] .point,
  html[data-theme="dark"] .bene-card,
  html[data-theme="dark"] .stat,
  html[data-theme="dark"] .case,
  html[data-theme="dark"] .toc a,
  html[data-theme="dark"] .hero-card,
  html[data-theme="dark"] .stat-tile,
  html[data-theme="dark"] .pick,
  html[data-theme="dark"] .quote-card,
  html[data-theme="dark"] .hero-mock,
  html[data-theme="dark"] .floater,
  html[data-theme="dark"] .voucher {
    background: #0F1B30;
    border-color: rgba(148, 187, 255, 0.14);
    color: #ECF3FE;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--sh-sm);
  }

  /* Featured / Inverted Dark Cards */
  html[data-theme="dark"] .plan.featured,
  html[data-theme="dark"] .lo.plat,
  html[data-theme="dark"] .wp-card.dark,
  html[data-theme="dark"] .ladder-step.hot,
  html[data-theme="dark"] .cta-final,
  html[data-theme="dark"] .demo {
    background: linear-gradient(155deg, #14284B 0%, #0C182E 100%);
    border: 1px solid rgba(78, 158, 255, 0.34);
    color: #ECF3FE;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--sh-md);
  }

  html[data-theme="dark"] .demo .reply {
    background: rgba(78, 158, 255, 0.20);
    border: 1px solid rgba(126, 182, 255, 0.30);
    color: #ECF3FE;
  }

  /* Tables */
  html[data-theme="dark"] .cmp,
  html[data-theme="dark"] .wp-cmp {
    background: #0F1B30;
    border: 1px solid rgba(148, 187, 255, 0.14);
  }

  html[data-theme="dark"] .cmp th,
  html[data-theme="dark"] .wp-cmp th {
    background: #152644;
    color: #ECF3FE;
  }

  /* Nested Cells, Inputs & Callouts */
  html[data-theme="dark"] .row3 .cell,
  html[data-theme="dark"] .affm input,
  html[data-theme="dark"] .affm select,
  html[data-theme="dark"] .v-foot,
  html[data-theme="dark"] .callout,
  html[data-theme="dark"] code {
    background: #14233C !important;
    border-color: rgba(148, 187, 255, 0.16);
    color: #ECF3FE;
  }

  html[data-theme="dark"] .banner-tabs button.on {
    background: #2575FC;
    color: #FFFFFF;
  }

  html[data-theme="dark"] .pipe-step .n,
  html[data-theme="dark"] .steps .step > .n,
  html[data-theme="dark"] .perk-card .ic,
  html[data-theme="dark"] .benefit.dark .ic {
    background: #182E52;
    color: #7EB6FF;
    border: 1px solid rgba(126, 182, 255, 0.25);
  }

  html[data-theme="dark"] .cat-card .cc-body .cc-examples span {
    background: rgba(78, 158, 255, 0.14);
    color: #7EB6FF;
  }

  html[data-theme="dark"] .case-vis .save {
    background: #0A5FD6;
    color: #FFFFFF;
  }

  html[data-theme="dark"] .case-body blockquote {
    background: rgba(78, 158, 255, 0.10);
    border-left-color: #4E9EFF;
    color: #ECF3FE;
  }

  html[data-theme="dark"] .perk-card {
    background: linear-gradient(135deg, #13284C 0%, #0F1F3A 100%);
    border: 1px solid rgba(78, 158, 255, 0.28);
    color: #ECF3FE;
  }

  html[data-theme="dark"] .perk-card .txt p {
    color: #A3B4CC;
    opacity: 1;
  }

  html[data-theme="dark"] .code-pill {
    background: #081120;
    border-color: rgba(126, 182, 255, 0.42);
    color: #7EB6FF;
  }

  html[data-theme="dark"] .hero-av {
    border-color: #0F1B30;
    color: #FFFFFF;
  }

  html[data-theme="dark"] .pick .img .fav,
  html[data-theme="dark"] .pick .img .tag {
    background: rgba(8, 17, 32, 0.85);
    color: #ECF3FE;
  }

  html[data-theme="dark"] .hero::after {
    background: radial-gradient(circle, rgba(62, 139, 255, 0.16), transparent 70%);
  }

  html[data-theme="dark"] footer {
    background: #060D1A;
    border-top-color: rgba(148, 187, 255, 0.12);
    color: #687A96;
  }
}

/* ---------- Print Override for E-Voucher ---------- */
@media print {
  html,
  body {
    background: #FFFFFF !important;
    color: #0B1C33 !important;
  }

  .voucher {
    background: #FFFFFF !important;
    color: #0B1C33 !important;
    border-color: #CCCCCC !important;
    box-shadow: none !important;
  }
}
