/* ============================================================
   BIN MAJEED TRAVELS — Design System
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Tokens ---------- */
:root {
  /* Core surfaces — deep midnight */
  --ink-900: #05080F;
  --ink-800: #080D1A;
  --ink-700: #0C1324;
  --ink-600: #111A30;
  --ink-500: #17223D;
  --ink-400: #1E2B4A;

  /* Text */
  --text: #EEF1F8;
  --text-soft: #A9B3C9;
  --text-dim: #6F7B93;

  /* Brand gold */
  --gold-100: #F6ECD2;
  --gold-300: #E4CB92;
  --gold-500: #C9A961;
  --gold-600: #A88940;
  --gold-700: #7C6229;

  /* Division accents */
  --acc: var(--gold-500);
  --acc-soft: var(--gold-300);
  --acc-glow: rgba(201, 169, 97, .35);

  --emerald: #2E9E7B;
  --emerald-deep: #14624C;
  --azure: #3D8BD4;
  --azure-deep: #1A4E82;
  --coral: #E07A5F;
  --pine: #2C7A5B;
  --sky: #63B3ED;

  /* Semantic */
  --ok: #3FBF87;
  --warn: #E8B04B;
  --bad: #E5695B;
  --info: #5FA8E8;

  /* Lines & glass */
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);
  --glass: rgba(255,255,255,.038);
  --glass-2: rgba(255,255,255,.062);

  /* Type */
  --font-display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", Consolas, monospace;

  /* Space */
  --gap: 1.25rem;
  --pad-section: clamp(3.5rem, 8vw, 7rem);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -20px rgba(0,0,0,.75);
  --shadow-soft: 0 10px 34px -14px rgba(0,0,0,.6);
  --maxw: 1240px;
  --nav-h: 76px;
}

/* Per-division accent themes */
[data-theme="umrah"]    { --acc: #37A98A; --acc-soft: #7FD9BE; --acc-glow: rgba(55,169,138,.32); }
[data-theme="hajj"]     { --acc: #C9A961; --acc-soft: #E4CB92; --acc-glow: rgba(201,169,97,.32); }
[data-theme="horizons"] { --acc: #4E9FE0; --acc-soft: #9BCCF2; --acc-glow: rgba(78,159,224,.32); }
[data-theme="sukoon"]   { --acc: #3E9E86; --acc-soft: #8FD7C5; --acc-glow: rgba(62,158,134,.32); }
[data-theme="flights"]  { --acc: #6FA8DC; --acc-soft: #A9CDEB; --acc-glow: rgba(111,168,220,.32); }

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  background: var(--ink-900);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Ambient page glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 12% -8%, var(--acc-glow), transparent 62%),
    radial-gradient(760px 480px at 92% 4%, rgba(78,159,224,.14), transparent 60%),
    radial-gradient(1000px 700px at 50% 108%, rgba(201,169,97,.09), transparent 62%);
  opacity: .85;
  transition: background .6s ease;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; position: relative; z-index: 1; }
.section { padding-block: var(--pad-section); position: relative; z-index: 1; }

/* ---------- Utility ---------- */
.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--acc-soft); display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--acc); opacity: .7; }
.lede { color: var(--text-soft); font-size: 1.06rem; max-width: 62ch; }
.muted { color: var(--text-dim); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.gold-text {
  background: linear-gradient(105deg, var(--gold-300), var(--gold-100) 40%, var(--gold-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.acc-text { color: var(--acc-soft); }
.stack { display: grid; gap: var(--gap); }
.row { display: flex; gap: var(--gap); flex-wrap: wrap; align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: var(--gap); flex-wrap: wrap; }
.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hide { display: none !important; }
.mt { margin-top: 1.5rem; } .mt2 { margin-top: 2.5rem; } .mt3 { margin-top: 4rem; }

/* ---------- Section heading ---------- */
.sec-head { max-width: 760px; margin-bottom: 3rem; }
.sec-head.center { margin-inline: auto; }
.sec-head h2 { margin-block: .8rem .9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.55rem; border-radius: 999px;
  font-size: .9rem; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent; position: relative; overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--acc-soft); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 55%, var(--gold-600));
  color: #1A1305; box-shadow: 0 10px 28px -12px var(--acc-glow);
}
.btn-primary:hover { box-shadow: 0 18px 40px -14px var(--acc-glow); }
[data-theme] .btn-primary { background: linear-gradient(135deg, var(--acc-soft), var(--acc)); color: #04140F; }

.btn-ghost { border-color: var(--line-strong); color: var(--text); background: var(--glass); backdrop-filter: blur(12px); }
.btn-ghost:hover { border-color: var(--acc); color: var(--acc-soft); background: var(--glass-2); }
.btn-solid { background: var(--acc); color: #04140F; }
.btn-quiet { color: var(--text-soft); padding-inline: .9rem; }
.btn-quiet:hover { color: var(--acc-soft); }
.btn-sm { padding: .5rem 1rem; font-size: .8rem; }
.btn-lg { padding: 1rem 2rem; font-size: .98rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- Cards / panels ---------- */
.panel {
  background: linear-gradient(165deg, var(--glass-2), var(--glass));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  position: relative;
}
.panel-pad { padding: clamp(1.25rem, 2.4vw, 2rem); }

.card {
  background: linear-gradient(168deg, rgba(255,255,255,.058), rgba(255,255,255,.022));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), border-color .35s, box-shadow .35s;
  backdrop-filter: blur(14px);
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px 220px at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.07), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.card:hover::after { opacity: 1; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-soft); font-size: .94rem; }

.card-link:hover { border-color: color-mix(in srgb, var(--acc) 55%, transparent); }

/* Divider */
.hr { height: 1px; background: var(--line); border: 0; margin-block: 1.5rem; }
.hr-fade { height: 1px; border: 0; margin-block: 2rem;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .72rem; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--text-soft); background: var(--glass);
}
.badge-acc { color: var(--acc-soft); border-color: color-mix(in srgb, var(--acc) 45%, transparent);
  background: color-mix(in srgb, var(--acc) 12%, transparent); }
.badge-ok { color: var(--ok); border-color: rgba(63,191,135,.35); background: rgba(63,191,135,.1); }
.badge-warn { color: var(--warn); border-color: rgba(232,176,75,.35); background: rgba(232,176,75,.1); }
.badge-bad { color: var(--bad); border-color: rgba(229,105,91,.35); background: rgba(229,105,91,.1); }
.badge-info { color: var(--info); border-color: rgba(95,168,232,.35); background: rgba(95,168,232,.1); }

.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .9rem; border-radius: 999px; font-size: .82rem;
  border: 1px solid var(--line); background: var(--glass); color: var(--text-soft);
  cursor: pointer; transition: .22s; user-select: none;
}
.chip:hover { border-color: var(--acc); color: var(--acc-soft); }
.chip[aria-pressed="true"], .chip.on {
  background: color-mix(in srgb, var(--acc) 16%, transparent);
  border-color: var(--acc); color: var(--acc-soft); font-weight: 600;
}

/* ---------- Forms ---------- */
.field { display: grid; gap: .42rem; }
.field > label, .lbl {
  font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--text-dim);
}
.input, select.input, textarea.input {
  width: 100%; padding: .8rem 1rem; border-radius: var(--radius-sm);
  background: rgba(4,8,16,.6); border: 1px solid var(--line);
  color: var(--text); font-size: .95rem; transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
}
.input::placeholder { color: var(--text-dim); }
.input:focus {
  outline: none; border-color: var(--acc);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 18%, transparent);
  background: rgba(4,8,16,.85);
}
select.input {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23A9B3C9' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem;
}
select.input option { background: var(--ink-700); color: var(--text); }
textarea.input { resize: vertical; min-height: 120px; }
input[type="date"].input, input[type="number"].input { color-scheme: dark; }
.field-row { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.hint { font-size: .76rem; color: var(--text-dim); }
.err { font-size: .78rem; color: var(--bad); }

.switch { display: inline-flex; gap: 0; padding: 4px; border-radius: 999px; background: rgba(4,8,16,.6); border: 1px solid var(--line); }
.switch button {
  padding: .45rem 1.05rem; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--text-dim);
  transition: .22s;
}
.switch button.on { background: var(--acc); color: #04140F; }

.check { display: flex; gap: .65rem; align-items: flex-start; cursor: pointer; font-size: .9rem; color: var(--text-soft); }
.check input { width: 18px; height: 18px; accent-color: var(--acc); margin-top: .18rem; flex: none; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(4,8,16,.35); }
table th, table td { padding: .85rem 1rem; text-align: left; font-size: .88rem; white-space: nowrap; }
table thead th {
  font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-dim);
  border-bottom: 1px solid var(--line); font-weight: 700; background: rgba(255,255,255,.02);
}
table tbody tr { border-bottom: 1px solid rgba(255,255,255,.05); transition: background .2s; }
table tbody tr:last-child { border-bottom: 0; }
table tbody tr:hover { background: rgba(255,255,255,.035); }
table td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: .84rem; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 90; height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
.nav.scrolled {
  background: rgba(5,8,15,.82); backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-txt { display: grid; line-height: 1.05; }
.brand-txt b { font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; letter-spacing: .01em; }
.brand-txt span { font-size: .56rem; letter-spacing: .3em; text-transform: uppercase; color: var(--text-dim); }

.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .8rem; border-radius: 8px; font-size: .875rem; color: var(--text-soft);
  transition: color .2s, background .2s; position: relative;
}
.nav-links a:hover, .nav-links button:hover { color: var(--text); background: var(--glass); }
.nav-links a.active { color: var(--acc-soft); }
.nav-links a.active::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .18rem; height: 2px;
  background: var(--acc); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: .6rem; flex: none; }

