/* ==========================================================================
   ToukTouk — design system
   ========================================================================== */
:root {
  --ink: #0B1F1A;
  --ink-2: #33433F;
  --muted: #677773;
  --line: #E4E8E5;
  --line-2: #EEF1EF;
  --bg: #F5F6F2;
  --surface: #FFFFFF;
  --brand: #0E7C66;
  --brand-600: #0B6553;
  --brand-50: #E7F4F0;
  --accent: #FF6B2C;
  --accent-600: #E4561A;
  --accent-50: #FFF1EA;
  --sun: #FFC23D;
  --danger: #D92D20;
  --danger-50: #FEF0EE;
  --warn: #B54708;
  --warn-50: #FFF6E5;
  --ok: #067647;
  --ok-50: #E9F8EF;
  --bus: #0E7C66;
  --train: #C2410C;
  --bateau: #0369A1;
  --avion: #6D28D9;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 26, .06), 0 1px 3px rgba(11, 31, 26, .05);
  --shadow: 0 10px 30px -12px rgba(11, 31, 26, .18), 0 2px 6px rgba(11, 31, 26, .05);
  --shadow-lg: 0 30px 60px -20px rgba(11, 31, 26, .35);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Sora', var(--font);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
svg.lucide { width: 1.1em; height: 1.1em; stroke-width: 2; flex-shrink: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
::selection { background: var(--sun); color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.tiny { font-size: .76rem; }
.bold { font-weight: 700; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .04em; }

/* boot */
.boot { min-height: 100vh; display: grid; place-items: center; background: var(--ink); }
.boot-logo { font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: #fff; animation: pulse 1.2s ease-in-out infinite; }
.boot-logo span { color: var(--sun); }
@keyframes pulse { 50% { opacity: .5; } }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: .95rem; background: var(--surface); color: var(--ink); transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: var(--accent-600); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: #cfd6d2; }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .24); }
.btn-danger { background: var(--danger-50); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); transition: .2s; }
.icon-btn:hover { background: var(--brand-50); border-color: var(--brand); color: var(--brand); }
.link { color: var(--brand); font-weight: 700; }
.link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 11px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
textarea.input { min-height: 90px; resize: vertical; }
.input-icon { position: relative; }
.input-icon > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > .input { padding-left: 42px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.segmented { display: inline-flex; background: var(--line-2); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.segmented button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .86rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------------- cards & badges */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card-title { font-family: var(--display); font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 14px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-50); color: var(--ok); }
.badge.warn { background: var(--warn-50); color: var(--warn); }
.badge.danger { background: var(--danger-50); color: var(--danger); }
.badge.brand { background: var(--brand-50); color: var(--brand); }
.badge.accent { background: var(--accent-50); color: var(--accent-600); }
.badge.dark { background: var(--ink); color: #fff; }
.mode-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .78rem; padding: 4px 10px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 11%, white); }
.mode-bus { --c: var(--bus); } .mode-train { --c: var(--train); } .mode-bateau { --c: var(--bateau); } .mode-avion { --c: var(--avion); }
.avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-family: var(--display); font-size: .9rem; flex-shrink: 0; background: var(--c, var(--brand)); }
.avatar.round { border-radius: 50%; }
.avatar.sm { width: 32px; height: 32px; font-size: .75rem; border-radius: 9px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty svg.lucide { width: 44px; height: 44px; color: #b8c3bf; margin: 0 auto 12px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }
.dashed { border-top: 2px dashed var(--line); margin: 16px 0; }

/* ---------------------------------------------------------------- navbar */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, color .3s; color: #fff; }
.nav.solid, .nav.light { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; letter-spacing: -.03em; }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--brand); display: grid; place-items: center; color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.logo-mark svg.lucide { width: 20px; height: 20px; }
.logo em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .93rem; opacity: .9; }
.nav-links a:hover, .nav-links a.active { background: color-mix(in srgb, currentColor 10%, transparent); opacity: 1; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav .btn-ghost { border-color: color-mix(in srgb, currentColor 25%, transparent); color: inherit; }
.nav-burger { display: none; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 20%, transparent); font-weight: 700; font-size: .9rem; }
.user-chip .avatar { width: 32px; height: 32px; font-size: .75rem; }
.mobile-menu { position: fixed; inset: 72px 0 auto; background: var(--surface); color: var(--ink); padding: 16px 20px 24px; box-shadow: var(--shadow-lg); display: none; flex-direction: column; gap: 4px; z-index: 49; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px; border-radius: 12px; font-weight: 700; }
.mobile-menu a:hover { background: var(--line-2); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 700px; height: 92vh; max-height: 900px; color: #fff; overflow: hidden; display: flex; align-items: center; background: var(--ink); }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.04); }
.hero-media .on { opacity: 1; animation: kenburns 12s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1.12); } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6, 20, 16, .88) 0%, rgba(6, 20, 16, .55) 45%, rgba(6, 20, 16, .15) 100%), linear-gradient(0deg, rgba(6, 20, 16, .7), transparent 40%); }
.hero-content { position: relative; z-index: 2; padding-top: 60px; width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(8px); font-weight: 600; font-size: .85rem; }
.eyebrow b { background: var(--sun); color: var(--ink); border-radius: 999px; padding: 2px 10px; font-size: .75rem; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 800; max-width: 780px; margin: 20px 0 16px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--sun), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 560px; opacity: .88; }
.hero-modes { display: flex; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.hero-mode { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-weight: 700; font-size: .85rem; transition: .3s; cursor: pointer; }
.hero-mode.on { background: #fff; color: var(--ink); }
.hero-mode .bar { width: 26px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hero-mode.on .bar { background: var(--line); }
.hero-mode.on .bar i { display: block; height: 100%; background: var(--accent); animation: fill var(--dur, 7s) linear forwards; }
@keyframes fill { from { width: 0; } to { width: 100%; } }

/* ---------------------------------------------------------------- search box */
.search-wrap { position: relative; z-index: 5; margin-top: -110px; }
.search-card { background: var(--surface); border-radius: 26px; box-shadow: var(--shadow-lg); padding: 14px 14px 18px; color: var(--ink); }
.search-tabs { display: flex; gap: 4px; padding: 4px 6px 12px; overflow-x: auto; scrollbar-width: none; }
.search-tabs button { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font-weight: 700; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; transition: .2s; }
.search-tabs button:hover { color: var(--ink); background: var(--line-2); }
.search-tabs button.active { background: var(--ink); color: #fff; }
.search-grid { display: grid; grid-template-columns: 1.3fr auto 1.3fr 1fr .8fr auto; align-items: stretch; gap: 8px; padding: 0 4px; }
.sf { border: 1.5px solid var(--line); border-radius: 16px; padding: 10px 16px; display: flex; flex-direction: column; justify-content: center; min-width: 0; position: relative; transition: border-color .2s; background: var(--surface); }
.sf:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.sf label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sf input, .sf select { border: 0; outline: 0; padding: 2px 0 0; font-weight: 700; font-size: 1.02rem; background: transparent; width: 100%; min-width: 0; }
.swap { align-self: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; transition: transform .3s, border-color .2s; }
.swap:hover { transform: rotate(180deg); border-color: var(--brand); color: var(--brand); }
.search-grid .btn-primary { border-radius: 16px; padding: 0 28px; font-size: 1.02rem; min-height: 58px; }

/* combobox */
.combo-list { position: absolute; left: -2px; right: -2px; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); max-height: 340px; overflow: auto; z-index: 30; padding: 6px; min-width: 260px; }
.combo-group { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 10px 4px; }
.combo-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.combo-item:hover, .combo-item.hl { background: var(--brand-50); }
.combo-item .flag { width: 30px; height: 30px; border-radius: 9px; background: var(--line-2); display: grid; place-items: center; font-size: .66rem; font-weight: 800; color: var(--muted); }
.combo-item b { display: block; font-size: .95rem; }
.combo-item small { color: var(--muted); }

/* ---------------------------------------------------------------- sections */
.section { padding: 90px 0; }
.section-sm { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.kicker { color: var(--accent); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.kicker::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
.section-head p { color: var(--muted); max-width: 520px; margin-top: 10px; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.stat { text-align: center; padding: 10px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--ink); }
.stat span { color: var(--muted); font-weight: 600; font-size: .9rem; }

/* promo carousel */
.carousel { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--ink); aspect-ratio: 21 / 8; min-height: 340px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; display: flex; align-items: center; color: #fff; pointer-events: none; }
.slide.on { opacity: 1; pointer-events: auto; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease; }
.slide.on img { transform: scale(1); }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 20, 17, .85), rgba(8, 20, 17, .35) 60%, transparent); }
.slide-body { position: relative; z-index: 2; padding: 0 56px; max-width: 640px; }
.slide-body h3 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 800; margin: 12px 0; }
.slide-body p { opacity: .9; font-size: 1.05rem; margin-bottom: 22px; }
.code-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--sun); color: var(--ink); font-weight: 800; border-radius: 999px; padding: 6px 14px; font-size: .82rem; }
.car-nav { position: absolute; bottom: 22px; right: 22px; z-index: 3; display: flex; gap: 8px; }
.car-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); }
.car-nav button:hover { background: rgba(255, 255, 255, .28); }
.dots { position: absolute; bottom: 36px; left: 56px; z-index: 3; display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .4); padding: 0; transition: width .3s, background .3s; }
.dots button.on { width: 34px; background: #fff; }

/* modes */
.modes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mode-card { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 3 / 4; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; cursor: pointer; isolation: isolate; box-shadow: var(--shadow); transition: transform .35s; }
.mode-card:hover { transform: translateY(-6px); }
.mode-card img, .mode-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: opacity .5s, transform .6s; }
.mode-card video { opacity: 0; }
.mode-card:hover video { opacity: 1; }
.mode-card:hover img { transform: scale(1.05); }
.mode-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 15, 12, .9) 0%, rgba(5, 15, 12, .2) 60%, transparent); }
.mode-card .mc-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--c); margin-bottom: auto; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .4); }
.mode-card .mc-icon svg.lucide { width: 24px; height: 24px; }
.mode-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.mode-card p { font-size: .9rem; opacity: .85; }
.mode-card .mc-go { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; }
.mode-card .play { position: absolute; top: 22px; right: 22px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); display: grid; place-items: center; }

