/* ============================================================
   Everdrive — Working Prototype
   Design tokens + phone system lifted from the pitch deck,
   adapted for an interactive, real-size app.
   ============================================================ */

:root {
  --black: #0B0D10;
  --charcoal: #171A1F;
  --surface: #1B1F25;
  --surface-2: #22272F;
  --line: rgba(216,194,157,0.14);
  --line-strong: rgba(216,194,157,0.30);
  --champagne: #D8C29D;
  --cream: #F6F0E6;
  --gold: #B99A5B;
  --slate: #8A929C;
  --slate-dim: #646B74;
  --green: #3E9A6F;
  --green-deep: #2E7D5B;
  --red: #C8654E;

  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(130% 90% at 50% -10%, #15191f 0%, #0B0D10 62%);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font-family: var(--sans); cursor: pointer; }
::selection { background: rgba(216,194,157,0.3); }

/* hide scrollbars but keep scroll */
.noscroll::-webkit-scrollbar { width: 0; height: 0; }
.noscroll { scrollbar-width: none; }

/* ============================================================
   APP SHELL
   ============================================================ */
#root { height: 100%; }
.shell { display: flex; flex-direction: column; height: 100%; }
.shell.mobile { height: 100dvh; }

.topbar {
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; height: 62px;
  border-bottom: 1px solid var(--line);
  background: rgba(11,13,16,0.7);
  backdrop-filter: blur(14px);
  position: relative; z-index: 50;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .wm {
  font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase;
  font-size: 15px; color: var(--cream);
}
.brand .wm b { color: var(--gold); font-weight: 600; }
.brand .tagline {
  font-size: 12px; letter-spacing: 0.06em; color: var(--slate-dim);
  border-left: 1px solid var(--line); padding-left: 14px;
}

.switcher { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.switcher button {
  border: 0; background: transparent; color: var(--slate);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  padding: 8px 16px; border-radius: 9px; display: flex; align-items: center; gap: 8px;
  transition: background .15s, color .15s;
}
.switcher button:hover { color: var(--champagne); }
.switcher button.on { background: var(--champagne); color: #1b1407; }
.switcher button .sw-ic { font-size: 14px; }

.topbar .tb-right { display: flex; align-items: center; gap: 14px; }
.btn-reset {
  border: 1px solid var(--line); background: transparent; color: var(--slate);
  font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 9px;
  display: flex; align-items: center; gap: 7px; letter-spacing: 0.04em; white-space: nowrap;
}
.btn-reset:hover { color: var(--champagne); border-color: var(--line-strong); }

/* live-ride ribbon */
.ribbon {
  flex: none; height: 46px;
  display: flex; align-items: center; gap: 16px;
  padding: 0 26px;
  background: linear-gradient(90deg, rgba(185,154,91,0.16), rgba(185,154,91,0.04));
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.ribbon .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(62,154,111,0.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62,154,111,0.5);} 70% { box-shadow: 0 0 0 8px rgba(62,154,111,0);} 100% { box-shadow: 0 0 0 0 rgba(62,154,111,0);} }
.ribbon .r-label { color: var(--champagne); font-weight: 700; letter-spacing: 0.04em; }
.ribbon .r-status { color: var(--slate); }
.ribbon .r-status b { color: var(--cream); font-weight: 600; }
.ribbon .r-spacer { flex: 1; }
.ribbon .r-jump { color: var(--gold); font-weight: 700; cursor: pointer; border: 0; background: transparent; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.ribbon .r-jump:hover { text-decoration: underline; }

.stage {
  flex: 1; min-height: 0; position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 30px; overflow: auto;
}
.stage::-webkit-scrollbar { width: 0; }
.stage { scrollbar-width: none; }

/* ============================================================
   HUB / LANDING
   ============================================================ */
.hub { width: 100%; max-width: 1080px; text-align: center; }
.hub .kick { font-size: 13px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.hub h1 { font-size: 52px; font-weight: 600; letter-spacing: -0.02em; margin: 18px 0 0; line-height: 1.05; }
.hub .sub { font-size: 19px; color: var(--slate); margin: 18px auto 0; max-width: 52ch; line-height: 1.5; }
.hub-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 18px; }
.hub-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px 26px; text-align: left; cursor: pointer; position: relative; overflow: hidden;
  transition: border-color .2s, transform .2s, background .2s;
}
.hub-card:hover { border-color: var(--line-strong); transform: translateY(-3px); background: var(--surface-2); }
.hub-card .hc-ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(185,154,91,0.14); color: var(--champagne); display: flex; align-items: center; justify-content: center; font-size: 22px; border: 1px solid var(--line); }
.hub-card .hc-t { font-size: 21px; font-weight: 700; margin-top: 20px; letter-spacing: -0.01em; }
.hub-card .hc-b { font-size: 14.5px; color: var(--slate); margin-top: 9px; line-height: 1.5; }
.hub-card .hc-go { font-size: 13px; color: var(--gold); font-weight: 700; margin-top: 18px; letter-spacing: 0.04em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.hub-foot { margin-top: 40px; font-size: 13px; color: var(--slate-dim); letter-spacing: 0.04em; }

/* founder-only investor area (shown for the founder passphrase tier) */
.founder-zone { margin-top: 44px; }
.fz-head { display: flex; align-items: center; gap: 16px; justify-content: center; }
.fz-rule { flex: 1; max-width: 120px; height: 1px; background: var(--line-strong); }
.fz-kick { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--champagne); font-weight: 700; white-space: nowrap; }
.founder-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 20px; }
.founder-card { display: block; text-decoration: none; color: inherit; border-color: rgba(216,194,157,0.28); background: linear-gradient(160deg, rgba(185,154,91,0.10), var(--surface) 55%); }
.founder-card:hover { border-color: rgba(216,194,157,0.5); }

/* pitch-deck card — distinct, full-width, sits below the app row */
.deck-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 0; margin-top: 44px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; text-align: left; text-decoration: none; color: inherit; cursor: pointer;
  transition: border-color .2s, transform .2s, background .2s;
}
.deck-card:hover { border-color: var(--line-strong); transform: translateY(-3px); background: var(--surface-2); }
.deck-thumb { position: relative; min-height: 160px; }
.deck-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.deck-thumb::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(27,31,37,0) 60%, var(--surface) 100%); }
.deck-meta { display: flex; gap: 20px; align-items: center; padding: 26px 28px; }
.deck-meta .hc-ic { flex: none; }
.deck-txt .hc-t { margin-top: 0; }