/* Dropdown */
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0;
  min-width: 320px; padding: .6rem; border-radius: var(--radius);
  background: rgba(9,14,26,.96); border: 1px solid var(--line-strong);
  backdrop-filter: blur(24px); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s;
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop-wide { min-width: 660px; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.drop-col { min-width: 0; }
.drop-head {
  display: block; padding: .55rem .8rem .35rem;
  font-size: .64rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim);
}
.drop a { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem .8rem; border-radius: 10px; transition: background .2s; }
.drop a:hover { background: var(--glass-2); }
.drop .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: .48rem; flex: none; }
.drop b { display: block; font-size: .9rem; font-weight: 600; color: var(--text); }
.drop small { font-size: .77rem; color: var(--text-dim); line-height: 1.45; }

/* Mobile nav */
.burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); align-items: center; justify-content: center; }
.mobile-nav {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 89;
  background: rgba(5,8,15,.98); backdrop-filter: blur(24px);
  padding: 1.5rem; overflow-y: auto;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { display: block; padding: .95rem .5rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.mobile-nav a small { display: block; font-size: .78rem; color: var(--text-dim); }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-actions .btn:not(.burger) { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1.05fr .95fr; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-block: 1.1rem 1.3rem; }
.hero .lede { font-size: clamp(1rem, 1.5vw, 1.15rem); }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-stats { display: flex; gap: 2.4rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stats div b { display: block; font-family: var(--font-display); font-size: 2.1rem; color: var(--acc-soft); line-height: 1; }
.hero-stats div span { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }

/* ---------- Plane / flightpath art ---------- */
.flightpath { width: 100%; height: auto; overflow: visible; }
.fp-arc { fill: none; stroke: var(--acc); stroke-width: 1.6; stroke-dasharray: 7 9; opacity: .55;
  animation: dashmove 3.2s linear infinite; }
@keyframes dashmove { to { stroke-dashoffset: -32; } }
.fp-plane { fill: var(--gold-100); filter: drop-shadow(0 0 8px var(--acc-glow)); }
.fp-glow { fill: none; stroke: var(--acc); stroke-width: 10; opacity: .07; filter: blur(6px); }

.plane-fly { offset-rotate: auto; animation: flyPath 9s cubic-bezier(.45,.02,.55,.98) infinite; }
@keyframes flyPath { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

/* Drifting background planes */
.sky-planes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.sky-plane { position: absolute; opacity: .13; color: var(--acc-soft); animation: drift linear infinite; }
@keyframes drift { from { transform: translateX(-18vw) translateY(0); } to { transform: translateX(120vw) translateY(-6vh); } }

/* ---------- Division tiles ---------- */
.div-tile {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  border: 1px solid var(--line); min-height: 360px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.8rem; isolation: isolate;
  transition: transform .45s cubic-bezier(.2,.7,.3,1), border-color .45s;
}
.div-tile:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.div-tile .art { position: absolute; inset: 0; z-index: -2; }
.div-tile .art svg, .div-tile .art img { width: 100%; height: 100%; object-fit: cover; }
.div-tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(3,6,12,.94) 8%, rgba(3,6,12,.55) 45%, rgba(3,6,12,.15) 100%);
}
.div-tile h3 { font-size: 1.75rem; margin-block: .55rem .4rem; }
.div-tile p { color: var(--text-soft); font-size: .9rem; max-width: 46ch; }
.div-tile .go { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; font-size: .85rem; font-weight: 600; color: var(--acc-soft); }
.div-tile .go svg { transition: transform .3s; }
.div-tile:hover .go svg { transform: translateX(5px); }
.div-tile.tall { min-height: 480px; }

/* ---------- Photo slot (drop real images here) ---------- */
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-700); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .ph-art { width: 100%; height: 100%; }
.photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem;
  background: linear-gradient(to top, rgba(3,6,12,.92), transparent);
  font-size: .85rem;
}
.ratio-4-3 { aspect-ratio: 4/3; } .ratio-16-9 { aspect-ratio: 16/9; } .ratio-1-1 { aspect-ratio: 1/1; } .ratio-3-4 { aspect-ratio: 3/4; }

