/* Layout: a catalog of ready-made trips as paper tickets. Picking one makes a boarding pass (ink body, paper stub). Payments are confirmed by Paystack, not by hand. */
:root {
  --bg: #e6efee; --ink: #0c2b35; --muted: #55707a; --line: #c6d6d4;
  --pass-bg: #0c2b35; --pass-fg: #f2f7f6; --pass-muted: #94b1b5; --pass-track: #1f4551;
  --stub-bg: #ffffff; --stub-fg: #0c2b35; --stub-muted: #55707a; --stub-line: #c6d6d4;
  --fill: #ffb81f; --on-fill: #0c2b35; --focus: #0b5fff;
  --ok: #7fe3b0; --late-text: #9b2c1a; --ok-text: #0f6b45;
  --font-display: "Syne", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071418; --ink: #e4efee; --muted: #8aa6ab; --line: #1c3840;
    --pass-bg: #123640; --pass-fg: #f2f7f6; --pass-muted: #8fb0b5; --pass-track: #214c58;
    --stub-bg: #0d2229; --stub-fg: #e4efee; --stub-muted: #8aa6ab; --stub-line: #25444d;
    --focus: #7fb2ff; --late-text: #ff9d8a; --ok-text: #7fe3b0;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 15px; line-height: 1.5;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  padding-block: max(28px, env(safe-area-inset-top, 0px)) max(56px, env(safe-area-inset-bottom, 0px));
}
[hidden] { display: none !important; }
.wrap { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand h1 { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; letter-spacing: -0.03em; line-height: 1; margin: 0; }
.brand p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; font-size: 0.85rem; color: var(--muted); }
.who b { color: var(--ink); font-weight: 600; }