/* ============================================================
   PHONE FRAME (real-size, interactive)
   ============================================================ */
.phone {
  --w: 384px;
  width: var(--w); height: 812px;
  background: linear-gradient(150deg, #2a2e34, #0c0e11);
  border-radius: 52px; padding: 12px;
  box-shadow: 0 60px 110px -40px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.04);
  flex: none; position: relative;
  transform: scale(var(--pscale, 1)); transform-origin: center center;
}
.screen {
  position: relative; width: 100%; height: 100%;
  background: #0F1318; border-radius: 42px; overflow: hidden;
  display: flex; flex-direction: column;
  font-size: 16px; color: var(--cream);
}
.island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 112px; height: 32px; background: #000; border-radius: 17px; z-index: 60;
}
.statusbar {
  height: 52px; flex: none; z-index: 40;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 28px 8px; font-size: 14px; font-weight: 600; color: var(--cream);
}
.statusbar .sb-right { display: flex; align-items: center; gap: 7px; }
.sig { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.sig i { width: 3px; background: var(--cream); border-radius: 1px; }
.sig i:nth-child(1){height:5px}.sig i:nth-child(2){height:8px}.sig i:nth-child(3){height:11px}.sig i:nth-child(4){height:13px}
.batt { width: 24px; height: 12px; border: 1.5px solid var(--cream); border-radius: 3px; position: relative; padding: 1.5px; }
.batt::after { content:""; position:absolute; right:-3px; top:3.5px; width:2px; height:5px; background: var(--cream); border-radius: 0 1px 1px 0; }
.batt i { display:block; height:100%; width:72%; background: var(--cream); border-radius: 1px; }

/* scrollable screen body */
.scr-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 6px 20px 0; display: flex; flex-direction: column; -webkit-overflow-scrolling: touch; }
.scr-body.flush { padding: 0; }
.scr-body::-webkit-scrollbar { width: 0; }
.scr-body { scrollbar-width: none; }