/* ---------- Package cards ---------- */
.pkg { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.pkg .pkg-top { position: relative; height: 190px; overflow: hidden; }
.pkg .pkg-top .ph-art { width: 100%; height: 100%; }
.pkg .pkg-tag { position: absolute; top: 1rem; left: 1rem; z-index: 2; }
.pkg .pkg-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .85rem; flex: 1; }
.pkg .pkg-body h3 { font-size: 1.35rem; }
.pkg-meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: .8rem; color: var(--text-dim); }
.pkg-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.pkg-incl { display: grid; gap: .4rem; font-size: .855rem; color: var(--text-soft); }
.pkg-incl li { display: flex; gap: .55rem; align-items: flex-start; }
.pkg-incl li svg { flex: none; margin-top: .25rem; color: var(--acc); }
.pkg-foot { margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.price { display: grid; line-height: 1.15; }
.price small { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.price b { font-family: var(--font-display); font-size: 1.9rem; color: var(--text); font-weight: 600; }
.price b em { font-style: normal; font-size: .95rem; color: var(--text-dim); font-family: var(--font-body); }

/* ---------- Flight result cards ----------
   Modelled on an airline's own booking engine (Emirates / Airblue) rather
   than an OTA list. The differences that matter:
     · almost no ornament — the card is a calm container, not a ticket
     · you SELECT a flight; the action lives in one summary bar, not on
       every row, so the eye has a single place to go
     · details expand in place instead of opening a modal
   Because we do not publish fares, the right-hand column carries the
   cabin and the select control where an airline would put a price. */
.flight-row {
  border: 1px solid var(--line); border-radius: var(--radius); position: relative;
  background: rgba(255,255,255,.022); overflow: hidden;
  transition: border-color .22s, background .22s;
}
.flight-row:hover { border-color: color-mix(in srgb, var(--acc) 40%, transparent); }
.flight-row.sel {
  border-color: var(--acc);
  background: color-mix(in srgb, var(--acc) 7%, rgba(255,255,255,.022));
}
.flight-row.sel::before {   /* selected marker down the left edge */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--acc);
}

.fc-main {
  display: grid; grid-template-columns: 168px 1fr 158px; gap: 1.5rem;
  align-items: center; padding: 1.15rem 1.35rem;
}
.fc-side { display: grid; gap: .25rem; justify-items: end; text-align: right; }
.fc-cabin { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.fc-from { font-size: .72rem; color: var(--text-dim); }

/* ---------- Branded fare cells ----------
   The airline model: each flight offers named fares and you pick one.
   A real GDS returns these per flight; the shape maps straight across. */
.fare-cells {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .55rem; padding: 0 1.35rem 1.1rem;
}
.fare-cell {
  display: grid; gap: .18rem; text-align: left; padding: .75rem .9rem;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02);
  transition: border-color .18s, background .18s;
}
.fare-cell:hover { border-color: color-mix(in srgb, var(--acc) 55%, transparent); background: rgba(255,255,255,.04); }
.fare-cell.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); }
.fare-cell .fx-name {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim);
}
.fare-cell.on .fx-name { color: var(--acc); }
.fare-cell .fx-price { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.15; }
.fare-cell .fx-inc { font-size: .72rem; color: var(--text-soft); }
/* Shown instead of a price while fares are not published. */
.fare-cell .fx-price.fx-ask {
  font-family: var(--font-body); font-size: .84rem; font-weight: 500; color: var(--acc-soft);
}

/* ---------- Filter panel ----------
   Sectioned with hairlines instead of one long stack of loose controls, so
   each group reads as its own thing and the spacing stays even. */
.fpanel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,.022); overflow: hidden;
}
.fp-head {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1rem; border-bottom: 1px solid var(--line);
}
.fp-head b { font-size: .92rem; }
.fp-head .btn { margin-left: auto; }
.fp-count {
  font-size: .68rem; font-weight: 600; padding: .1rem .45rem; border-radius: 999px;
  background: var(--acc); color: var(--ink-900);
}
.fp-sec { padding: .95rem 1rem; border-bottom: 1px solid var(--line); }
.fp-sec.last { border-bottom: 0; }
.fp-lbl {
  display: flex; justify-content: space-between; align-items: baseline; gap: .5rem;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: .6rem;
}

/* segmented control — replaces loose chips that wrapped awkwardly */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg-b { padding: .45rem .3rem; font-size: .8rem; color: var(--text-soft);
  border-right: 1px solid var(--line); transition: background .16s, color .16s; }
.seg-b:last-child { border-right: 0; }
.seg-b:hover { background: rgba(255,255,255,.04); color: var(--text); }
.seg-b.on { background: color-mix(in srgb, var(--acc) 16%, transparent); color: var(--acc); font-weight: 600; }

