:root {
  --navy: #00256c;
  --navy-deep: #001a4d;
  --blue: #0e5cb2;
  --sky: #00aad2;
  --ink: #142033;
  --muted: #5d6b82;
  --line: #dde4ef;
  --bg: #f3f6fb;
  --card: #ffffff;
  --good: #1f9d63;
  --bad: #d64545;
  --gold: #e8a41c;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0, 37, 108, 0.1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; color: var(--navy); }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; box-shadow: 0 2px 14px rgba(0, 20, 60, 0.35); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; letter-spacing: 0.02em; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand small { display: block; font-weight: 500; font-size: 11px; color: #a9c4f2; letter-spacing: 0.08em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: 12px; flex: 1; }
.nav a { color: #d5e3ff; padding: 8px 12px; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.brand, .btn, .chip { white-space: nowrap; }
.brand { flex-shrink: 0; }
.nav { min-width: 0; }
.account { flex-shrink: 0; }
.site-header .wrap { width: min(1440px, 100% - 32px); }
/* as the window narrows, give things up in this order so nothing ever overlaps: the logo pill, the small brand line, the miles line, then the menu becomes a button */
@media (max-width: 1400px) { .brand img { display: none; } .nav a { padding: 8px 10px; } }
@media (max-width: 1260px) { .brand small { display: none; } .nav a { padding: 8px 8px; font-size: 14px; } .site-header .wrap { gap: 14px; } }
@media (max-width: 1160px) { .chip span { display: none; } .chip { padding-right: 12px; } }
@media (max-width: 900px) { .brand img { display: none; } }
.nav a:hover, .nav a.active { background: rgba(255, 255, 255, 0.12); color: #fff; text-decoration: none; }
.account { display: flex; align-items: center; gap: 12px; }
.chip { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.1); padding: 5px 14px 5px 5px; border-radius: 999px; color: #fff; font-size: 14px; }
.chip:hover { text-decoration: none; background: rgba(255, 255, 255, 0.18); }
.chip img { width: 30px; height: 30px; border-radius: 50%; }
.chip b { font-weight: 600; }
.chip span { color: #9fd8ff; font-size: 12px; display: block; line-height: 1.1; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; color: #fff; background: var(--blue);
  transition: transform 0.12s, background 0.12s, box-shadow 0.12s;
}
.btn:hover { background: #0b4c96; text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(14, 92, 178, 0.35); }
.btn:disabled { background: #b5c0d3; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.7); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.14); box-shadow: none; }
.btn.outline { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.btn.outline:hover { background: #eef5ff; box-shadow: none; }
.btn.gold { background: var(--gold); color: #3b2a00; }
.btn.gold:hover { background: #d19412; box-shadow: 0 6px 16px rgba(232, 164, 28, 0.4); }
.btn.danger { background: #fff; color: var(--bad); border: 1.5px solid #f0b8b8; }
.btn.danger:hover { background: #fdeeee; box-shadow: none; }
.btn.small { padding: 7px 14px; font-size: 14px; border-radius: 8px; }
.btn.discord { background: #5865f2; }
.btn.discord:hover { background: #4752c4; }

/* hero */
.hero { position: relative; color: #fff; min-height: 560px; display: grid; align-items: center; background: var(--navy-deep) center / cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 26, 77, 0.9) 0%, rgba(0, 37, 108, 0.6) 48%, rgba(0, 37, 108, 0.12) 100%); }
.hero .wrap { position: relative; padding: 70px 0; }
.hero h1 { color: #fff; font-size: clamp(38px, 6vw, 68px); max-width: 720px; letter-spacing: -0.02em; }
.hero p.lead { font-size: clamp(17px, 2vw, 21px); max-width: 560px; color: #dbe8ff; margin-bottom: 30px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; }
.eyebrow { display: inline-block; letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; font-weight: 700; color: #7fd4ff; margin-bottom: 14px; }

.page-banner { background: var(--navy) center / cover no-repeat; }
.page-banner img { width: min(1160px, 100%); margin-inline: auto; }

/* sections */
section.block { padding: 64px 0; }
section.block.tight { padding: 40px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card.pad { padding: 26px; }
.feature .icon { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--sky)); color: #fff; display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.feature h3 { font-size: 20px; }
.feature p { color: var(--muted); margin: 0; }

/* flight cards */
.flight-card { display: flex; flex-direction: column; }
.flight-card .cover { height: 150px; background: var(--navy) center / cover no-repeat; position: relative; }
.flight-card .cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 26, 77, 0) 40%, rgba(0, 26, 77, 0.65)); }
.flight-card .cover .num { position: absolute; left: 18px; bottom: 12px; z-index: 1; color: #fff; font-weight: 700; font-size: 20px; letter-spacing: 0.04em; }
.flight-card .cover .badge { position: absolute; right: 14px; top: 14px; z-index: 1; background: rgba(255, 255, 255, 0.92); color: var(--navy); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.flight-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.route { display: flex; align-items: center; gap: 14px; font-size: 26px; font-weight: 700; color: var(--navy); }
.route .line { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--sky) 0 6px, transparent 6px 12px); position: relative; }
.route .line::after { content: '✈'; position: absolute; left: 50%; top: -12px; transform: translateX(-50%); background: #fff; padding: 0 6px; font-size: 16px; color: var(--blue); }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 14px; color: var(--muted); }
.meta b { display: block; color: var(--ink); font-size: 15px; }
.flight-card .foot { margin-top: auto; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty h3 { color: var(--navy); }

/* split feature */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; align-items: stretch; }
.split .media { min-height: 320px; background: center / cover no-repeat; }
.split .text { padding: 44px; }
.tiers { display: grid; gap: 10px; margin: 18px 0 22px; padding: 0; list-style: none; }
.tiers li { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 10px; background: #f3f7fd; font-weight: 600; }
.tiers li span { color: var(--muted); font-weight: 500; font-size: 14px; }

/* flight page */
.flight-hero { background: var(--navy) center / cover no-repeat; position: relative; color: #fff; }
.flight-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 26, 77, 0.92), rgba(0, 37, 108, 0.7)); }
.flight-hero .wrap { position: relative; padding: 34px 0 30px; }
.flight-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); margin-bottom: 4px; }
.flight-hero .sub { color: #b8d1f7; }
.flight-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; padding: 30px 0 60px; align-items: start; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.panel h3 { font-size: 18px; margin-bottom: 12px; }
.panel.sticky { position: sticky; top: 92px; }
.kv { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv:last-child { border: 0; }
.kv span { color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 18px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 16px; height: 16px; border-radius: 4px 4px 6px 6px; vertical-align: -3px; margin-right: 6px; border: 1.5px solid; }
.i-free { background: #e6f0ff; border-color: #8fb4ee; }
.i-taken { background: #d3d8e2; border-color: #b4bccb; }
.i-mine { background: var(--good); border-color: var(--good); }
.i-pick { background: var(--gold); border-color: #b9800c; }

.plane { background: linear-gradient(180deg, #fff, #f7faff); border-radius: 120px 120px 26px 26px / 200px 200px 26px 26px; border: 2px solid var(--line); padding: 90px 22px 34px; box-shadow: var(--shadow); max-width: 620px; margin-inline: auto; position: relative; }
.plane::before { content: 'FRONT'; position: absolute; top: 34px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: 0.3em; color: #9db0cf; font-weight: 700; }
.cabin-label { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; font-weight: 700; color: var(--navy); }
.cabin-label:first-of-type { margin-top: 0; }
.cabin-label small { font-weight: 500; color: var(--muted); }
.cabin-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.cabin { position: relative; border-radius: 14px; }
.cabin.locked .rows { opacity: 0.4; filter: grayscale(0.4); pointer-events: none; }
.lock-overlay { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px; z-index: 3; background: rgba(243, 246, 251, 0.62); border-radius: 14px; padding: 10px; }
.lock-overlay p { margin: 0; font-weight: 600; color: var(--navy); }
.row { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 5px 0; }
.row .rn { width: 24px; text-align: center; font-size: 11px; color: #9db0cf; font-weight: 700; }
.group { display: flex; gap: 5px; }
.seat {
  width: 34px; height: 36px; border-radius: 9px 9px 12px 12px; border: 1.5px solid #8fb4ee; background: #e6f0ff;
  color: var(--navy); font-size: 11px; font-weight: 700; cursor: pointer; padding: 0;
  transition: transform 0.1s, background 0.1s;
}
.seat:hover:not(:disabled) { transform: translateY(-2px); background: #cfe1ff; }
.seat:disabled { cursor: not-allowed; }
.seat.taken { background: #d3d8e2; border-color: #b4bccb; color: #8a94a8; }
.seat.mine { background: var(--good); border-color: var(--good); color: #fff; }
.seat.pick { background: var(--gold); border-color: #b9800c; color: #3b2a00; transform: translateY(-2px); }
.wide .seat { width: 28px; height: 32px; font-size: 10px; }

.cabin-pick { display: grid; gap: 10px; margin-top: 8px; }
.upgrade-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; }
.upgrade-row b { display: block; }
.upgrade-row small { color: var(--muted); }
.note { font-size: 13px; color: var(--muted); }

/* bookings */
.booking { display: grid; grid-template-columns: 200px 1fr auto; align-items: stretch; }
.booking .thumb { background: var(--navy) center / cover no-repeat; min-height: 130px; }
.booking .info { padding: 18px 22px; }
.booking .info h3 { margin-bottom: 4px; }
.booking .actions { padding: 18px 22px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; background: #e6f0ff; color: var(--blue); font-size: 12px; font-weight: 700; margin-right: 6px; }

/* toast + modal */
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; transition: 0.25s; background: var(--navy-deep); color: #fff; padding: 13px 22px; border-radius: 12px; z-index: 200; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); max-width: min(560px, 92vw); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: #8f2323; }
#toast.good { background: #14724a; }
.modal-back { position: fixed; inset: 0; background: rgba(0, 20, 60, 0.6); display: none; place-items: center; z-index: 150; padding: 20px; }
.modal-back.show { display: grid; }
.modal { background: #fff; border-radius: 16px; padding: 28px; width: min(460px, 100%); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
.modal h3 { font-size: 22px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

/* footer */
.site-footer { background: var(--navy-deep); color: #b8c8e6; margin-top: 30px; }
.site-footer .strip { background: var(--navy); padding: 22px 0; }
.site-footer .strip img { width: min(760px, 92%); margin-inline: auto; }
.site-footer .wrap { padding: 34px 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; font-size: 14px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; }
.site-footer a { color: #b8c8e6; display: block; padding: 3px 0; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 18px; font-size: 12.5px; color: #8fa3c8; }

/* in-flight entertainment */
.ife { background: radial-gradient(1200px 500px at 50% -10%, #12336f, #06132e 70%); color: #dbe6fb; padding: 44px 0 70px; }
.ife h2, .ife h3 { color: #fff; }
.ife .screen { background: #020a1c; border: 10px solid #101c34; border-radius: 26px; box-shadow: 0 0 0 2px #223a66, 0 30px 70px rgba(0, 0, 0, 0.55); overflow: hidden; }
.ife .player { position: relative; aspect-ratio: 16 / 9; background: #020a1c; }
.ife .player.tall { aspect-ratio: auto; height: 380px; }
.ife .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ife .idle { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 4px; padding: 20px; color: #9db4dc; }
.ife .idle-icon { width: 78px; height: 78px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--sky)); box-shadow: 0 0 40px rgba(0, 170, 210, 0.5); }
.ife .now { padding: 10px 18px; background: #0b1730; color: #9fd8ff; font-size: 14px; letter-spacing: 0.02em; }
.ife-tools { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 22px 0 8px; }
.ife-tools .tool input { padding: 14px 18px; font-size: 16px; border-radius: 12px; }
.ife-tools .tool .btn { padding: 0 24px; }
.tool { display: flex; gap: 8px; }
.tool input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 10px; border: 1.5px solid #27427a; background: #0b1a38; color: #fff; font: inherit; }
.tool input::placeholder { color: #7f95bd; }
.tool input:focus { outline: 2px solid var(--sky); }
.ife .btn.outline { background: transparent; color: #cfe6ff; border-color: #4d74b8; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 16px; }
.tabs button { background: #0f2247; color: #b8cdf0; border: 0; padding: 8px 18px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.tabs button.on { background: var(--sky); color: #00263a; }
.ife-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.tile { text-align: left; background: #0d1d3f; border: 1px solid #1c3568; border-radius: 14px; padding: 0 0 14px; cursor: pointer; color: #dbe6fb; font: inherit; transition: transform 0.12s, border-color 0.12s; overflow: hidden; }
.tile:hover { transform: translateY(-3px); border-color: var(--sky); }
.tile .art { position: relative; aspect-ratio: 16 / 9; background: #14295a center / cover no-repeat; margin-bottom: 10px; }
.tile .art.noart { display: grid; place-items: center; font-size: 42px; background: linear-gradient(135deg, #1a4aa0, #0d8fb8); }
.tile .kind { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 700; background: rgba(0, 20, 60, 0.75); color: #fff; padding: 3px 10px; border-radius: 999px; }
.tile b, .tile small { display: block; padding: 0 14px; }
.tile b { color: #fff; font-size: 15px; }
.tile small { color: #8fa6cf; margin-top: 2px; }
@media (max-width: 760px) { .ife-tools { grid-template-columns: 1fr; } .ife .screen { border-width: 6px; border-radius: 18px; } }

/* login prompt */
.gate { max-width: 520px; margin: 70px auto; text-align: center; padding: 44px 30px; }
.gate h2 { margin-bottom: 10px; }

@media (max-width: 960px) {
  .flight-layout { grid-template-columns: 1fr; }
  .panel.sticky { position: static; }
  .split { grid-template-columns: 1fr; }
  .split .media { min-height: 220px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .booking { grid-template-columns: 1fr; }
  .booking .thumb { min-height: 120px; }
  .grid.cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 1040px) {
  .menu-toggle { display: block; margin-left: auto; }
  .nav, .account { display: none; }
  .site-header.open .wrap { flex-wrap: wrap; height: auto; padding: 12px 0 16px; }
  .site-header.open .nav, .site-header.open .account { display: flex; width: 100%; flex-direction: column; align-items: stretch; margin: 0; }
  .brand img { display: block; }
}
@media (max-width: 760px) {
  .hero { min-height: 480px; }
  .seat { width: 30px; height: 33px; }
  .wide .seat { width: 24px; height: 29px; }
  .row { gap: 10px; }
}

/* staff area */
.staff-table { width: 100%; border-collapse: collapse; }
.staff-table th, .staff-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.08); white-space: nowrap; }
.staff-table th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