.btn { border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 600; cursor: pointer; background: var(--fill); color: var(--on-fill); min-height: 42px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: 0.55; cursor: default; filter: none; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--muted); filter: none; }
.btn.small { min-height: 34px; padding: 6px 12px; font-size: 0.85rem; }
.btn.danger { background: #c8402a; color: #fff; }

.status { min-height: 1.4em; font-size: 0.85rem; color: var(--muted); margin: -14px 0 -14px; }
.status.err { color: var(--late-text); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-head h2 { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: -0.015em; margin: 0; }
.sec-head p { margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; max-width: 60ch; }

.editor { background: var(--stub-bg); color: var(--stub-fg); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: inset 0 0 0 1px var(--stub-line); }
.editor h2 { font-family: var(--font-display); font-size: 1.25rem; margin: 0; }
.editor .sub { margin: 4px 0 0; color: var(--stub-muted); font-size: 0.9rem; max-width: 62ch; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 0.72rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--stub-muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--stub-line); background: transparent; color: var(--stub-fg); }
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.field select option { background: var(--stub-bg); color: var(--stub-fg); }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hint { color: var(--late-text); font-size: 0.85rem; margin: 0; min-height: 1.2em; }
.tabs { display: flex; gap: 6px; }
.tabs button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--stub-muted); box-shadow: inset 0 0 0 1.5px var(--stub-line); }
.tabs button[aria-selected="true"] { background: var(--fill); color: var(--on-fill); box-shadow: none; }
.admin-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; border: 1.5px dashed var(--line); color: var(--muted); font-size: 0.88rem; margin-bottom: 18px; }
.admin-note p { margin: 0; flex: 1 1 260px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.trip { background: var(--stub-bg); color: var(--stub-fg); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: inset 0 0 0 1px var(--stub-line), 0 10px 24px -18px rgba(5, 24, 30, 0.6); min-width: 0; }
.tcode { font-family: var(--font-display); font-weight: 800; font-size: 2.7rem; letter-spacing: 0.02em; line-height: 0.9; margin: 0; }
.trip h3 { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.tmeta { margin: -6px 0 0; color: var(--stub-muted); font-size: 0.85rem; }
.tblurb { margin: 0; font-size: 0.92rem; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 0.78rem; padding: 3px 9px; border-radius: 6px; background: color-mix(in srgb, var(--stub-fg) 8%, transparent); }
.tfoot { margin-top: auto; padding-top: 14px; border-top: 2px dashed var(--stub-line); display: flex; flex-direction: column; gap: 10px; }
.tprice { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; font-variant-numeric: tabular-nums; display: block; }
.tpace { color: var(--stub-muted); font-size: 0.82rem; }
.tfoot .btn { width: 100%; }
.tadmin { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 0.82rem; color: var(--stub-muted); }
.joined { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.88rem; }
.joined b { font-variant-numeric: tabular-nums; }

.passes { display: flex; flex-direction: column; gap: 22px; }
.pass { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 16.5rem; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 28px -16px rgba(5, 24, 30, 0.55); scroll-margin-top: 16px; }
.body { background: var(--pass-bg); color: var(--pass-fg); padding: 24px 26px 22px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.stub { background: var(--stub-bg); color: var(--stub-fg); padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; border-left: 2px dashed var(--stub-line); position: relative; min-width: 0; }
.stub::before, .stub::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); left: -12px; }
.stub::before { top: -11px; }
.stub::after { bottom: -11px; }
.panel { grid-column: 1 / -1; background: var(--stub-bg); color: var(--stub-fg); border-top: 2px dashed var(--stub-line); padding: 22px 26px; display: flex; flex-direction: column; gap: 16px; }
.panel h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0; }
.panel p { margin: 4px 0 0; color: var(--stub-muted); font-size: 0.9rem; max-width: 62ch; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.code { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 11vw, 4.6rem); letter-spacing: 0.02em; line-height: 0.9; margin: 0; }
.where { margin: 8px 0 0; font-size: 1.02rem; font-weight: 600; overflow-wrap: anywhere; }
.when { margin: 2px 0 0; color: var(--pass-muted); font-family: var(--font-mono); font-size: 0.8rem; }
.pill { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; padding: 5px 10px; border-radius: 999px; white-space: nowrap; box-shadow: inset 0 0 0 1.5px currentColor; flex: none; }
.pill.ok { color: var(--ok); }
.pill.info { color: var(--pass-muted); }
.money { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.saved { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.of { color: var(--pass-muted); font-family: var(--font-mono); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 14px; border-radius: 999px; background: var(--pass-track); overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--fill); border-radius: 999px; transition: width 0.5s ease; }
.bar > b { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--fill) 55%, transparent) 0 5px, transparent 5px 10px); }
.bar > s { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--pass-bg); opacity: 0.55; text-decoration: none; }
.pct { font-family: var(--font-mono); font-size: 0.8rem; color: var(--pass-muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: -8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin: 0; padding-top: 16px; border-top: 1px solid var(--pass-track); }
.facts div { min-width: 0; }
.facts dt { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pass-muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stub h3 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--stub-muted); margin: 0; }
.goal-line { margin: 0; font-weight: 600; }
.small-note { margin: 0; font-size: 0.82rem; color: var(--stub-muted); }
.mini { margin: 0; display: grid; gap: 8px; font-size: 0.85rem; }
.mini dt { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--stub-muted); }
.mini dd { margin: 0; overflow-wrap: anywhere; }
.recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.85rem; }
.recent li { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.recent .d { color: var(--stub-muted); font-family: var(--font-mono); font-size: 0.75rem; }
.recent .a { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; display: block; text-align: right; }
.recent .st { display: block; font-size: 0.72rem; text-align: right; color: var(--stub-muted); }
.recent .st.ok { color: var(--ok-text); }
.recent .st.bad { color: var(--late-text); }
.recent button { border: 0; background: transparent; color: var(--stub-muted); cursor: pointer; padding: 0; font-size: 0.72rem; text-decoration: underline; }
.recent button:hover { color: var(--ok-text); }
.empty-dep { color: var(--stub-muted); font-size: 0.85rem; margin: 0; }
details summary { cursor: pointer; font-size: 0.82rem; color: var(--stub-muted); list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: " +"; }
details[open] summary::after { content: " –"; }
.stub-foot { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.link { border: 0; background: transparent; color: var(--stub-muted); text-decoration: underline; cursor: pointer; font-size: 0.82rem; padding: 4px 0; }
.link:hover { color: var(--late-text); }

.orders { display: flex; flex-direction: column; gap: 12px; }
.order { background: var(--stub-bg); color: var(--stub-fg); border-radius: 14px; padding: 16px 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 18px; align-items: start; box-shadow: inset 0 0 0 1px var(--stub-line); margin: 0; }
.order.done { opacity: 0.7; }
.order dt { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--stub-muted); }
.order dd { margin: 2px 0 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.order .whoo { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.order .whoo b { font-family: var(--font-display); font-size: 1.05rem; }
.order .flag { color: var(--late-text); font-weight: 600; }
.sum { display: flex; gap: 10px; flex-wrap: wrap; }
.sum span { font-family: var(--font-mono); font-size: 0.78rem; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }

.empty { padding: 28px; border-radius: 18px; border: 1.5px dashed var(--line); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.empty h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0; }
.empty p { margin: 0; color: var(--muted); max-width: 52ch; }
.loading { color: var(--muted); font-family: var(--font-mono); font-size: 0.85rem; margin: 0; }

@media (max-width: 640px) {
  .pass { grid-template-columns: minmax(0, 1fr); }
  .stub { border-left: 0; border-top: 2px dashed var(--stub-line); }
  .stub::before { left: -11px; top: -12px; }
  .stub::after { bottom: auto; top: -12px; left: auto; right: -11px; }
  .body { padding: 20px 18px 18px; }
  .panel { padding: 20px 18px; }
  .who { justify-content: flex-start; }
  .editor { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .bar > i { transition: none; } }