/* time-of-day: a 2×2 grid, so nothing orphans onto its own line */
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.tbtn {
  display: grid; gap: .05rem; padding: .5rem .55rem; text-align: left;
  border: 1px solid var(--line); border-radius: 9px; transition: border-color .16s, background .16s;
}
.tbtn b { font-size: .8rem; font-weight: 500; }
.tbtn small { font-size: .68rem; color: var(--text-dim); font-family: var(--font-mono); }
.tbtn:hover { border-color: color-mix(in srgb, var(--acc) 45%, transparent); }
.tbtn.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); }
.tbtn.on b { color: var(--acc); }
.tbtn[data-time="any"] { grid-column: 1 / -1; }

.al-list { display: grid; gap: .1rem; max-height: 232px; overflow-y: auto; margin: -.25rem -.35rem; padding: 0 .35rem; }
.al-list .check { padding: .38rem .3rem; border-radius: 7px; }
.al-list .check:hover { background: rgba(255,255,255,.03); }

/* ---------- Return-trip leg tabs ---------- */
.leg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1.15rem; }
@media (max-width: 560px) { .leg-tabs { grid-template-columns: 1fr; } }
.leg-tab {
  display: flex; align-items: center; gap: .65rem; text-align: left;
  padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255,255,255,.02); transition: border-color .18s, background .18s;
}
.leg-tab:hover { border-color: color-mix(in srgb, var(--acc) 45%, transparent); }
.leg-tab.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, transparent); }
.leg-tab .lt-n {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: .72rem; font-weight: 700; border: 1px solid var(--line-strong); color: var(--text-dim);
}
.leg-tab.on .lt-n { border-color: var(--acc); color: var(--acc); }
.leg-tab.done .lt-n { background: var(--ok); border-color: var(--ok); color: var(--ink-900); }
.leg-tab .lt-txt { display: grid; gap: .1rem; min-width: 0; }
.leg-tab .lt-txt b { font-size: .82rem; font-weight: 600; }
.leg-tab .lt-txt small { font-size: .72rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* summary bar: one block per leg */
.sb-legs { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.sb-leg { display: grid; gap: .08rem; }
.sb-leg i { font-style: normal; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.sb-leg b { font-size: .88rem; }
.sb-leg small { font-size: .72rem; color: var(--text-dim); }
.sb-leg.pending b { color: var(--text-dim); font-weight: 400; }
.selbar .btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- Flexible dates strip ---------- */
.date-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(104px, 1fr);
  gap: .4rem; margin-top: .9rem; overflow-x: auto; padding-bottom: .2rem;
}
.ds-day {
  display: grid; gap: .12rem; padding: .5rem .6rem; text-align: center;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02);
  transition: border-color .18s, background .18s;
}
.ds-day:hover { border-color: color-mix(in srgb, var(--acc) 50%, transparent); }
.ds-day.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); }
.ds-dow { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.ds-date { font-size: .8rem; }
.ds-price { font-size: .8rem; font-family: var(--font-mono); color: var(--text-soft); }
.ds-day.low .ds-price { color: var(--ok); font-weight: 600; }
.ds-day.on .ds-price { color: var(--acc); }

/* quiet footer strip: metadata left, details toggle right */
.fc-foot {
  display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center;
  padding: .6rem 1.35rem .7rem; border-top: 1px solid var(--line);
}
.fc-toggle {
  margin-left: auto; font-size: .78rem; color: var(--acc-soft);
  display: inline-flex; align-items: center; gap: .35rem;
}
.fc-toggle:hover { color: var(--acc); }
.fc-toggle .cv { transition: rotate .25s; display: inline-block; }
.flight-row.open .fc-toggle .cv { rotate: 180deg; }
.fc-detail { padding: .3rem 1.35rem 1.3rem; border-top: 1px solid var(--line); }

@media (max-width: 820px) {
  .fc-main { grid-template-columns: 1fr; gap: 1.1rem; }
  .fc-side { justify-items: stretch; text-align: left; }
}

/* ---------- Selection summary bar ----------
   The single primary action for the whole list, the way an airline
   booking engine does it. */
.selbar {
  position: sticky; bottom: 1rem; z-index: 60; margin-top: 1.1rem;
  display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center;
  padding: .85rem 1.1rem; border: 1px solid var(--acc);
  border-radius: var(--radius); background: rgba(12,19,36,.94);
  backdrop-filter: blur(14px); box-shadow: var(--shadow-soft);
}
.selbar .sb-txt { display: grid; gap: .15rem; font-size: .84rem; }
.selbar .sb-txt b { font-size: .95rem; }
.selbar .sb-quote { margin-left: auto; }
.selbar .sb-quote + .sb-go { margin-left: 0; }
.selbar .sb-go { margin-left: auto; }
@media (max-width: 640px) {
  .selbar .sb-quote, .selbar .sb-go { margin-left: 0; width: 100%; }
}

.airline { display: flex; align-items: center; gap: .7rem; }
.airline-logo {
  width: 42px; height: 42px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  border: 1px solid var(--line-strong); color: var(--ink-900);
}
.airline b { font-size: .84rem; display: block; }
.airline small { font-size: .7rem; color: var(--text-dim); font-family: var(--font-mono); }

.leg { display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: end; }
.leg-time { text-align: center; }
.leg-time b {
  font-size: 1.6rem; font-family: var(--font-display); display: block; line-height: 1;
  font-weight: 600; letter-spacing: -.01em;
}
.leg-time span {
  font-size: .76rem; color: var(--text-dim); font-family: var(--font-mono);
  letter-spacing: .1em; display: block; margin-top: .3rem;
}
.leg-path { text-align: center; position: relative; padding-bottom: .1rem; }
.leg-path .dur {
  font-size: .72rem; color: var(--text-soft); font-family: var(--font-mono);
  letter-spacing: .04em; display: block; margin-bottom: .1rem;
}

/* A plain horizontal rule with endpoint caps and stop markers — the way an
   airline draws it. No arc, no plane glyph: the times are the information. */
.leg-line { position: relative; height: 1px; background: var(--line-strong); margin-block: .55rem; }
.leg-line .cap {
  position: absolute; top: 50%; translate: 0 -50%; width: 7px; height: 7px;
  border-radius: 50%; background: var(--acc);
}
.leg-line .cap.a { left: 0; } .leg-line .cap.b { right: 0; }
.leg-line .stopdot {
  position: absolute; top: 50%; translate: -50% -50%; width: 5px; height: 5px;
  border-radius: 50%; background: var(--text-soft); border: 1px solid var(--ink-900);
}
.leg-path .stops { font-size: .74rem; color: var(--text-soft); }

/* Meta strip along the bottom of the card body */
.fc-meta {
  display: flex; flex-wrap: wrap; gap: .45rem .9rem; align-items: center;
  font-size: .74rem; color: var(--text-dim); font-family: var(--font-mono); letter-spacing: .03em;
}
.fc-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.fc-tags { display: flex; flex-wrap: wrap; gap: .35rem; }

.leg-fare { text-align: right; display: grid; gap: .55rem; justify-items: end; }
@media (max-width: 820px) { .leg-fare { justify-items: stretch; text-align: left; } }

/* ---------- Timeline / itinerary ---------- */
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before { content: ""; position: absolute; left: 9px; top: .6rem; bottom: .6rem; width: 2px;
  background: linear-gradient(to bottom, var(--acc), color-mix(in srgb, var(--acc) 20%, transparent)); border-radius: 2px; }
.tl-item { position: relative; padding-bottom: 2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -2.2rem; top: .45rem; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink-800); border: 2px solid var(--acc); box-shadow: 0 0 0 4px rgba(5,8,15,.9);
}
.tl-item[data-done]::before { background: var(--acc); }
.tl-day { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--acc-soft); font-weight: 700; }
.tl-item h4 { font-family: var(--font-display); font-size: 1.28rem; font-weight: 500; margin-block: .25rem .5rem; }
.tl-item p { color: var(--text-soft); font-size: .92rem; }
.tl-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }

/* ---------- Stepper ---------- */
.stepper { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: .6rem; padding: .5rem .95rem; border-radius: 999px;
  border: 1px solid var(--line); font-size: .82rem; color: var(--text-dim); transition: .25s; }
.step i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  font-size: .72rem; font-weight: 700; background: var(--glass-2); color: var(--text-dim); flex: none; }
.step.on { border-color: var(--acc); color: var(--acc-soft); background: color-mix(in srgb, var(--acc) 12%, transparent); }
.step.on i { background: var(--acc); color: #04140F; }
.step.done i { background: var(--ok); color: #04140F; }
.step-sep { width: 22px; height: 1px; background: var(--line-strong); }
@media (max-width: 720px) { .step-sep { display: none; } }

/* ---------- Stats / KPI ---------- */
.kpi { padding: 1.35rem 1.5rem; }
.kpi .lbl { display: block; margin-bottom: .5rem; }
.kpi b { font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; line-height: 1; display: block; }
.kpi .delta { font-size: .78rem; margin-top: .45rem; display: inline-flex; align-items: center; gap: .3rem; }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); }

/* Sparkline bars */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 40px; margin-top: .9rem; }
.spark i { flex: 1; background: linear-gradient(to top, color-mix(in srgb, var(--acc) 65%, transparent), color-mix(in srgb, var(--acc) 18%, transparent));
  border-radius: 2px 2px 0 0; min-height: 3px; }

/* ---------- Points / loyalty ---------- */
.tier-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.tier-bar i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300)); transition: width .8s cubic-bezier(.2,.7,.3,1); }

.member-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 1.7rem;
  background: linear-gradient(135deg, #11182E, #0A0F1F 55%, #1A1305);
  border: 1px solid var(--gold-700);
  box-shadow: 0 24px 60px -24px rgba(201,169,97,.4);
}
.member-card::before {
  content: ""; position: absolute; inset: -50% -20%; opacity: .35;
  background: conic-gradient(from 210deg, transparent, rgba(228,203,146,.45), transparent 45%);
  animation: sheen 9s linear infinite;
}
@keyframes sheen { to { transform: rotate(360deg); } }
.member-card > * { position: relative; }
.member-no { font-family: var(--font-mono); font-size: 1.08rem; letter-spacing: .18em; color: var(--gold-100); }

/* ---------- Sidebar layout (portals) ---------- */
.app-shell { display: grid; grid-template-columns: 264px 1fr; min-height: calc(100vh - var(--nav-h)); }
@media (max-width: 960px) { .app-shell { grid-template-columns: 1fr; } .app-side { display: none; } }
.app-side { border-right: 1px solid var(--line); padding: 1.5rem 1rem; background: rgba(4,7,14,.5); }
.app-main { padding: clamp(1.25rem, 3vw, 2.5rem); min-width: 0; }
.side-group { margin-bottom: 1.75rem; }
.side-group > .lbl { padding-inline: .8rem; display: block; margin-bottom: .5rem; }
.side-link {
  display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; border-radius: 10px;
  font-size: .89rem; color: var(--text-soft); transition: .22s; width: 100%; text-align: left;
}
.side-link:hover { background: var(--glass-2); color: var(--text); }
.side-link.on { background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc-soft); font-weight: 600; }
.side-link svg { flex: none; opacity: .8; }
.side-link .count { margin-left: auto; font-size: .72rem; color: var(--text-dim); font-family: var(--font-mono); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button {
  padding: .8rem 1.1rem; font-size: .875rem; color: var(--text-dim); border-bottom: 2px solid transparent;
  transition: .22s; white-space: nowrap;
}
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--acc-soft); border-bottom-color: var(--acc); font-weight: 600; }

/* ---------- Accordion ---------- */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 1.25rem 0; text-align: left; font-size: 1.02rem; font-weight: 500; font-family: var(--font-display); }
.acc-head .ic { flex: none; transition: transform .3s; color: var(--acc); }
.acc-item.open .acc-head .ic { transform: rotate(45deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2,.7,.3,1); }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-body p { color: var(--text-soft); font-size: .93rem; padding-bottom: 1.25rem; max-width: 78ch; }

