/* ═══════════════════════════════════════════════════════════════════
   Flightscape Design System — "Limitless Discoveries"
   Warm editorial travel curator. Futura PT (Adobe) → Jost fallback.
   2px precision radius · 1px hairlines · tabular figures for money.
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --tangerine: #F47A33; --golden: #FAAD5E; --terracotta: #D45D1E; --espresso: #1E120B;
  --alabaster: #FAF6F0; --sand: #F3EBE0; --hairline: #E8DDD0; --slate: #5C4D42; --white: #fff;
  --sage: #1F6F50; --ochre: #B45309; --clay: #B91C1C;
  --sage-bg: #E6F0EB; --ochre-bg: #FBEEDC; --clay-bg: #F8E4E1;
  --font: 'Futura PT', 'futura-pt', 'Jost', 'Century Gothic', sans-serif;
  --r: 2px; --shell: 1280px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--alabaster); color: var(--slate); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--espresso); margin: 0 0 .5em; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: clamp(22px, 2.2vw, 30px); }
h3 { font-size: 18px; }
a { color: var(--terracotta); text-decoration: none; }
a:hover { color: var(--tangerine); }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: 24px 0; }
.num, .money, table td.num, .tnum { font-feature-settings: 'tnum' 1; font-variant-numeric: tabular-nums; }
.muted { color: #8a7a6d; }
.small { font-size: 13px; }
.xs { font-size: 11.5px; }
.strong { font-weight: 600; color: var(--espresso); }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt0{margin-top:0}.mt1{margin-top:8px}.mt2{margin-top:16px}.mt3{margin-top:24px}.mt4{margin-top:40px}.mb0{margin-bottom:0}.mb1{margin-bottom:8px}.mb2{margin-bottom:16px}.mb3{margin-bottom:24px}
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.grow { flex: 1 1 auto; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 32px; align-items: start; }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .split { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .shell { padding: 0 18px; } }

/* ── Eyebrow & editorial devices ── */
.eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--terracotta); display: inline-flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.eyebrow::before { content: '▸'; color: var(--tangerine); letter-spacing: 0; font-size: 12px; }
.eyebrow.light { color: var(--golden); }
.index-num { font-size: 64px; font-weight: 700; line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--tangerine); letter-spacing: -0.04em; font-feature-settings: 'tnum' 1; }
.rule-accent { width: 48px; height: 3px; background: var(--tangerine); border: 0; margin: 14px 0 20px; }
.lede { font-size: 17px; color: var(--slate); max-width: 62ch; }

