/* Master H2O — black / gold / silver brand, with the H2O Cash note colours as accents */
:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --card: #151518;
  --card-2: #1b1b20;
  --line: rgba(212, 168, 67, .22);
  --line-2: rgba(255, 255, 255, .08);
  --text: #f1f1f3;
  --silver: #dcdce2;
  --muted: #9b9ba5;
  --gold: #d4a843;
  --gold-hi: #f3d47c;
  --gold-lo: #a2761f;
  --gold-grad: linear-gradient(135deg, #f6dc8f 0%, #d4a843 45%, #a2761f 100%);
  --silver-grad: linear-gradient(180deg, #ffffff 0%, #cfcfd6 55%, #9c9ca6 100%);

  /* H2O Cash notes */
  --n20-bg: #f0d9c2; --n20-ink: #6a3a1a; --n20: #c48a5a;
  --n50-bg: #dfe8cf; --n50-ink: #2d4a1d; --n50: #77a35a;
  --n100-bg: #d2e0f3; --n100-ink: #19385f; --n100: #5b8fd0;
  --n200-bg: #e2d8f1; --n200-ink: #3c2766; --n200: #a185d6;

  --ok: #86bd63;
  --info: #6f9fe6;
  --violet: #ad91de;
  --warn: #e6b54a;
  --danger: #e2645d;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --font: "Saira", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Saira Condensed", "Saira", "Cairo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 50% -180px, rgba(212, 168, 67, .14), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
[dir="rtl"] body { font-family: "Cairo", var(--font); }
a { color: var(--gold-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 .6rem;
  line-height: 1.15;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; font-family: "Cairo", var(--display); }
h1 { font-size: clamp(1.4rem, 4vw, 2rem); background: var(--silver-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: 1.15rem; color: var(--silver); }
h3 { font-size: 1rem; color: var(--gold-hi); }
.gold { color: var(--gold-hi); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny { font-size: .75rem; }
.nowrap { white-space: nowrap; }
.right { text-align: end; }
.center { text-align: center; }
.hidden { display: none !important; }
.mt { margin-top: 1rem; } .mb { margin-bottom: 1rem; }
.mt-s { margin-top: .5rem; }
.rule { height: 1px; border: 0; margin: 1.2rem 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .55; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem 16px;
  background: rgba(10, 10, 11, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none !important; }
.brand img, .brand svg { height: 42px; width: 42px; object-fit: contain; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--display); font-size: 1.15rem; letter-spacing: .14em; background: var(--silver-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { font-size: .62rem; letter-spacing: .22em; color: var(--gold); text-transform: uppercase; margin-top: 3px; }
.top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; }
.who { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
.pill-link { border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem; font-size: .8rem; color: var(--silver); }
.pill-link:hover { border-color: var(--gold); text-decoration: none; }

.nav {
  order: 3; width: 100%;
  display: flex; gap: .3rem;
  overflow-x: auto; scrollbar-width: none;
  margin: 0 -4px;
  padding: 2px 4px;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .8rem; border-radius: 999px;
  color: var(--silver); font-size: .88rem; white-space: nowrap;
  border: 1px solid transparent;
}
.nav a:hover { text-decoration: none; border-color: var(--line); }
.nav a.active { background: var(--gold-grad); color: #1a1408; font-weight: 600; }
.nav .count { background: var(--danger); color: #fff; border-radius: 999px; padding: 0 .4rem; font-size: .72rem; font-weight: 700; }
.nav a.active .count { background: #1a1408; color: var(--gold-hi); }
@media (min-width: 980px) {
  .nav { order: 0; width: auto; flex: 1; margin: 0 1rem; }
}

/* ---------- layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 1.1rem 16px 4rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: .75rem; }

.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card.gold-edge { border-color: var(--line); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }

.tile { padding: .9rem 1rem; }
.tile .label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tile .value { font-family: var(--display); font-size: 1.8rem; font-weight: 600; color: var(--gold-hi); line-height: 1.1; margin-top: .15rem; }
.tile .value.silver { color: var(--silver); }

/* ---------- forms & buttons ---------- */
label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .25rem; letter-spacing: .03em; }
input, select, textarea {
  width: 100%;
  font: inherit; color: var(--text);
  background: #0d0d10;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: .6rem .75rem;
  min-height: 42px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 168, 67, .2); }
input[type="checkbox"] { width: auto; min-height: 0; accent-color: var(--gold); transform: scale(1.2); }
input[type="color"] { padding: 2px; height: 42px; }
.field { margin-bottom: .8rem; }
.form-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); align-items: end; }
.check { display: inline-flex; align-items: center; gap: .45rem; color: var(--silver); font-size: .9rem; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-weight: 600; letter-spacing: .03em;
  padding: .6rem 1.05rem; min-height: 42px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--gold-grad); color: #1a1408;
  cursor: pointer; text-decoration: none !important;
  transition: transform .08s ease, filter .15s ease;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.6); }
.btn.ghost { background: transparent; color: var(--silver); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn.danger { background: transparent; color: var(--danger); border-color: rgba(226, 100, 93, .5); }
.btn.danger:hover { background: rgba(226, 100, 93, .12); }
.btn.ok { background: linear-gradient(135deg, #a7d784, #6f9e4f); color: #10210a; }
.btn.blue { background: linear-gradient(135deg, #9cc0f2, #4f7fc0); color: #0b1a2e; }
.btn.sm { padding: .3rem .7rem; min-height: 32px; font-size: .82rem; }
.btn.block { width: 100%; }
form.inline { display: inline; }

/* ---------- flashes & toasts ---------- */
.flash { padding: .7rem 1rem; border-radius: var(--radius-sm); margin-bottom: .8rem; border: 1px solid; font-size: .92rem; }
.flash.success { background: rgba(134, 189, 99, .1); border-color: rgba(134, 189, 99, .45); color: #c9eab3; }
.flash.error { background: rgba(226, 100, 93, .1); border-color: rgba(226, 100, 93, .5); color: #ffc9c5; }
.flash.info { background: rgba(212, 168, 67, .08); border-color: var(--line); color: var(--gold-hi); }

.toasts { position: fixed; z-index: 100; inset-inline-end: 16px; bottom: 16px; display: flex; flex-direction: column; gap: .5rem; max-width: min(380px, calc(100vw - 32px)); }
.toast {
  background: #121214; border: 1px solid var(--gold); border-radius: var(--radius);
  padding: .8rem 1rem; box-shadow: var(--shadow);
  animation: toast-in .25s ease-out;
}
.toast b { display: block; color: var(--gold-hi); font-family: var(--display); letter-spacing: .05em; }
.toast.flash-sale { background: linear-gradient(135deg, #2a1f08, #121214 60%); }
.toast.error { border-color: var(--danger); }
.toast.success { border-color: var(--ok); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .15rem .6rem; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid currentColor; white-space: nowrap;
}
[dir="rtl"] .badge { letter-spacing: 0; }
.st-pending { color: var(--silver); }
.st-processing { color: var(--info); }
.st-ready { color: var(--gold-hi); background: rgba(212, 168, 67, .12); }
.st-confirmed { color: var(--ok); background: rgba(134, 189, 99, .1); }
.st-cancelled { color: var(--danger); }
.st-open { color: var(--ok); }
.st-held { color: var(--warn); background: rgba(230, 181, 74, .12); }
.st-lapsed { color: var(--warn); border-style: dashed; }
.st-in_use { color: var(--info); background: rgba(111, 159, 230, .12); }
.st-completed { color: var(--muted); }
.st-late { color: var(--n20); background: rgba(196, 138, 90, .14); }
.st-no_show { color: var(--danger); background: rgba(226, 100, 93, .1); }
.st-unpaid { color: var(--danger); }
.st-paid { color: var(--ok); }
.st-waived { color: var(--muted); }
.tag-off { background: var(--danger); color: #fff; border: 0; }
.tag-flash { background: var(--gold-grad); color: #1a1408; border: 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-2); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .6rem .7rem; text-align: start; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: #0e0e11; font-weight: 600; position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .02); }
td.num, th.num { text-align: end; font-variant-numeric: tabular-nums; }
tr.dim td { opacity: .5; }

/* ---------- tabs / chips ---------- */
.tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs a { padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--silver); font-size: .86rem; }
.tabs a:hover { text-decoration: none; border-color: var(--gold); }
.tabs a.active { border-color: var(--gold); color: var(--gold-hi); background: rgba(212, 168, 67, .1); }
.tabs .n { opacity: .7; margin-inline-start: .25rem; }

/* ---------- market ---------- */
.deal-banner {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: .8rem 1rem; margin-bottom: 1rem;
  border-radius: var(--radius); border: 1px solid var(--gold);
  background: linear-gradient(110deg, rgba(212, 168, 67, .22), rgba(212, 168, 67, .04));
}
.deal-banner .big { font-family: var(--display); font-size: 1.5rem; color: var(--gold-hi); }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters input { flex: 1 1 200px; }
.filters select { flex: 0 1 200px; }
.cat-title { margin: 1.4rem 0 .6rem; display: flex; align-items: center; gap: .6rem; }
.cat-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
[dir="rtl"] .cat-title::after { background: linear-gradient(-90deg, var(--line), transparent); }
.products { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.product { position: relative; display: flex; flex-direction: column; gap: .45rem; padding: .9rem; }
.product .name { font-weight: 600; font-size: 1.02rem; }
.product .meta { font-size: .8rem; color: var(--muted); }
.product .ribbon { position: absolute; top: .6rem; inset-inline-end: .6rem; }
.product.out { opacity: .5; }
.price { font-family: var(--display); font-size: 1.35rem; color: var(--gold-hi); font-weight: 600; }
.price s { font-size: .9rem; color: var(--muted); margin-inline-end: .35rem; font-weight: 400; }
.price small { font-size: .75rem; color: var(--muted); font-family: var(--font); }
.add-row { display: flex; gap: .4rem; margin-top: auto; }
.add-row input { width: 70px; flex: none; text-align: center; }
.add-row .btn { flex: 1; }
.in-cart { font-size: .78rem; color: var(--ok); }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; }
.countdown.urgent { color: var(--danger); }

/* ---------- cash notes ---------- */
.cash { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.note {
  position: relative; width: 96px; height: 48px; flex: none;
  border-radius: 5px; overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(0, 0, 0, .15);
  font-family: var(--display); font-weight: 700;
}
.note.css {
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.18) 0 2px, transparent 2px 7px),
    radial-gradient(circle at 70% 50%, rgba(255,255,255,.45), transparent 60%),
    var(--nbg);
  color: var(--nink);
  border-inline-start: 10px solid var(--nedge);
}
.note .nv { position: absolute; top: 3px; inset-inline-start: 6px; font-size: 1.1rem; line-height: 1; }
.note .nv2 { position: absolute; bottom: 3px; inset-inline-end: 6px; font-size: .8rem; line-height: 1; }
.note .nw { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.05rem; letter-spacing: .1em; opacity: .55; font-style: italic; }
.note img { width: 100%; height: 100%; object-fit: cover; display: block; }
.note .nc {
  position: absolute; top: 3px; inset-inline-end: 3px;
  background: #0b0b0c; color: var(--gold-hi);
  border-radius: 999px; padding: 0 .4rem; font-size: .78rem; line-height: 1.35;
  font-family: var(--font);
}
.n20 { --nbg: var(--n20-bg); --nink: var(--n20-ink); --nedge: var(--n20); }
.n50 { --nbg: var(--n50-bg); --nink: var(--n50-ink); --nedge: var(--n50); }
.n100 { --nbg: var(--n100-bg); --nink: var(--n100-ink); --nedge: var(--n100); }
.n200 { --nbg: var(--n200-bg); --nink: var(--n200-ink); --nedge: var(--n200); }
.nx { --nbg: #e9e4d6; --nink: #3a3428; --nedge: var(--gold); }
.pay-box { border: 1px dashed var(--gold); border-radius: var(--radius); padding: .9rem; background: rgba(212, 168, 67, .05); }
.pay-box .amount { font-family: var(--display); font-size: 2rem; color: var(--gold-hi); line-height: 1; }
.pay-lines { margin-top: .6rem; padding-top: .5rem; border-top: 1px dashed var(--line); font-size: .88rem; display: grid; gap: .2rem; }
.pay-lines .fine { color: var(--warn); }

/* ---------- order progress ---------- */
.steps { display: flex; gap: .3rem; margin: .4rem 0 1rem; }
.steps .step { flex: 1; text-align: center; font-size: .72rem; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.steps .step::before { content: ""; display: block; height: 5px; border-radius: 3px; background: var(--line-2); margin-bottom: .35rem; }
.steps .step.done::before { background: var(--gold-grad); }
.steps .step.done { color: var(--gold-hi); }
.steps .step.now { color: var(--text); font-weight: 700; }
.code-box { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.code-box .qr { width: 120px; height: 120px; background: #fff; border-radius: 10px; padding: 4px; flex: none; }
.code-box .qr svg { width: 100%; height: 100%; display: block; }
.code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.6rem; letter-spacing: .12em; color: var(--gold-hi); font-weight: 700; }
.qty-ok { color: var(--ok); }
.qty-cut { color: var(--danger); }
.total-line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 1.05rem; padding-top: .6rem; }
.total-line .v { font-family: var(--display); font-size: 1.5rem; color: var(--gold-hi); }
.total-line s { color: var(--muted); font-size: 1rem; margin-inline-end: .5rem; }

/* ---------- slots (team) ---------- */
.unit-row { padding: .8rem 0; border-bottom: 1px solid var(--line-2); }
.unit-row:last-child { border-bottom: 0; }
.unit-row h3 { margin-bottom: .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 74px; padding: .35rem .55rem; border-radius: 10px;
  border: 1px solid var(--line-2); background: #0e0e11; color: var(--silver);
  font: inherit; font-size: .85rem; line-height: 1.15; cursor: default;
}
.chip small { font-size: .68rem; opacity: .8; }
button.chip { cursor: pointer; }
.chip.open { border-color: rgba(134, 189, 99, .55); color: #cfeebb; }
button.chip.open:hover { background: rgba(134, 189, 99, .12); }
.chip.mine { border-color: var(--gold); background: rgba(212, 168, 67, .15); color: var(--gold-hi); }
.chip.taken { opacity: .45; text-decoration: line-through; }
.chip.lapsed { border-style: dashed; border-color: var(--warn); }

/* ---------- kitchen grid ---------- */
.kgrid { border-collapse: separate; border-spacing: 4px; font-size: .78rem; }
.kgrid th { background: none; position: static; padding: .2rem; text-align: center; }
.kgrid th.unit { text-align: start; white-space: nowrap; color: var(--silver); font-size: .82rem; letter-spacing: 0; text-transform: none; }
.kgrid td { padding: 0; border: 0; }
.kcell {
  display: block; min-width: 68px; height: 46px; padding: .25rem .3rem;
  border-radius: 8px; border: 1px solid var(--line-2); background: #0e0e11;
  color: var(--muted); text-decoration: none !important; overflow: hidden;
  line-height: 1.15;
}
.kcell b { display: block; color: var(--text); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcell.open { border-color: rgba(134, 189, 99, .35); }
.kcell.held { border-color: var(--warn); background: rgba(230, 181, 74, .14); }
.kcell.lapsed { border: 1px dashed var(--warn); }
.kcell.confirmed { border-color: var(--violet); background: rgba(173, 145, 222, .16); }
.kcell.in_use { border-color: var(--info); background: rgba(111, 159, 230, .18); }
.kcell.completed { opacity: .55; }
.kcell.late { border-color: var(--n20); background: rgba(196, 138, 90, .18); }
.kcell.no_show { border-color: var(--danger); background: rgba(226, 100, 93, .14); }
.kcell.past { opacity: .4; }
.legend { display: flex; gap: .4rem; flex-wrap: wrap; font-size: .75rem; }

/* ---------- login ---------- */
.login-wrap { max-width: 440px; margin: 2vh auto 0; }
.hero-logo { display: block; margin: 0 auto 1rem; width: min(260px, 70vw); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 40px rgba(212, 168, 67, .25)); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-bottom: 1rem; }
.seg a { flex: 1; text-align: center; padding: .45rem; border-radius: 999px; color: var(--silver); }
.seg a.active { background: var(--gold-grad); color: #1a1408; font-weight: 700; text-decoration: none; }
.pin-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-family: ui-monospace, Consolas, monospace; }
.team-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.team-pick label { margin: 0; }
.team-pick input { display: none; }
.team-pick span {
  display: flex; align-items: center; gap: .45rem; padding: .6rem .7rem;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer;
  color: var(--text); font-size: .9rem; background: #0e0e11;
}
.team-pick input:checked + span { border-color: var(--gold); background: rgba(212, 168, 67, .14); }

/* ---------- misc ---------- */
.empty { text-align: center; padding: 2.2rem 1rem; color: var(--muted); }
.empty .ico { font-size: 2.2rem; display: block; margin-bottom: .4rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.push-cta { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.swatch { width: 1.1rem; height: 1.1rem; border-radius: 4px; display: inline-block; vertical-align: middle; }
details > summary { cursor: pointer; color: var(--gold-hi); margin-bottom: .6rem; }
.bar { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--gold-grad); }
code { background: #0e0e11; padding: .1rem .35rem; border-radius: 5px; font-size: .85em; }

/* ---------- rounds ---------- */
.round-bar {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .5rem .9rem; margin-bottom: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(212, 168, 67, .06); font-size: .9rem;
}
.round-bar.archived { border-color: var(--n200); background: rgba(161, 133, 214, .1); }
.st-r-active { color: var(--ok); background: rgba(134, 189, 99, .12); }
.st-r-setup { color: var(--info); }
.st-r-archived { color: var(--violet); background: rgba(173, 145, 222, .12); }
.round-card.working { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.round-stats { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.round-stats b { color: var(--silver); }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; align-items: end; margin-bottom: 1rem; }
.podium .p { text-align: center; padding: 1rem .6rem; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--card-2); }
.podium .p1 { border-color: var(--gold); background: linear-gradient(180deg, rgba(212,168,67,.25), var(--card-2)); padding-top: 1.8rem; }
.podium .medal { font-size: 2rem; }
.podium .nm { font-weight: 700; margin-top: .3rem; }
.podium .sc { font-family: var(--display); font-size: 1.6rem; color: var(--gold-hi); }

/* ---------- print (receipts) ---------- */
@media print {
  body { background: #fff; color: #000; }
  .topbar, .toasts, .no-print { display: none !important; }
  .card { box-shadow: none; border: 1px solid #999; background: #fff; }
  h1, h2, h3, .gold, .code, .price, .total-line .v { color: #000 !important; background: none; -webkit-text-fill-color: #000; }
}