/* ---------- Modal ---------- */
.modal-bg {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.25rem;
  background: rgba(2,4,9,.78); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: .28s;
}
.modal-bg.open { opacity: 1; visibility: visible; }
.modal {
  width: min(100%, 540px); max-height: 88vh; overflow-y: auto;
  background: linear-gradient(165deg, #0E1526, #070B15);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow);
  transform: translateY(18px) scale(.98); transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.modal-bg.open .modal { transform: none; }
.modal.wide { width: min(100%, 820px); }
.modal-x { position: absolute; top: 1rem; right: 1rem; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text-dim); border: 1px solid var(--line); }
.modal-x:hover { color: var(--text); border-color: var(--line-strong); }

/* ---------- Toast ---------- */
.toasts { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 300; display: grid; gap: .7rem; max-width: 360px; }
.toast {
  display: flex; gap: .8rem; align-items: flex-start; padding: .95rem 1.1rem; border-radius: 12px;
  background: rgba(12,18,32,.97); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  backdrop-filter: blur(18px); font-size: .88rem;
  animation: toastIn .35s cubic-bezier(.2,.7,.3,1);
}
@keyframes toastIn { from { transform: translateX(30px); opacity: 0; } }
.toast.out { animation: toastOut .3s forwards; }
@keyframes toastOut { to { transform: translateX(30px); opacity: 0; } }
.toast b { display: block; font-size: .84rem; margin-bottom: .1rem; }
.toast .ic { flex: none; margin-top: .1rem; }
.toast-ok .ic { color: var(--ok); } .toast-bad .ic { color: var(--bad); } .toast-info .ic { color: var(--info); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 4rem 2rem; margin-top: 4rem; position: relative; z-index: 1;
  background: linear-gradient(to bottom, transparent, rgba(2,4,9,.7)); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.5fr repeat(4, 1fr); }
@media (max-width: 1080px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1rem; font-weight: 700; }
.footer li a { display: block; padding: .3rem 0; font-size: .88rem; color: var(--text-soft); transition: color .2s, padding-left .2s; }
.footer li a:hover { color: var(--acc-soft); padding-left: 4px; }
.footer-bot { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--text-dim); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee ul { display: flex; gap: 3.5rem; width: max-content; animation: scrollx 34s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
@keyframes scrollx { to { transform: translateX(-50%); } }
.marquee li { font-family: var(--font-display); font-size: 1.15rem; color: var(--text-dim); white-space: nowrap;
  display: flex; align-items: center; gap: .7rem; }

/* ---------- Reveal animation ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
/* ============================================================
   Coming soon banner
   ============================================================ */
.cs-banner {
  border-bottom: 1px solid color-mix(in srgb, var(--acc) 45%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 14%, transparent), transparent);
  padding-block: 1rem; margin-top: var(--nav-h);
}
.cs-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cs-tag {
  flex: none; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px; background: var(--acc); color: var(--ink-900);
}
.cs-txt { display: grid; gap: .15rem; flex: 1; min-width: 220px; }
.cs-txt b { font-size: .98rem; }
.cs-txt span { font-size: .85rem; color: var(--text-soft); line-height: 1.55; }
.cs-cta { flex: none; }
/* the page's own hero already sits under the nav; don't double the offset */
.is-coming-soon body > section:first-of-type { padding-top: 1.5rem; }
.is-coming-soon .cs-banner + section { padding-top: 1.8rem; }
.is-disabled { opacity: .45; pointer-events: none; }
@media (max-width: 620px) { .cs-cta { width: 100%; } }

/* ============================================================
   Payment flow — bank transfer + proof upload
   ============================================================ */
.pay-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1.2rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.3rem;
}
.pay-amt { text-align: right; display: grid; gap: .15rem; flex: none; }
.pay-amt small { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.pay-amt b { font-family: var(--font-display); font-size: 1.6rem; color: var(--acc); line-height: 1.1; }
.mono { font-family: var(--font-mono); }

.paysteps { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.3rem; font-size: .78rem; }
.paysteps i {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: .72rem; font-weight: 700;
  border: 1px solid var(--line-strong); color: var(--text-dim);
}
.paysteps i.on { border-color: var(--acc); color: var(--acc); }
.paysteps i.done { background: var(--ok); border-color: var(--ok); color: var(--ink-900); }
.paysteps span { color: var(--text-dim); }
.paysteps u { flex: 1; height: 1px; background: var(--line); }

.paybank .cover-line b.mono { font-size: .88rem; letter-spacing: .02em; }
.paywarn {
  margin-top: 1rem; padding: .85rem 1rem; border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent);
  background: color-mix(in srgb, var(--warn) 10%, transparent); font-size: .84rem;
}
.paywarn p { margin-top: .3rem; color: var(--text-soft); line-height: 1.55; }

.dropzone {
  display: grid; place-items: center; gap: .3rem; text-align: center;
  margin-top: .6rem; padding: 1.6rem 1rem; cursor: pointer;
  border: 1.5px dashed var(--line-strong); border-radius: 12px;
  background: rgba(255,255,255,.02); transition: border-color .18s, background .18s;
}
.dropzone:hover, .dropzone.over { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 8%, transparent); }
.dropzone b { font-size: .9rem; font-weight: 500; }
.dropzone small { font-size: .76rem; color: var(--text-dim); }
.dz-icon { font-size: 1.3rem; color: var(--acc); line-height: 1; }

