/* MultiHelp Center — one stylesheet, no build step. */

:root {
  --bg: #0b0f1a;
  --bg-soft: #121829;
  --panel: #151c30;
  --line: #26304a;
  --ink: #eaf0ff;
  --muted: #9aa7c7;
  --brand: #5b6bff;
  --brand-ink: #ffffff;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(2, 6, 23, 0.45);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; overflow-x: hidden; }

body {
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(91, 107, 255, 0.20), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(34, 197, 94, 0.10), transparent 55%),
    var(--bg);
  color: var(--ink);
  font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: #aeb8ff; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .7rem; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hidden { display: none !important; }

.wrap { width: min(1080px, 100%); margin: 0 auto; padding: 1.6rem 1.1rem 4rem; }
.wrap.narrow { width: min(520px, 100%); }
.page-title { margin: .2rem 0 1.2rem; }

/* ------------------------------------------------------------------ nav */

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 15, 26, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  width: min(1080px, 100%); margin: 0 auto; padding: .7rem 1.1rem;
  display: flex; align-items: center; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #22d3ee);
  box-shadow: 0 0 0 4px rgba(91, 107, 255, .18);
}
.nav-links { margin-left: auto; display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.nav-links .who { color: var(--muted); font-size: .88rem; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 1px solid transparent; border-radius: 10px;
  padding: .6rem 1rem; font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .38rem .7rem; font-size: .85rem; border-radius: 8px; }
.btn-primary { background: linear-gradient(180deg, #6b78ff, var(--brand)); color: var(--brand-ink); box-shadow: 0 6px 18px rgba(91,107,255,.28); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: rgba(255,255,255,.05); }
.btn-danger { background: linear-gradient(180deg, #f87171, var(--danger)); color: #fff; }
.btn-dark { background: var(--bg-soft); border-color: var(--line); color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------------------------------------------------------------- panel */

.panel {
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent), var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.2rem; margin: 0 0 1.1rem; box-shadow: var(--shadow);
}
.panel-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .7rem; }
.panel-head h2 { margin: 0; }
.panel-head .muted { margin: 0; flex: 1 1 260px; }

.flash {
  border-radius: 10px; padding: .6rem .8rem; margin: .6rem 0;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: .92rem;
}
.flash-err { border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.10); color: #fecaca; }
.flash-ok { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.10); color: #bbf7d0; }

.tag { font-size: .76rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; letter-spacing: .02em; }
.tag-ok { background: rgba(34,197,94,.16); color: #86efac; border: 1px solid rgba(34,197,94,.35); }
.tag-off { background: rgba(148,163,184,.14); color: #cbd5e1; border: 1px solid rgba(148,163,184,.3); }
.tag-warn { background: rgba(245,158,11,.16); color: #fcd34d; border: 1px solid rgba(245,158,11,.35); }

/* --------------------------------------------------------------- landing */

.hero { padding: 2.4rem 0 1.4rem; }
.pill {
  display: inline-block; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  color: #c7d2fe; background: rgba(91,107,255,.14); border: 1px solid rgba(91,107,255,.35);
  padding: .25rem .7rem; border-radius: 999px; margin-bottom: .9rem;
}
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.lede { color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
.hero-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1.4rem 0; }
.card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.card h3 { color: #cdd6f4; }

.plan-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.plan { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .45rem; }
.plan .price { font-size: 1.6rem; font-weight: 700; margin: 0; }
.plan .price span { font-size: .8rem; font-weight: 500; color: var(--muted); margin-left: .3rem; }
.plan .btn { margin-top: auto; }

.providers { display: flex; flex-wrap: wrap; gap: .6rem; }
.prov {
  display: inline-flex; align-items: center; gap: .55rem;
  border: 1px solid var(--line); border-radius: 10px; padding: .62rem .9rem;
  background: var(--bg-soft); color: var(--ink); font-weight: 600;
}
.prov:hover { border-color: var(--accent, var(--brand)); text-decoration: none; }
.prov-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent, var(--brand)); }

.rule { text-align: center; color: var(--muted); position: relative; margin: 1.2rem 0; }
.rule::before { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px solid var(--line); }
.rule span { position: relative; background: var(--panel); padding: 0 .6rem; font-size: .8rem; }

/* ---------------------------------------------------------------- forms */

.form { display: flex; flex-direction: column; gap: .8rem; }
.form label, .field { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="datetime-local"], select, textarea {
  width: 100%; background: #0d1424; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: .62rem .75rem; font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(91,107,255,.45); border-color: var(--brand); }
.row-form { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.row-form input[type="datetime-local"] { width: auto; }

/* --------------------------------------------------------------- tables */

.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap .table { min-width: 560px; }
.empty { color: var(--muted); padding: .8rem 0; }

/* --------------------------------------------------------- wallet totals */

.balance-grid {
  display: grid; gap: .6rem; margin: .9rem 0;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.balance {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 11px;
  padding: .7rem .8rem; display: flex; flex-direction: column; gap: .25rem;
}
.balance-n { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
#funds-refresh { margin-left: auto; }

/* ------------------------------------------------------------ slot grid */

.slots { display: grid; gap: .45rem; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); margin-top: .8rem; }
.day-label { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin: .5rem 0 .1rem; }
.slot {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 9px;
  color: var(--ink); padding: .45rem .5rem; font: inherit; font-size: .88rem; cursor: pointer;
}
.slot:hover { border-color: var(--brand); }
.slot.is-on { background: linear-gradient(180deg, #6b78ff, var(--brand)); border-color: var(--brand); color: #fff; }

/* --------------------------------------------------------------- stats */

.stat-row { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 1.1rem; }
.stat { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; }
.stat-n { display: block; font-size: 1.45rem; font-weight: 700; }
.stat-l { display: block; color: var(--muted); font-size: .78rem; }

.tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-left: auto; }
.tab { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: .3rem .75rem; font: inherit; font-size: .84rem; cursor: pointer; }
.tab.is-on { background: rgba(91,107,255,.16); border-color: var(--brand); color: var(--ink); }

/* ----------------------------------------------------------------- room */

.room {
  min-height: 100vh; display: grid; gap: .7rem; padding: .7rem;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr;
}
.room-bar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.room-id { display: flex; align-items: center; gap: .6rem; }
.room-id small { display: block; color: var(--muted); font-size: .8rem; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px rgba(245,158,11,.18); }
.live-dot.is-live { background: var(--ok); box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.room-clock { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 1.05rem; }
.room-actions { display: flex; gap: .4rem; }
/* Desk only: how the meeting ended, next to the Leave button. */
.room-outcome { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); }
.room-outcome select { width: auto; padding: .35rem .5rem; font-size: .82rem; }

.stage {
  position: relative; background: #05070f; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; min-height: 58vh;
  display: flex; align-items: center; justify-content: center;
}
.tile { width: 100%; height: 100%; object-fit: cover; background: #05070f; }
.tile-remote { position: absolute; inset: 0; }
.tile-local {
  position: absolute; right: .8rem; bottom: .8rem; width: min(26vw, 260px); aspect-ratio: 4 / 3;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: #0a0f1c;
}
.tile-local video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-label { position: absolute; left: .45rem; bottom: .35rem; font-size: .72rem; color: #cbd5e1; text-shadow: 0 1px 3px #000; }
.stage-note {
  position: relative; z-index: 2; text-align: center; padding: 1.2rem;
  background: rgba(5,7,15,.72); border-radius: 12px; max-width: 34ch;
}
.stage-note.is-hidden { display: none; }
.tile-local.is-off { display: none; }

.side {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem; display: flex; flex-direction: column; gap: .6rem; max-height: 40vh;
}
.side header { display: flex; align-items: center; justify-content: space-between; }
.side-log { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: .45rem; font-size: .9rem; }
.side-log .note { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 9px; padding: .45rem .6rem; }
.side-log .note b { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; }
.side-form { display: flex; gap: .4rem; }

.room-controls { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; padding: .2rem 0 .4rem; }
.ctl {
  display: inline-flex; flex-direction: column; align-items: center; gap: .1rem;
  min-width: 72px; padding: .5rem .7rem; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink);
  font: inherit; font-size: .74rem; cursor: pointer;
}
.ctl:hover { border-color: var(--brand); }
.ctl-ico { font-size: 1.05rem; line-height: 1; }
.ctl[aria-pressed="false"] { color: var(--danger); border-color: rgba(239,68,68,.5); }
.ctl-danger { background: var(--danger); border-color: var(--danger); color: #fff; }

@media (min-width: 900px) {
  .room { grid-template-columns: 1fr 300px; grid-template-areas: "bar bar" "stage side" "controls controls"; }
  .room-bar { grid-area: bar; }
  .stage { grid-area: stage; }
  .side { grid-area: side; max-height: none; }
  .room-controls { grid-area: controls; }
  .side[hidden] { display: none; }
}

/* ---------------------------------------------------------- bench / teams */

.notice {
  border: 1px solid rgba(91,107,255,.35); background: rgba(91,107,255,.10);
  border-radius: 12px; padding: .8rem .95rem; margin: .3rem 0 1rem;
  font-size: .92rem; color: #dbe0ff;
}

.bench-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .9rem; }

/* The whole bench is the recommended path, so its shortcut reads as the main
   action on this panel and stretches the width of the grid rather than sitting
   quietly beside a Clear button. */
.bench-actions .btn-all { flex: 1 1 320px; padding: .75rem 1.1rem; font-size: 1rem; }

/* Live tally under the grid: one line per team, then the running total. */
.bench-tally {
  margin-top: .9rem; padding: .8rem .95rem;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
}
.tally-rows { display: flex; flex-direction: column; gap: .3rem; }
.tally-rows p { margin: 0; }
.tally-row { display: flex; align-items: baseline; gap: .6rem; font-size: .92rem; }
.tally-row .tally-name { flex: 1 1 auto; min-width: 0; }
.tally-row .tally-price { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tally-row.is-carried .tally-name { color: var(--muted); }
.tally-row.is-carried .tally-price { color: var(--ok); }
.tally-sum {
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
  margin-top: .65rem; padding-top: .6rem; border-top: 1px solid var(--line);
}
.tally-sum .tally-n {
  display: inline-block; margin-left: auto;
  font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
/* A short flash on each change, so the eye catches the sum climbing. */
.tally-sum .tally-n.is-bump { animation: tally-bump .5s ease; }
@keyframes tally-bump {
  0% { color: var(--brand); transform: scale(1.12); }
  100% { color: var(--ink); transform: scale(1); }
}

/* ------------------------------------------------------ wallet picker */

/* Every coin mark is inlined once as a sprite and drawn through <use>, so the
   picker shows real logos without a request per row. */
.coin-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.coin-pick { position: relative; }
.coin-btn {
  display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left;
  background: #0d1424; color: var(--ink); font: inherit;
  border: 1px solid var(--line); border-radius: 10px;
  padding: .5rem .7rem; cursor: pointer;
}
.coin-btn:hover { border-color: #37416a; }
.coin-btn[aria-expanded="true"] { border-color: var(--brand); }
.coin-text { display: flex; flex-direction: column; gap: .05rem; min-width: 0; flex: 1 1 auto; }
.coin-name { font-weight: 600; }
.coin-sub { font-size: .78rem; color: var(--muted); }
.coin-ico { width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; }
.coin-ico-none {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px dashed var(--line);
  font-size: .72rem; color: var(--muted);
}
.coin-caret {
  width: .45rem; height: .45rem; flex: 0 0 auto; margin-left: .2rem;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s ease;
}
.coin-btn[aria-expanded="true"] .coin-caret { transform: rotate(-135deg) translate(-2px, -2px); }

.coin-menu {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + .35rem);
  max-height: 19rem; overflow-y: auto;
  background: #101728; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: .35rem;
  display: flex; flex-direction: column; gap: .1rem;
}
.coin-group {
  margin: .5rem .55rem .2rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.coin-group:first-child { margin-top: .1rem; }
.coin-opt {
  display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left;
  background: transparent; border: 0; border-radius: 9px; padding: .45rem .5rem;
  color: var(--ink); font: inherit; cursor: pointer;
}
.coin-opt:hover, .coin-opt:focus-visible { background: rgba(91,107,255,.14); }
.coin-opt.is-on { background: rgba(91,107,255,.22); }

/* The grid is a set of choices, not a price list, so the step is spelled out
   right above it rather than left for the visitor to guess. */
.bench-step {
  display: flex; flex-direction: column; gap: .2rem;
  margin: .1rem 0 .85rem; padding: .65rem .85rem;
  border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0;
  background: rgba(91,107,255,.07);
}
.bench-step p { margin: 0; }
.bench-step-title { font-weight: 700; font-size: 1rem; }

.bench-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.team {
  position: relative; display: flex; flex-direction: column; gap: .4rem;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.05rem; cursor: pointer; transition: border-color .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.team:hover { border-color: #47548a; }
.team:hover .team-tick { border-color: var(--brand); }
.team.is-on { border-color: var(--brand); background: rgba(91,107,255,.10); box-shadow: 0 0 0 1px rgba(91,107,255,.35) inset; }
/* Locked, but not silent: the card cannot be tapped on yet and says why when
   it is tapped, so the cursor invites the question rather than forbidding it. */
.team.is-locked { opacity: .55; cursor: help; }
.team .team-box { position: absolute; opacity: 0; pointer-events: none; }

.team-head { display: flex; align-items: center; gap: .55rem; }
.team-name { font-weight: 700; font-size: 1rem; }
.team-price { margin-left: auto; font-weight: 700; color: #cdd6f4; font-variant-numeric: tabular-nums; }
.team-summary { color: var(--muted); font-size: .89rem; }
.team-details { font-size: .82rem; }

/* A real tick box, so the card reads as something to select rather than a
   block of text, and it fills in the moment the team is on the bench. */
.team-tick {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 21px; height: 21px; border-radius: 6px;
  border: 2px solid #47548a; background: transparent;
  transition: background .15s ease, border-color .15s ease;
}
.team-tick::after {
  content: ''; width: .3rem; height: .55rem; margin-top: -.12rem;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg); opacity: 0;
}
.team.is-on .team-tick { background: var(--brand); border-color: var(--brand); }
.team.is-on .team-tick::after { opacity: 1; }
.team.is-locked .team-tick { border-style: dashed; border-color: var(--line); }

.team-foot { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.team-flag {
  font-size: .72rem; font-weight: 600;
  color: #fcd34d; background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.3); border-radius: 999px; padding: .18rem .55rem;
}
.team.is-on .team-flag { color: #bbf7d0; background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.3); }

/* The locked card's own answer when it is tapped: a notice on the card, not a
   line at the bottom of the page. Shares the amber lock tone of .team-flag so
   it reads as the same rule the chip already hints at. */
.team-note {
  display: block; margin-top: .35rem; padding: .5rem .65rem;
  font-size: .8rem; line-height: 1.35;
  color: #fcd34d; background: rgba(245,158,11,.10);
  border: 1px solid rgba(245,158,11,.3); border-radius: 8px;
}

/* The card's own state, worded as an instruction so the next tap is obvious. */
.team-pick {
  margin-left: auto; font-size: .72rem; font-weight: 700; white-space: nowrap;
  color: #c7d2fe; background: rgba(91,107,255,.16);
  border: 1px solid rgba(91,107,255,.4); border-radius: 999px; padding: .18rem .6rem;
}
.team-pick::after { content: 'Tap to add'; }
.team.is-on .team-pick { color: #bbf7d0; background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.35); }
.team.is-on .team-pick::after { content: '\2713\00a0On the bench'; }
.team.is-locked .team-pick { margin-left: auto; color: var(--muted); background: transparent; border-color: var(--line); }
.team.is-locked .team-pick::after { content: 'Whole bench only'; }

/* Pinned teams cannot be tapped off, so the chip states the rule rather than
   inviting a tap. */
.team.is-required .team-tick { cursor: default; }
.team.is-required .team-pick { color: #bbf7d0; background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.35); }
.team.is-required .team-pick::after { content: 'Always on the bench'; }

.bench-bar {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line);
}
.bench-total { display: flex; align-items: baseline; gap: .5rem; }
.bench-total-n { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bench-bar #slot-pick { flex: 1 1 200px; }
.bench-bar #slot-book { margin-left: auto; }

/* ------------------------------------------------------------- countdown */

.countdown-panel { padding: .9rem 1.1rem; }
.countdown-box { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.countdown {
  font-size: clamp(1.8rem, 6vw, 2.8rem); font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
  background: linear-gradient(90deg, #aeb8ff, #6b78ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.countdown-box .pill { margin-bottom: .2rem; }

/* ------------------------------------------------------- payout address */

/* The address is pasted, not typed, so the field and its Paste button sit on
   one line and the paste affordance is right where the cursor lands. */
.wallet-row { display: flex; align-items: stretch; gap: .5rem; margin-top: .6rem; }
.wallet-row input[type="text"] { flex: 1 1 auto; min-width: 0; }
.wallet-row #wallet-paste { flex: 0 0 auto; white-space: nowrap; }

/* What the sensor made of the address, said in place so the visitor learns
   before booking rather than after a refused one. */
.wallet-sense { margin: .45rem 0 0; font-size: .85rem; min-height: 1.1rem; }
.wallet-sense:empty { display: none; }
.wallet-sense.is-ok { color: #86efac; }
.wallet-sense.is-bad { color: #fca5a5; }
.wallet-sense.is-wait { color: var(--muted); }
.wallet-sense.is-advise { color: #fcd34d; }

/* ----------------------------------------------------------------- modal */

.modal {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 1.1rem;
  background: rgba(3, 6, 15, .72); backdrop-filter: blur(3px);
}
.modal-card {
  width: min(440px, 100%);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.3rem 1.4rem 1.2rem;
}
.modal-card h3 { margin-bottom: .3rem; }
.modal-nums {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem;
  margin: .9rem 0 1rem;
}
.modal-nums > div {
  display: flex; flex-direction: column; gap: .15rem;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: .6rem .7rem;
}
.modal-n {
  font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.modal-nums .is-short { border-color: rgba(245,158,11,.45); background: rgba(245,158,11,.10); }
.modal-nums .is-short .modal-n { color: #fcd34d; }
.modal-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .3rem; }

/* -------------------------------------------------------------- checkout */

/* The bench, the money and one button: what was booked, what it costs, and
   the invoice itself. */
.pay-nums {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .6rem; margin: .9rem 0 0;
}
.pay-nums > div {
  display: flex; flex-direction: column; gap: .15rem;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: .6rem .7rem;
}
.pay-n { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pay-when { font-size: .95rem; }
.pay-teams { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .3rem; }
.pay-teams li {
  display: flex; justify-content: space-between; gap: .8rem;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 9px; padding: .45rem .6rem; font-size: .9rem;
}
.pay-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }

/* ----------------------------------------------------------------- lobby */

/* The counter, and the blank meeting behind it. The stage is deliberately
   empty: nothing is drawn until the room actually opens. */
.lobby-head { text-align: center; }
.lobby-head .panel-head { justify-content: center; }
.lobby-count {
  font-size: clamp(2rem, 8vw, 3.4rem); font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
  margin: .3rem 0 .1rem;
  background: linear-gradient(90deg, #aeb8ff, #6b78ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lobby-shell {
  margin-top: 1.1rem; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.lobby-stage {
  position: relative; background: #05070f;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; min-height: 46vh; padding: 1.2rem;
}
.lobby-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); width: min(720px, 100%); }
.lobby-tile {
  aspect-ratio: 4 / 3; border-radius: 12px; border: 1px solid var(--line);
  background: #0a0f1c; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .4rem;
}
.lobby-tile.is-blank { background: #080c16; border-style: dashed; }
.lobby-avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-weight: 700; color: var(--muted);
}
.lobby-name { font-size: .82rem; color: var(--muted); }
.lobby-blank { color: var(--muted); font-size: .85rem; margin: 0; }
.lobby-controls {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  flex-wrap: wrap; padding: .8rem; border-top: 1px solid var(--line);
}
.lobby-join.is-locked { opacity: .6; }
.lobby-msg { flex: 1 1 100%; text-align: center; margin: 0; min-height: 1.1rem; font-size: .85rem; color: var(--muted); }
.lobby-msg.is-warn { color: #fcd34d; }

/* --------------------------------------------------------------- deposit */

/* Pill status colours for deposits and wallet balances. */
.pill.is-ok { color: #86efac; background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.35); }
.pill.is-bad { color: #fca5a5; background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.35); }

/* The two deposit methods sit as a tab pair so the visitor picks one before
   the asset or amount. */
.kind-tabs { display: flex; gap: .5rem; margin: .6rem 0 .3rem; }
.kind-tabs .btn { flex: 1 1 0; }
.kind-tabs .btn.active {
  color: #c7d2fe; background: rgba(91,107,255,.16); border-color: rgba(91,107,255,.45);
}

/* Quick amount buttons beside the custom input. */
.amount-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .4rem; }
.amount-chips .btn { flex: 0 0 auto; }
.amount-chips .btn.active {
  color: #c7d2fe; background: rgba(91,107,255,.16); border-color: rgba(91,107,255,.45);
}

/* The deposit address and its copy affordance on one line. */
.address-row {
  display: flex; align-items: stretch; gap: .5rem; margin: .5rem 0;
}
.address-row code {
  flex: 1 1 auto; min-width: 0; overflow-x: auto; white-space: nowrap;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .55rem .7rem; font-size: .9rem; color: #e2e8f0;
}
.address-row #dep-copy { flex: 0 0 auto; white-space: nowrap; }

/* On-ramp provider grid: one column of buttons, each with an icon and a
   one-line blurb, so the visitor can pick the rail they trust. */
.onramp-grid { display: grid; gap: .5rem; margin-top: .6rem; }
.onramp-btn {
  display: flex; align-items: center; gap: .7rem;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .65rem .8rem; text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.onramp-btn:hover { border-color: #47548a; background: rgba(91,107,255,.06); }
.onramp-icon { width: 28px; height: 28px; flex: 0 0 auto; color: #c7d2fe; display: grid; place-items: center; }
.onramp-icon svg { width: 100%; height: 100%; }
.onramp-copy { display: flex; flex-direction: column; gap: .05rem; min-width: 0; }
.onramp-copy strong { font-size: .9rem; }
.onramp-copy small { font-size: .76rem; color: var(--muted); }

/* Deposit history rows. */
.dep-row {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  padding: .5rem 0; border-bottom: 1px solid var(--line);
}
.dep-row:last-child { border-bottom: 0; }
.dep-asset { font-weight: 700; min-width: 3rem; }
.dep-usd { color: var(--muted); }
.dep-credit { margin-left: auto; color: #86efac; font-weight: 600; }

/* ---- translator fee modal ---- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.7); backdrop-filter: blur(3px);
  padding: 1rem;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
  max-width: 26rem; width: 100%; text-align: center;
}
.modal-card h2 { margin: 0 0 .6rem; font-size: 1.2rem; }
.modal-card p { color: var(--muted); margin: 0 0 1rem; font-size: .9rem; line-height: 1.5; }
.modal-actions { display: flex; gap: .5rem; justify-content: center; }
.modal-status { margin: .8rem 0 0; font-size: .82rem; color: var(--muted); min-height: 1.1rem; }

/* ---- bench present (team chips in room) ---- */
.bench-present {
  padding: .6rem .8rem; border-bottom: 1px solid var(--line);
}
.bench-present h3 {
  margin: 0 0 .4rem; font-size: .76rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.team-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.team-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: .25rem .6rem;
  font-size: .78rem; font-weight: 600;
}
.team-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 4px rgba(74,222,128,.6);
}

/* ---- live meetings + team badges in admin ---- */
.live-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto auto;
  gap: .6rem; align-items: center;
  padding: .7rem 0; border-bottom: 1px solid var(--line);
}
.live-info { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.live-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-teams { display: flex; flex-wrap: wrap; gap: .25rem; max-width: 18rem; }
.live-actions { display: flex; gap: .35rem; flex-shrink: 0; }

@media (max-width: 720px) {
  .live-row { grid-template-columns: 1fr; gap: .4rem; }
  .live-teams { max-width: none; }
  .live-actions { flex-wrap: wrap; }
}
.team-badge {
  display: inline-block;
  background: var(--bg-soft, rgba(255,255,255,.06));
  border: 1px solid var(--line, rgba(255,255,255,.1));
  border-radius: 999px;
  padding: .1rem .45rem;
  font-size: .68rem; font-weight: 600;
  white-space: nowrap;
}
.team-badges { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: .25rem; }

/* ------------------------------------------------- global mobile fixes */

@media (max-width: 600px) {
  .wrap { padding: 1rem .8rem 3rem; }
  .wrap.narrow { padding: 1rem .8rem 3rem; }
  .panel { padding: .9rem .85rem; margin: 0 0 .9rem; border-radius: 12px; }
  .nav-in { padding: .55rem .8rem; gap: .6rem; }
  .nav-links { gap: .5rem; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.1rem; }
  .hero { padding: 1.4rem 0 .8rem; }
  .lede { font-size: .95rem; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .stat { padding: .6rem .65rem; }
  .stat-n { font-size: 1.15rem; }
  .bench-grid { grid-template-columns: 1fr; gap: .6rem; }
  .team { padding: .85rem .9rem; }
  .cards { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .balance-grid { grid-template-columns: repeat(2, 1fr); }
  .bench-bar { flex-direction: column; align-items: stretch; gap: .6rem; }
  .bench-bar #slot-book { margin-left: 0; }
  .bench-bar #slot-pick { flex: 1 1 auto; }
  .bench-actions .btn-all { flex: 1 1 auto; font-size: .9rem; }
  .room-bar { gap: .5rem; }
  .room-clock { font-size: .9rem; }
  .tile-local { width: min(32vw, 140px); }
  .room-controls { gap: .35rem; }
  .ctl { min-width: 60px; padding: .4rem .5rem; font-size: .7rem; }
  .modal { padding: .5rem; }
  .modal-card { padding: 1.1rem; border-radius: 12px; }
  .modal-nums { grid-template-columns: repeat(3, 1fr); gap: .35rem; }
  .modal-nums > div { padding: .4rem .45rem; }
  .pay-nums { grid-template-columns: 1fr; }
  .pay-teams li { flex-direction: column; gap: .15rem; align-items: flex-start; }
  .pay-actions { flex-direction: column; align-items: stretch; }
  .pay-actions .btn { width: 100%; }
  .lobby-stage { min-height: 36vh; padding: .8rem; }
  .lobby-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .lobby-tile { aspect-ratio: 4 / 3; }
  .lobby-controls { gap: .35rem; padding: .6rem; }
  .coin-menu { max-height: 14rem; }
  .kind-tabs { flex-direction: column; }
  .amount-chips .btn { flex: 1 1 calc(50% - .3rem); }
  .address-row { flex-direction: column; gap: .35rem; }
  .address-row #dep-copy { width: 100%; }
  .wallet-row { flex-direction: column; gap: .35rem; }
  .wallet-row #wallet-paste { width: 100%; }
  .dep-row { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .bench-tally { padding: .6rem .7rem; }
  .tally-sum .tally-n { font-size: 1.1rem; }
}

@media (max-width: 380px) {
  .stat-row { grid-template-columns: 1fr; }
  .balance-grid { grid-template-columns: 1fr; }
  .lobby-grid { grid-template-columns: 1fr; }
  .nav-links .who { display: none; }
  .hero h1 { font-size: 1.3rem; }
  .countdown { font-size: 1.5rem; }
  .lobby-count { font-size: 1.8rem; }
}