/* ── Buttons & inputs ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: var(--r); border: 1px solid var(--espresso); background: var(--espresso); color: #fff; font: 600 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .15s var(--ease), border-color .15s var(--ease), color .15s; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.btn.primary { background: var(--tangerine); border-color: var(--tangerine); }
.btn.primary:hover { background: var(--terracotta); border-color: var(--terracotta); }
.btn.ghost { background: transparent; color: var(--espresso); border-color: var(--hairline); }
.btn.ghost:hover { border-color: var(--terracotta); color: var(--terracotta); background: transparent; }
.btn.danger { background: transparent; color: var(--clay); border-color: #e8c3bf; }
.btn.danger:hover { background: var(--clay); color: #fff; border-color: var(--clay); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 11.5px; }
.btn.block { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; background: var(--hairline); border-color: var(--hairline); color: var(--slate); }
.link-btn { background: none; border: 0; padding: 0; color: var(--terracotta); font: inherit; cursor: pointer; }
.link-btn:hover { color: var(--tangerine); text-decoration: underline; }
label.field { display: block; }
label.field > span, .field-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--espresso); margin-bottom: 6px; }
input, select, textarea { width: 100%; font: 15px/1.4 var(--font); color: var(--espresso); background: #fff; border: 1px solid var(--hairline); border-radius: var(--r); padding: 10px 12px; height: 42px; outline: none; transition: border-color .15s; appearance: none; }
textarea { height: auto; min-height: 96px; resize: vertical; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input:focus, select:focus, textarea:focus { border-color: var(--tangerine); box-shadow: 0 0 0 3px rgba(244,122,51,.12); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; padding: 0; accent-color: var(--tangerine); appearance: auto; }
.check { display: inline-flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.check input { margin-top: 2px; flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.validation-message, .err { color: var(--clay); font-size: 13px; }

/* ── Surfaces ── */
.card { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r); padding: 24px; }
.card.sand { background: var(--sand); }
.card.flush { padding: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hairline); }
.card-head h3 { margin: 0; font-size: 16px; }
.card-body { padding: 20px; }
.panel-dark { background: var(--espresso); color: #E9DFD3; border-radius: var(--r); padding: 28px; }
.panel-dark h1, .panel-dark h2, .panel-dark h3 { color: #fff; }
.callout { border-left: 3px solid var(--tangerine); background: var(--sand); padding: 14px 16px; border-radius: 0 var(--r) var(--r) 0; font-size: 14px; color: var(--espresso); }
.callout.warn { border-color: var(--ochre); background: var(--ochre-bg); }
.callout.bad { border-color: var(--clay); background: var(--clay-bg); }
.callout.ok { border-color: var(--sage); background: var(--sage-bg); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv b, .kv .v { color: var(--espresso); font-weight: 600; font-feature-settings: 'tnum' 1; text-align: right; }
.kv.total { border-top: 2px solid var(--espresso); border-bottom: 0; padding-top: 12px; font-size: 16px; }
.kv.discount .v { color: var(--sage); }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: var(--r); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: var(--sand); color: var(--espresso); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.ok { background: var(--sage-bg); color: var(--sage); }
.badge.warn { background: var(--ochre-bg); color: var(--ochre); }
.badge.bad { background: var(--clay-bg); color: var(--clay); }
.badge.brand { background: #FDE9DC; color: var(--terracotta); }
.badge.dark { background: var(--espresso); color: var(--golden); }
.badge.plain::before { display: none; }
.tier-badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--hairline); border-radius: var(--r); background: #fff; font-size: 12px; font-weight: 600; color: var(--espresso); }
.tier-badge i { width: 20px; height: 20px; border-radius: var(--r); display: inline-block; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { background: var(--sand); color: var(--espresso); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.tbl tr:hover td { background: #FDFBF8; }
.tbl td.num, .tbl th.num { text-align: right; font-feature-settings: 'tnum' 1; }
.tbl .sub { display: block; font-size: 12px; color: #8a7a6d; }
.tbl tr.overdue td { background: #FFF7F6; }
.tbl tr.overdue .bal { color: var(--clay); font-weight: 600; }
.empty { padding: 48px 24px; text-align: center; color: #8a7a6d; }
.empty h3 { color: var(--espresso); }

/* ── Tabs & chips ── */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--hairline); overflow-x: auto; margin-bottom: 20px; }
.tabs button, .tabs a { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 16px; font: 600 12px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); cursor: pointer; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs .on { color: var(--espresso); border-bottom-color: var(--tangerine); }
.tabs .count { background: var(--sand); color: var(--espresso); border-radius: var(--r); padding: 1px 7px; font-size: 11px; letter-spacing: 0; }
.tabs .on .count { background: var(--tangerine); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 32px; padding: 0 14px; border: 1px solid var(--hairline); background: var(--sand); color: var(--espresso); border-radius: var(--r); font: 500 13px var(--font); cursor: pointer; }
.chip.on { background: var(--espresso); color: #fff; border-color: var(--espresso); }

/* ═════════ Customer portal ═════════ */
.topnav { background: rgba(250,246,240,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 40; }
.topnav .shell { display: flex; align-items: center; gap: 28px; height: 76px; }
.topnav .logo img { height: 34px; width: auto; min-width: 120px; object-fit: contain; }
.topnav nav { display: flex; gap: 26px; flex: 1; }
.topnav nav a { color: var(--espresso); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 6px 0; border-bottom: 2px solid transparent; }
.topnav nav a.active, .topnav nav a:hover { border-bottom-color: var(--tangerine); color: var(--espresso); }
.topnav .me { display: flex; align-items: center; gap: 14px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--espresso); color: var(--golden); display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.token-pill { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--espresso); border: 1px solid var(--hairline); padding: 5px 10px; border-radius: var(--r); background: #fff; font-feature-settings: 'tnum' 1; }
.token-pill b { color: var(--tangerine); }
.menu-toggle { display: none; background: none; border: 1px solid var(--hairline); height: 38px; width: 42px; border-radius: var(--r); cursor: pointer; }
@media (max-width: 900px) {
  .topnav nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--alabaster); flex-direction: column; gap: 0; border-bottom: 1px solid var(--hairline); padding: 8px 18px 16px; }
  .topnav nav.open { display: flex; }
  .topnav nav a { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
  .menu-toggle { display: inline-grid; place-items: center; }
  .topnav .shell { justify-content: space-between; }
  .topnav .token-pill, .topnav .tier-badge { display: none; }
}
.notice-strip { background: var(--espresso); color: #E9DFD3; font-size: 12.5px; letter-spacing: .04em; text-align: center; padding: 8px 16px; }
.notice-strip b { color: var(--golden); font-weight: 600; }

/* Hero — asymmetric magazine split */
.hero { padding: 48px 0 36px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1.2fr; gap: 0; min-height: 520px; border: 1px solid var(--hairline); background: #fff; }
.hero-copy { padding: 56px 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.hero-copy::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; background: url('../brand/icon.png') center/contain no-repeat; opacity: .06; pointer-events: none; }
.hero-copy h1 { font-size: clamp(34px, 4vw, 54px); }
.hero-copy h1 em { font-style: normal; color: var(--tangerine); }
.hero-photo { position: relative; background: var(--sand); overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .caption { position: absolute; left: 0; bottom: 0; background: var(--espresso); color: #fff; padding: 16px 20px; max-width: 70%; }
.hero-photo .caption .eyebrow { margin-bottom: 4px; }
.hero-stats { display: flex; gap: 32px; margin-top: 32px; border-top: 1px solid var(--hairline); padding-top: 20px; }
.hero-stats div b { display: block; font-size: 26px; color: var(--espresso); font-feature-settings: 'tnum' 1; }
.hero-stats div span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { height: 320px; order: -1; } .hero-copy { padding: 32px 24px; } }

.searchbar { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; border: 1px solid var(--hairline); background: #fff; margin-top: -1px; }
.searchbar label { padding: 12px 16px; border-right: 1px solid var(--hairline); display: block; }
.searchbar label span { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--terracotta); display: block; }
.searchbar input, .searchbar select { border: 0; padding: 4px 0 0; height: 30px; box-shadow: none !important; background-color: transparent; }
.searchbar .btn { height: auto; border-radius: 0; padding: 0 32px; }
@media (max-width: 900px) { .searchbar { grid-template-columns: 1fr 1fr; } .searchbar .btn { grid-column: 1 / -1; height: 48px; } }

.section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--hairline); padding-bottom: 16px; }
.section-head h2 { margin: 0; }

/* Package cards */
.pkg-card { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; transition: border-color .2s var(--ease), transform .2s var(--ease); color: inherit; }
.pkg-card:hover { border-color: var(--tangerine); transform: translateY(-2px); color: inherit; }
.pkg-card .photo { position: relative; aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.pkg-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pkg-card:hover .photo img { transform: scale(1.04); }
.pkg-card .photo .tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.pkg-card .photo .promo { position: absolute; right: 0; bottom: 0; background: var(--tangerine); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; }
.pkg-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pkg-card .meta { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta); }
.pkg-card h3 { font-size: 19px; margin: 0; }
.pkg-card p { font-size: 14px; margin: 0; flex: 1; }
.pkg-card .foot { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--hairline); padding-top: 14px; margin-top: 6px; }
.price-from { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.price-from b { display: block; font-size: 22px; color: var(--tangerine); letter-spacing: -0.01em; text-transform: none; font-feature-settings: 'tnum' 1; }
.stars { color: var(--golden); letter-spacing: 1px; font-size: 14px; }
.stars .off { color: var(--hairline); }

/* Package detail */
.pkg-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 4px; height: 460px; margin-top: 24px; }
.pkg-hero img { width: 100%; height: 100%; object-fit: cover; }
.pkg-hero .side { display: grid; grid-template-rows: 1fr 1fr; gap: 4px; min-height: 0; }
@media (max-width: 900px) { .pkg-hero { grid-template-columns: 1fr; height: 300px; } .pkg-hero .side { display: none; } }
.itinerary { counter-reset: day; }
.itinerary li { list-style: none; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.itinerary li .d { font-size: 30px; font-weight: 700; color: var(--tangerine); line-height: 1; font-feature-settings: 'tnum' 1; }
.itinerary li .d small { display: block; font-size: 10px; letter-spacing: .18em; color: var(--slate); font-weight: 600; margin-top: 4px; }
.itinerary ol { padding: 0; margin: 0; }
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px dashed var(--hairline); font-size: 14px; }
ul.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--sage); font-weight: 700; }
ul.ticks.x li::before { content: '–'; color: var(--clay); }
.sticky { position: sticky; top: 96px; }

/* Lifecycle progress */
.lifecycle { display: grid; grid-template-columns: repeat(7, 1fr); margin: 8px 0 4px; }
.lifecycle .st { position: relative; padding-top: 22px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #a8998c; text-align: center; }
.lifecycle .st::before { content: ''; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--hairline); }
.lifecycle .st::after { content: ''; position: absolute; top: 2px; left: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--hairline); }
.lifecycle .st.done { color: var(--espresso); }
.lifecycle .st.done::before { background: var(--tangerine); }
.lifecycle .st.done::after { background: var(--tangerine); border-color: var(--tangerine); }
.lifecycle .st.now::after { background: #fff; border-color: var(--tangerine); box-shadow: 0 0 0 4px rgba(244,122,51,.18); }
.lifecycle .st.now { color: var(--terracotta); }
@media (max-width: 640px) { .lifecycle .st { font-size: 0; } }

/* Booking list items */
.trip-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--r); padding: 14px; align-items: center; color: inherit; }
.trip-row:hover { border-color: var(--tangerine); color: inherit; }
.trip-row img { width: 120px; height: 84px; object-fit: cover; }
@media (max-width: 640px) { .trip-row { grid-template-columns: 1fr; } .trip-row img { width: 100%; height: 140px; } }

/* Membership */
.member-card { background: var(--espresso); color: #E9DFD3; padding: 28px; border-radius: var(--r); position: relative; overflow: hidden; min-height: 210px; }
.member-card::after { content: ''; position: absolute; right: -30px; top: -30px; width: 200px; height: 200px; background: url('../brand/icon.png') center/contain no-repeat; opacity: .08; filter: brightness(3); }
.member-card .tier { font-size: 28px; font-weight: 700; color: #fff; }
.progress { height: 6px; background: rgba(255,255,255,.12); border-radius: var(--r); overflow: hidden; }
.progress.light { background: var(--sand); }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--tangerine), var(--golden)); }
.big-num { font-size: 40px; font-weight: 700; color: var(--espresso); line-height: 1; font-feature-settings: 'tnum' 1; letter-spacing: -0.02em; }
.delta-pos { color: var(--sage); font-weight: 600; } .delta-neg { color: var(--clay); font-weight: 600; }

/* Insights journal */
.journal-lead { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; border: 1px solid var(--hairline); background: #fff; }
.journal-lead .photo { min-height: 420px; } .journal-lead .photo img { width: 100%; height: 100%; object-fit: cover; }
.journal-lead .copy { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.journal-index a { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--hairline); color: inherit; }
.journal-index a:hover h3 { color: var(--terracotta); }
@media (max-width: 900px) { .journal-lead { grid-template-columns: 1fr; } .journal-lead .photo { min-height: 260px; } }
.article { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.75; }
.article h2 { color: var(--terracotta); font-size: 24px; margin-top: 1.6em; }
.article blockquote { margin: 32px 0; padding: 0 0 0 24px; border-left: 3px solid var(--tangerine); font-size: 22px; line-height: 1.4; color: var(--espresso); font-weight: 500; }
.article ul { padding-left: 20px; } .article li { margin-bottom: 6px; }
.article-cover { height: 460px; margin: 24px 0 40px; } .article-cover img { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
.footer { background: var(--espresso); color: #CDBFB2; margin-top: 64px; padding: 56px 0 28px; font-size: 14px; }
.footer h4 { color: #fff; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.footer a { color: #E9DFD3; } .footer a:hover { color: var(--golden); }
.footer .stack { display: flex; flex-direction: column; align-items: flex-start; }
.footer .stack > * + * { margin-top: 0px; }
.social { display: inline-flex; gap: 10px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid currentColor; border-radius: 50%; }
.social svg { width: 18px; height: 18px; }
.footer .stack > .social { margin-top: 12px; }
.footer .logo img { height: 34px; filter: brightness(0) invert(1); }
.footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: 12px; }

/* Auth pages */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 76px); }
.auth-wrap .photo { background: var(--sand) center/cover no-repeat; position: relative; }
.auth-wrap .photo .quote { position: absolute; left: 32px; bottom: 32px; right: 32px; background: var(--espresso); color: #fff; padding: 24px; max-width: 420px; }
.auth-wrap .form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-wrap .form > div { width: 100%; max-width: 420px; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-wrap .photo { display: none; } }

/* ═════════ Admin portal ═════════ */
.admin { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.rail { background: var(--espresso); color: #CDBFB2; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.rail .brand { padding: 22px 22px 18px; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.07); }
.rail .brand img { height: 30px; width: 30px; object-fit: contain; }
.rail .brand b { color: #fff; letter-spacing: .2em; font-size: 13px; display: block; }
.rail .brand span { color: var(--golden); font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; }
.rail .group { padding: 18px 12px 4px; }
.rail .group > span { font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: #8C7A6B; padding: 0 10px; display: block; margin-bottom: 6px; }
.rail a { display: flex; align-items: center; gap: 10px; color: #E2D6CA; padding: 9px 10px; border-radius: var(--r); font-size: 14px; border-left: 2px solid transparent; }
.rail a:hover { background: rgba(255,255,255,.05); color: #fff; }
.rail a.active { background: rgba(244,122,51,.12); color: #fff; border-left-color: var(--tangerine); }
.rail a .n { margin-left: auto; background: var(--tangerine); color: #fff; font-size: 11px; font-weight: 600; border-radius: var(--r); padding: 1px 7px; font-feature-settings: 'tnum' 1; }
.rail a .ic { width: 18px; text-align: center; opacity: .8; font-size: 13px; }
.rail .who { margin-top: auto; padding: 16px 22px; border-top: 1px solid rgba(255,255,255,.07); font-size: 13px; }
.rail .who b { color: #fff; display: block; }
.admin-main { min-width: 0; }
.admin-top { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--hairline); background: rgba(250,246,240,.9); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(6px); }
.admin-content { padding: 28px 32px 64px; max-width: 1480px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; margin: 0; }
.kpi { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r); padding: 18px 20px; position: relative; }
.kpi .label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--slate); }
.kpi .value { font-size: 28px; font-weight: 700; color: var(--espresso); font-feature-settings: 'tnum' 1; letter-spacing: -0.02em; margin-top: 6px; line-height: 1.1; }
.kpi .hint { font-size: 12.5px; color: #8a7a6d; margin-top: 4px; }
.kpi.accent { border-top: 3px solid var(--tangerine); }
.kpi.dark { background: var(--espresso); border-color: var(--espresso); } .kpi.dark .value { color: #fff; } .kpi.dark .label { color: var(--golden); } .kpi.dark .hint { color: #CDBFB2; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; font-size: 11px; }
.bars .pair { display: flex; gap: 3px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.bars .pair i { width: 40%; max-width: 18px; display: block; border-radius: 1px 1px 0 0; }
.bars i.s { background: var(--espresso); } .bars i.c { background: var(--tangerine); }
.legend { display: flex; gap: 16px; font-size: 12px; } .legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters label { min-width: 150px; }
.filters .grow { min-width: 240px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 18px 22px; border-left: 1px solid var(--hairline); margin-left: 6px; font-size: 13.5px; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--tangerine); }
.timeline li .when { font-size: 11.5px; color: #8a7a6d; }
@media (max-width: 1024px) {
  .admin { grid-template-columns: 1fr; }
  .rail { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 60; transform: translateX(-100%); transition: transform .25s var(--ease); }
  .rail.open { transform: none; }
  .admin-content { padding: 20px 18px 56px; } .admin-top { padding: 0 18px; }
}
.only-mobile { display: none; } @media (max-width: 1024px) { .only-mobile { display: inline-flex; } }

/* Modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(30,18,11,.55); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { background: #fff; border-radius: var(--r); width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow: auto; border-top: 3px solid var(--tangerine); }
.modal.wide { max-width: 860px; }
.modal-head { padding: 20px 24px 0; display: flex; justify-content: space-between; align-items: start; }
.modal-head h3 { margin: 0; }
.modal-body { padding: 16px 24px; }
.modal-foot { padding: 16px 24px 22px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--hairline); }
.x { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--slate); line-height: 1; }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
.toast { background: var(--espresso); color: #fff; padding: 14px 18px; border-radius: var(--r); min-width: 280px; max-width: 420px; font-size: 14px; border-left: 3px solid var(--tangerine); animation: slide .2s var(--ease); }
.toast.bad { border-left-color: #F28B82; } .toast.ok { border-left-color: #7FD1A8; }
@keyframes fade { from { opacity: 0 } } @keyframes slide { from { transform: translateY(8px); opacity: 0 } }
.spinner { width: 22px; height: 22px; border: 2px solid var(--hairline); border-top-color: var(--tangerine); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
.loading { padding: 64px; display: grid; place-items: center; }
@keyframes spin { to { transform: rotate(360deg) } }
.watermark { position: relative; } .watermark::after { content: ''; position: absolute; inset: 0; background: url('../brand/icon.png') right 24px bottom 24px / 140px no-repeat; opacity: .06; pointer-events: none; }
.passenger-card { border: 1px solid var(--hairline); border-radius: var(--r); padding: 16px; background: #fff; position: relative; }
.passenger-card .idx { position: absolute; top: 12px; right: 14px; font-size: 26px; font-weight: 700; color: var(--sand); font-feature-settings: 'tnum' 1; }
.upload { border: 1px dashed #d8c8b6; background: #FDFBF8; padding: 14px; border-radius: var(--r); font-size: 13px; }
.photo-fallback { background: linear-gradient(135deg, var(--sand), #EAD9C4); }
@media print {
  .topnav, .rail, .admin-top, .footer, .no-print, .notice-strip { display: none !important; }
  .admin { display: block; } body { background: #fff; }
}
.sub { display: block; font-size: 12px; color: #8a7a6d; font-weight: 400; }
h1:focus, h1:focus-visible { outline: none; }
.tbl td img { width: 72px; height: 52px; object-fit: cover; }