/* destinations rail */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 20px; scrollbar-width: none; scroll-behavior: smooth; }
.rail::-webkit-scrollbar { display: none; }
.dest { scroll-snap-align: start; background: var(--surface); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; cursor: pointer; display: flex; flex-direction: column; }
.dest:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dest-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.dest-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.dest:hover .dest-img img { transform: scale(1.07); }
.dest-img .mode-tag { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .95); }
.dest-img .country { position: absolute; bottom: 12px; left: 12px; color: #fff; font-weight: 700; font-size: .8rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); display: flex; align-items: center; gap: 4px; }
.dest-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dest-body h4 { font-size: 1.12rem; display: flex; align-items: center; gap: 8px; }
.dest-body .price { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; justify-content: space-between; }
.dest-body .price b { font-family: var(--display); font-size: 1.2rem; color: var(--brand); }
.rail-btns { display: flex; gap: 8px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; position: relative; }
.step .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 18px; }
.step .ic svg.lucide { width: 24px; height: 24px; }
.step::before { counter-increment: step; content: '0' counter(step); position: absolute; top: 22px; right: 24px; font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--line); }
.step h4 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .93rem; }

/* dark band */
.band { background: var(--ink); color: #fff; border-radius: 32px; overflow: hidden; position: relative; }
.band .muted { color: rgba(255, 255, 255, .65); }
.pay-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 56px; }
.pay-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-chip { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 18px; display: flex; gap: 12px; align-items: center; font-weight: 700; }
.pay-chip .dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: .72rem; }

/* marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partner { display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; white-space: nowrap; font-weight: 700; }

/* testimonials */
.testi-wrap { position: relative; }
.testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.quote .stars { color: var(--sun); display: flex; gap: 2px; }
.quote .stars svg.lucide { fill: currentColor; }
.quote p { font-size: 1rem; color: var(--ink-2); }

/* cta split */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; border-radius: 32px; overflow: hidden; background: linear-gradient(135deg, var(--brand), #0A5B4B); color: #fff; }
.cta-split .body { padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.cta-split img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: center; }
.checklist svg.lucide { color: var(--sun); }

/* footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 70px 0 30px; margin-top: 90px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer h5 { color: #fff; font-size: .95rem; margin: 0 0 16px; font-family: var(--display); }
.footer a { display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* ---------------------------------------------------------------- page header (inner pages) */
.page-top { padding-top: 72px; }
.page-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-hero .container { position: relative; padding-top: 40px; padding-bottom: 40px; }
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

/* ---------------------------------------------------------------- search results */
.results-layout { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; margin-top: 24px; }
.filters { position: sticky; top: 92px; }
.filters h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 10px; font-family: var(--font); font-weight: 800; }
.filters h4:first-child { margin-top: 0; }
.chip-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: .83rem; margin: 0 6px 6px 0; }
.chip-toggle.on { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.date-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.date-cell { border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 6px; text-align: center; transition: .2s; }
.date-cell:hover { border-color: var(--brand); }
.date-cell.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.date-cell small { display: block; font-size: .72rem; opacity: .7; text-transform: capitalize; }
.date-cell b { display: block; font-size: .95rem; }
.date-cell span { display: block; font-size: .74rem; font-weight: 700; color: var(--brand); margin-top: 2px; }
.date-cell.on span { color: var(--sun); }
.date-cell.none span { color: var(--muted); }
.trip-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; gap: 18px; transition: box-shadow .25s, border-color .25s, transform .25s; animation: rise .4s ease both; }
.trip-card:hover { box-shadow: var(--shadow); border-color: #d5ddd9; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.trip-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.timeline { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.timeline .t b { font-family: var(--display); font-size: 1.45rem; font-weight: 800; display: block; line-height: 1; }
.timeline .t span { font-size: .85rem; color: var(--muted); display: block; margin-top: 6px; }
.timeline .t.end { text-align: right; }
.track { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); margin: 0 4px; }
.track::before, .track::after { content: ''; position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--brand); background: var(--surface); }
.track::before { left: -4px; } .track::after { right: -4px; background: var(--brand); }
.track .dur { position: absolute; left: 50%; top: -14px; transform: translate(-50%, -50%); background: var(--surface); padding: 2px 10px; font-size: .75rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.track .veh { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--surface); padding: 0 6px; color: var(--c, var(--brand)); }
.amen { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; color: var(--muted); font-size: .8rem; font-weight: 600; }
.amen span { display: inline-flex; gap: 5px; align-items: center; }
.trip-price { border-left: 2px dashed var(--line); padding-left: 22px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px; min-width: 170px; }
.trip-price .p { font-family: var(--display); font-weight: 800; font-size: 1.6rem; }
.trip-price .p small { font-size: .8rem; font-weight: 700; color: var(--muted); }
.seats-left { font-size: .8rem; font-weight: 700; color: var(--ok); display: flex; align-items: center; gap: 4px; }
.seats-left.low { color: var(--danger); }
.skeleton { background: linear-gradient(90deg, var(--line-2), #f8f9f7, var(--line-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 20px; height: 150px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- booking */
.stepper { display: flex; gap: 8px; align-items: center; margin: 24px 0; flex-wrap: wrap; }
.stepper .s { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); font-size: .92rem; }
.stepper .s i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); font-style: normal; font-size: .85rem; }
.stepper .s.on { color: var(--ink); } .stepper .s.on i { background: var(--ink); color: #fff; }
.stepper .s.done i { background: var(--brand); color: #fff; }
.stepper .sep { width: 40px; height: 2px; background: var(--line); }
.book-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.summary { position: sticky; top: 92px; }
.summary .hero-img { height: 130px; border-radius: 14px; overflow: hidden; margin: -6px -6px 16px; position: relative; }
.summary .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.line-item { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .93rem; }
.line-item.total { font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }

.seatmap-wrap { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.vehicle { background: var(--line-2); border: 2px solid var(--line); border-radius: 40px 40px 22px 22px; padding: 18px 18px 22px; display: inline-block; position: relative; }
.vehicle.avion { border-radius: 120px 120px 24px 24px; padding-top: 70px; }
.vehicle.bateau { border-radius: 160px 160px 24px 24px; padding-top: 80px; }
.vehicle-front { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 14px; margin-bottom: 12px; border-bottom: 2px dashed var(--line); color: var(--muted); font-size: .75rem; font-weight: 700; }
.seat-grid { display: grid; gap: 7px; }
.seat { width: 38px; height: 38px; border-radius: 10px 10px 7px 7px; border: 1.5px solid #cdd6d2; background: var(--surface); font-size: .66rem; font-weight: 800; color: var(--ink-2); display: grid; place-items: center; transition: transform .12s, background .15s; position: relative; }
.seat::after { content: ''; position: absolute; bottom: 3px; left: 6px; right: 6px; height: 3px; border-radius: 3px; background: #dfe5e2; }
.seat:hover:not(:disabled) { transform: scale(1.08); border-color: var(--brand); }
.seat.sel { background: var(--brand); border-color: var(--brand); color: #fff; }
.seat.sel::after { background: rgba(255, 255, 255, .4); }
.seat:disabled { background: #E9ECEA; border-color: #E9ECEA; color: #b2bcb8; cursor: not-allowed; }
.seat:disabled::after { background: transparent; }
.seat.aisle { visibility: hidden; width: 14px; }
.row-num { font-size: .66rem; color: var(--muted); font-weight: 700; display: grid; place-items: center; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #cdd6d2; display: inline-block; background: var(--surface); }
.legend i.sel { background: var(--brand); border-color: var(--brand); }
.legend i.tak { background: #E9ECEA; border-color: #E9ECEA; }
.pax-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; grid-template-columns: auto 1fr 170px; gap: 14px; align-items: end; }
.seat-badge { width: 46px; height: 46px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--display); align-self: center; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pay-method { border: 2px solid var(--line); border-radius: 16px; padding: 16px; text-align: left; background: var(--surface); display: flex; flex-direction: column; gap: 10px; transition: .2s; }
.pay-method:hover { border-color: #c8d1cd; }
.pay-method.on { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 4px var(--brand-50); }
.pay-logo { width: 46px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .7rem; letter-spacing: .02em; }
.pay-logo.mtn { background: #FFCB05; color: #002B49; }
.pay-logo.orange { background: #FF7900; color: #fff; }
.pay-logo.card { background: #1A1F71; color: #fff; }
.pay-logo.cash { background: var(--ok-50); color: var(--ok); }

/* ---------------------------------------------------------------- ticket */
.success-hero { text-align: center; padding: 40px 20px 10px; }
.success-hero .ok-ring { width: 84px; height: 84px; border-radius: 50%; background: var(--ok-50); color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; animation: pop .5s cubic-bezier(.2, 1.6, .5, 1) both; }
.success-hero .ok-ring svg.lucide { width: 40px; height: 40px; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.ticket { display: grid; grid-template-columns: 1fr 230px; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; position: relative; margin-bottom: 22px; border: 1px solid var(--line); break-inside: avoid; }
.ticket-main { padding: 26px 28px; }
.ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 28px; background: var(--c, var(--brand)); color: #fff; grid-column: 1 / -1; }
.ticket-head .logo { font-size: 1.15rem; }
.ticket-head .logo-mark { background: rgba(255, 255, 255, .2); width: 30px; height: 30px; }
.ticket-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin: 6px 0 20px; }
.ticket-route .city b { font-family: var(--display); font-size: 1.7rem; font-weight: 800; display: block; line-height: 1.1; }
.ticket-route .city span { color: var(--muted); font-size: .82rem; }
.ticket-route .city.end { text-align: right; }
.ticket-route .mid { color: var(--c, var(--brand)); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; }
.ticket-route .mid svg.lucide { width: 28px; height: 28px; }
.ticket-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ticket-meta div small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ticket-meta div b { font-size: 1rem; }
.ticket-stub { border-left: 2px dashed var(--line); padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; position: relative; background: #FBFCFB; }
.ticket-stub::before, .ticket-stub::after { content: ''; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.ticket-stub::before { top: -12px; } .ticket-stub::after { bottom: -12px; }
.qr { background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--line); }
.qr img, .qr canvas { width: 150px !important; height: 150px !important; }
.ticket.used { opacity: .7; }
.ticket .stamp { position: absolute; right: 250px; top: 70px; transform: rotate(-12deg); border: 3px solid var(--c2, var(--danger)); color: var(--c2, var(--danger)); font-weight: 800; font-family: var(--display); padding: 4px 14px; border-radius: 10px; font-size: 1.3rem; letter-spacing: .08em; opacity: .85; }

/* ---------------------------------------------------------------- auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; overflow: hidden; background: var(--ink); }
.auth-side video, .auth-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.auth-side > * { position: relative; }
.auth-side h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 460px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--surface); }
.auth-box { width: 100%; max-width: 440px; }
.auth-box h1 { font-size: 1.9rem; margin-bottom: 8px; }
.demo-accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-acc { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--surface); text-align: left; display: flex; align-items: center; gap: 10px; transition: .2s; }
.demo-acc:hover { border-color: var(--brand); background: var(--brand-50); }
.demo-acc b { display: block; font-size: .85rem; }
.demo-acc small { color: var(--muted); font-size: .72rem; }

/* ---------------------------------------------------------------- dashboard shell */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.side .logo { color: #fff; padding: 0 10px 18px; }
.side-role { margin: 0 10px 14px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.side-role small { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--sun); }
.side-role b { display: block; color: #fff; font-size: .92rem; margin-top: 2px; }
.side-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; padding: 14px 12px 6px; color: rgba(255, 255, 255, .4); }
.side a.item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: .92rem; transition: .15s; }
.side a.item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side a.item.active { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6); }
.side a.item .cnt { margin-left: auto; background: var(--accent); color: #fff; border-radius: 99px; font-size: .7rem; padding: 1px 8px; font-weight: 800; }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.side-user { display: flex; gap: 10px; align-items: center; padding: 10px; }
.side-user b { color: #fff; font-size: .88rem; display: block; }
.side-user small { font-size: .74rem; }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(245, 246, 242, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 14px; padding: 16px 32px; }
.topbar h1 { font-size: 1.35rem; }
.topbar .sub { color: var(--muted); font-size: .85rem; }
.content { padding: 28px 32px 60px; }
.side-toggle { display: none; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; position: relative; overflow: hidden; }
.kpi .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 14px; }
.kpi .ic.o { background: var(--accent-50); color: var(--accent-600); }
.kpi .ic.s { background: #FFF7E0; color: #B7791F; }
.kpi .ic.v { background: #F1EDFF; color: var(--avion); }
.kpi small { color: var(--muted); font-weight: 700; font-size: .8rem; display: block; }
.kpi b { font-family: var(--display); font-size: 1.6rem; font-weight: 800; display: block; margin-top: 2px; letter-spacing: -.02em; }
.kpi .delta { font-size: .78rem; font-weight: 700; color: var(--muted); margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.grid-2e { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mt { margin-top: 18px; }
.mt-lg { margin-top: 28px; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 800; padding: 12px 16px; background: #FAFBFA; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover { background: #FAFBFA; }
table.t .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input-icon { flex: 1; min-width: 200px; max-width: 360px; }
.fillbar { height: 6px; border-radius: 6px; background: var(--line-2); overflow: hidden; min-width: 80px; }
.fillbar i { display: block; height: 100%; border-radius: 6px; background: var(--brand); }
.hbar { display: grid; grid-template-columns: 1fr; gap: 12px; }
.hbar-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 12px; align-items: center; font-size: .88rem; }
.hbar-row .bar { height: 10px; border-radius: 0 4px 4px 0; background: var(--line-2); overflow: hidden; }
.hbar-row .bar i { display: block; height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; }
.hbar-row .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: 0; }

/* charts */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line-2); }
.chart .axis text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 10px; font-size: .8rem; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .15s; box-shadow: var(--shadow); z-index: 5; }
.chart .tip b { display: block; font-size: .95rem; }

/* scanner */
.scan-box { background: var(--ink); border-radius: 22px; aspect-ratio: 4 / 3; position: relative; overflow: hidden; display: grid; place-items: center; color: rgba(255, 255, 255, .6); }
.scan-box video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.scan-frame { position: absolute; inset: 18%; border: 3px solid rgba(255, 255, 255, .8); border-radius: 22px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.scan-line { position: absolute; left: 18%; right: 18%; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: scan 2s ease-in-out infinite; top: 18%; }
@keyframes scan { 50% { top: 82%; } }
.scan-result { border-radius: 22px; padding: 26px; color: #fff; animation: pop .35s ease both; }
.scan-result.ok { background: linear-gradient(135deg, #079455, #067647); }
.scan-result.bad { background: linear-gradient(135deg, #D92D20, #B42318); }
.scan-result.warn { background: linear-gradient(135deg, #DC6803, #B54708); }
.scan-result h3 { font-size: 1.6rem; display: flex; gap: 10px; align-items: center; }

/* modal & toast */
.modal-back { position: fixed; inset: 0; background: rgba(8, 20, 17, .55); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: 24px; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow: auto; box-shadow: var(--shadow-lg); animation: rise .25s ease; }
.modal.lg { max-width: 820px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.modal-head h3 { font-size: 1.2rem; }
.modal-body { padding: 24px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; animation: rise .3s ease; max-width: 90vw; }
.toast.error { background: var(--danger); }
.toast.ok svg.lucide { color: #4ADE80; }
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.phone-mock { width: 170px; margin: 0 auto 18px; border: 8px solid var(--ink); border-radius: 28px; padding: 18px 12px; text-align: center; background: linear-gradient(180deg, #FFF9E6, #fff); }

.trip-mini { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: .2s; }
.trip-mini:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.trip-mini .when { text-align: center; min-width: 58px; padding-right: 14px; border-right: 1px solid var(--line); }
.trip-mini .when b { font-family: var(--display); font-size: 1.5rem; display: block; line-height: 1; }
.trip-mini .when small { text-transform: uppercase; font-weight: 800; font-size: .7rem; color: var(--accent); }
.booking-card { display: grid; grid-template-columns: 160px 1fr auto; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: .2s; }
.booking-card:hover { box-shadow: var(--shadow); }
.booking-card img { width: 100%; height: 100%; object-fit: cover; min-height: 140px; }
.booking-card .body { padding: 18px 20px; }
.booking-card .side-a { padding: 18px 20px; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; border-left: 1px dashed var(--line); }
.points-card { background: linear-gradient(135deg, var(--ink), #173A31); color: #fff; border-radius: 20px; padding: 22px; position: relative; overflow: hidden; }
.points-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 194, 61, .5), transparent 70%); }
.points-card b { font-family: var(--display); font-size: 2.2rem; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .search-grid { grid-template-columns: 1fr auto 1fr; }
  .search-grid .sf-date, .search-grid .sf-pax { grid-column: span 1; }
  .search-grid .btn-primary { grid-column: 1 / -1; }
  .modes-grid { grid-template-columns: repeat(2, 1fr); }
  .mode-card { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .book-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 900px) {
  .nav-links, .nav-right .hide-sm { display: none; }
  .nav-burger { display: inline-grid; }
  .results-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .testi { grid-template-columns: 1fr; }
  .pay-grid, .cta-split { grid-template-columns: 1fr; }
  .pay-grid, .cta-split .body { padding: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { min-height: 260px; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 90; transform: translateX(-100%); transition: transform .3s; }
  .side.open { transform: none; box-shadow: var(--shadow-lg); }
  .side-toggle { display: inline-grid; }
  .topbar-inner, .content { padding-left: 18px; padding-right: 18px; }
  .ticket { grid-template-columns: 1fr; }
  .ticket-stub { border-left: 0; border-top: 2px dashed var(--line); }
  .ticket-stub::before, .ticket-stub::after { display: none; }
  .ticket .stamp { right: 20px; top: 80px; }
  .grid-2e { grid-template-columns: 1fr; }
  .booking-card { grid-template-columns: 1fr; }
  .booking-card img { height: 140px; }
  .booking-card .side-a { border-left: 0; border-top: 1px dashed var(--line); flex-direction: row; align-items: center; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { min-height: 640px; height: auto; padding: 110px 0 150px; }
  .search-grid { grid-template-columns: 1fr; }
  .swap { justify-self: center; margin: -6px 0; transform: rotate(90deg); }
  .swap:hover { transform: rotate(270deg); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .carousel { aspect-ratio: auto; min-height: 420px; }
  .slide-body { padding: 0 24px 60px; }
  .dots { left: 24px; }
  .modes-grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .trip-card { grid-template-columns: 1fr; }
  .trip-price { border-left: 0; border-top: 2px dashed var(--line); padding: 14px 0 0; flex-direction: row; justify-content: space-between; align-items: center; min-width: 0; }
  .date-strip { grid-template-columns: repeat(7, minmax(64px, 1fr)); overflow-x: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .pax-card { grid-template-columns: auto 1fr; }
  .pax-card > :last-child { grid-column: 1 / -1; }
  .pay-methods { grid-template-columns: 1fr; }
  .ticket-meta { grid-template-columns: repeat(2, 1fr); }
  .ticket-route .city b { font-size: 1.3rem; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi b { font-size: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .demo-accounts { grid-template-columns: 1fr; }
  .seat { width: 32px; height: 32px; }
  .hbar-row { grid-template-columns: 100px 1fr auto; }
}

/* ---------------------------------------------------------------- print (tickets) */
@media print {
  body { background: #fff; }
  .nav, .footer, .no-print, #toasts, .mobile-menu { display: none !important; }
  .page-top { padding-top: 0; }
  .ticket { box-shadow: none; border: 1px solid #ccc; }
  .ticket-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