.proof-card {
  display: flex; align-items: center; gap: .85rem; margin-top: .7rem;
  padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255,255,255,.025);
}
.proof-card img { width: 52px; height: 52px; object-fit: cover; border-radius: 7px; flex: none; }
.proof-doc {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 7px;
  background: rgba(255,255,255,.05); font-size: .7rem; font-weight: 700; color: var(--text-dim);
}
.proof-meta { display: grid; gap: .1rem; min-width: 0; flex: 1; }
.proof-meta b { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proof-meta small { font-size: .74rem; color: var(--text-dim); }

/* ============================================================
   Printable documents — quotation / invoice
   The document host is hidden on screen and becomes the ONLY thing
   printed. Black on white: a gold-on-navy invoice is unreadable on
   paper and burns a cartridge.
   ============================================================ */
#bmDocHost { display: none; }

@media print {
  html.printing-doc, html.printing-doc body {
    background: #fff !important; color: #111 !important;
    margin: 0 !important; padding: 0 !important;
  }
  html.printing-doc body > *:not(#bmDocHost) { display: none !important; }
  html.printing-doc #bmDocHost { display: block !important; }
  @page { size: A4; margin: 14mm; }
}

/* On-screen viewer: the same sheet, shown in a modal so it can actually
   be read before printing. */
.docview-bar {
  display: flex; align-items: center; gap: 1rem;
  padding-bottom: .9rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.docview-bar .btn { margin-left: auto; }
.docview {
  max-height: 66vh; overflow-y: auto; overflow-x: hidden; background: #fff;
  border-radius: 8px; padding: 8mm; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
/* The sheet is laid out in millimetres for print. On screen the modal is
   narrower than A4, so shrink it to fit rather than clipping the amount
   column off the right edge. */
.docview .doc-sheet { width: 100%; max-width: none; font-size: 9.5pt; }
/* The print sheet sizes its columns in millimetres for A4. On screen the
   modal is narrower than A4, so switch to a proportional table — otherwise
   the amount column is pushed off the right edge and clipped. */
.docview .doc-tbl { table-layout: fixed; width: 100%; }
.docview .doc-tbl .c { width: 8%; }
.docview .doc-tbl .r { width: 30%; min-width: 0; white-space: normal; word-break: break-word; }
.docview .doc-tot { width: 62%; min-width: 0; margin-left: auto; }
.docview .doc-bank td { padding-right: 4mm; }
@media (max-width: 700px) {
  .docview { padding: 5mm; }
  .docview .doc-sheet { font-size: 8.5pt; }
  .docview .doc-to, .docview .doc-lh { flex-direction: column; gap: 3mm; }
  .docview .doc-refs, .docview .doc-lh-r { text-align: left; }
}

#bmDocHost .doc-sheet, .docview .doc-sheet {
  font-family: Inter, system-ui, sans-serif; color: #111; background: #fff;
  font-size: 10.5pt; line-height: 1.5; max-width: 182mm; margin: 0 auto;
}

/* letterhead */
#bmDocHost .doc-lh, .docview .doc-lh {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12mm;
  padding-bottom: 4mm; border-bottom: 2px solid #C9A961; margin-bottom: 5mm;
}
#bmDocHost .doc-co, .docview .doc-co {
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 18pt; font-weight: 700; line-height: 1.05;
}
#bmDocHost .doc-since, .docview .doc-since {
  font-size: 8.5pt; letter-spacing: .18em; text-transform: uppercase; color: #8a7434; margin-top: 1mm;
}
#bmDocHost .doc-lh-r, .docview .doc-lh-r { text-align: right; }
#bmDocHost .doc-trading, .docview .doc-trading { font-size: 10pt; font-weight: 600; }
#bmDocHost .doc-lic, .docview .doc-lic { font-size: 8pt; color: #6b6b6b; margin-top: 1mm; }

/* to / refs */
#bmDocHost .doc-to, .docview .doc-to {
  display: flex; justify-content: space-between; gap: 10mm; margin-bottom: 5mm;
}
#bmDocHost .doc-to-lbl, .docview .doc-to-lbl { display: block; color: #6b6b6b; font-size: 9pt; }
#bmDocHost .doc-to b, .docview .doc-to b { font-size: 12pt; }
#bmDocHost .doc-refs, .docview .doc-refs { text-align: right; font-size: 9.5pt; }
#bmDocHost .doc-refs span, .docview .doc-refs span { color: #6b6b6b; }
#bmDocHost .doc-refs div, .docview .doc-refs div { margin-bottom: .8mm; }

/* particulars table */
#bmDocHost .doc-tbl, .docview .doc-tbl { width: 100%; border-collapse: collapse; margin-bottom: 4mm; }
#bmDocHost .doc-tbl th, .docview .doc-tbl th {
  text-align: left; font-size: 8pt; letter-spacing: .1em; text-transform: uppercase;
  color: #444; background: #F3F0E8; border: 1px solid #ddd; padding: 1.8mm 2.5mm;
}
#bmDocHost .doc-tbl td, .docview .doc-tbl td {
  border: 1px solid #ddd; padding: 2.6mm 2.5mm; vertical-align: top; font-size: 9.5pt;
  /* Something upstream sets nowrap on table cells; without this the
     Particulars text runs off the sheet instead of wrapping — on paper
     as well as on screen. */
  white-space: normal; overflow-wrap: anywhere;
}
#bmDocHost .doc-sub, .docview .doc-sub { white-space: normal; overflow-wrap: anywhere; }
#bmDocHost .doc-tbl .c, .docview .doc-tbl .c { text-align: center; width: 10mm; }
#bmDocHost .doc-tbl .r, .docview .doc-tbl .r { text-align: right; width: 42mm; white-space: nowrap; }
#bmDocHost .doc-sub, .docview .doc-sub { color: #555; font-size: 8.5pt; margin-top: 1mm; }

/* standing notes */
#bmDocHost .doc-notes, .docview .doc-notes {
  display: grid; gap: 1mm; margin-bottom: 4mm; font-size: 9pt;
}
#bmDocHost .doc-notes b, .docview .doc-notes b { letter-spacing: .04em; }
#bmDocHost .doc-notes span, .docview .doc-notes span { color: #6b6b6b; }

/* totals strip */
#bmDocHost .doc-tot, .docview .doc-tot {
  border-collapse: collapse; margin-left: auto; min-width: 76mm; font-size: 10pt; margin-bottom: 5mm;
}
#bmDocHost .doc-tot td, .docview .doc-tot td { padding: 1.6mm 2.5mm; border: 1px solid #ddd; }
#bmDocHost .doc-tot td:first-child, .docview .doc-tot td:first-child { color: #555; }
#bmDocHost .doc-tot .r, .docview .doc-tot .r { text-align: right; white-space: nowrap; }
#bmDocHost .doc-tot .grand td, .docview .doc-tot .grand td {
  font-weight: 700; font-size: 11.5pt; background: #F3F0E8;
}

#bmDocHost .doc-lbl, .docview .doc-lbl {
  display: block; font-size: 7.5pt; letter-spacing: .16em; text-transform: uppercase;
  color: #8a8a8a; margin-bottom: 1.5mm;
}

