/* Mabqach mobile web app. Tokens follow the bidding UI sheet. */
/* Palettes. The bare :root block holds Majorelle (blue with saffron) and every other token;
   Royal (purple with yellow) is the default and applies when no other palette is chosen.
   Majorelle, Zellige and Classic are picked with data-palette. */
:root {
    --bg: #F4F3FB; --surface: #FFFFFF; --sunk: #ECEAF7; --ink: #16132B; --muted: #5D5A78; --line: rgba(22,19,43,.10);
    --accent: #4B36E8; --accent-2: #7B4DFF; --accent-deep: #2E1FA6; --accent-ink: #FFFFFF; --accent-soft: #E7E3FF; --accent-soft-ink: #2D1EA8;
    --gold: #FFB21E; --gold-ink: #3B2500; --gold-soft: #FFF1CC; --gold-soft-ink: #7A4B00; --hot: #FF2E7E; --hot-soft: #FFE0EC;
    --live: #E8264A; --live-text: #C81F3C; --live-soft: #FCE3E8;
    --win: #0F9B62; --win-soft: #DAF5E8; --win-ink: #0B6B45;
    --warn-soft: #FBEFD9; --warn-ink: #8A5300;
    --glass: rgba(255,255,255,.84); --glass-strong: rgba(255,255,255,.95); --scrim: rgba(22,19,43,.38);
    --track: rgba(22,19,43,.12); --shadow: 0 8px 24px rgba(30,20,90,.14);
  --f-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 16px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0B1F; --surface: #19152F; --sunk: #251F42; --ink: #EEEBFF; --muted: #A9A4CB; --line: rgba(255,255,255,.10);
    --accent: #8B7CFF; --accent-2: #B36BFF; --accent-deep: #4A3BC4; --accent-ink: #0E0B1F; --accent-soft: #2A2260; --accent-soft-ink: #D3CCFF;
    --gold: #FFC23D; --gold-ink: #241500; --gold-soft: #3A2A08; --gold-soft-ink: #FFD27A; --hot: #FF4F93; --hot-soft: #4A1430;
    --live: #E8264A; --live-text: #FF6B83; --live-soft: #3D1822;
    --win: #3CD596; --win-soft: #12332A; --win-ink: #5EE0A9;
    --warn-soft: #3A2C12; --warn-ink: #F0B65A;
    --glass: rgba(25,21,47,.80); --glass-strong: rgba(25,21,47,.95); --scrim: rgba(0,0,0,.5);
    --track: rgba(255,255,255,.14); --shadow: 0 8px 24px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
/* An explicit theme choice (data-theme) wins over the system setting. */
:root[data-theme="dark"] {
    --bg: #0E0B1F; --surface: #19152F; --sunk: #251F42; --ink: #EEEBFF; --muted: #A9A4CB; --line: rgba(255,255,255,.10);
    --accent: #8B7CFF; --accent-2: #B36BFF; --accent-deep: #4A3BC4; --accent-ink: #0E0B1F; --accent-soft: #2A2260; --accent-soft-ink: #D3CCFF;
    --gold: #FFC23D; --gold-ink: #241500; --gold-soft: #3A2A08; --gold-soft-ink: #FFD27A; --hot: #FF4F93; --hot-soft: #4A1430;
    --live: #E8264A; --live-text: #FF6B83; --live-soft: #3D1822;
    --win: #3CD596; --win-soft: #12332A; --win-ink: #5EE0A9;
    --warn-soft: #3A2C12; --warn-ink: #F0B65A;
    --glass: rgba(25,21,47,.80); --glass-strong: rgba(25,21,47,.95); --scrim: rgba(0,0,0,.5);
    --track: rgba(255,255,255,.14); --shadow: 0 8px 24px rgba(0,0,0,.45);
    color-scheme: dark;
}
/* Zellige: teal with coral rewards. */
:root[data-palette="zellige"] {
    --bg: #F1F6F5; --surface: #FFFFFF; --sunk: #E6EFED; --ink: #0F1D1B; --muted: #536865; --line: rgba(15,29,27,.10);
    --accent: #0B8A7A; --accent-2: #13B39C; --accent-deep: #065A50; --accent-ink: #FFFFFF; --accent-soft: #D5F2EC; --accent-soft-ink: #05665A;
    --gold: #FF7A45; --gold-ink: #3A1404; --gold-soft: #FFE6DA; --gold-soft-ink: #9A3A10; --hot: #E8336B; --hot-soft: #FCDDE7;
    --scrim: rgba(15,29,27,.38); --track: rgba(15,29,27,.12); --shadow: 0 8px 24px rgba(10,60,55,.14);
}
@media (prefers-color-scheme: dark) { :root[data-palette="zellige"]:not([data-theme="light"]) {
    --bg: #0A1413; --surface: #13201E; --sunk: #1D2E2B; --ink: #E7F4F1; --muted: #9DB5B0; --line: rgba(255,255,255,.10);
    --accent: #34D1B8; --accent-2: #6EE7C8; --accent-deep: #0B7A6B; --accent-ink: #06201C; --accent-soft: #123B35; --accent-soft-ink: #A6EFE1;
    --gold: #FF9466; --gold-ink: #2A0E02; --gold-soft: #3D1E10; --gold-soft-ink: #FFB894; --hot: #FF5C8D; --hot-soft: #45162A;
    --scrim: rgba(0,0,0,.5); --track: rgba(255,255,255,.14); --shadow: 0 8px 24px rgba(0,0,0,.45);
} }
:root[data-palette="zellige"][data-theme="dark"] {
    --bg: #0A1413; --surface: #13201E; --sunk: #1D2E2B; --ink: #E7F4F1; --muted: #9DB5B0; --line: rgba(255,255,255,.10);
    --accent: #34D1B8; --accent-2: #6EE7C8; --accent-deep: #0B7A6B; --accent-ink: #06201C; --accent-soft: #123B35; --accent-soft-ink: #A6EFE1;
    --gold: #FF9466; --gold-ink: #2A0E02; --gold-soft: #3D1E10; --gold-soft-ink: #FFB894; --hot: #FF5C8D; --hot-soft: #45162A;
    --scrim: rgba(0,0,0,.5); --track: rgba(255,255,255,.14); --shadow: 0 8px 24px rgba(0,0,0,.45);
}
/* Classic: the first blue, kept for comparison. */
:root[data-palette="classic"] {
    --bg: #F3F4F8; --surface: #FFFFFF; --sunk: #ECEEF4; --ink: #15141C; --muted: #5E5F76; --line: rgba(21,20,28,.10);
    --accent: #2F45E8; --accent-2: #2F45E8; --accent-deep: #2F45E8; --accent-ink: #FFFFFF; --accent-soft: #E3E7FE; --accent-soft-ink: #1E2FB0;
    --gold: #F2B705; --gold-ink: #15141C; --gold-soft: #FBEFD9; --gold-soft-ink: #8A5300; --hot: #E02E47; --hot-soft: #FCE3E7;
    --scrim: rgba(21,20,28,.38); --track: rgba(21,20,28,.12); --shadow: 0 8px 24px rgba(21,20,28,.12);
}
@media (prefers-color-scheme: dark) { :root[data-palette="classic"]:not([data-theme="light"]) {
    --bg: #0F1018; --surface: #181A25; --sunk: #242636; --ink: #ECEDF6; --muted: #A6A8C0; --line: rgba(255,255,255,.10);
    --accent: #7385FF; --accent-2: #7385FF; --accent-deep: #7385FF; --accent-ink: #0B0C14; --accent-soft: #232A55; --accent-soft-ink: #C9D0FF;
    --gold: #F2B705; --gold-ink: #15141C; --gold-soft: #3A2C12; --gold-soft-ink: #F0B65A; --hot: #FF6B7E; --hot-soft: #3D1820;
    --scrim: rgba(0,0,0,.5); --track: rgba(255,255,255,.14); --shadow: 0 8px 24px rgba(0,0,0,.4);
} }
:root[data-palette="classic"][data-theme="dark"] {
    --bg: #0F1018; --surface: #181A25; --sunk: #242636; --ink: #ECEDF6; --muted: #A6A8C0; --line: rgba(255,255,255,.10);
    --accent: #7385FF; --accent-2: #7385FF; --accent-deep: #7385FF; --accent-ink: #0B0C14; --accent-soft: #232A55; --accent-soft-ink: #C9D0FF;
    --gold: #F2B705; --gold-ink: #15141C; --gold-soft: #3A2C12; --gold-soft-ink: #F0B65A; --hot: #FF6B7E; --hot-soft: #3D1820;
    --scrim: rgba(0,0,0,.5); --track: rgba(255,255,255,.14); --shadow: 0 8px 24px rgba(0,0,0,.4);
}

/* Royal: royal purple with bright yellow. The default. (royal-purple keeps the earlier, more purple balance.) */
:root:not([data-palette]), :root[data-palette="royal"], :root[data-palette="royal-purple"] {
    --bg: #F6F2FB; --surface: #FFFFFF; --sunk: #EEE6F8; --ink: #1A0F2E; --muted: #62567A; --line: rgba(26,15,46,.10);
    --accent: #6A1BC9; --accent-2: #9B30E8; --accent-deep: #42107F; --accent-ink: #FFFFFF; --accent-soft: #EFE3FD; --accent-soft-ink: #4A1391;
    --gold: #FFD21F; --gold-ink: #2E1F00; --gold-soft: #FFF6C7; --gold-soft-ink: #6E5200; --hot: #FF2E7E; --hot-soft: #FFE0EC;
    --scrim: rgba(26,15,46,.38); --track: rgba(26,15,46,.12); --shadow: 0 8px 24px rgba(60,15,110,.16);
    --glass: rgba(255,255,255,.84); --glass-strong: rgba(255,255,255,.95);
}
@media (prefers-color-scheme: dark) { :root:not([data-palette]):not([data-theme="light"]), :root[data-palette="royal"]:not([data-theme="light"]), :root[data-palette="royal-purple"]:not([data-theme="light"]) {
    --bg: #120A21; --surface: #1D1233; --sunk: #2A1B47; --ink: #F3ECFF; --muted: #B2A5CC; --line: rgba(255,255,255,.10);
    --accent: #B57CFF; --accent-2: #D58BFF; --accent-deep: #6A2CC2; --accent-ink: #160A2A; --accent-soft: #33195C; --accent-soft-ink: #E2CCFF;
    --gold: #FFD21F; --gold-ink: #241800; --gold-soft: #3B3008; --gold-soft-ink: #FFE27A; --hot: #FF4F93; --hot-soft: #4A1430;
    --glass: rgba(29,18,51,.80); --glass-strong: rgba(29,18,51,.95); --scrim: rgba(0,0,0,.5); --track: rgba(255,255,255,.14); --shadow: 0 8px 24px rgba(0,0,0,.45);
} }
:root:not([data-palette])[data-theme="dark"], :root[data-palette="royal"][data-theme="dark"], :root[data-palette="royal-purple"][data-theme="dark"] {
    --bg: #120A21; --surface: #1D1233; --sunk: #2A1B47; --ink: #F3ECFF; --muted: #B2A5CC; --line: rgba(255,255,255,.10);
    --accent: #B57CFF; --accent-2: #D58BFF; --accent-deep: #6A2CC2; --accent-ink: #160A2A; --accent-soft: #33195C; --accent-soft-ink: #E2CCFF;
    --gold: #FFD21F; --gold-ink: #241800; --gold-soft: #3B3008; --gold-soft-ink: #FFE27A; --hot: #FF4F93; --hot-soft: #4A1430;
    --glass: rgba(29,18,51,.80); --glass-strong: rgba(29,18,51,.95); --scrim: rgba(0,0,0,.5); --track: rgba(255,255,255,.14); --shadow: 0 8px 24px rgba(0,0,0,.45);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- app shell ---------- */
#app { min-height: 100%; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); padding: calc(10px + var(--safe-t)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.topbar .spacer { flex: 1; }
.page { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 20px max(16px, env(safe-area-inset-left)) calc(96px + var(--safe-b)) max(16px, env(safe-area-inset-right)); display: flex; flex-direction: column; gap: 20px; }
.tabbar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); display: flex; padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + var(--safe-b)); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 700; color: var(--muted); text-decoration: none; border-radius: 12px; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--accent); }
.tabbar .dot { position: relative; }
.tabbar .dot b { position: absolute; top: -4px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--live); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }

/* ---------- common UI ---------- */
.h1 { font-size: 30px; font-weight: 800; }
.h2 { font-size: 20px; font-weight: 700; }
.section { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.card { background: var(--surface); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 14px; border: 0; font-weight: 700; font-size: 16px; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: 0 3px 0 var(--accent-deep); }
.btn-primary:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-deep); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-soft { background: var(--accent-soft); color: var(--accent-soft-ink); }
.btn-danger { background: var(--live-soft); color: var(--live-text); }
.btn-win { background: var(--win-soft); color: var(--win-ink); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled { background: var(--sunk); color: var(--muted); cursor: default; box-shadow: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill.live { background: var(--live); color: #fff; letter-spacing: .06em; border-radius: 6px; }
.pill.live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: onair 1.4s ease-in-out infinite; }
@keyframes onair { 50% { opacity: .3; } }
.st-pending { background: var(--warn-soft); color: var(--warn-ink); }
.st-confirmed { background: var(--accent-soft); color: var(--accent-soft-ink); }
.st-shipped { background: var(--accent-soft); color: var(--accent-soft-ink); }
.st-delivered { background: var(--win-soft); color: var(--win-ink); }
.st-refused, .st-cancelled, .st-rejected { background: var(--live-soft); color: var(--live-text); }
.st-approved { background: var(--win-soft); color: var(--win-ink); }
.empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 28px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.list { display: flex; flex-direction: column; gap: 10px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.banner { border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.banner.info { background: var(--accent-soft); color: var(--accent-soft-ink); }
.banner.warn { background: var(--warn-soft); color: var(--warn-ink); }
.banner.ok { background: var(--win-soft); color: var(--win-ink); }

/* forms */
form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; min-height: 48px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 14px; font-size: 16px; }
textarea.input { min-height: 80px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--sunk); padding: 4px; border-radius: 12px; }
.seg button { border: 0; background: none; border-radius: 9px; min-height: 40px; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.err { color: var(--live-text); font-weight: 600; font-size: 14px; margin: 0; }

/* show cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.show-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); min-width: 0; }
.thumb { position: relative; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; color: #fff; background: radial-gradient(120% 80% at 30% 20%, hsl(var(--hue) 70% 46%), hsl(calc(var(--hue) + 40) 55% 15%)); }
.thumb .glyph { position: absolute; inset: 20% 24% 36%; opacity: .9; }
.thumb .glyph svg { width: 100%; height: 100%; }
.thumb .tl { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.thumb .tag { white-space: nowrap; background: rgba(10,10,20,.55); font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 6px; }
.thumb .soon { background: #fff; color: #15141C; }
.thumb .bot { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 8px 8px; background: linear-gradient(transparent, rgba(8,6,18,.88)); font-size: 13px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
/* Item name: a small yellow label so it reads over any cover. */
.thumb .bot span { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #FFD21F; color: #15141C; font-weight: 700; font-size: 12px; line-height: 1.3; padding: 2px 7px; border-radius: 6px; }
/* Current price: large, white on a dark chip; it pops when the price moves. */
.thumb .bot b { display: inline-block; font-family: var(--f-mono); font-size: 24px; line-height: 1.15; color: #fff; background: rgba(14,8,30,.88); border: 1px solid rgba(255,255,255,.14); padding: 3px 9px; border-radius: 9px; font-variant-numeric: tabular-nums; }
.thumb .bot b.bump { animation: bump 1.2s cubic-bezier(.2,1.6,.4,1); }
@keyframes bump { 0% { transform: scale(1); } 15% { transform: scale(1.18); background: #FFD21F; color: #15141C; border-color: #FFD21F; } 60% { transform: scale(1); background: #FFD21F; color: #15141C; border-color: #FFD21F; } 100% { transform: scale(1); } }
.show-card .t { font-weight: 700; line-height: 1.3; font-size: 14px; }
.show-card .s { font-size: 13px; color: var(--muted); }
.upcoming { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: var(--r); padding: 12px; text-decoration: none; color: var(--ink); }
.upcoming .mini { width: 56px; height: 56px; flex: none; border-radius: 12px; padding: 12px; color: #fff; background: radial-gradient(circle at 30% 20%, hsl(var(--hue) 70% 46%), hsl(calc(var(--hue) + 40) 55% 15%)); }
.upcoming .mini svg { width: 100%; height: 100%; }

/* ---------- live room ---------- */
.room { position: fixed; inset: 0; z-index: 30; background: #0B0C12; color: var(--ink); overflow: hidden; }
.room .stage { position: absolute; inset: 0; background: radial-gradient(110% 70% at 50% 30%, hsl(var(--hue) 60% 38%), hsl(calc(var(--hue) + 40) 50% 10%)); }
.room .stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.room .stage .ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: calc(16vh + var(--safe-t)) 72px 24px !important; gap: 12px; color: rgba(255,255,255,.85); text-align: center; padding: 24px; }
.room .stage .ph svg { width: 120px; height: 120px; opacity: .85; }
.room .stage .ph-photo { width: min(62vw, 300px); aspect-ratio: 4/5; max-width: 100%; object-fit: cover; border-radius: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.room .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(transparent, rgba(0,0,0,.45)); pointer-events: none; }
.glass { background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.r-top { position: absolute; z-index: 2; top: calc(12px + var(--safe-t)); left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; }
.host-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; min-width: 0; box-shadow: var(--shadow); }
.avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent-soft-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.host-chip .n { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.host-chip .c { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-top .grow { flex: 1; }
.tagbox { padding: 5px 9px; border-radius: 6px; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; }
.iconbtn { width: 40px; height: 40px; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: var(--ink); flex: none; }
.iconbtn svg { width: 20px; height: 20px; }
.r-rail { position: absolute; z-index: 2; right: 10px; bottom: calc(262px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.r-rail .it { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.r-rail .iconbtn { width: 44px; height: 44px; position: relative; }
.r-rail .badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 700; line-height: 18px; text-shadow: none; }
.r-chat { position: absolute; z-index: 2; left: 10px; right: 70px; bottom: calc(222px + var(--safe-b)); display: flex; flex-direction: column; gap: 5px; align-items: flex-start; max-height: 34vh; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%); justify-content: flex-end; }
.msg { display: flex; gap: 7px; align-items: center; padding: 5px 10px 5px 5px; border-radius: 14px; font-size: 13px; line-height: 1.3; max-width: 100%; }
.msg b { font-weight: 700; }
.msg svg, .winning svg { width: 16px; height: 16px; flex: none; }
.itemcard .info .lead { color: var(--ink); font-weight: 700; }
.itemcard .info .lead.me { color: var(--win-ink); }
.msg .host { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); margin-right: 3px; }
.msg.sys { padding: 5px 10px; color: var(--muted); }
.msg.win { padding: 5px 10px; background: var(--win-soft); color: var(--win-ink); font-weight: 700; }
.r-input { position: absolute; z-index: 2; left: 10px; right: 70px; bottom: calc(174px + var(--safe-b)); }
.r-input input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; font-size: 16px; }
.r-bottom { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: calc(14px + var(--safe-b)); display: flex; flex-direction: column; gap: 8px; }
.winning { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.winning.me { background: var(--win-soft); color: var(--win-ink); padding-left: 10px; }
.itemcard { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: var(--glass-strong); box-shadow: var(--shadow); }
.itemcard .th { width: 52px; height: 52px; flex: none; border-radius: 12px; background: var(--sunk); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.itemcard .th svg { width: 30px; height: 30px; }
.itemcard .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.itemcard .info b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.itemcard .info span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.itemcard .price { display: flex; flex-direction: column; align-items: flex-end; }
.itemcard .price b { font-family: var(--f-mono); font-size: 20px; line-height: 1.1; }
.itemcard .price span { font-size: 11px; color: var(--muted); }
.ring { position: relative; width: 50px; height: 50px; flex: none; display: flex; align-items: center; justify-content: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .trk { fill: none; stroke: var(--track); stroke-width: 6; }
.ring .arc { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 169.6; transition: stroke-dashoffset .15s linear; }
.ring.warn .arc { stroke: var(--gold); }
.ring.urgent .arc { stroke: var(--live); }
.ring.urgent { animation: beat .5s ease-in-out infinite alternate; }
.ring span { position: relative; font-family: var(--f-mono); font-weight: 700; font-size: 12px; }
.ring.urgent span { color: var(--live-text); }
.ring .ext { position: absolute; top: -10px; right: -14px; padding: 2px 6px; border-radius: 6px; background: var(--gold); color: var(--gold-ink); font-size: 11px; font-weight: 800; opacity: 0; transform: scale(.4); pointer-events: none; }
.ring .ext.on { animation: burst 1s cubic-bezier(.2,1.6,.4,1) both; }
.bidrow { display: flex; gap: 10px; }
.bidrow .custom { width: 56px; height: 56px; flex: none; border: 1px solid var(--line); border-radius: 16px; background: var(--glass-strong); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.bidrow .custom svg { width: 22px; height: 22px; }
.bidbtn { flex: 1; height: 56px; border: 0; border-radius: 16px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: 0 4px 0 var(--accent-deep), 0 10px 24px rgba(0,0,0,.25); transition: transform .08s; font-family: var(--f-display); font-weight: 700; font-size: 19px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.bidbtn svg { width: 20px; height: 20px; }
.bidbtn:not(.swipe):active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-deep); }
.bidbtn.win, .bidbtn.win:disabled { background: var(--win); color: #fff; box-shadow: 0 0 0 0 var(--win); animation: glow 1.6s ease-in-out infinite; }
.bidbtn.buy { background: linear-gradient(135deg, var(--gold), #FF8A1E); color: var(--gold-ink); box-shadow: 0 4px 0 #B86A00, 0 10px 24px rgba(0,0,0,.25); }
.bidbtn:disabled { background: var(--sunk); color: var(--muted); box-shadow: none; }
.result { position: absolute; z-index: 3; left: 28px; right: 28px; top: 26%; padding: 24px; border-radius: 24px; background: var(--glass-strong); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; animation: pop .3s ease; }
.result .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: flex; align-items: center; justify-content: center; }
.result .ic svg { width: 30px; height: 30px; }
.result b { font-family: var(--f-display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.tapsound { position: absolute; z-index: 4; top: 40%; left: 50%; transform: translateX(-50%); }

/* sheets */
.sheet-scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: var(--surface); color: var(--ink); border-radius: 28px 28px 0 0; padding: 12px 20px calc(22px + var(--safe-b)); display: flex; flex-direction: column; gap: 16px; animation: up .25s ease; }
.sheet .grab { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--track); flex: none; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper button { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 24px; font-weight: 700; }
.stepper output { font-family: var(--f-mono); font-size: 42px; font-weight: 700; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.quick button { height: 44px; border: 0; border-radius: 12px; background: var(--accent-soft); color: var(--accent-soft-ink); font-weight: 700; }
.lotline { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lotline:last-child { border-bottom: 0; }
.lotline .grow { flex: 1; min-width: 0; }
.lotline .grow b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* host room */
.host-room .stage { bottom: auto; height: 58vh; }
.host-room .stage .ph { padding-top: calc(70px + var(--safe-t)) !important; }
.host-room .stage .ph svg { width: 72px; height: 72px; }
.host-room .shade { height: 30%; top: calc(58vh - 30%); bottom: auto; }
.host-panel { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; top: calc(58vh - 18px); background: var(--bg); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; }
.host-panel .tabs { display: flex; gap: 4px; padding: 10px 14px 0; border-bottom: 1px solid var(--line); }
.host-panel .tabs button { border: 0; background: none; padding: 10px 12px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.host-panel .tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.host-panel .body { flex: 1; overflow-y: auto; padding: 14px 14px calc(18px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; }
.host-stage-card { position: absolute; z-index: 2; left: 10px; right: 10px; top: calc(58vh - 104px); }
.host-tools { position: absolute; z-index: 2; right: 10px; top: calc(64px + var(--safe-t)); display: flex; flex-direction: column; gap: 10px; }
.chatlog { display: flex; flex-direction: column; gap: 6px; }

/* toast */
.toasts { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); top: calc(12px + var(--safe-t)); display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); animation: pop .2s ease; }
.toast.bad { background: var(--live); color: #fff; }
.toast.good { background: var(--win); color: #fff; }

/* "Reduce motion" on the phone: the short celebrations still play (once), but nothing loops or
   spins, so the win moment and price flashes aren't lost for people with the setting on. */
@media (prefers-reduced-motion: reduce) { * { animation-iteration-count: 1 !important; scroll-behavior: auto !important; } .wp-rays { animation: none !important; } }

/* ---------- photos ---------- */
.thumb img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.itemcard .th img, .lthumb img, .othumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.itemcard .th { overflow: hidden; }
.lthumb, .othumb { flex: none; border-radius: 10px; overflow: hidden; color: #fff; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 20%, hsl(var(--hue, 330) 70% 46%), hsl(calc(var(--hue, 330) + 40) 55% 15%)); }
.lthumb { width: 44px; height: 44px; }
.othumb { width: 48px; height: 48px; border-radius: 12px; }
.lthumb svg { width: 26px; height: 26px; } .othumb svg { width: 28px; height: 28px; }
.photo-pick { display: flex; align-items: center; gap: 12px; }
.photo-box { width: 84px; height: 84px; flex: none; border-radius: 14px; border: 2px dashed var(--line); background: var(--sunk); display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; color: var(--muted); font-weight: 700; font-size: 13px; }
.photo-box span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.photo-box svg { width: 22px; height: 22px; }
.photo-box img { width: 100%; height: 100%; object-fit: cover; }
.seg3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Arabic, right to left ---------- */
[dir="rtl"] body { font-family: "IBM Plex Sans Arabic", var(--f-body); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .bidbtn, [dir="rtl"] .result b { font-family: "IBM Plex Sans Arabic", var(--f-display); letter-spacing: 0; }
[dir="rtl"] .r-rail { right: auto; left: 10px; }
[dir="rtl"] .r-chat, [dir="rtl"] .r-input { left: 70px; right: 10px; }
[dir="rtl"] .host-tools { right: auto; left: 10px; }
[dir="rtl"] .ring .ext { right: auto; left: -12px; }
[dir="rtl"] .kv dd { text-align: left; }
[dir="rtl"] .bidbtn svg, [dir="rtl"] .iconbtn svg[data-flip], [dir="rtl"] #back svg { transform: scaleX(-1); }
[dir="rtl"] .r-rail .badge { right: auto; left: -3px; }

/* ---------- ratings ---------- */
.star { color: #FFD21F; } .star.off { color: var(--line); }
.stars { display: flex; justify-content: center; gap: 6px; }
.stars button { border: 0; background: none; font-size: 44px; line-height: 1; color: var(--line); padding: 4px; }
.stars button.on { color: #FFD21F; }

/* admin report table */
.rep { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rep th, .rep td { padding: 10px 12px; text-align: end; border-bottom: 1px solid var(--line); }
.rep th:first-child, .rep td:first-child { text-align: start; position: sticky; inset-inline-start: 0; background: var(--surface); }
.rep th { color: var(--muted); font-weight: 700; font-size: 12px; }

.btn svg { width: 20px; height: 20px; flex: none; }

/* follow */
.host-chip .follow { margin-inline-start: 6px; border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 12px; background: var(--accent); color: var(--accent-ink); flex: none; }
.host-chip .follow.on { background: var(--sunk); color: var(--ink); }
.thumb .tag.fol { background: var(--accent); color: var(--accent-ink); }

/* ---------- game moments (live room) ---------- */
@keyframes glow { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--win) 25%, transparent), 0 0 28px color-mix(in srgb, var(--win) 60%, transparent); } }
@keyframes beat { to { transform: scale(1.1); } }
@keyframes burst { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1.5) rotate(-6deg); } 45% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes shake { 15%, 55% { transform: translateX(-7px); } 35%, 75% { transform: translateX(7px); } }
@keyframes flash { from { background: var(--hot); color: #fff; } }
@keyframes stamp { 0% { transform: scale(2.4) rotate(-14deg); opacity: 0; } 60% { transform: scale(.92) rotate(-6deg); opacity: 1; } 100% { transform: scale(1) rotate(-6deg); } }
.itemcard { transition: box-shadow .3s; border: 2px solid transparent; }
.itemcard.leading { border-color: var(--win); box-shadow: 0 0 0 4px color-mix(in srgb, var(--win) 22%, transparent), var(--shadow); }
.itemcard.outbid { animation: shake .45s ease, flash .9s ease-out; }
.result.mine { border: 2px solid var(--gold); }
.result.mine b { color: var(--accent); display: inline-block; animation: stamp .55s cubic-bezier(.2,1.2,.4,1) both; }
.confetti { position: fixed; inset: 0; z-index: 70; pointer-events: none; width: 100%; height: 100%; }
.pill.sd { background: var(--gold); color: var(--gold-ink); border-radius: 6px; letter-spacing: .02em; }
.pill.sd svg { width: 12px; height: 12px; }
.lvl { display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; border-radius: 5px; background: var(--gold-soft); color: var(--gold-soft-ink); font-size: 11px; font-weight: 800; }

/* ---------- show covers ---------- */
.room .stage .cover-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room .stage video { position: relative; }
.room.has-cover .stage .ph { justify-content: center; }
.thumb .desc { display: block; font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upcoming .mini.has-img { padding: 0; overflow: hidden; }
.upcoming .mini img, .cover-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-mini { width: 48px; height: 64px; flex: none; border-radius: 10px; overflow: hidden; }
.cover-pick { display: flex; gap: 12px; align-items: center; }
.cover-pick .photo-box { width: 72px; height: 128px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch input { width: 46px; height: 28px; appearance: none; border-radius: 999px; background: var(--track); position: relative; flex: none; cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(18px); }
[dir="rtl"] .switch input:checked::after { transform: translateX(-18px); }
[dir="rtl"] .switch input::after { left: auto; right: 3px; }

/* ---------- rewards ---------- */
.coin { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #FFF3A3, var(--gold) 60%, #EDB400); color: #5A3300; font: 800 13px var(--f-display); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.15); }
.coin.lg { width: 44px; height: 44px; font-size: 20px; }
.coins { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-soft-ink); font-weight: 700; }
.coins .stack { display: flex; }
.coins .stack .coin + .coin { margin-inline-start: -14px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.badge-card { border-radius: 14px; padding: 12px; background: var(--sunk); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.badge-card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--muted); }
.badge-card .ic svg { width: 22px; height: 22px; }
.badge-card b { font-size: 14px; line-height: 1.25; }
.badge-card span { font-size: 12px; color: var(--muted); }
.badge-card.on { background: linear-gradient(140deg, var(--accent-soft), var(--gold-soft)); }
.badge-card.on .ic { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); }
.meter { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.level-card { display: flex; gap: 12px; align-items: center; }
.level-card .lv { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font: 800 22px var(--f-display); box-shadow: 0 3px 0 var(--accent-deep); }
.level-card .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.r-sub { position: absolute; z-index: 2; top: calc(64px + var(--safe-t)); left: 12px; right: 12px; display: flex; gap: 8px; pointer-events: none; }
:root[data-palette="royal-purple"] .bidbtn.buy { background: linear-gradient(135deg, #FFE14D, var(--gold)); box-shadow: 0 4px 0 #B89200, 0 10px 24px rgba(0,0,0,.25); }

/* Home card: an item just sold. A red "Sold" stamp lands on the corner of a green price chip. */
.thumb .sold-row { position: relative; display: inline-block; margin-top: 8px; }
.thumb .bot b { white-space: nowrap; }
.thumb .bot b.sold-price { background: var(--win); border-color: transparent; color: #fff; padding-inline-end: 14px; }
.thumb .sold-stamp { position: absolute; top: -13px; inset-inline-end: -14px; font-style: normal; font: 800 11px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--live); padding: 4px 6px; border-radius: 5px; transform: rotate(8deg); box-shadow: 0 2px 0 #8E1229; white-space: nowrap; }
[dir="rtl"] .thumb .sold-stamp { transform: rotate(-8deg); font-family: "IBM Plex Sans Arabic", var(--f-display); letter-spacing: 0; }
.thumb .sold-stamp.new { animation: soldstamp .55s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes soldstamp { 0% { transform: scale(2.4) rotate(-10deg); opacity: 0; } 60% { transform: scale(.92) rotate(8deg); opacity: 1; } 100% { transform: rotate(8deg); } }
.thumb .sold-who { font-style: normal; font-size: 12px; font-weight: 600; color: #fff; opacity: .9; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- swipe to bid ---------- */
.bidbtn { position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; --p: 0; --px: 0px; }
.bidbtn .sw-fill, .bidbtn .sw-thumb { display: none; }
.bidbtn.swipe { touch-action: none; cursor: grab; --lh: var(--accent-ink); --lc: color-mix(in srgb, var(--accent-ink) 62%, transparent); }
.bidbtn.swipe.buy { --lh: var(--gold-ink); --lc: color-mix(in srgb, var(--gold-ink) 62%, transparent); }
.bidbtn.swipe.dragging { cursor: grabbing; }
.bidbtn .sw-label { position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.bidbtn .sw-label small { font: 700 10.5px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; }
[dir="rtl"] .bidbtn .sw-label small { letter-spacing: 0; font-size: 12px; }
.bidbtn.swipe #bid-l { font-family: var(--f-mono); font-size: 21px; }
/* Label shimmers to invite the swipe, and fades as the knob travels. */
.bidbtn.swipe .sw-label { padding-inline: 58px 14px; opacity: calc(1 - var(--p) * 1.6); color: var(--lh); }
.bidbtn.swipe .sw-label small { background: linear-gradient(100deg, var(--lc) 38%, var(--lh) 50%, var(--lc) 62%); background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 2.6s linear infinite; }
[dir="rtl"] .bidbtn.swipe .sw-label small { animation-direction: reverse; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -60% 0; } }
.bidbtn.swipe .sw-fill { display: block; position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: calc(var(--px) + 56px); background: rgba(255,255,255,.2); pointer-events: none; transition: width .35s cubic-bezier(.2,1.4,.4,1); }
.bidbtn.swipe .sw-thumb { display: grid; place-items: center; position: absolute; top: 4px; bottom: 4px; inset-inline-start: 4px; width: 48px; border-radius: 12px;
  background: #fff; color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.28); pointer-events: none;
  transform: translateX(var(--px)); transition: transform .35s cubic-bezier(.2,1.4,.4,1), background .15s, scale .15s; }
[dir="rtl"] .bidbtn.swipe .sw-thumb { transform: translateX(calc(var(--px) * -1)); }
.bidbtn.swipe.buy .sw-thumb { color: #B86A00; }
.bidbtn .sw-thumb svg { width: 22px; height: 22px; }
.bidbtn .sw-thumb .ok { display: none; }
.bidbtn.dragging .sw-thumb, .bidbtn.dragging .sw-fill { transition: none; }
/* Idle: the knob nudges forward now and then. */
.bidbtn.swipe:not(.dragging):not(.sent) .sw-thumb { animation: nudge 2.8s ease-in-out infinite; }
[dir="rtl"] .bidbtn.swipe:not(.dragging):not(.sent) .sw-thumb { animation-name: nudge-rtl; }
@keyframes nudge { 0%, 70%, 100% { transform: translateX(0); } 80% { transform: translateX(12px); } 88% { transform: translateX(2px); } 94% { transform: translateX(6px); } }
@keyframes nudge-rtl { 0%, 70%, 100% { transform: translateX(0); } 80% { transform: translateX(-12px); } 88% { transform: translateX(-2px); } 94% { transform: translateX(-6px); } }
/* Far enough: the knob turns gold, ready to let go. */
.bidbtn.armed .sw-thumb { background: var(--gold); color: var(--gold-ink); scale: 1.08; }
.bidbtn.swipe.buy.armed .sw-thumb { background: #fff; color: var(--win); }
/* Sent: the knob lands at the end with a check, and the button flashes. */
.bidbtn.sent .sw-thumb { background: var(--win); color: #fff; }
.bidbtn.sent .sw-thumb .go { display: none; }
.bidbtn.sent .sw-thumb .ok { display: block; }
.bidbtn.sent { animation: sentflash .5s ease-out; }
@keyframes sentflash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 80%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.bidbtn.sent .sw-label { opacity: 1; }
.bidbtn.sent .sw-label small { animation: none; color: var(--lh); background: none; }
/* A tap instead of a swipe: the knob shows the way. */
.bidbtn.hint .sw-thumb { animation: hintpush .6s ease-in-out !important; }
[dir="rtl"] .bidbtn.hint .sw-thumb { animation-name: hintpush-rtl !important; }
@keyframes hintpush { 30% { transform: translateX(34px); } 60% { transform: translateX(8px); } }
@keyframes hintpush-rtl { 30% { transform: translateX(-34px); } 60% { transform: translateX(-8px); } }
[dir="rtl"] .bidbtn .sw-thumb .ok svg { transform: none; }

/* ---------- the win moment ---------- */
.winpop { position: fixed; inset: 0; z-index: 58; display: grid; place-items: center; overflow: hidden; padding: 70px 20px 20px;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--gold) 38%, transparent), rgba(12,6,26,.82) 62%); animation: wpfade .25s ease both; }
.winpop.out { animation: wpout .3s ease both; }
@keyframes wpfade { from { opacity: 0; } }
@keyframes wpout { to { opacity: 0; transform: scale(.96); } }
.wp-rays { position: absolute; left: 50%; top: 45%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; pointer-events: auto;
  background: repeating-conic-gradient(color-mix(in srgb, var(--gold) 55%, transparent) 0 7deg, transparent 7deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 46%); mask-image: radial-gradient(circle, #000 0, transparent 46%);
  opacity: .55; animation: wpspin 14s linear infinite; }
@keyframes wpspin { to { transform: rotate(360deg); } }
.wp-card { position: relative; width: min(340px, 100%); background: var(--surface); color: var(--ink); border-radius: 30px; padding: 66px 22px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px; border: 3px solid var(--gold);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--gold) 28%, transparent), 0 30px 80px rgba(0,0,0,.55); animation: wppop .55s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes wppop { from { transform: scale(.6) translateY(30px); opacity: 0; } }
.wp-trophy { position: absolute; top: -56px; left: 50%; width: 112px; height: 112px; margin-left: -56px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #FFF6B8, var(--gold) 60%, #F2B800); color: #4A2E00; border: 5px solid var(--surface);
  box-shadow: 0 0 0 4px var(--gold), 0 12px 30px color-mix(in srgb, var(--gold) 55%, transparent); animation: wptrophy .8s cubic-bezier(.2,1.6,.4,1) .1s both, wpfloat 2.4s ease-in-out 1s infinite; }
.wp-trophy svg { width: 58px; height: 58px; stroke-width: 2; }
@keyframes wptrophy { from { transform: scale(0) rotate(-30deg); } }
@keyframes wpfloat { 50% { transform: translateY(-6px) rotate(-4deg); } }
.wp-title { font: 800 54px/1 var(--f-display); letter-spacing: -.03em; padding-bottom: 4px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 55%, var(--hot)); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: stamp .6s cubic-bezier(.2,1.2,.4,1) .25s both; transform: rotate(-3deg); }
[dir="rtl"] .wp-title { font-family: "IBM Plex Sans Arabic", var(--f-display); letter-spacing: 0; line-height: 1.25; }
.wp-item { display: flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 4px; }
.wp-th { width: 44px; height: 44px; flex: none; border-radius: 12px; overflow: hidden; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 20%, hsl(var(--hue) 70% 46%), hsl(calc(var(--hue) + 40) 55% 15%)); }
.wp-th svg { width: 26px; height: 26px; } .wp-th img { width: 100%; height: 100%; object-fit: cover; }
.wp-item b { font-size: 18px; line-height: 1.25; text-align: start; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wp-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
[dir="rtl"] .wp-label { letter-spacing: 0; font-size: 13px; }
.wp-price { font-size: 46px; font-weight: 800; line-height: 1.1; color: #2E1F00; background: linear-gradient(135deg, #FFE14D, var(--gold)); padding: 6px 20px; border-radius: 16px;
  box-shadow: 0 5px 0 #B89200; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wp-price.done { animation: wpbump .45s cubic-bezier(.2,1.8,.4,1); }
@keyframes wpbump { 40% { transform: scale(1.14); } }
.wp-card p { margin: 6px 0 4px; font-size: 15px; line-height: 1.4; color: var(--muted); max-width: 30ch; }

/* ---------- Royal balance: purple frames, yellow acts ----------
   Yellow for everything you swipe or tap to bid, the selected chip and tab, and "hot" tags.
   Purple stays for the brand, headings, forms and checkout. The light background is a neutral warm white. */
:root:not([data-palette]), :root[data-palette="royal"] { --bg: #FAF8F3; --sunk: #F1EEE6; }
:is(:root:not([data-palette]), :root[data-palette="royal"]) {
  --y: #FFD21F; --y-hi: #FFE14D; --y-ink: #1A0F2E; --y-edge: #B89200; --p-knob: #5B16B0;
}
/* Bid slider: yellow bar, purple knob. */
:is(:root:not([data-palette]), :root[data-palette="royal"]) .bidbtn:not(:disabled):not(.win):not(.buy) {
  background: linear-gradient(135deg, var(--y-hi), var(--y)); color: var(--y-ink); box-shadow: 0 4px 0 var(--y-edge), 0 10px 24px rgba(0,0,0,.25); }
:is(:root:not([data-palette]), :root[data-palette="royal"]) .bidbtn.swipe:not(.buy) { --lh: var(--y-ink); --lc: rgba(26,15,46,.5); }
:is(:root:not([data-palette]), :root[data-palette="royal"]) .bidbtn.swipe:not(.buy) .sw-thumb { background: var(--p-knob); color: #fff; }
:is(:root:not([data-palette]), :root[data-palette="royal"]) .bidbtn.swipe:not(.buy) .sw-fill { background: rgba(91,22,176,.14); }
:is(:root:not([data-palette]), :root[data-palette="royal"]) .bidbtn.armed:not(.buy) .sw-thumb { background: var(--y-ink); color: var(--y); }
/* Buy now: purple bar, white knob, so it never looks like a bid. */
:is(:root:not([data-palette]), :root[data-palette="royal"]) .bidbtn.buy:not(:disabled) {
  background: linear-gradient(135deg, #6A1BC9, #9B30E8); color: #fff; box-shadow: 0 4px 0 #42107F, 0 10px 24px rgba(0,0,0,.25); }
:is(:root:not([data-palette]), :root[data-palette="royal"]) .bidbtn.swipe.buy { --lh: #fff; --lc: rgba(255,255,255,.62); }
:is(:root:not([data-palette]), :root[data-palette="royal"]) .bidbtn.swipe.buy .sw-thumb { background: #fff; color: var(--p-knob); }
:is(:root:not([data-palette]), :root[data-palette="royal"]) .bidbtn.swipe.buy.armed .sw-thumb { background: var(--y); color: var(--y-ink); }
/* Selected chip and tab. */
:is(:root:not([data-palette]), :root[data-palette="royal"]) .chip[aria-pressed="true"] { background: var(--y); color: var(--y-ink); border-color: var(--y); }
:is(:root:not([data-palette]), :root[data-palette="royal"]) .tabbar a svg { padding: 3px 16px; box-sizing: content-box; border-radius: 999px; transition: background .15s; }
:is(:root:not([data-palette]), :root[data-palette="royal"]) .tabbar a[aria-current="page"] { color: var(--ink); }
:is(:root:not([data-palette]), :root[data-palette="royal"]) .tabbar a[aria-current="page"] svg { background: var(--y); color: var(--y-ink); }
/* Hot tags on cards and in the room. */
:is(:root:not([data-palette]), :root[data-palette="royal"]) .thumb .tag { background: var(--y); color: var(--y-ink); }
:is(:root:not([data-palette]), :root[data-palette="royal"]) .host-chip .follow:not(.on) { background: var(--y); color: var(--y-ink); }
:is(:root:not([data-palette]), :root[data-palette="royal"]) .r-rail .badge { background: var(--y); color: var(--y-ink); }

/* Logo color: purple M in light, white in dark (Royal). */
.brand svg { color: var(--logo, currentColor); }
/* The lockup: M + name on one line; the word takes the ink color, the line the logo color. */
.brand svg.lockup { width: auto; height: 30px; color: var(--ink); }
.brand svg.lockup path { stroke: var(--logo, var(--ink)); }
:is(:root:not([data-palette]), :root[data-palette="royal"], :root[data-palette="royal-purple"]) { --logo: #6A1BC9; }
@media (prefers-color-scheme: dark) { :is(:root:not([data-palette]), :root[data-palette="royal"], :root[data-palette="royal-purple"]):not([data-theme="light"]) { --logo: #FFFFFF; } }
:is(:root:not([data-palette]), :root[data-palette="royal"], :root[data-palette="royal-purple"])[data-theme="dark"] { --logo: #FFFFFF; }

/* ---------- Sell tab: the guide for new sellers ---------- */
.sx-hero { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.sx-hero .muted { margin: 0; max-width: 46ch; }
.sx-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
[dir="rtl"] .sx-eyebrow { letter-spacing: 0; }
.sx-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 6px; }
.sx-facts span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.sx-facts svg { width: 16px; height: 16px; color: var(--win); flex: none; }

/* stepper */
.sx-steps { --progress: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.sx-steps::before, .sx-steps::after { content: ""; position: absolute; top: 17px; inset-inline-start: 10%; height: 3px; border-radius: 2px; }
.sx-steps::before { inset-inline-end: 10%; background: var(--track); }
.sx-steps::after { width: calc(80% * var(--progress)); background: var(--gold); transition: width .35s ease; }
.sx-step { position: relative; z-index: 1; border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: 12px; min-width: 0; }
.sx-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--track); font: 800 15px var(--f-display); color: var(--muted); transition: background .2s, border-color .2s, transform .2s; }
.sx-n svg { width: 18px; height: 18px; }
.sx-l { text-align: center; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sx-step.done .sx-n { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.sx-step[aria-selected="true"] { color: var(--ink); }
.sx-step[aria-selected="true"] .sx-n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: scale(1.12); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
.sx-panel { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: center; min-height: 260px; }
@media (min-width: 620px) { .sx-panel { grid-template-columns: 1fr 1fr; } }
.sx-panel.in > * { animation: sxin .35s ease both; }
.sx-panel.in > :nth-child(2) { animation-delay: .06s; }
@keyframes sxin { from { opacity: 0; transform: translateY(8px); } }
.sx-copy h3 { font: 800 24px/1.15 var(--f-display); margin: 4px 0 6px; }
.sx-copy p { margin: 0; color: var(--muted); }
.sx-time { font-size: 12px; font-weight: 700; color: var(--accent); }
.sx-nav { display: flex; justify-content: space-between; gap: 10px; }
.sx-nav .btn:disabled { visibility: hidden; }

/* step previews: small pictures of the app, drawn with the app's own tokens */
.sx-mock { border-radius: 18px; padding: 16px; background: var(--sunk); display: flex; flex-direction: column; gap: 10px; font-size: 13px; min-width: 0; }
.sx-mock small { display: block; color: var(--muted); font-size: 11.5px; }
.sx-field { background: var(--surface); border-radius: 10px; padding: 8px 10px; border: 1px solid var(--line); min-width: 0; }
.sx-field b { font-size: 14px; }
.sx-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sx-ok { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--win-soft); color: var(--win-ink); font-weight: 800; }
.sx-ok svg { width: 15px; height: 15px; }
.sx-plan { flex-direction: row; align-items: stretch; }
.sx-cover { width: 92px; flex: none; border-radius: 12px; padding: 8px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  background: linear-gradient(transparent 30%, rgba(10,6,20,.8)), radial-gradient(120% 80% at 30% 20%, hsl(160 70% 46%), hsl(200 55% 15%)); position: relative; aspect-ratio: 9/14; }
.sx-cover .pill { position: absolute; top: 8px; left: 8px; font-size: 10px; padding: 2px 6px; }
.sx-cover b { font-size: 12px; line-height: 1.2; }
.sx-cover small { color: rgba(255,255,255,.75); font-size: 10.5px; }
.sx-items { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sx-items > div { background: var(--surface); border-radius: 10px; padding: 7px 10px; border: 1px solid var(--line); min-width: 0; }
.sx-items b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-live { align-items: center; }
.sx-phone { width: min(200px, 100%); aspect-ratio: 9/14; border-radius: 22px; padding: 10px; position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px;
  background: radial-gradient(110% 70% at 50% 30%, hsl(160 60% 38%), hsl(200 50% 10%)); border: 4px solid #0E0B1F; }
.sx-phone .pill { position: absolute; top: 10px; left: 10px; font-size: 10px; padding: 2px 6px; }
.sx-eye { position: absolute; top: 10px; right: 10px; display: inline-flex; gap: 4px; align-items: center; color: #fff; font-weight: 700; font-size: 11px; }
.sx-eye svg { width: 13px; height: 13px; }
.sx-card { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.95); color: #1A0F2E; border-radius: 12px; padding: 7px 8px; border: 2px solid var(--win); font-size: 12px; }
.sx-card > div { flex: 1; min-width: 0; }
.sx-card b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-card small { color: #0B6B45; font-weight: 700; }
.sx-ring { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 9px var(--f-mono); color: var(--live); border: 3px solid var(--live); animation: beat .5s ease-in-out infinite alternate; }
.sx-bid { display: flex; align-items: center; gap: 8px; height: 38px; border-radius: 11px; padding: 3px; color: #1A0F2E; background: linear-gradient(135deg, #FFE14D, #FFD21F); box-shadow: 0 3px 0 #B89200; }
.sx-bid > span:last-child { flex: 1; text-align: center; line-height: 1.05; }
.sx-bid small { color: rgba(26,15,46,.6); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sx-bid b { font-size: 14px; }
.sx-knob { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #5B16B0; color: #fff; animation: nudge 2.8s ease-in-out infinite; }
.sx-knob svg { width: 16px; height: 16px; }
[dir="rtl"] .sx-knob svg { transform: scaleX(-1); }
.sx-ship { gap: 0; }
.sx-st { display: flex; align-items: center; gap: 10px; padding: 7px 0; position: relative; font-weight: 700; }
.sx-st + .sx-st::before { content: ""; position: absolute; inset-inline-start: 13px; top: -7px; height: 14px; border-inline-start: 2px dashed var(--track); }
.sx-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--f-display); flex: none; }
.sx-dot svg { width: 15px; height: 15px; }
.sx-ship p { margin: 10px 0 0; color: var(--muted); }
.sx-paid dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; font-size: 14px; }
.sx-paid dt { color: var(--muted); } .sx-paid dd { margin: 0; text-align: end; }
.sx-paid .sx-keep { color: var(--ink); font-weight: 800; font-size: 17px; border-top: 1px solid var(--line); padding-top: 8px; }
.sx-cash { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-soft-ink); font-weight: 700; }

/* earnings calculator */
.sx-sliders { display: flex; flex-direction: column; gap: 14px; }
.sx-slider { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: baseline; font-weight: 600; }
.sx-slider b { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.sx-slider input { grid-column: 1 / -1; width: 100%; appearance: none; height: 8px; border-radius: 4px; --fill: 50%;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--track) var(--fill)); cursor: pointer; }
[dir="rtl"] .sx-slider input { background: linear-gradient(to left, var(--accent) var(--fill), var(--track) var(--fill)); }
.sx-slider input::-webkit-slider-thumb { appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); border: 3px solid var(--surface); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.sx-slider input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 3px solid var(--surface); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.sx-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sx-result > div { background: var(--sunk); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.sx-result small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.25; min-height: 2.5em; }
.sx-result b { font-size: 17px; white-space: nowrap; }
.sx-result .sx-keep { background: linear-gradient(135deg, #FFE14D, #FFD21F); color: #1A0F2E; }
.sx-result .sx-keep small { color: rgba(26,15,46,.7); }
.sx-result .sx-keep b { font-size: 20px; }
@media (max-width: 420px) { .sx-result { grid-template-columns: 1fr 1fr; } .sx-result .sx-keep { grid-column: 1 / -1; } .sx-result small { min-height: 0; } }
.sx-note { margin: 0; font-size: 13px; }

/* questions */
.sx-faq details { border-bottom: 1px solid var(--line); }
.sx-faq details:last-child { border-bottom: 0; }
.sx-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; font-weight: 700; cursor: pointer; }
.sx-faq summary::-webkit-details-marker { display: none; }
.sx-faq summary svg { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform .2s; }
.sx-faq details[open] summary svg { transform: rotate(180deg); }
.sx-faq p { margin: 0 0 14px; color: var(--muted); }

/* ---------- studio: next show readiness ---------- */
.ns-card { border: 2px solid var(--line); }
.ns-card.ready { border-color: var(--gold); }
.ns-top { display: flex; align-items: center; gap: 14px; }
.ns-top .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ns-ring { position: relative; width: 64px; height: 64px; flex: none; display: grid; place-items: center; }
.ns-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ns-ring .trk { fill: none; stroke: var(--track); stroke-width: 7; }
.ns-ring .arc { fill: none; stroke: var(--gold); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.ns-ring b { position: relative; font: 800 15px var(--f-display); }
.ns-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
[dir="rtl"] .ns-eyebrow { letter-spacing: 0; }
.ns-title { font: 800 19px/1.2 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-when { font-size: 14px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.ns-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ns-check li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.ns-check .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ns-check small { color: var(--muted); font-size: 12.5px; }
.ns-check li.done b { color: var(--muted); font-weight: 600; text-decoration: line-through; text-decoration-color: var(--track); }
.ns-box { width: 24px; height: 24px; flex: none; border-radius: 8px; border: 2px solid var(--track); display: grid; place-items: center; }
.ns-check li.done .ns-box { background: var(--win); border-color: var(--win); color: #fff; animation: pop .3s ease; }
.ns-box svg { width: 15px; height: 15px; }
.ns-go { margin-inline-start: auto; }
.ns-empty { align-items: flex-start; }
.ns-empty .muted { font-size: 14px; }

/* ---------- studio: last show and recap ---------- */
.lr-body { display: flex; flex-direction: column; gap: 10px; }
.lr-title { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.lr-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-title .muted { font-size: 13px; flex: none; }
.lr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.lr-stats > div { background: var(--sunk); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lr-stats b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-stats small { font-size: 11px; color: var(--muted); font-weight: 600; line-height: 1.2; }
.lr-stats > div:first-child { background: var(--gold); color: var(--gold-ink); }
.lr-stats > div:first-child small { color: color-mix(in srgb, var(--gold-ink) 70%, transparent); }
@media (max-width: 380px) { .lr-stats { grid-template-columns: 1fr 1fr; } }
.rc-total { border-radius: 18px; padding: 16px; background: linear-gradient(135deg, #FFE14D, #FFD21F); color: #1A0F2E; display: flex; flex-direction: column; gap: 2px; }
.rc-total small { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
[dir="rtl"] .rc-total small { letter-spacing: 0; }
.rc-total b { font-size: 36px; line-height: 1.1; }
.rc-total span { font-size: 14px; font-weight: 600; opacity: .8; }
.rc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rc-grid > div { background: var(--sunk); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.rc-grid b { font-size: 22px; }
.rc-grid small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.rc-top { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-soft-ink); }
.rc-top svg { width: 24px; height: 24px; flex: none; }
.rc-top .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rc-top small { font-size: 12px; font-weight: 700; opacity: .8; }
.rc-top .grow b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-unsold { display: flex; flex-direction: column; gap: 8px; }
.rc-unsold ul { margin: 0; padding-inline-start: 18px; color: var(--ink); font-size: 14px; }

/* ---------- search ---------- */
.sr-open { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 600; }
.sr-open svg { width: 20px; height: 20px; flex: none; }
.sr-bar { flex-direction: row; align-items: center; gap: 8px; position: relative; }
.sr-bar > span { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: grid; }
.sr-bar > span svg { width: 20px; height: 20px; }
.sr-bar .input { flex: 1; min-width: 0; padding-inline-start: 44px; }
.sr-hint { color: var(--muted); font-size: 14px; padding: 4px 2px; }
#sr-out { display: flex; flex-direction: column; gap: 20px; }
.sr-item { text-decoration: none; color: var(--ink); }

/* ---------- sign-up: code and terms ---------- */
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.otp .input { font-size: 24px; letter-spacing: .3em; text-align: center; }
.linkbtn { align-self: flex-start; border: 0; background: none; padding: 0; color: var(--accent); font-weight: 700; font-size: 14px; }
.legal-links { text-align: center; font-size: 13px; margin: 0; }
.legal-links a { color: var(--muted); }

/* ---------- order confirmation ---------- */
.oc-box { border-radius: 14px; padding: 12px; background: var(--gold-soft); color: var(--gold-soft-ink); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.oc-box b { color: var(--ink); font-size: 15px; }
.oc-box.wait { background: var(--warn-soft); color: var(--warn-ink); }
.btn-wa { background: #25D366; color: #06331A; }
.btn-wa svg { width: 18px; height: 18px; }

/* ---------- reports ---------- */
.rp-quote { border-inline-start: 3px solid var(--line); padding: 8px 12px; background: var(--sunk); border-radius: 10px; font-size: 14px; }
.rp-reasons { display: flex; flex-direction: column; gap: 6px; }
.rp-r { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.rp-r input { width: 18px; height: 18px; accent-color: var(--live); margin: 0; }
.rp-r:has(input:checked) { border-color: var(--live); background: var(--live-soft); }
.rp-open { border: 2px solid var(--warn-ink); }
.msg.can-report { cursor: pointer; }

/* ---------- legal pages ---------- */
.legal { gap: 18px; }
.legal h2 { font: 800 17px/1.3 var(--f-display); display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.legal h2 span { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-soft-ink); font-size: 13px; }
.legal p { margin: 0; color: var(--muted); line-height: 1.6; }

/* ---------- public show page ---------- */
.sp-page { padding: 0 0 calc(32px + var(--safe-b)); max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; }
.sp-hero { position: relative; aspect-ratio: 4 / 3; max-height: 56vh; width: 100%; overflow: hidden; color: #fff;
  background: radial-gradient(120% 80% at 30% 20%, hsl(var(--hue) 70% 46%), hsl(calc(var(--hue) + 40) 55% 15%)); }
.sp-hero img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.sp-hero .glyph { position: absolute; inset: 22% 32%; } .sp-hero .glyph svg { width: 100%; height: 100%; }
.sp-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, var(--bg)); }
.sp-back { position: absolute; z-index: 1; top: calc(12px + var(--safe-t)); inset-inline-start: 12px; text-decoration: none; }
.sp-body { position: relative; margin-top: -40px; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 14px; }
.sp-when { align-self: flex-start; font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); }
.sp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-soft { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--sunk); color: var(--muted); }
.sp-cd { display: flex; gap: 8px; }
.sp-cd > div { flex: 1; max-width: 90px; text-align: center; padding: 10px 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.sp-cd b { display: block; font-size: 26px; line-height: 1.1; }
.sp-cd small { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.sp-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.sp-seller { flex-direction: row; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.sp-seller .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sp-seller .muted { font-size: 13px; }
.sp-seller svg { width: 18px; height: 18px; color: var(--muted); }
[dir="rtl"] .sp-seller svg { transform: none !important; }

/* ---------- seller page ---------- */
.sl-head { display: flex; gap: 14px; align-items: center; }
.sl-head .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sl-av { width: 72px; height: 72px; flex: none; border-radius: 22px; display: grid; place-items: center; color: #fff; font: 800 26px var(--f-display);
  background: radial-gradient(circle at 30% 20%, hsl(var(--hue) 70% 50%), hsl(calc(var(--hue) + 40) 55% 18%)); box-shadow: 0 0 0 3px var(--gold); }
.sl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sl-stats > div { background: var(--surface); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; }
.sl-stats b { font-size: 19px; } .sl-stats small { color: var(--muted); font-size: 12px; font-weight: 600; }
.sl-rev { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.sl-rev:last-child { border-bottom: 0; }
.sl-rev p { margin: 0; }
.host-chip { cursor: pointer; }

/* ---------- payout statement ---------- */
.st-link { flex-direction: row; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.st-link .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-link .muted { font-size: 13px; }
.st-total { border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 2px solid var(--line); }
.st-total.due { border-color: var(--win); }
.st-total small { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .st-total small { letter-spacing: 0; }
.st-total > b { font-size: 34px; line-height: 1.1; }
.st-total > span { font-weight: 700; }
.st-total.owe > span { color: var(--warn-ink); } .st-total.due > span { color: var(--win-ink); }
.st-total dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 10px 0 0; font-size: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.st-total dt { color: var(--muted); } .st-total dd { margin: 0; text-align: end; }
.st-weeks { display: flex; flex-direction: column; gap: 8px; }
.st-week { gap: 10px; }
.st-week summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.st-week summary::-webkit-details-marker { display: none; }
.st-week summary .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-week summary .muted { font-size: 13px; }
.st-week summary > svg { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; flex: none; }
.st-week[open] summary > svg { transform: rotate(180deg); }
.st-amt { text-align: end; display: flex; flex-direction: column; }
.st-amt small { font-size: 11.5px; color: var(--warn-ink); font-weight: 600; } .st-amt small.pos { color: var(--win-ink); }
.st-lines { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.st-lines > div { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.st-lines > div:last-child { border-bottom: 0; }
.st-lines .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-lines .grow b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }

/* payouts */
.po-next{background:var(--y);color:#1A0F2E;border-radius:22px;padding:20px;display:flex;flex-direction:column;gap:2px}
.po-next small{font-weight:700;text-transform:uppercase;letter-spacing:.06em;font-size:12px;opacity:.75}
.po-next>b{font:800 clamp(36px,10vw,48px)/1.05 var(--f-display);letter-spacing:-.02em}
.po-next>span{font-weight:600}
.po-next em{font-style:normal;font-size:13px;opacity:.8}
.po-mini{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid rgba(26,15,46,.15)}
.po-mini small{text-transform:none;letter-spacing:0;font-size:12px;display:block;line-height:1.25}
.po-mini b{font-size:15px}
.po-bank form{display:flex;flex-direction:column;gap:10px}
.po-rib{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;font-size:14px}
.po-rib button{all:unset;cursor:pointer;background:var(--surface-2,rgba(127,127,127,.12));padding:4px 8px;border-radius:8px;font-size:13px}

/* ---------- sold to someone else ---------- */
.soldx { position: absolute; z-index: 3; left: 22px; right: 22px; top: 18%; max-width: 380px; margin: 0 auto; padding: 22px 18px 16px; border-radius: 28px;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 2px solid var(--live);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--live) 18%, transparent), 0 24px 60px rgba(0,0,0,.5);
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; animation: sxdrop .5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes sxdrop { from { transform: translateY(-30px) scale(.85); opacity: 0; } }
.sx-burst { position: absolute; left: 50%; top: 62px; width: 0; height: 0; pointer-events: none; }
.sx-burst i { position: absolute; width: 6px; height: 16px; margin: -8px -3px; border-radius: 3px; background: var(--gold);
  transform: rotate(var(--a)) translateY(-40px); opacity: 0; animation: sxray .7s .25s ease-out both; }
.sx-burst i:nth-child(odd) { background: var(--live); }
@keyframes sxray { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-34px) scaleY(.4); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-78px) scaleY(1); } }
.sx-art { position: relative; width: 84px; height: 84px; border-radius: 22px; overflow: visible; flex: none; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 20%, hsl(var(--hue) 70% 46%), hsl(calc(var(--hue) + 40) 55% 15%)); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.sx-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.sx-art svg { width: 52%; height: 52%; }
.sx-stamp { position: absolute; bottom: -10px; inset-inline-end: -26px; padding: 5px 10px; border-radius: 7px; background: var(--live); color: #fff;
  font: 800 15px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 3px 0 #8E1229; transform: rotate(-10deg);
  animation: sxstamp .5s .15s cubic-bezier(.2,1.3,.4,1) both; white-space: nowrap; }
[dir="rtl"] .sx-stamp { transform: rotate(10deg); letter-spacing: 0; font-family: "IBM Plex Sans Arabic", var(--f-display); animation-name: sxstamp-rtl; }
@keyframes sxstamp { 0% { transform: scale(2.6) rotate(-22deg); opacity: 0; } 60% { transform: scale(.9) rotate(-8deg); opacity: 1; } 100% { transform: rotate(-10deg); } }
@keyframes sxstamp-rtl { 0% { transform: scale(2.6) rotate(22deg); opacity: 0; } 60% { transform: scale(.9) rotate(8deg); opacity: 1; } 100% { transform: rotate(10deg); } }
.sx-title { margin-top: 8px; font-weight: 700; font-size: 15px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-price { font-size: 42px; line-height: 1.05; font-weight: 700; padding: 2px 14px; border-radius: 12px; background: var(--gold); color: #1A0F2E; }
.sx-price.done { animation: bump .5s cubic-bezier(.2,1.6,.4,1); }
.sx-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.sx-stats > span { padding: 3px 9px; border-radius: 999px; background: var(--sunk); display: inline-flex; align-items: center; gap: 4px; }
.sx-stats .sx-up { background: var(--win-soft); color: var(--win-ink); }
.sx-stats svg { width: 13px; height: 13px; }
.sx-who { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-soft-ink); font-weight: 700; font-size: 14px; }
[dir="rtl"] .sx-who { padding: 4px 4px 4px 12px; }
.sx-who svg { width: 16px; height: 16px; color: var(--gold-soft-ink); }
.sx-me { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.sx-me.close { color: var(--live-text); }
.sx-next { width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
[dir="rtl"] .sx-next { letter-spacing: 0; }
.sx-next i { flex: 1; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.sx-next em { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); transform-origin: left; animation: sxdrain var(--left) linear both; }
[dir="rtl"] .sx-next em { transform-origin: right; }
@keyframes sxdrain { to { transform: scaleX(0); } }

/* prototype: a seller's filmed clip playing as the live stream */
.room .stage video.demo-stream { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; background: #000; }
.room.streaming .stage .ph { display: none; }

/* Demo zone: practice shows are tagged, and the room says nothing is ordered. */
.pill.demo { background: #FFFFFF; color: #1A0F2E; border-radius: 6px; letter-spacing: .06em; text-transform: uppercase; box-shadow: inset 0 0 0 2px var(--gold, #FFD21F); }
.demo-note { position: absolute; z-index: 2; top: calc(96px + var(--safe-t)); left: 12px; max-width: min(320px, calc(100% - 84px)); margin: 0; padding: 7px 11px; border-radius: 12px; font-size: 12.5px; font-weight: 600; line-height: 1.35; color: #fff; background: rgba(20, 10, 40, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; }
.show-card.is-demo .thumb { outline: 2px dashed color-mix(in srgb, var(--gold, #FFD21F) 70%, transparent); outline-offset: -2px; }

/* Live chat stays out of the way of the stream: a narrow strip in the lower left, the last
   few lines as plain text over the video (no bubbles), fading out at the top. */
.r-chat { right: auto; width: min(64%, 300px); max-height: 19vh; gap: 1px; -webkit-mask-image: linear-gradient(transparent, #000 35%); mask-image: linear-gradient(transparent, #000 35%); }
[dir="rtl"] .r-chat { left: auto; right: 10px; }
.r-chat .msg, .r-chat .msg.glass { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border: 0; color: #fff; padding: 2px 4px 2px 0; font-size: 12.5px; line-height: 1.3; gap: 6px; align-items: flex-start; text-shadow: 0 1px 2px rgba(0,0,0,.75), 0 0 6px rgba(0,0,0,.35); }
.r-chat .msg b { color: #FFE27A; }
.r-chat .msg .avatar.sm { width: 20px; height: 20px; font-size: 9px; flex: none; text-shadow: none; }
.r-chat .msg.sys { color: rgba(255,255,255,.8); font-style: italic; }
.r-chat .msg.win { background: rgba(14, 120, 70, .78); color: #fff; padding: 3px 9px; border-radius: 10px; font-size: 12px; text-shadow: none; }
.r-chat .msg.win b { color: #fff; }
.r-chat .msg .host { text-shadow: none; }
.r-input { right: auto; width: min(64%, 300px); }
[dir="rtl"] .r-input { left: auto; right: 10px; }
.r-input input { height: 36px; font-size: 16px; }

/* The price on the item card flashes yellow when someone bids higher. */
.itemcard .price b { padding: 1px 6px; margin-inline-end: -6px; border-radius: 7px; }
.itemcard .price b.pflash { animation: pflash 1.2s ease-out; }
@keyframes pflash { 0%, 45% { background: #FFD21F; color: #15141C; transform: scale(1.12); } 100% { transform: scale(1); } }
/* With "Reduce motion" on (common on iPhones), keep the yellow flash but drop the movement. */
@keyframes pcolor { 0%, 50% { background: #FFD21F; color: #15141C; border-color: #FFD21F; } }
@media (prefers-reduced-motion: reduce) { .thumb .bot b.bump, .itemcard .price b.pflash { animation: pcolor 1.2s ease-out !important; } }

/* ---------- payment card ---------- */
.perks { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 10px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; }
.perks li div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.perks li b { font-size: 15px; }
.perks li span:not(.pk-ic) { font-size: 13px; color: var(--muted); }
.pk-ic { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold, #FFD21F) 30%, var(--surface)); color: var(--ink); }
.pk-ic svg { width: 20px; height: 20px; }
.card-ask { display: flex; flex-direction: column; gap: 12px; }
.card-ask .ca-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2, var(--accent))); color: var(--accent-ink, #fff); }
.card-ask .ca-ic svg { width: 28px; height: 28px; }
.ca-safe { font-size: 12px; margin: 0; text-align: center; }
.pill.verified { display: inline-flex; gap: 4px; align-items: center; background: color-mix(in srgb, var(--win, #1E9E5A) 16%, var(--surface)); color: var(--win-ink, #146B3D); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 4px 9px; }
.pill.verified svg { width: 14px; height: 14px; }
.vchk { display: inline-flex; vertical-align: -2px; margin-inline-start: 3px; color: #4FC3FF; }
.vchk svg { width: 14px; height: 14px; stroke-width: 2.4; }
.card-promo { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; border: 0; cursor: pointer; padding: 12px 14px; border-radius: 16px; background: linear-gradient(120deg, #2A0E5C, #6A1BC9); color: #fff; font: inherit; box-shadow: 0 6px 18px rgba(42,14,92,.25); }
.card-promo > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.card-promo b { font-size: 15px; color: #FFD21F; }
.card-promo small { font-size: 12.5px; opacity: .9; }
.card-promo .pk-ic { background: #FFD21F; color: #1A0F2E; }
.card-promo .cp-go { font-size: 26px; line-height: 1; opacity: .8; }
.testpay { display: flex; flex-direction: column; gap: 12px; }
.testpay .tp-head { display: flex; align-items: center; justify-content: space-between; }
.testpay .tp-card { position: relative; height: 150px; border-radius: 16px; padding: 18px; color: #fff; background: linear-gradient(135deg, #1A1F71, #3A47C9); display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 10px 24px rgba(26,31,113,.3); }
.testpay .tp-card span { font: 800 italic 22px var(--f-display, sans-serif); letter-spacing: .04em; align-self: flex-end; }
.testpay .tp-card b { font-size: 18px; letter-spacing: .08em; }
.testpay .tp-card i { font-style: normal; font-size: 12px; letter-spacing: .14em; opacity: .85; }
.banner svg { width: 18px; height: 18px; flex: none; }

/* ---------- Pay at CashPlus ---------- */
.cp-mini { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; background: #E30613; color: #fff; font: 800 11px/1.3 var(--f-body, sans-serif); letter-spacing: .02em; flex: none; }
.cp-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; border: 2px solid color-mix(in srgb, #E30613 35%, transparent); background: color-mix(in srgb, #E30613 5%, var(--surface)); }
.cp-head { display: flex; align-items: center; gap: 8px; }
.cp-code { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; text-align: start; }
.cp-code small { font-size: 12px; color: var(--muted); }
.cp-code b { flex: 1; font-size: 22px; letter-spacing: .06em; }
.cp-code span svg { width: 18px; height: 18px; color: var(--muted); }
.cp-switch { align-self: flex-start; gap: 8px; }
.cp-box .btn .pill.demo, .cp-switch .pill.demo { margin-inline-end: 6px; }
.wp-code { display: flex; flex-direction: column; align-items: center; margin: 8px auto 4px; padding: 8px 14px; border-radius: 12px; border: 1px dashed currentColor; width: max-content; }
.wp-code small { font-size: 11px; opacity: .75; }
.wp-code b { font-size: 22px; letter-spacing: .06em; }
#wp-pay a { display: block; margin-top: 4px; color: inherit; font-weight: 700; }
#ca-cp { white-space: normal; gap: 10px; }

/* ---------- Compact live room (tester feedback: the controls covered too much of the stream) ----------
   One slim dark-glass item bar, a shorter swipe button, a smaller icon rail anchored above the
   controls (never under the top bar), and a shorter chat strip. */
.r-bottom { gap: 6px; bottom: calc(10px + var(--safe-b)); }
.itemcard { gap: 10px; padding: 7px 10px 7px 7px; border-radius: 16px; background: rgba(14, 8, 30, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.itemcard .th { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); }
.itemcard .th svg { width: 22px; height: 22px; }
.itemcard .info b { font-size: 14px; }
.itemcard .info span { font-size: 12px; color: rgba(255,255,255,.72); }
.itemcard .info .lead { color: #fff; }
.itemcard .info .lead.me { color: #7CF5B0; }
.itemcard .info:has(#it-s:not(:empty)) #it-d { display: none; }
.itemcard .price b { font-size: 18px; color: #fff; }
.itemcard .price span { font-size: 10.5px; color: rgba(255,255,255,.7); }
.itemcard .ring { width: 42px; height: 42px; }
.itemcard .ring .trk { stroke: rgba(255,255,255,.22); }
.itemcard .ring span { font-size: 11px; color: #fff; }
.itemcard.leading { border-color: #7CF5B0; box-shadow: 0 0 0 3px rgba(124,245,176,.25), 0 6px 18px rgba(0,0,0,.25); }
.bidrow { gap: 8px; }
.bidrow .custom { width: 48px; height: 48px; border-radius: 14px; background: rgba(14, 8, 30, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; border-color: rgba(255,255,255,.18); }
.bidbtn { height: 48px; border-radius: 14px; font-size: 17px; }
.r-input { bottom: calc(132px + var(--safe-b)); }
.r-input input { height: 34px; font-size: 16px; padding: 0 14px; }
.r-chat { bottom: calc(172px + var(--safe-b)); max-height: 16vh; }
.r-rail { top: auto; bottom: calc(132px + var(--safe-b)); gap: 10px; }
.r-rail .it { font-size: 0; gap: 0; }
.r-rail .iconbtn { width: 38px; height: 38px; }
.r-rail .iconbtn svg { width: 19px; height: 19px; }
.demo-note { top: calc(92px + var(--safe-t)); font-size: 12px; padding: 5px 9px; border-radius: 10px; transition: opacity .6s; }
.demo-note.gone { opacity: 0; }
.r-rail .it.show-l { font-size: 10.5px; gap: 2px; }
/* Chat toggle: hides the chat strip and the message box. A dot shows new messages while hidden. */
.room.chat-hidden .r-chat, .room.chat-hidden .r-input { display: none; }
.r-rail .iconbtn .dot { position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--live, #E8264A); box-shadow: 0 0 0 2px #fff; }
.r-rail #chat-tg[aria-pressed="true"] { background: rgba(14, 8, 30, .62); color: #fff; }
/* See-through side icons and message box, so the stream shows through them. */
.r-rail .iconbtn, .r-rail .iconbtn.glass { background: rgba(14, 8, 30, .08); color: #fff; border: 1px solid rgba(255,255,255,.3); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.r-rail .iconbtn svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.r-rail #chat-tg[aria-pressed="true"] { background: rgba(14, 8, 30, .3); }
.r-input input, .r-input input.glass { background: rgba(14, 8, 30, .08); color: #fff; border: 1px solid rgba(255,255,255,.3); -webkit-backdrop-filter: none; backdrop-filter: none; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.r-input input::placeholder { color: rgba(255,255,255,.85); text-shadow: 0 1px 2px rgba(0,0,0,.6); }

/* Admin: tracked QR codes */
.qr-head { display: flex; gap: 14px; align-items: center; }
.qr-head img { flex: none; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.qr-bars { display: flex; align-items: flex-end; gap: 3px; height: 44px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.qr-bars i { flex: 1; min-height: 2px; background: var(--accent); border-radius: 2px 2px 0 0; }