.app-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 14px; flex: none; }
.app-top .at-title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); display:flex; align-items:center; justify-content:center; color: var(--champagne); font-size: 17px; border: 0; flex: none; }
.icon-btn:hover { background: #2a3038; }

/* bottom tab nav */
.tabbar {
  flex: none; display: flex; border-top: 1px solid var(--line);
  background: rgba(15,19,24,0.96); backdrop-filter: blur(10px);
  padding: 8px 8px 24px;
}
.tabbar button {
  flex: 1; border: 0; background: transparent; color: var(--slate-dim);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; padding: 6px 0;
}
.tabbar button .tb-ic { font-size: 19px; line-height: 1; }
.tabbar button.on { color: var(--champagne); }

/* ============================================================
   SCREEN COMPONENTS (lifted from deck, lightly extended)
   ============================================================ */
.trip-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.trip-row { display: flex; align-items: center; gap: 13px; padding: 9px 0; width: 100%; text-align: left; }
button.trip-row { background: transparent; border: 0; }
.trip-row + .trip-row { border-top: 1px solid var(--line); }
.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot.o { background: var(--champagne); box-shadow: 0 0 0 4px rgba(216,194,157,0.16); }
.dot.d { background: var(--green); box-shadow: 0 0 0 4px rgba(62,154,111,0.18); }
.trip-row .tr-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate-dim); }
.trip-row .tr-val { font-size: 15.5px; font-weight: 600; color: var(--cream); }
.trip-row .tr-edit { margin-left: auto; color: var(--champagne); font-size: 13px; font-weight: 600; }

.seg { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: transparent; color: var(--slate); font-family: var(--sans); font-size: 14.5px; font-weight: 600; padding: 9px 0; border-radius: 10px; transition: background .15s, color .15s; }
.seg button.on { background: var(--champagne); color: #1b1407; }

.sec-label { font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate-dim); margin: 16px 2px 11px; display: flex; justify-content: space-between; align-items: center; flex: none; }
.sec-label .filter { color: var(--champagne); letter-spacing: 0.04em; text-transform: none; font-weight: 600; cursor: pointer; }