#bmDocHost .doc-terms h4, .docview .doc-terms h4 {
  font-size: 11pt; margin-bottom: 2mm; padding-top: 3mm; border-top: 1px solid #ddd;
}
#bmDocHost .doc-terms h5, .docview .doc-terms h5 {
  font-size: 9.5pt; margin: 3mm 0 1mm; color: #8a7434;
}
#bmDocHost .doc-terms ul, .docview .doc-terms ul { padding-left: 5mm; }
#bmDocHost .doc-terms li, .docview .doc-terms li { margin-bottom: 1mm; }

#bmDocHost .doc-sign, .docview .doc-sign {
  display: grid; gap: .6mm; margin: 6mm 0 4mm; font-size: 9.5pt;
}
#bmDocHost .doc-sign b, .docview .doc-sign b { font-size: 10.5pt; }
#bmDocHost .doc-sign span, .docview .doc-sign span { color: #6b6b6b; }

#bmDocHost .doc-stamp, .docview .doc-stamp {
  display: inline-block; border: 2px solid #16794A; color: #16794A;
  font-weight: 700; letter-spacing: .12em; padding: 1.5mm 5mm;
  transform: rotate(-3deg); margin-bottom: 5mm; font-size: 10pt;
}

#bmDocHost .doc-pay, .docview .doc-pay { border: 1px solid #ddd; padding: 4mm; margin-bottom: 5mm; }
#bmDocHost .doc-bank, .docview .doc-bank { border-collapse: collapse; font-size: 9.5pt; }
#bmDocHost .doc-bank td, .docview .doc-bank td { color: #6b6b6b; padding: .7mm 8mm .7mm 0; }
#bmDocHost .doc-bank th, .docview .doc-bank th { text-align: left; font-weight: 600; }
#bmDocHost .doc-warn, .docview .doc-warn {
  margin-top: 3mm; font-size: 8.5pt; line-height: 1.5;
  background: #FDF3E7; border-left: 3px solid #C08A2E; padding: 2.5mm 3mm;
}
#bmDocHost .doc-terms, .docview .doc-terms { font-size: 8.5pt; color: #333; margin-bottom: 5mm; }
#bmDocHost .doc-foot, .docview .doc-foot {
  display: flex; justify-content: space-between; border-top: 1px solid #ddd;
  padding-top: 3mm; font-size: 8pt; color: #8a8a8a;
}

::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb { background: var(--ink-400); border-radius: 6px; border: 2px solid var(--ink-900); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-700); }
::selection { background: var(--acc); color: #04140F; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 3.5rem 1.5rem; color: var(--text-dim); }
.empty svg { margin: 0 auto 1rem; opacity: .3; }

/* ---------- Skeleton loading ---------- */
.skel { background: linear-gradient(90deg, rgba(255,255,255,.045) 25%, rgba(255,255,255,.09) 37%, rgba(255,255,255,.045) 63%);
  background-size: 400% 100%; animation: shimmer 1.35s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skel-row { height: 104px; border-radius: var(--radius); }

/* ---------- Article typography (journal / guides) ---------- */
.article { max-width: 68ch; }
.article p { color: var(--text-soft); font-size: 1.02rem; line-height: 1.85; margin-bottom: 1.3rem; }
.article p strong, .article li strong { color: var(--text); font-weight: 600; }
.article h3 {
  font-family: var(--font-display); font-size: 1.65rem; font-weight: 500;
  color: var(--text); margin: 2.6rem 0 1rem; letter-spacing: -.01em;
}
.article h4 {
  font-size: 1.02rem; font-weight: 700; color: var(--acc-soft);
  margin: 1.9rem 0 .7rem; letter-spacing: .005em;
}
.article ul, .article ol { margin: 0 0 1.4rem 1.3rem; display: grid; gap: .6rem; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li { color: var(--text-soft); font-size: 1rem; line-height: 1.75; padding-left: .3rem; }
.article li::marker { color: var(--acc); }
.article blockquote {
  margin: 2rem 0; padding: 1.3rem 1.6rem; border-left: 3px solid var(--acc);
  background: linear-gradient(100deg, color-mix(in srgb, var(--acc) 9%, transparent), transparent);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-display); font-size: 1.28rem; line-height: 1.55; color: var(--text);
}
.article a { color: var(--acc-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article a:hover { color: var(--gold-100); }
.article em { color: var(--text); font-style: italic; }

.byline { display: flex; align-items: center; gap: .85rem; }
.byline .av {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--acc-soft), var(--acc)); color: #04140F;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
}
.read-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--acc); z-index: 95; width: 0; transition: width .1s linear; }

/* ---------- Difficulty meter (visas) ---------- */
.diff { display: inline-flex; gap: 3px; align-items: center; }
.diff i { width: 16px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); }
.diff i.on { background: var(--acc); }
.diff.d4 i.on { background: var(--bad); }
.diff.d3 i.on { background: var(--warn); }
.diff.d1 i.on, .diff.d2 i.on { background: var(--ok); }

/* ---------- Comparison / pricing table ---------- */
.plan-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.plan { display: flex; flex-direction: column; padding: 1.8rem; position: relative; }
.plan.featured { border-color: var(--acc); box-shadow: 0 20px 50px -24px var(--acc-glow); }
.plan.featured::before {
  content: "Most chosen"; position: absolute; top: -1px; left: 50%; translate: -50% -50%;
  background: linear-gradient(135deg, var(--acc-soft), var(--acc)); color: #04140F;
  font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: .3rem .9rem; border-radius: 999px; white-space: nowrap;
}
.plan .plan-price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; line-height: 1; }
.cover-line { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; font-size: .87rem; border-bottom: 1px solid var(--line); }
.cover-line:last-child { border-bottom: 0; }
.cover-line span:first-child { color: var(--text-dim); }
.cover-line b { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Cart / basket ---------- */
.cart-row { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 30px; height: 30px; display: grid; place-items: center; color: var(--text-soft); transition: .2s; }
.qty button:hover { background: var(--glass-2); color: var(--acc-soft); }
.qty span { min-width: 30px; text-align: center; font-size: .86rem; font-variant-numeric: tabular-nums; }

/* ---------- Print ---------- */
@media print {
  .nav, .footer, .btn, .toasts { display: none !important; }
  body { background: #fff; color: #000; }
}