.chauf-list { display: flex; flex-direction: column; gap: 12px; }
.chauf {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 13px; display: flex; gap: 13px; align-items: center; position: relative;
  width: 100%; text-align: left; cursor: pointer; transition: border-color .15s, background .15s;
}
.chauf:hover { border-color: var(--line-strong); }
.chauf.sel { border-color: var(--gold); background: #20242b; box-shadow: 0 0 0 1px var(--gold); }
.chauf .avatar { width: 58px; height: 58px; border-radius: 50%; flex: none; }
.chauf .cmain { flex: 1; min-width: 0; }
.chauf .cname { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.chauf .cveh { font-size: 13.5px; color: var(--slate); margin-top: 3px; }
.chauf .cmeta { font-size: 12.5px; color: var(--slate-dim); margin-top: 7px; display: flex; gap: 10px; align-items: center; }
.chauf .cmeta .star { color: var(--champagne); font-weight: 700; }
.chauf .cright { text-align: right; flex: none; }
.chauf .price { font-size: 18px; font-weight: 700; }
.chauf .eta { font-size: 12.5px; color: var(--slate); margin-top: 4px; }

.badge { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.badge.star { background: rgba(185,154,91,0.18); color: var(--champagne); border: 1px solid var(--line-strong); }
.badge.eta { background: rgba(62,154,111,0.16); color: var(--green); }
.badge.exec { background: rgba(138,146,156,0.16); color: var(--slate); }

.pillrow { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { font-size: 12.5px; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); color: var(--champagne); border: 1px solid var(--line); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.pill.on { background: var(--champagne); color: #1b1407; border-color: var(--champagne); font-weight: 700; }

/* CTA buttons */
.cta { margin-top: auto; padding: 16px 0 22px; flex: none; }
.btn {
  width: 100%; border: 0; border-radius: 16px; padding: 17px;
  font-family: var(--sans); font-size: 16.5px; font-weight: 700; letter-spacing: 0.01em;
  white-space: nowrap;
  background: var(--champagne); color: #1b1407;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--champagne); border: 1px solid var(--line-strong); }
.btn.ghost:hover { background: rgba(216,194,157,0.07); }
.btn.green { background: var(--green); color: #04140d; }
.btn.danger { background: transparent; color: var(--red); border: 1px solid rgba(200,101,78,0.4); }

/* map */
.map { position: relative; flex: 1; min-height: 0; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 10%, #1a2026 0%, #0e1216 60%, #0a0d10 100%); }
.map-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.map .pin { z-index: 6; }
.map .map-sheet, .map .route-line { z-index: 4; }
.map .road { position: absolute; background: rgba(216,194,157,0.10); }
.map .road.r1 { width: 200%; height: 2px; top: 32%; left: -50%; transform: rotate(-12deg); }
.map .road.r2 { width: 200%; height: 2px; top: 64%; left: -50%; transform: rotate(7deg); }
.map .road.r3 { width: 2px; height: 200%; left: 58%; top: -50%; transform: rotate(9deg); }
.map .road.water { height: 38%; width: 130%; bottom: -6%; left: -10%; background: linear-gradient(180deg, rgba(46,125,91,0.10), rgba(46,125,91,0.03)); transform: rotate(-4deg); }
.pin { position: absolute; width: 40px; height: 40px; transform: translate(-50%,-50%); transition: left 1s ease, top 1s ease; }
.pin .ring { width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--champagne); background: rgba(216,194,157,0.12); display:flex; align-items:center; justify-content:center; overflow: hidden; }
.pin.me .ring { border-color: var(--green); background: rgba(62,154,111,0.2); }
.pin .ring img { width: 100%; height: 100%; object-fit: cover; }
.pin .tag { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); background: var(--black); border:1px solid var(--line); color: var(--cream); font-size: 11px; font-weight:700; padding: 3px 8px; border-radius: 8px; white-space: nowrap; }
.route-line { position: absolute; height: 3px; background: linear-gradient(90deg, var(--champagne), var(--green)); border-radius: 3px; transform-origin: left center; opacity: 0.55; z-index: 1; }

.map-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(15,19,24,0), var(--black) 22%); padding: 50px 20px 20px; }

/* profile */
.prof-hero { position: relative; height: 200px; margin: -6px -20px 0; flex: none; }
.prof-card { background: var(--surface); border:1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin-top: 14px; }
.kv { display: flex; justify-content: space-between; font-size: 14.5px; padding: 8px 0; }
.kv + .kv { border-top: 1px solid var(--line); }
.kv .k { color: var(--slate); }
.kv .v { color: var(--cream); font-weight: 600; text-align: right; }
.quote-line { font-family: var(--serif); font-style: italic; line-height: 1.45; color: var(--champagne); }

/* image placeholder + photo */
.imgph { position: relative; overflow: hidden; background: var(--surface); isolation: isolate; }
.imgph::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(216,194,157,0.05) 0 14px, rgba(216,194,157,0.10) 14px 28px);
}
.imgph .lbl {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px; letter-spacing: 0.06em; color: var(--slate-dim); padding: 10px;
}
.imgph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.imgph.mono .lbl { font-family: var(--serif); font-size: 1.6em; letter-spacing: 0; color: var(--champagne); }

/* rating + options */
.stars-rate { display: flex; gap: 10px; font-size: 40px; justify-content: center; }
.stars-rate button { background: transparent; border: 0; color: var(--slate-dim); font-size: 40px; line-height: 1; transition: color .12s, transform .1s; }
.stars-rate button.lit { color: var(--gold); }
.stars-rate button:hover { transform: scale(1.12); }
.big-q { font-size: 22px; font-weight: 700; text-align: center; line-height: 1.3; }

.opt { display: flex; align-items: center; gap: 13px; background: var(--surface); border:1px solid var(--line); border-radius: 14px; padding: 14px 15px; font-size: 15px; width: 100%; text-align: left; cursor: pointer; }
.opt.on { border-color: var(--gold); background: #20242b; }
.opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--slate); flex: none; }
.opt.on .radio { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 0 42%, transparent 48%); }
.opt .ot { font-weight: 600; }

/* all-stars list */
.as-item { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 13px; display: flex; gap: 13px; align-items: center; }
.as-item .avatar { width: 54px; height: 54px; border-radius: 50%; flex: none; }
.as-item .asm { flex: 1; min-width: 0; }
.as-item .asn { font-size: 16.5px; font-weight: 700; }
.as-item .asv { font-size: 13px; color: var(--slate); margin-top: 2px; }
.as-item .asw { font-size: 12px; color: var(--champagne); margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; }
.as-item .req { font-size: 13px; font-weight: 700; color: var(--champagne); border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 14px; flex: none; background: transparent; }
.as-item .req:hover { background: rgba(216,194,157,0.08); }

/* generic value tiles */
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.tile { background: var(--surface); border:1px solid var(--line); border-radius: 16px; padding: 14px; }
.tile .tl { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-dim); }
.tile .tv { font-size: 26px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile .tv small { font-size: 14px; color: var(--slate); font-weight: 600; }

.zone { display: flex; align-items: center; gap: 12px; padding: 13px 0; }
.zone + .zone { border-top: 1px solid var(--line); }
.zone .heat { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.zone .zn { font-size: 15.5px; font-weight: 600; flex: 1; }
.zone .zd { font-size: 12.5px; color: var(--slate); }
.heat.hi { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.heat.med { background: rgba(185,154,91,0.55); }
.heat.low { background: rgba(138,146,156,0.5); }

.toggle { width: 50px; height: 30px; border-radius: 999px; background: var(--slate-dim); position: relative; flex: none; border: 0; transition: background .2s; }
.toggle.on { background: var(--green); }
.toggle::after { content:""; position:absolute; top:3px; left:3px; width:24px; height:24px; border-radius:50%; background:#fff; transition: left .2s; }
.toggle.on::after { left: 23px; }

.earn-row { display: flex; justify-content: space-between; font-size: 15px; padding: 11px 0; }
.earn-row + .earn-row { border-top: 1px solid var(--line); }
.earn-row.tot { font-size: 17px; font-weight: 700; color: var(--champagne); }
.earn-row .neg { color: var(--slate); }

.notice { font-size: 12.5px; color: var(--slate-dim); line-height: 1.45; display: flex; gap: 9px; align-items: flex-start; margin-top: 14px; }
.notice .lk { color: var(--gold); flex: none; }

.offer-amt { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.offer-amt small { font-size: 16px; color: var(--slate); font-weight: 600; letter-spacing: 0; }
.offer-line { display: flex; align-items: center; gap: 11px; font-size: 14.5px; padding: 9px 0; }
.offer-line .ic { color: var(--champagne); flex: none; width: 18px; text-align: center; }

/* generic centered hero block in screen */
.center-hero { text-align: center; }

/* chat */
.chat-thread { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 12px; }
.bubble { max-width: 80%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; }
.bubble.them { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble.me { align-self: flex-end; background: var(--champagne); color: #1b1407; border-bottom-right-radius: 5px; }
.bubble .b-time { display: block; font-size: 10.5px; color: var(--slate-dim); margin-top: 5px; letter-spacing: 0.04em; }
.bubble.me .b-time { color: rgba(27,20,7,0.55); }
.chat-quick { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 0; }
.chat-quick button { font-size: 13px; padding: 8px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--champagne); }
.chat-input { display: flex; gap: 10px; align-items: center; padding: 10px 0 20px; flex: none; }
.chat-input input { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; color: var(--cream); font-family: var(--sans); font-size: 14.5px; outline: none; }
.chat-input input:focus { border-color: var(--line-strong); }
.chat-input .send { width: 46px; height: 46px; border-radius: 50%; background: var(--champagne); color: #1b1407; border: 0; font-size: 18px; flex: none; }

/* receipt */
.receipt { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.receipt .rc-h { display: flex; justify-content: space-between; align-items: baseline; }
.receipt .rc-tot { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; }

/* payment method rows */
.pay-row { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; width: 100%; text-align: left; cursor: pointer; }
.pay-row.on { border-color: var(--gold); }
.pay-row .pm-ic { width: 42px; height: 30px; border-radius: 6px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex: none; border: 1px solid var(--line); letter-spacing: 0.02em; }
.pay-row .pm-name { font-size: 15px; font-weight: 600; flex: 1; }
.pay-row .pm-check { color: var(--gold); font-size: 18px; }

/* generic toast pop */
.toast {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px);
  background: var(--black); border: 1px solid var(--line-strong); color: var(--cream);
  padding: 12px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; gap: 9px; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 80; white-space: nowrap;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.7);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .t-ic { color: var(--gold); }

/* spinner for searching */
.spinner { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gold); animation: spin 0.9s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* fade/slide screen transition — visible state is the base; we only
   animate the entrance, so throttled/no-anim contexts still show content. */
@media (prefers-reduced-motion: no-preference) {
  .screen-fade { animation: scrIn .32s ease; }
}
@keyframes scrIn { from { transform: translateY(7px); } to { transform: none; } }

/* small helper text */
.hint { font-size: 12.5px; color: var(--slate-dim); line-height: 1.5; }
.muted { color: var(--slate); }
.center { text-align: center; }

/* ============================================================
   ONBOARDING
   ============================================================ */
.onb { flex: 1; display: flex; flex-direction: column; padding: 0 26px; }
.onb-hero { flex: 1; min-height: 0; margin: 6px -26px 0; position: relative; }
.onb-hero .ovl { position: absolute; inset: 0; z-index: 3; background: linear-gradient(180deg, rgba(11,13,16,0.1) 30%, var(--black) 96%); }
.onb-body { padding: 0 0 8px; position: relative; z-index: 4; margin-top: -90px; }
.onb h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; margin: 0; }
.onb p { font-size: 15px; color: var(--slate); line-height: 1.5; margin: 12px 0 0; }
.field { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; margin-top: 12px; }
.field label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate-dim); }
.field input { width: 100%; background: transparent; border: 0; outline: none; color: var(--cream); font-family: var(--sans); font-size: 16px; font-weight: 600; margin-top: 5px; }
.dots { display: flex; gap: 7px; justify-content: center; padding: 14px 0; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.dots i.on { background: var(--gold); width: 22px; border-radius: 4px; }

/* ============================================================
   OPS CONSOLE (full-width panel)
   ============================================================ */
.ops-wrap { width: 100%; max-width: 1320px; height: 100%; max-height: 760px; display: flex; flex-direction: column; }
.ops { display: flex; flex-direction: column; background: #13161b; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; flex: 1; min-height: 0; box-shadow: 0 40px 80px -40px rgba(0,0,0,0.7); }
.ops-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 26px; border-bottom: 1px solid var(--line); background: #171b21; flex: none; }
.ops-bar .lhs { display: flex; align-items: center; gap: 14px; }
.ops-bar .dotlive { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(62,154,111,0.2); }
.ops-bar .ttl { font-size: 16px; font-weight: 700; letter-spacing: 0.04em; }
.ops-bar .meta { font-size: 13px; color: var(--slate); }
.ops-stats { display: grid; grid-template-columns: repeat(5,1fr); background: var(--line); gap: 1px; border-bottom: 1px solid var(--line); flex: none; }
.ops-stat { background: #13161b; padding: 16px 24px; }
.ops-stat .l { font-size: 13px; color: var(--slate); }
.ops-stat .v { font-size: 30px; font-weight: 700; margin-top: 5px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ops-stat .v.alert { color: var(--gold); }
.ops-stat .v.good { color: var(--green); }
.ops-body { display: grid; grid-template-columns: 1.05fr 1fr; flex: 1; min-height: 0; }
.ops-col { padding: 22px 26px; min-height: 0; overflow-y: auto; }
.ops-col + .ops-col { border-left: 1px solid var(--line); background: #15191f; }
.ops-col::-webkit-scrollbar { width: 0; }
.ops-col { scrollbar-width: none; }
.ops-h { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-dim); margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.res-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: #171b21; cursor: pointer; transition: border-color .15s; }
.res-row:hover { border-color: var(--line-strong); }
.res-row + .res-row { margin-top: 9px; }
.res-row.flag { border-color: var(--gold); background: rgba(185,154,91,0.09); }
.res-row.active { border-color: var(--green); background: rgba(62,154,111,0.08); }
.res-row .rt { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; width: 64px; flex: none; }
.res-row .who { flex: 1; min-width: 0; }
.res-row .who .n { font-size: 16px; font-weight: 600; }
.res-row .who .s { font-size: 13px; color: var(--slate); margin-top: 3px; }
.res-row .rst { font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; flex: none; }
.rst.ok { background: rgba(62,154,111,0.16); color: var(--green); }
.rst.warn { background: rgba(185,154,91,0.2); color: var(--gold); }
.rst.enr { background: rgba(138,146,156,0.16); color: var(--slate); }
.rst.live { background: rgba(62,154,111,0.22); color: var(--green); }
.alert-banner { display: flex; gap: 14px; align-items: flex-start; background: rgba(185,154,91,0.12); border: 1px solid var(--line-strong); border-radius: 14px; padding: 16px 18px; }
.alert-banner .ab-ic { font-size: 20px; flex: none; }
.alert-banner .ab-t { font-size: 16px; font-weight: 700; color: var(--champagne); }
.alert-banner .ab-s { font-size: 13.5px; color: var(--slate); margin-top: 4px; line-height: 1.4; }
.timeline { margin: 18px 0; }
.tl-item { display: flex; gap: 14px; padding: 10px 0; }
.tl-item .tl-dot { width: 22px; height: 22px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.tl-dot.done { background: var(--green); color: #04140d; }
.tl-dot.now { background: var(--gold); color: #1b1407; }
.tl-dot.todo { background: var(--surface-2); color: var(--slate-dim); border: 1px solid var(--line); }
.tl-item .tl-txt { font-size: 14px; line-height: 1.4; }
.tl-item .tl-txt .when { color: var(--slate-dim); font-size: 12px; }
.ops-actions { display: flex; gap: 10px; margin-top: 8px; }
.ops-btn { flex: 1; text-align: center; font-size: 13.5px; font-weight: 700; padding: 13px; border-radius: 12px; border: 1px solid var(--line-strong); color: var(--champagne); background: transparent; }
.ops-btn:hover { background: rgba(216,194,157,0.07); }
.ops-btn.primary { background: var(--champagne); color: #1b1407; border-color: var(--champagne); }
.ops-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.ops-empty { color: var(--slate-dim); font-size: 14px; text-align: center; padding: 30px 0; line-height: 1.5; }

/* responsive scaling is handled in JS (sets --pscale) so it works
   on any viewport height. */

/* ============================================================
   FRONT-DOOR GATE (passphrase — matches the pitch deck)
   ============================================================ */
.gate {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; padding: 30px;
  background: radial-gradient(120% 90% at 50% 18%, #14171c, #0B0D10 72%);
}
.gate-card {
  width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 8px;
}
.gate-card.shake { animation: gshake .42s cubic-bezier(.36,.07,.19,.97); }
@keyframes gshake { 10%,90%{transform:translateX(-1px)} 20%,80%{transform:translateX(2px)} 30%,50%,70%{transform:translateX(-5px)} 40%,60%{transform:translateX(5px)} }
.gate-wm { font-weight: 600; letter-spacing: 0.4em; text-transform: uppercase; font-size: 22px; color: var(--cream); }
.gate-wm b { color: var(--gold); font-weight: 600; }
.gate-rule { width: 46px; height: 1px; background: var(--line-strong); margin: 26px 0; }
.gate-sub { font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--slate-dim); }
.gate-form { margin-top: 38px; display: flex; gap: 10px; width: 100%; }
.gate-form input {
  flex: 1; background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 16px 18px; color: var(--cream); font-family: var(--sans); font-size: 16px; outline: none;
}
.gate-form input::placeholder { color: var(--slate-dim); letter-spacing: 0.04em; }
.gate-form input:focus { border-color: var(--gold); background: rgba(255,255,255,0.06); }
.gate-form button { background: var(--champagne); color: #1b1407; border: 0; border-radius: 12px; padding: 0 26px; font-family: var(--sans); font-weight: 700; font-size: 16px; }
.gate-form button:hover { filter: brightness(1.05); }
.gate-err { margin-top: 20px; font-size: 14px; letter-spacing: 0.04em; color: #cf8079; opacity: 0; transition: opacity .2s; }
.gate-err.show { opacity: 1; }

/* ============================================================
   APP SIGN-IN (rider in-app login — renders inside the phone)
   ============================================================ */
.login { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.login-hero { position: absolute; inset: 0; z-index: 0; }
.login-hero img { width: 100%; height: 100%; object-fit: cover; }
.login-hero .ovl { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,16,0.32) 0%, rgba(11,13,16,0.34) 26%, rgba(11,13,16,0.86) 78%, var(--black) 100%); }
.login-body { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; justify-content: center; padding: 30px; }
.login-card {
  width: 100%; max-width: 410px;
  background: rgba(20,24,29,0.78); backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: 22px;
  padding: 34px 30px 26px;
  box-shadow: 0 50px 110px -40px rgba(0,0,0,0.85);
  display: flex; flex-direction: column;
}
.login-wm { font-weight: 600; letter-spacing: 0.36em; text-transform: uppercase; font-size: 15px; color: var(--cream); }
.login-wm b { color: var(--gold); font-weight: 600; }
.login-tag { font-size: 13.5px; color: var(--slate); margin-top: 10px; }
.login-card h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 22px 0 8px; }
.login-note { font-size: 12px; color: var(--slate-dim); line-height: 1.5; margin-top: 16px; text-align: center; }

/* ============================================================
   MOBILE TOP BAR (replaces desktop topbar on phones)
   ============================================================ */
.mtop {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: 50px; padding: 0 12px;
  padding-top: env(safe-area-inset-top);
  height: calc(50px + env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
  background: rgba(11,13,16,0.92); backdrop-filter: blur(12px);
  position: relative; z-index: 50;
}
.mtop .wm { font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; font-size: 13px; color: var(--cream); }
.mtop .wm b { color: var(--gold); }
.mtop .m-back { background: transparent; border: 0; color: var(--champagne); font-size: 14px; font-weight: 700; letter-spacing: 0.02em; padding: 6px 2px; flex: none; white-space: nowrap; line-height: 1; }
.mtop .btn-reset { padding: 7px 11px; font-size: 12px; }
.switcher.mini { padding: 3px; gap: 3px; flex: 1; max-width: 280px; justify-content: center; }
.switcher.mini button { padding: 7px 12px; font-size: 12.5px; }

/* ============================================================
   MOBILE: apps run full-bleed, native feel
   ============================================================ */
@media (max-width: 1100px) {
  body { overflow: hidden; }
  .login { height: 100dvh; }

  .stage { padding: 0; align-items: stretch; justify-content: stretch; }

  /* drop the device bezel — the app fills the screen */
  .phone { width: 100%; height: 100%; padding: 0; border-radius: 0; box-shadow: none; transform: none !important; }
  .screen { border-radius: 0; }
  .island { display: none; }
  /* the fake status bar is redundant with the mobile chrome + real OS bar */
  .statusbar { display: none; }

  .tabbar { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }

  /* hub / chooser stacks and scrolls */
  .stage > .hub { align-self: stretch; height: 100%; overflow-y: auto; padding: 28px 20px 36px; max-width: none; }
  .hub h1 { font-size: 34px; }
  .hub .sub { font-size: 15.5px; margin-top: 14px; }
  .hub-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .hub-card { padding: 22px 22px; }
  .founder-grid { grid-template-columns: 1fr; gap: 14px; }
  .founder-zone { margin-top: 36px; }
  .hub-foot { margin-top: 26px; }

  /* pitch-deck card stacks: image on top, text below */
  .deck-card { grid-template-columns: 1fr; }
  .deck-thumb { min-height: 120px; }
  .deck-thumb::after { background: linear-gradient(180deg, rgba(27,31,37,0) 55%, var(--surface) 100%); }
  .deck-meta { padding: 18px 22px 22px; }

  /* ops console becomes a single scrolling column */
  .ops-wrap { max-width: none; height: 100%; max-height: none; }
  .ops { border-radius: 0; border: 0; border-top: 1px solid var(--line); }
  .ops-bar { padding: 13px 16px; flex-wrap: wrap; gap: 6px; }
  .ops-bar .meta { font-size: 12px; }
  .ops-stats { grid-template-columns: repeat(2, 1fr); }
  .ops-stat { padding: 13px 16px; }
  .ops-stat .v { font-size: 24px; }
  .ops-body { grid-template-columns: 1fr; }
  .ops-col { padding: 18px 16px; }
  .ops-col + .ops-col { border-left: 0; border-top: 1px solid var(--line); }

  /* login fills, card sits lower like a native sign-in */
  .login-body { align-items: flex-end; padding: 24px 18px calc(28px + env(safe-area-inset-bottom)); }
  .login-card { max-width: none; background: rgba(15,18,22,0.82); }

  /* ribbon compact */
  .ribbon { gap: 10px; padding: 0 14px; height: 44px; }
  .ribbon .r-label { display: none; }
  .ribbon .r-status { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
  .ribbon .r-jump { flex: none; }
}

/* very wide ops on desktop already handled; tablet between 760-1100 keeps phone bezel */
