/* ===================== Bloxgem — theme ===================== */
:root {
  /* surfaces */
  --bg-0: #0c0a12;
  --bg-1: #100d18;
  --bg-2: #16121f;
  --bg-3: #1d1829;
  --bg-4: #261f37;
  --bg-5: #322a47;
  --line: rgba(255,255,255,0.07);
  --line-2: rgba(255,255,255,0.12);

  /* accent — violet */
  --vio: #a64dff;
  --vio-bright: #c084ff;
  --vio-deep: #7c2fe0;
  --vio-glow: rgba(166,77,255,0.45);
  --vio-dim: rgba(166,77,255,0.14);

  /* status */
  --green: #2fd07a;
  --green-glow: rgba(47,208,122,0.35);
  --red: #ff4d6d;
  --red-glow: rgba(255,77,109,0.35);

  /* metals */
  --gold: #ffcb3d;
  --silver: #cfd8e6;
  --bronze: #d18950;
  --noir: #15131c;

  /* text */
  --text: #efecf7;
  --muted: #8b85a0;
  --muted-2: #645e78;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --font: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --feed-w: 248px;
  --chat-w: 296px;
  --top-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-1);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#root { height: 100vh; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
::selection { background: var(--vio); color: #fff; }

/* scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--bg-5); }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ===================== layout shell ===================== */
.app {
  height: 100vh;
  display: grid;
  grid-template-columns: var(--feed-w) 1fr var(--chat-w);
  grid-template-rows: var(--top-h) 1fr;
  grid-template-areas:
    "top  top  top"
    "feed main chat";
  background:
    radial-gradient(1100px 600px at 50% -10%, rgba(166,77,255,0.10), transparent 60%),
    var(--bg-1);
}

/* ===================== top bar ===================== */
.topbar {
  grid-area: top;
  display: flex; align-items: center; gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(16,13,24,0.72);
  backdrop-filter: blur(14px);
  z-index: 40;
}
.logo { display: flex; align-items: center; gap: 11px; cursor: pointer; user-select: none; }
.logo .coin { width: 34px; height: 34px; }
.logo .logo-img { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(166,77,255,0.5)); }
.logo .word { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.logo .word b { color: var(--vio-bright); }
.logo .word span { color: var(--text); }

.top-nav { display: flex; gap: 4px; margin-left: 10px; }
.top-nav a {
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  padding: 8px 13px; border-radius: var(--r-sm); transition: .15s; cursor: pointer;
}
.top-nav a:hover { color: var(--text); background: var(--bg-3); }
.top-nav a.on { color: var(--vio-bright); background: var(--vio-dim); }
.support-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--green); background: rgba(47,208,122,0.1); border: 1px solid rgba(47,208,122,0.25); padding: 8px 13px; border-radius: var(--r-sm); transition: .15s; white-space: nowrap; }
.support-link:hover { background: rgba(47,208,122,0.18); }

/* stats + fair pills */
.top-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); padding: 8px 13px; border-radius: var(--r-sm); transition: .15s; white-space: nowrap; }
.top-pill:hover { color: var(--text); background: var(--bg-3); }
.top-pill.on { color: var(--vio-bright); background: var(--vio-dim); border-color: rgba(166,77,255,0.35); }
.top-pill.support-pill.alert { color: var(--green); border-color: rgba(47,208,122,0.55); animation: supportBlink 1s steps(1) infinite; }
@keyframes supportBlink { 0%,49% { background: rgba(47,208,122,0.24); border-color: rgba(47,208,122,0.65); color: #4fe39a; } 50%,100% { background: rgba(47,208,122,0.05); border-color: rgba(47,208,122,0.25); color: var(--green); } }
.top-pill.fair:hover { color: var(--vio-bright); border-color: rgba(166,77,255,0.3); }
.top-pill.gift { position: relative; }
.gift-dot { position: absolute; top: 4px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--bg-2), 0 0 8px var(--gold); animation: pulse 1.5s infinite; }
.top-pill img { width: 16px; height: 16px; object-fit: contain; display: block; flex-shrink: 0; }

/* auto-bet inputs */
.auto-inp { width: 100%; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; color: var(--text); font-weight: 600; font-size: 14px; outline: none; transition: .15s; }
.auto-inp:focus { border-color: var(--vio); box-shadow: 0 0 0 3px var(--vio-dim); }
.auto-inp:disabled { opacity: 0.5; }

/* rewards modal */
.rewards-modal, .lb-modal { width: min(480px, 100%); max-height: 88vh; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8); }
.rewards-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.daily-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.daily-day { position: relative; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 9px 4px; text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center; transition: .15s; }
.daily-day .dd-label { font-size: 9px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.daily-day .dd-coin { font-size: 11px; font-weight: 700; font-family: var(--mono); display: flex; align-items: center; gap: 3px; }
.daily-day .dd-coin .coin { width: 11px; height: 11px; }
.daily-day.claimed { opacity: 0.5; }
.daily-day.claimed .dd-check { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(47,208,122,0.12); border-radius: 10px; color: var(--green); font-size: 18px; font-weight: 700; }
.daily-day.today { border-color: var(--gold); background: rgba(255,203,61,0.1); box-shadow: 0 0 0 1px rgba(255,203,61,0.3); }
.rewards-body .btn .coin { width: 16px; height: 16px; }
.rw-hint { font-size: 11.5px; color: var(--muted-2); line-height: 1.45; text-align: center; }

/* rewards rework: rank strip + reward cards + history */
.rw-rankstrip { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, rgba(166,77,255,0.16), rgba(124,47,224,0.06)); border: 1px solid rgba(166,77,255,0.3); border-radius: 13px; padding: 13px 16px; }
.rw-rs-left { display: flex; align-items: center; gap: 9px; }
.rw-rs-name { font-size: 15px; font-weight: 700; }
.rw-rs-right { text-align: right; line-height: 1.1; }
.rw-rs-pct { font-size: 20px; font-weight: 700; font-family: var(--mono); color: var(--vio-bright); }
.rw-rs-lbl { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }
.rw-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.rw-card { background: var(--bg-3); border: 1px solid var(--line); border-radius: 13px; padding: 13px; display: flex; flex-direction: column; gap: 9px; transition: .15s; }
.rw-card.ready { border-color: rgba(166,77,255,0.4); }
.rw-card-top { display: flex; align-items: center; gap: 10px; }
.rw-card-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; border: 1px solid; flex-shrink: 0; }
.rw-card-meta { min-width: 0; display: flex; flex-direction: column; }
.rw-card-name { font-size: 13.5px; font-weight: 700; }
.rw-card-desc { font-size: 10.5px; color: var(--muted); }
.rw-card-amt { font-size: 18px; font-weight: 700; font-family: var(--mono); display: flex; align-items: center; gap: 5px; }
.rw-card-amt .coin { width: 15px; height: 15px; }
.rw-card-btn { width: 100%; padding: 9px; border-radius: 9px; font-size: 12.5px; font-weight: 700; background: var(--bg-4); color: var(--muted); border: 1px solid var(--line); transition: .14s; }
.rw-card-btn.ready { background: linear-gradient(180deg, var(--vio-bright), var(--vio)); color: #fff; border-color: transparent; }
.rw-card-btn.ready:hover { filter: brightness(1.08); }
.rw-card-btn:disabled { cursor: default; }
.rw-hist { margin-top: 2px; }
.rw-hist-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 9px; }
.rw-hist-empty { font-size: 12.5px; color: var(--muted-2); text-align: center; padding: 14px 0; }
.rw-hist-list { display: flex; flex-direction: column; gap: 6px; }
.rw-hist-row { display: flex; align-items: center; gap: 10px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; }
.rw-hist-type { font-size: 12.5px; font-weight: 600; flex: 1; }
.rw-hist-amt { font-size: 12.5px; font-weight: 700; font-family: var(--mono); color: var(--green); display: flex; align-items: center; gap: 3px; }
.rw-hist-amt .coin { width: 12px; height: 12px; }
.rw-hist-when { font-size: 11px; color: var(--muted-2); font-family: var(--mono); min-width: 56px; text-align: right; }
.lb-val.hidden { color: var(--muted); font-weight: 600; font-size: 12px; }

/* 2FA TOTP setup placeholder */
.totp-setup { display: flex; gap: 16px; align-items: flex-start; }
.totp-qr { position: relative; width: 120px; height: 120px; flex-shrink: 0; background: #fff; border-radius: 12px; padding: 9px; }
.totp-qr-grid { display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); width: 100%; height: 100%; gap: 1px; }
.totp-qr-grid .tq { background: transparent; border-radius: 1px; }
.totp-qr-grid .tq.on { background: #0c0a12; }
.totp-qr-tag { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); font-size: 9px; font-weight: 700; background: var(--bg-4); color: var(--muted); padding: 2px 8px; border-radius: 5px; border: 1px solid var(--line); }
.totp-side { flex: 1; min-width: 0; }
.totp-step { font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.totp-secret { display: flex; align-items: center; gap: 8px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; margin-bottom: 12px; }
.totp-secret .mono { font-size: 13px; letter-spacing: 0.06em; flex: 1; }
.totp-code-row { display: flex; gap: 6px; }
.totp-digit { width: 100%; aspect-ratio: 1; max-width: 38px; text-align: center; background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-family: var(--mono); font-size: 16px; font-weight: 700; }

/* leaderboard */
.lb-tabs { display: flex; gap: 4px; padding: 0 20px 12px; border-bottom: 1px solid var(--line); }
.lb-tabs button { flex: 1; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 9px; border-radius: 8px; transition: .12s; }
.lb-tabs button:hover { color: var(--text); }
.lb-tabs button.on { background: var(--vio-dim); color: var(--vio-bright); }
.lb-body { padding: 12px 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; }
.lb-row { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; background: var(--bg-3); border: 1px solid transparent; }
.lb-row.top { background: var(--bg-4); }
.lb-row.me { border-color: rgba(166,77,255,0.45); background: var(--vio-dim); }
.lb-rank { width: 26px; text-align: center; font-weight: 700; font-size: 14px; font-family: var(--mono); color: var(--muted); flex-shrink: 0; }
.lb-row.top .lb-rank { font-size: 17px; }
.lb-av { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; flex-shrink: 0; }
.lb-name { flex: 1; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; }
.lb-val { font-family: var(--mono); font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 4px; color: var(--text); }
.lb-val .coin { width: 13px; height: 13px; }
.lb-val.neg { color: var(--red); }
.lb-myrank { padding: 11px 20px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--vio-bright); text-align: center; }

/* ranking modal */
.rank-modal, .aff-modal { width: min(440px, 100%); max-height: 88vh; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8); }
.rank-body { padding: 14px 18px 18px; overflow-y: auto; }
.rank-sec-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 9px; }
.rank-row { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 11px; background: var(--bg-3); border: 1px solid var(--line); margin-bottom: 7px; }
.rank-row.cur { border-color: rgba(166,77,255,0.45); background: var(--vio-dim); }
.rank-row.top { background: linear-gradient(135deg, rgba(61,139,255,0.1), var(--bg-3)); }
.rank-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rank-nm { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.rank-cur-tag { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--vio-bright); background: rgba(166,77,255,0.18); padding: 2px 7px; border-radius: 5px; }
.rank-req { font-size: 11.5px; color: var(--muted); }
.rank-rake { text-align: right; line-height: 1.1; flex-shrink: 0; }
.rank-rake .rk-pct { font-size: 16px; font-weight: 700; font-family: var(--mono); color: var(--green); }
.rank-rake .rk-lbl { display: block; font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }

/* affiliate modal */
.aff-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.aff-boost { color: var(--green); font-weight: 700; }
.aff-link-row { display: flex; gap: 8px; align-items: stretch; }
.aff-link { flex: 1; min-width: 0; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; }
.aff-link-lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.aff-link-url { font-size: 13px; color: var(--vio-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aff-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.aff-stat { background: var(--bg-3); border: 1px solid var(--line); border-radius: 11px; padding: 12px 10px; display: flex; flex-direction: column; gap: 5px; align-items: center; text-align: center; }
.aff-stat .as-k { font-size: 10.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.aff-stat .as-v { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.aff-stat .as-v .coin { width: 14px; height: 14px; }
.aff-stat .as-v.pos { color: var(--green); }
.aff-note { font-size: 11.5px; color: var(--muted-2); line-height: 1.45; text-align: center; }

/* draggable session stats widget */
.stats-widget { position: fixed; z-index: 85; width: 264px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 50px -14px rgba(0,0,0,0.7); overflow: hidden; animation: popIn .16s cubic-bezier(.2,.9,.2,1); }
.stats-widget .sw-head { display: flex; align-items: center; gap: 7px; padding: 9px 10px 9px 11px; background: var(--bg-3); border-bottom: 1px solid var(--line); cursor: grab; user-select: none; touch-action: none; }
.stats-widget .sw-head:active { cursor: grabbing; }
.stats-widget .sw-grip { color: var(--muted-2); font-size: 13px; letter-spacing: -2px; }
.stats-widget .sw-title { font-size: 12.5px; font-weight: 700; }
.stats-widget .sw-actions { margin-left: auto; display: flex; gap: 2px; }
.stats-widget .sw-btn { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); font-size: 13px; transition: .12s; }
.stats-widget .sw-btn:hover { color: var(--text); background: var(--bg-4); }
.stats-widget .sw-btn:disabled { opacity: 0.35; cursor: default; }
.stats-widget .sw-net { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 13px 8px; }
.stats-widget .sw-netval { font-size: 24px; font-weight: 700; font-family: var(--mono); letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 6px; }
.stats-widget .sw-netval .coin { width: 18px; height: 18px; }
.stats-widget .sw-netval.pos { color: var(--green); }
.stats-widget .sw-netval.neg { color: var(--red); }
.stats-widget .sw-netlabel { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.stats-widget .sw-chart { height: 64px; margin: 0 11px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stats-widget .sw-chart .pnl-svg { width: 100%; height: 100%; display: block; }
.stats-widget .sw-chartempty { height: 100%; display: grid; place-items: center; font-size: 10.5px; color: var(--muted-2); }
.stats-widget .sw-stats { display: flex; padding: 10px 11px 12px; gap: 6px; }
.stats-widget .sw-stats > div { flex: 1; background: var(--bg-3); border: 1px solid var(--line); border-radius: 9px; padding: 7px 8px; display: flex; flex-direction: column; gap: 2px; }
.stats-widget .sw-stats .k { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; }
.stats-widget .sw-stats .v { font-size: 12.5px; font-weight: 700; font-family: var(--mono); display: flex; align-items: center; gap: 3px; }
.stats-widget .sw-stats .v .coin { width: 11px; height: 11px; }

/* provably-fair chip (in game panel) */
.fair-chip { display: flex; align-items: center; gap: 7px; width: 100%; margin-top: auto; padding: 9px 11px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-sm); transition: .14s; cursor: pointer; font-family: var(--mono); }
.fair-chip:hover { border-color: rgba(47,208,122,0.4); background: var(--bg-4); }
.fair-chip .fc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green-glow); flex-shrink: 0; }
.fair-chip .fc-txt { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fair-chip .fc-nonce { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted-2); }
.fair-chip:hover .fc-txt { color: var(--text); }

/* fairness + stats modals */
.pf-modal, .stats-modal { width: min(540px, 100%); max-height: 88vh; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8); }
.pf-head { display: flex; align-items: center; gap: 13px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.pf-head h2 { font-size: 18px; font-weight: 700; }
.pf-head .pf-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pf-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: var(--vio-dim); border: 1px solid rgba(166,77,255,0.3); flex-shrink: 0; overflow: hidden; }
.pf-ic img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: inherit; }
.pf-head .modal-x { margin-left: auto; }
.pf-body { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.pf-field { display: flex; flex-direction: column; gap: 6px; }
.pf-field > label { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pf-copy { display: flex; gap: 8px; }
.pf-input { flex: 1; min-width: 0; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; color: var(--text); font-size: 13px; outline: none; transition: .15s; }
.pf-input.mono { font-family: var(--mono); font-size: 11.5px; }
.pf-input:focus { border-color: var(--vio); box-shadow: 0 0 0 3px var(--vio-dim); }
.pf-copybtn { flex-shrink: 0; width: 44px; border-radius: 10px; background: var(--bg-4); border: 1px solid var(--line); color: var(--text); font-size: 15px; transition: .14s; }
.pf-copybtn:hover { background: var(--bg-5); color: var(--vio-bright); }
.pf-hint { font-size: 11.5px; color: var(--muted-2); line-height: 1.45; margin-top: -4px; }
.pf-nonce-row { display: flex; gap: 10px; }
.pf-nonce { flex: 1; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; display: flex; flex-direction: column; gap: 3px; }
.pf-nonce .k { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.pf-nonce .v { font-size: 17px; font-weight: 700; }
.pf-prev { background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.pf-prev-title { font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.04em; }
.pf-prev-meta { font-size: 11.5px; color: var(--muted); }

/* stats modal */
.stats-body { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.stats-net { text-align: center; }
.stats-net .sn-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.stats-net .sn-val { font-size: 38px; font-weight: 700; font-family: var(--mono); letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.stats-net .sn-val .coin { width: 28px; height: 28px; }
.stats-net .sn-val.pos { color: var(--green); }
.stats-net .sn-val.neg { color: var(--red); }
.pnl-wrap { background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 10px; height: 180px; }
.pnl-svg { width: 100%; height: 100%; display: block; }
.pnl-empty { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.stats-grid .sg { background: var(--bg-3); border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; display: flex; flex-direction: column; gap: 4px; }
.stats-grid .sg .k { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; }
.stats-grid .sg .v { font-size: 16px; font-weight: 700; font-family: var(--mono); display: flex; align-items: center; gap: 5px; }
.stats-grid .sg .v .coin { width: 14px; height: 14px; }
.stats-bygame { background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; padding: 13px; }
.sbg-title { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.sbg-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.sbg-row:last-child { border-bottom: none; }
.sbg-name { font-size: 13px; font-weight: 600; flex: 1; }
.sbg-bets { font-size: 11.5px; color: var(--muted); }
.sbg-pnl { font-size: 13px; font-weight: 700; min-width: 64px; text-align: right; }
.sbg-pnl.pos { color: var(--green); }
.sbg-pnl.neg { color: var(--red); }

@media (max-width: 1180px) {
  .top-pill span { display: none; }
  .top-pill { padding: 8px 11px; }
}

.top-spacer { flex: 1; }

.balance-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 6px 6px 6px 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.balance-chip .amt { display: flex; align-items: center; gap: 7px; }
.balance-chip .amt .coin { width: 18px; height: 18px; }
.balance-chip .amt .bal-gem { width: 19px; height: 19px; object-fit: contain; filter: drop-shadow(0 1px 4px rgba(166,77,255,0.6)); }
.balance-chip .amt .val { font-family: var(--mono); font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }
.wallet-btn {
  background: linear-gradient(180deg, var(--vio-bright), var(--vio));
  color: #fff; font-weight: 700; font-size: 13px;
  padding: 9px 16px; border-radius: var(--r-sm);
  box-shadow: 0 4px 14px -4px var(--vio-glow);
  transition: .15s;
}
.wallet-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.wallet-btn:active { transform: translateY(0); }

.user-chip { display: flex; align-items: center; gap: 9px; padding-left: 4px; }
.user-chip .av {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--vio), var(--vio-deep));
  display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
}
.user-chip .meta { display: flex; flex-direction: column; line-height: 1.15; }
.user-chip .meta .nm { font-size: 13.5px; font-weight: 600; }
.user-chip .meta .lv { font-size: 11px; color: var(--muted); font-family: var(--mono); }

.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; display: none;
  place-items: center; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line);
}
.icon-btn:hover { color: var(--text); }

/* ===================== side panels ===================== */
.feed { grid-area: feed; border-right: 1px solid var(--line); }
.chat { grid-area: chat; border-left: 1px solid var(--line); }
.feed, .chat {
  background: var(--bg-2);
  display: flex; flex-direction: column;
  min-height: 0;
}
.panel-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px 12px; flex-shrink: 0;
}
.panel-head .ttl { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.panel-head .live {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--green); font-family: var(--mono);
}
.panel-head .live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green-glow); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* live feed */
.feed-list { flex: 1; overflow-y: auto; padding: 0 10px 14px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.feed-row {
  display: flex; align-items: center; gap: 9px;
  background: var(--bg-3); border: 1px solid transparent;
  border-radius: 10px; padding: 8px 10px;
  animation: feedIn .35s cubic-bezier(.2,.8,.2,1);
}
.feed-row.win { border-color: rgba(47,208,122,0.18); }
.feed-row.loss { border-color: rgba(255,77,109,0.14); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.feed-row .gi {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--bg-4); font-size: 15px;
  overflow: hidden;
}
.feed-row .gi img {
  width: 100%; height: 100%; object-fit: contain; border-radius: inherit; display: block;
}
.feed-row .fm { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; flex: 1; }
.feed-row .fm .u { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-row .fm .g { font-size: 10.5px; color: var(--muted); }
.feed-row .fp { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.feed-row .fp .mult { font-size: 11px; font-family: var(--mono); color: var(--muted); }
.feed-row .fp .pay { font-size: 12.5px; font-weight: 700; font-family: var(--mono); display: flex; align-items: center; gap: 3px; }
.feed-row.win .fp .pay { color: var(--green); }
.feed-row.loss .fp .pay { color: var(--red); }
.feed-row .fp .pay .coin { width: 12px; height: 12px; }

/* chat */
.chat-list { flex: 1; overflow-y: auto; padding: 4px 14px 12px; display: flex; flex-direction: column; gap: 11px; min-height: 0; }
.chat-msg { display: flex; gap: 9px; animation: feedIn .3s ease; }
.chat-msg .cav {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; margin-top: 1px;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff;
}
.chat-msg .cbody { min-width: 0; }
.chat-msg .chead { display: flex; align-items: baseline; gap: 7px; }
.chat-msg .chead .cn { font-size: 12.5px; font-weight: 700; }
.rank-badge { display: inline-flex; align-items: center; gap: 2px; font-size: 9px; font-weight: 800; letter-spacing: 0.03em; padding: 1px 5px; border-radius: 5px; border: 1px solid; text-transform: uppercase; line-height: 1.5; flex-shrink: 0; }
.rank-badge.is-top { padding: 1px 5px 1px 3px; }
.rank-badge .rb-crown { font-size: 8px; }
.chat-msg .chead .rank-badge { margin-right: 1px; }
.lb-name .rank-badge { margin-left: 7px; }
.user-chip .meta .lv { font-weight: 700; }
.chat-msg .chead .ct { font-size: 10px; color: var(--muted-2); font-family: var(--mono); }
.chat-msg .ctext { font-size: 13px; color: #cfcad9; line-height: 1.4; word-wrap: break-word; }
.chat-msg .ctext .men { color: var(--vio-bright); font-weight: 600; }
.rain-msg { background: var(--vio-dim); border: 1px solid rgba(166,77,255,0.25); border-radius: 10px; padding: 9px 11px; }
.tip-msg { background: rgba(47,208,122,0.1); border: 1px solid rgba(47,208,122,0.3); border-radius: 10px; padding: 9px 11px; font-size: 12.5px; color: #cfcad9; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tip-msg b { color: var(--green); }
.tip-msg .tip-amt { display: inline-flex; align-items: center; gap: 3px; font-family: var(--mono); font-weight: 700; color: var(--green); }
.tip-msg .tip-amt .coin { width: 12px; height: 12px; }

/* rain banner in chat */
.rain-banner { flex-shrink: 0; margin: 0 14px 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(166,77,255,0.22), rgba(124,47,224,0.12)); border: 1px solid rgba(166,77,255,0.4); animation: feedIn .3s ease; }
.rain-banner .rb-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rain-banner .rb-emoji { font-size: 22px; }
.rain-banner .rb-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.rain-banner .rb-title { font-size: 13px; font-weight: 700; color: var(--text); }
.rain-banner .rb-sub { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.rain-banner .rb-join { flex-shrink: 0; background: var(--vio); color: #fff; font-weight: 700; font-size: 12.5px; padding: 8px 16px; border-radius: 9px; transition: .14s; }
.rain-banner .rb-join:hover:not(:disabled) { background: var(--vio-bright); }
.rain-banner .rb-join:disabled { background: var(--bg-5); color: var(--muted); cursor: default; }

/* support agent name */
.s-msg .sm-agent { font-size: 10.5px; font-weight: 700; color: var(--vio-bright); margin-bottom: 3px; }

/* self-exclusion notice (replaces game board) */
.exclude-notice { max-width: 460px; margin: 60px auto; text-align: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 40px 32px; }
.exclude-notice .ex-ic { font-size: 50px; }
.exclude-notice h2 { font-size: 22px; font-weight: 700; margin: 14px 0 8px; }
.exclude-notice p { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 8px; }
.exclude-notice .ex-sub { font-size: 12.5px; color: var(--muted-2); margin-bottom: 18px; }

/* responsible play (settings) */
.rp-intro { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.rp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rp-opt { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); transition: .14s; text-align: center; }
.rp-opt:hover { border-color: var(--vio); background: var(--vio-dim); }
.rp-opt .rp-dur { font-size: 16px; font-weight: 700; }
.rp-opt .rp-sub { font-size: 11.5px; color: var(--muted); }
.rp-warn { font-size: 12px; color: var(--gold); margin-top: 14px; }
.rp-active { display: flex; gap: 14px; align-items: center; background: rgba(255,203,61,0.1); border: 1px solid rgba(255,203,61,0.3); border-radius: 14px; padding: 18px; }
.rp-active .rp-ic { font-size: 30px; }
.rp-active-t { font-size: 15px; font-weight: 700; color: var(--gold); }
.rp-active-d { font-size: 13px; color: var(--text); margin-top: 3px; }
.rp-active-sub { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* ===================== auth (mailless login) ===================== */
.auth-wrap { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; overflow-y: auto;
  background: radial-gradient(800px 520px at 50% 0%, rgba(166,77,255,0.16), transparent 62%), var(--bg-1); }
.auth-bg-glow { position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(420px 420px at 18% 88%, rgba(124,47,224,0.14), transparent 60%), radial-gradient(360px 360px at 88% 12%, rgba(166,77,255,0.12), transparent 60%); }
.auth-card { position: relative; width: 400px; max-width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 22px; padding: 30px 30px 22px; box-shadow: 0 40px 100px -30px rgba(0,0,0,0.85); animation: popIn .25s cubic-bezier(.2,.9,.2,1); }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.auth-logo .coin { width: 30px; height: 30px; }
.auth-logo .auth-logo-img { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(166,77,255,0.55)); }
.auth-logo b { color: var(--vio-bright); }
.auth-tagline { text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; margin-bottom: 20px; }
.auth-tabs { display: flex; gap: 5px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.auth-tabs button { flex: 1; font-size: 13.5px; font-weight: 700; color: var(--muted); padding: 10px; border-radius: 9px; transition: .14s; }
.auth-tabs button.on { background: var(--bg-5); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.auth-form { display: flex; flex-direction: column; }
.auth-label { font-size: 11.5px; font-weight: 600; color: var(--muted); margin: 10px 0 6px; letter-spacing: 0.02em; }
.auth-input { background: var(--bg-3); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; color: var(--text); font-size: 14px; outline: none; transition: .15s; width: 100%; }
.auth-input:focus { border-color: var(--vio); box-shadow: 0 0 0 3px var(--vio-dim); }
select.auth-input { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%238b85a0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
.pw-meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pw-bars { display: flex; gap: 4px; flex: 1; }
.pw-bars span { flex: 1; height: 4px; border-radius: 3px; transition: background .2s; }
.pw-label { font-size: 11.5px; font-weight: 700; min-width: 46px; text-align: right; }
.auth-check { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0 4px; font-size: 12.5px; color: var(--muted); line-height: 1.4; cursor: pointer; }
.auth-check input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--vio); flex-shrink: 0; cursor: pointer; }
.auth-err { background: rgba(255,77,109,0.12); border: 1px solid rgba(255,77,109,0.3); color: var(--red); font-size: 12.5px; font-weight: 600; padding: 9px 12px; border-radius: 10px; margin-top: 14px; animation: shakeA .35s; }
@keyframes shakeA { 0%,100%{ transform: translateX(0); } 25%{ transform: translateX(-5px); } 75%{ transform: translateX(5px); } }
.auth-btn { margin-top: 18px; padding: 14px; border-radius: 12px; background: linear-gradient(180deg, var(--vio-bright), var(--vio)); color: #fff; font-weight: 700; font-size: 14.5px; transition: .15s; box-shadow: 0 8px 24px -8px var(--vio-glow); }
.auth-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.auth-ghost { margin-top: 12px; padding: 12px; border-radius: 11px; background: var(--bg-3); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: 13.5px; transition: .14s; }
.auth-ghost:hover { background: var(--bg-4); color: var(--vio-bright); }
.auth-switch { margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--vio-bright); transition: .12s; }
.auth-switch:hover { text-decoration: underline; }
.auth-switch.dim { color: var(--muted); }
.auth-links { display: flex; align-items: center; justify-content: space-between; }
.auth-seg { display: flex; gap: 5px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 11px; padding: 4px; }
.auth-seg button { flex: 1; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 9px; border-radius: 8px; transition: .14s; }
.auth-seg button.on { background: var(--bg-5); color: var(--text); }
.auth-langs { display: flex; justify-content: center; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.auth-langs button { font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 11px; border-radius: 8px; transition: .12s; }
.auth-langs button.on { background: var(--vio-dim); color: var(--vio-bright); }
.rev-ic { text-align: center; font-size: 46px; margin: 6px 0 2px; }
.auth-title { text-align: center; font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 13px; line-height: 1.5; margin-bottom: 18px; }
.rev-code { text-align: center; font-size: 20px; font-weight: 700; letter-spacing: 0.06em; color: var(--vio-bright); background: var(--bg-3); border: 1px dashed rgba(166,77,255,0.45); border-radius: 12px; padding: 16px; }

.chat-input { flex-shrink: 0; padding: 12px 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.chat-input input {
  flex: 1; background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 12px; color: var(--text); font-size: 13px; outline: none; transition: .15s;
}
.chat-input input:focus { border-color: var(--vio); box-shadow: 0 0 0 3px var(--vio-dim); }
.chat-input .send { width: 40px; border-radius: var(--r-sm); background: var(--vio); color: #fff; display: grid; place-items: center; transition: .15s; }
.chat-input .send:hover { background: var(--vio-bright); }

/* ===================== main scroll ===================== */
.main { grid-area: main; overflow-y: auto; min-height: 0; }
.main-inner { max-width: 1080px; margin: 0 auto; padding: 26px 28px 60px; }

/* ===================== buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 14px; border-radius: var(--r-md);
  padding: 13px 18px; transition: .15s; white-space: nowrap;
}
.btn-primary { background: linear-gradient(180deg, var(--vio-bright), var(--vio)); color: #fff; box-shadow: 0 6px 20px -6px var(--vio-glow); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.07); transform: translateY(-1px); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-green { background: linear-gradient(180deg, #3ee08a, var(--green)); color: #06210f; box-shadow: 0 6px 20px -6px var(--green-glow); }
.btn-green:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost { background: var(--bg-3); border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover:not(:disabled) { background: var(--bg-4); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.lg { padding: 16px; font-size: 15px; }
.btn .coin { width: 16px; height: 16px; flex-shrink: 0; }

/* ===================== bet panel / inputs ===================== */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.amt-wrap { display: flex; align-items: stretch; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: .15s; }
.amt-wrap:focus-within { border-color: var(--vio); box-shadow: 0 0 0 3px var(--vio-dim); }
.amt-wrap .coin-pre { display: grid; place-items: center; padding-left: 12px; }
.amt-wrap .coin-pre .coin { width: 17px; height: 17px; }
.amt-wrap input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  color: var(--text); font-family: var(--mono); font-weight: 600; font-size: 15px; padding: 12px 8px; letter-spacing: -0.01em;
}
.amt-wrap .ab { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 11px; transition: .12s; border-left: 1px solid var(--line); }
.amt-wrap .ab:hover { color: var(--vio-bright); background: var(--bg-4); }

.seg { display: flex; gap: 4px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px; }
.seg button {
  flex: 1; font-size: 13px; font-weight: 700; color: var(--muted);
  padding: 9px 6px; border-radius: 8px; transition: .14s;
}
.seg button.on { background: var(--bg-5); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.seg button:not(.on):hover { color: var(--text); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.stat .k { font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.03em; text-transform: uppercase; }
.stat .v { font-size: 16px; font-weight: 700; font-family: var(--mono); letter-spacing: -0.01em; display: flex; align-items: center; gap: 4px; }
.stat .v .coin { width: 14px; height: 14px; }

/* ===================== game shell ===================== */
.game-top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600;
  color: var(--muted); background: var(--bg-2); border: 1px solid var(--line);
  padding: 9px 14px; border-radius: var(--r-md); transition: .15s;
}
.back-btn:hover { color: var(--text); background: var(--bg-3); }
.game-title { display: flex; align-items: center; gap: 11px; }
.game-title h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.game-title .gicon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; }

.game-shell { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.game-panel {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
}
.game-board {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  min-height: 460px; padding: 22px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.board-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 380px at 50% 0%, rgba(166,77,255,0.07), transparent 65%);
}

/* generic divider */
.hr { height: 1px; background: var(--line); border: none; }

/* toast / win popups */
.toast-host { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-3); border: 1px solid var(--line-2);
  border-radius: var(--r-md); padding: 11px 16px; font-weight: 700; font-size: 14px;
  box-shadow: 0 14px 40px -10px rgba(0,0,0,0.6);
  animation: toastIn .35s cubic-bezier(.2,.9,.2,1);
}
.toast.win { border-color: rgba(47,208,122,0.4); box-shadow: 0 14px 44px -10px var(--green-glow); }
.toast.win .v { color: var(--green); font-family: var(--mono); }
.toast.loss { border-color: rgba(255,77,109,0.35); }
.toast.loss .v { color: var(--red); font-family: var(--mono); }
.toast .coin { width: 17px; height: 17px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* number ticker reusable */
.flash-win { animation: flashWin .5s ease; }
@keyframes flashWin { 0%{ color: var(--green); } 100%{} }

/* ===================== lobby ===================== */
.hero {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line); margin-bottom: 26px;
  background:
    radial-gradient(600px 300px at 12% 20%, rgba(166,77,255,0.30), transparent 60%),
    radial-gradient(500px 260px at 90% 90%, rgba(124,47,224,0.22), transparent 60%),
    linear-gradient(160deg, var(--bg-3), var(--bg-2));
  padding: 34px 36px;
}
.hero h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 10px; }
.hero h2 b { color: var(--vio-bright); }
.hero p { color: var(--muted); font-size: 15px; max-width: 440px; line-height: 1.5; }
.hero .hero-stats { display: flex; gap: 28px; margin-top: 22px; }
.hero .hero-stats .hs .n { font-size: 22px; font-weight: 700; font-family: var(--mono); letter-spacing: -0.02em; }
.hero .hero-stats .hs .l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.hero .hglow { position: absolute; right: -40px; top: -40px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, var(--vio-glow), transparent 70%); filter: blur(10px); pointer-events: none; }

.section-label { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; }
.section-label h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.section-label .ln { flex: 1; height: 1px; background: var(--line); }
.section-label .cnt { font-size: 12.5px; color: var(--muted); font-family: var(--mono); }

.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* horizontal game rail (slider) */
.rail-nav { display: flex; gap: 6px; margin-left: 4px; }
.rail-btn { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); font-size: 18px; line-height: 1; transition: .14s; }
.rail-btn:hover:not(:disabled) { background: var(--bg-3); border-color: rgba(166,77,255,0.4); color: var(--vio-bright); }
.rail-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.game-rail-wrap { position: relative; }
.game-rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: none; -ms-overflow-style: none; }
.game-rail::-webkit-scrollbar { display: none; }
.game-rail .gcard { scroll-snap-align: start; flex: 0 0 clamp(220px, 30%, 280px); }
.gcard {
  position: relative; border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-2);
  aspect-ratio: 4 / 3.1; display: flex; flex-direction: column;
  transition: .2s cubic-bezier(.2,.8,.2,1);
}
.gcard:hover { transform: translateY(-4px); border-color: rgba(166,77,255,0.5); box-shadow: 0 18px 40px -16px rgba(0,0,0,0.7), 0 0 0 1px rgba(166,77,255,0.15); }
.gcard .art { flex: 1; position: relative; overflow: hidden; }
.gcard .art .scene { position: absolute; inset: 0; }
.gcard .gfoot { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; background: rgba(12,10,18,0.5); border-top: 1px solid var(--line); }
.gcard .gfoot .nm { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.gcard .gfoot .play { font-size: 12px; font-weight: 700; color: var(--vio-bright); display: flex; align-items: center; gap: 5px; opacity: 0; transform: translateX(-4px); transition: .2s; }
.gcard:hover .gfoot .play { opacity: 1; transform: none; }
.gcard .ribbon { position: absolute; top: 11px; left: 11px; z-index: 3; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: rgba(12,10,18,0.7); backdrop-filter: blur(6px); border: 1px solid var(--line); color: var(--muted); }
.gcard .ribbon.hot { color: var(--vio-bright); border-color: rgba(166,77,255,0.4); }

/* mobile drawers toggles default hidden */
.drawer-scrim { display: none; }

/* preference: reduced motion */
.reduce-motion * { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; }

/* ===================== blackjack ===================== */
.bj-board { padding: 22px; }
.bj-felt { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 6px 0; }
.bj-hand-wrap { display: flex; flex-direction: column; gap: 9px; align-items: center; }
.bj-hand-head { display: flex; align-items: center; gap: 9px; }
.bj-hand-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.bj-hand-val { font-family: var(--mono); font-weight: 700; font-size: 14px; background: var(--bg-4); border: 1px solid var(--line); border-radius: 7px; padding: 2px 9px; min-width: 30px; text-align: center; }
.bj-badge { font-size: 10px; font-weight: 800; letter-spacing: 0.04em; padding: 2px 7px; border-radius: 5px; text-transform: uppercase; }
.bj-badge.bust { background: rgba(255,77,109,0.16); color: var(--red); border: 1px solid rgba(255,77,109,0.4); }
.bj-badge.bj { background: rgba(255,203,61,0.16); color: var(--gold); border: 1px solid rgba(255,203,61,0.4); }
.bj-cards { display: flex; gap: 8px; min-height: 96px; align-items: center; justify-content: center; flex-wrap: wrap; }
.bj-card { width: 68px; height: 96px; border-radius: 9px; background: linear-gradient(160deg,#fff,#ece7f5); border: 1px solid rgba(0,0,0,0.18); position: relative; flex-shrink: 0; box-shadow: 0 6px 16px -6px rgba(0,0,0,0.6); color: #16121f; animation: bjDeal .32s cubic-bezier(.2,.9,.3,1.2) backwards; }
.bj-card.red { color: #e0334f; }
.bj-card .bj-corner { position: absolute; font-size: 13px; font-weight: 800; line-height: 0.95; text-align: center; }
.bj-card .bj-corner.tl { top: 6px; left: 7px; }
.bj-card .bj-corner.br { bottom: 6px; right: 7px; transform: rotate(180deg); }
.bj-card .bj-pip { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; }
.bj-card.back { background: linear-gradient(135deg, var(--vio-deep), var(--bg-3)); border-color: rgba(166,77,255,0.4); }
.bj-card.back .bj-back-pattern { position: absolute; inset: 7px; border-radius: 6px; border: 2px solid rgba(166,77,255,0.4); background: repeating-linear-gradient(45deg, rgba(166,77,255,0.18) 0 6px, transparent 6px 12px); }
.bj-card.placeholder { background: transparent; border: 1px dashed var(--line-2); box-shadow: none; }
@keyframes bjDeal { from { opacity: 0; transform: translateY(-20px) rotate(-8deg) scale(0.9); } to { opacity: 1; transform: none; } }
.bj-divider { display: flex; align-items: center; justify-content: center; }
.bj-vs { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--muted-2); letter-spacing: 0.1em; }
.bj-deal-hint { font-size: 13px; color: var(--muted); }
.bj-result-pill { font-size: 14px; font-weight: 800; letter-spacing: 0.04em; padding: 6px 16px; border-radius: 9px; }
.bj-result-pill.win { background: rgba(47,208,122,0.16); color: var(--green); border: 1px solid rgba(47,208,122,0.4); }
.bj-result-pill.lose { background: rgba(255,77,109,0.14); color: var(--red); border: 1px solid rgba(255,77,109,0.35); }
.bj-result-pill.push { background: var(--bg-4); color: var(--muted); border: 1px solid var(--line); }
.bj-outcome { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 11px; font-size: 13.5px; font-weight: 700; }
.bj-outcome .mono { font-family: var(--mono); }
.bj-outcome.win { background: rgba(47,208,122,0.12); color: var(--green); border: 1px solid rgba(47,208,122,0.3); }
.bj-outcome.lose { background: rgba(255,77,109,0.1); color: var(--red); border: 1px solid rgba(255,77,109,0.28); }
.bj-outcome.push { background: var(--bg-3); color: var(--muted); border: 1px solid var(--line); }

/* side bets */
.bj-side-row { display: flex; align-items: center; gap: 10px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin-bottom: 7px; }
.bj-side-meta { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.bj-side-name { font-size: 13px; font-weight: 700; }
.bj-side-sub { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.bj-side-amt { display: flex; align-items: center; gap: 6px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; width: 104px; flex-shrink: 0; }
.bj-side-amt .coin { width: 15px; height: 15px; flex-shrink: 0; }
.bj-side-amt input { width: 100%; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-weight: 600; font-size: 13.5px; text-align: right; }
.bj-side-result { display: flex; flex-direction: column; gap: 5px; }
.bj-side-line { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; padding: 7px 11px; border-radius: 8px; }
.bj-side-line.won { background: rgba(47,208,122,0.12); color: var(--green); border: 1px solid rgba(47,208,122,0.3); }
.bj-side-line.lost { background: var(--bg-3); color: var(--muted); border: 1px solid var(--line); }

/* split hands */
.bj-player-hands { display: flex; gap: 16px; justify-content: center; align-items: flex-start; }
.bj-player-hands.split .bj-phand { padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); transition: .15s; }
.bj-phand { display: flex; flex-direction: column; gap: 9px; align-items: center; }
.bj-player-hands.split .bj-phand.active { border-color: var(--vio); box-shadow: 0 0 0 1px var(--vio), 0 0 22px -8px var(--vio-glow); }
.bj-player-hands.split .bj-phand.settled { opacity: 0.7; }
.bj-badge.dbl { background: rgba(166,77,255,0.16); color: var(--vio-bright); border: 1px solid rgba(166,77,255,0.4); }

/* ===================== public profile + badges ===================== */
.clickable { cursor: pointer; }
.cn.clickable:hover, .u.clickable:hover { text-decoration: underline; }
.cav.clickable:hover { filter: brightness(1.12); }
.lb-row.clickable:hover { border-color: rgba(166,77,255,0.4); }
.badge-mini { display: inline-flex; gap: 3px; margin: 0 4px; font-size: 11px; }
.profile-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 8px; border: 1px solid; }
.profile-badge.sm { padding: 3px 6px; }
.profile-badge .pb-ic { font-size: 14px; }
.profile-badge[title^="Reigning"], .profile-badge[title^="Current"] { box-shadow: 0 0 14px rgba(255,213,74,0.4); animation: champGlow 1.8s ease-in-out infinite; }
@keyframes champGlow { 0%,100% { box-shadow: 0 0 10px rgba(255,213,74,0.3); } 50% { box-shadow: 0 0 18px rgba(255,213,74,0.55); } }

.profile-modal { width: min(440px, 100%); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px; padding: 0 0 18px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8); position: relative; }
.profile-x { position: absolute; top: 14px; right: 14px; z-index: 3; }
.profile-hero { display: flex; align-items: center; gap: 16px; padding: 26px 22px 20px; background: radial-gradient(420px 160px at 20% 0%, rgba(166,77,255,0.18), transparent 70%), var(--bg-3); border-bottom: 1px solid var(--line); }
.profile-av { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; font-weight: 700; color: #fff; border: 1px solid rgba(255,255,255,0.16); flex-shrink: 0; }
.profile-id { min-width: 0; }
.profile-name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.profile-rank-row { display: flex; align-items: center; gap: 7px; margin-top: 6px; }
.profile-rank-name { font-size: 13px; font-weight: 700; }
.profile-section { padding: 16px 22px 0; }
.profile-sec-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-private { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; }
.profile-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.profile-stat { background: var(--bg-3); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; display: flex; flex-direction: column; gap: 5px; }
.profile-stat .ps-k { font-size: 11px; color: var(--muted); font-weight: 600; }
.profile-stat .ps-v { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.profile-stat .ps-v .coin { width: 14px; height: 14px; }
.profile-stat .ps-v.pos { color: var(--green); }
.profile-stat .ps-v.neg { color: var(--red); }
.profile-joined { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }

/* privacy preview chips */
.pv-preview { margin-top: 16px; }
.pv-preview-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 9px; }
.pv-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.pv-chip { font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); }
.pv-chip.on { color: var(--green); background: rgba(47,208,122,0.1); border-color: rgba(47,208,122,0.3); }
.pv-chip.off { color: var(--muted-2); background: var(--bg-3); text-decoration: line-through; opacity: 0.7; }
/* preference: compact */
.compact .main-inner { padding-top: 16px; }
.compact .hero { padding: 24px 26px; }
.compact .game-rail { gap: 10px; }

/* ban overlay (set by admin panel) */
.ban-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(700px 500px at 50% 30%, rgba(255,77,109,0.18), transparent 60%), rgba(8,6,12,0.92); backdrop-filter: blur(10px); }
.ban-box { text-align: center; max-width: 420px; background: var(--bg-2); border: 1px solid rgba(255,77,109,0.4); border-radius: 20px; padding: 38px 34px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8); }
.ban-box .ban-ic { font-size: 54px; }
.ban-box h2 { font-size: 24px; font-weight: 700; margin: 14px 0 8px; }
.ban-box p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.ban-box .ban-reason { margin: 16px 0; padding: 11px 14px; background: rgba(255,77,109,0.12); border: 1px solid rgba(255,77,109,0.3); border-radius: 11px; color: var(--red); font-weight: 600; font-size: 13.5px; }
.ban-box .ban-sub { font-size: 12.5px; color: var(--muted-2); }

/* ===================== responsive ===================== */
@media (max-width: 1180px) {
  :root { --feed-w: 0px; --chat-w: 0px; }
  .app { grid-template-columns: 1fr; grid-template-areas: "top" "main"; }
  .feed, .chat {
    position: fixed; top: var(--top-h); bottom: 0; width: 300px; z-index: 60;
    transition: transform .26s cubic-bezier(.2,.8,.2,1);
  }
  .feed { left: 0; transform: translateX(-105%); border-right: 1px solid var(--line-2); }
  .chat { right: 0; transform: translateX(105%); border-left: 1px solid var(--line-2); }
  .feed.open { transform: none; box-shadow: 20px 0 50px -10px rgba(0,0,0,0.6); }
  .chat.open { transform: none; box-shadow: -20px 0 50px -10px rgba(0,0,0,0.6); }
  .icon-btn { display: grid; }
  .drawer-scrim.show { display: block; position: fixed; inset: var(--top-h) 0 0; background: rgba(0,0,0,0.5); z-index: 55; }
  .top-nav { display: none; }
}
@media (max-width: 860px) {
  .game-shell { grid-template-columns: 1fr; }
  .game-rail .gcard { flex: 0 0 60%; }
  .main-inner { padding: 18px 16px 60px; }
  .hero { padding: 26px 22px; }
  .hero h2 { font-size: 25px; }
  .user-chip .meta { display: none; }
  .wallet-btn span { display: none; }
  .top-pill.support-pill span { display: none; }
  .top-pill.support-pill { padding: 8px 11px; }
}
/* ---- phones ---- */
@media (max-width: 640px) {
  .topbar { gap: 8px; padding: 0 10px; }
  .topbar .icon-btn { width: 34px; height: 34px; }
  .logo .word { font-size: 18px; }
  .logo .coin, .logo .logo-img { width: 28px; height: 28px; }
  /* stats & support pills move into the user menu on phones */
  .support-link, .top-pill { display: none; }
  .balance-chip { padding: 4px 4px 4px 9px; gap: 6px; }
  .balance-chip .amt .val { font-size: 13px; }
  .balance-chip .amt .coin { width: 15px; height: 15px; }
  .balance-chip .amt .bal-gem { width: 16px; height: 16px; }
  .wallet-btn { padding: 8px 10px; font-size: 16px; }
  .user-chip { padding: 3px; }
  .user-chip .av { width: 32px; height: 32px; border-radius: 9px; }
  .user-chip .caret { display: none; }

  /* announcement: contained, not floating over content */
  .announce { left: 8px; right: 8px; transform: none; max-width: none; top: calc(var(--top-h) + 6px); padding: 9px 12px; font-size: 12px; }
  .announce .a-text { font-size: 12px; }

  /* session stats widget docks at the bottom instead of floating mid-screen */
  .stats-widget { left: 50% !important; top: auto !important; bottom: 12px !important; transform: translateX(-50%); width: calc(100vw - 20px) !important; max-width: 380px; z-index: 88; }
  .stats-widget .sw-head { cursor: default; }
  .stats-widget .sw-grip { display: none; }

  /* game layout: board first, panel below, tighter */
  .game-shell { gap: 12px; }
  .game-board { min-height: 300px; padding: 16px; }
  .game-panel { padding: 14px; }
  .main-inner { padding: 14px 12px 80px; }
  .game-top { margin-bottom: 14px; }
  .game-title h1 { font-size: 19px; }

  /* modals fill the screen cleanly */
  .modal, .rewards-modal, .lb-modal { width: 100%; max-height: 92vh; border-radius: 16px; }
  .modal-scrim { padding: 12px; align-items: flex-end; }
  .support-win { width: calc(100vw - 16px); height: min(70vh, 520px); right: 8px; bottom: 8px; }

  .hero h2 { font-size: 22px; }
  .hero p { font-size: 13.5px; }
  .game-rail .gcard { flex: 0 0 72%; }
  .feed, .chat { width: min(86vw, 320px); }
}
@media (max-width: 400px) {
  .logo .word { display: none; }
  .balance-chip .amt .val { font-size: 12px; }
  .hero h2 { font-size: 20px; }
  .game-rail .gcard { flex: 0 0 82%; }
}

/* ===================== user chip button ===================== */
.user-chip { background: none; border: 1px solid transparent; border-radius: 12px; padding: 4px 8px 4px 4px; transition: .15s; cursor: pointer; position: relative; }
.user-chip:hover { background: var(--bg-2); border-color: var(--line); }
.user-chip .caret { color: var(--muted); font-size: 10px; margin-left: 2px; transition: .2s; }
.user-chip.open .caret { transform: rotate(180deg); }

/* ===================== dropdown menu ===================== */
.menu-pop {
  position: absolute; top: calc(100% + 10px); right: 0; width: 268px; z-index: 70;
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 14px; padding: 8px;
  box-shadow: 0 20px 55px -14px rgba(0,0,0,0.75);
  animation: popIn .16s cubic-bezier(.2,.9,.2,1);
}
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.menu-profile { display: flex; align-items: center; gap: 11px; padding: 8px 9px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-profile .pav { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg, var(--vio), var(--vio-deep)); display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff; border: 1px solid rgba(255,255,255,0.14); }
.menu-profile .pmeta { min-width: 0; flex: 1; }
.menu-profile .pnm { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.menu-profile .pid { font-size: 10.5px; color: var(--muted); font-family: var(--mono); margin-top: 3px; display: flex; align-items: center; gap: 5px; cursor: pointer; }
.menu-profile .pid:hover { color: var(--vio-bright); }
.role-badge { font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: var(--vio-dim); color: var(--vio-bright); border: 1px solid rgba(166,77,255,0.3); }
.role-badge.support { background: rgba(47,208,122,0.14); color: var(--green); border-color: rgba(47,208,122,0.3); }
.role-badge.admin { background: rgba(255,77,109,0.14); color: var(--red); border-color: rgba(255,77,109,0.3); }

.menu-bal { display: flex; align-items: center; justify-content: space-between; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin-bottom: 6px; }
.menu-bal .l { font-size: 11px; color: var(--muted); font-weight: 600; }
.menu-bal .v { font-family: var(--mono); font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 5px; }
.menu-bal .v .coin { width: 15px; height: 15px; }

.menu-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--text); transition: .12s; text-align: left; }
.menu-item:hover { background: var(--bg-4); }
.menu-item .mi-ic { width: 18px; height: 18px; text-align: center; font-size: 15px; opacity: .9; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.menu-item .mi-ic img { width: 16px; height: 16px; object-fit: contain; display: block; }
.menu-item .mi-arrow { margin-left: auto; color: var(--muted-2); font-size: 12px; }
.menu-item.danger { color: var(--red); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-item-mobile { display: none; }
@media (max-width: 640px) { .menu-item-mobile { display: flex; } }
.menu-lang { display: flex; gap: 5px; padding: 4px; }
.menu-lang button { flex: 1; font-size: 12px; font-weight: 700; color: var(--muted); padding: 7px 4px; border-radius: 8px; transition: .12s; }
.menu-lang button.on { background: var(--vio-dim); color: var(--vio-bright); }
.menu-lang button:not(.on):hover { background: var(--bg-4); color: var(--text); }

/* ===================== modal ===================== */
.modal-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(8,6,12,0.66); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; animation: popIn .18s ease; }
.modal { width: min(740px, 100%); max-height: 86vh; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.modal-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.modal-head .mh-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: var(--vio-dim); border: 1px solid rgba(166,77,255,0.3); }
.modal-x { margin-left: auto; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); background: var(--bg-3); border: 1px solid var(--line); transition: .15s; }
.modal-x:hover { color: var(--text); background: var(--bg-4); }
.modal-body { display: flex; min-height: 0; flex: 1; }
.set-tabs { width: 188px; flex-shrink: 0; border-right: 1px solid var(--line); padding: 12px 10px; display: flex; flex-direction: column; gap: 3px; background: var(--bg-1); }
.set-tab { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); transition: .12s; text-align: left; }
.set-tab:hover { color: var(--text); background: var(--bg-3); }
.set-tab.on { color: var(--text); background: var(--vio-dim); }
.set-tab .st-ic { font-size: 15px; width: 18px; text-align: center; }
.set-content { flex: 1; overflow-y: auto; padding: 22px 24px; min-width: 0; }
.set-section { margin-bottom: 26px; }
.set-section:last-child { margin-bottom: 0; }
.set-section > h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 13px; }
.set-field { margin-bottom: 15px; }
.set-field > label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.set-field .hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.set-input { width: 100%; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; color: var(--text); font-size: 13.5px; outline: none; transition: .15s; }
.set-input:focus { border-color: var(--vio); box-shadow: 0 0 0 3px var(--vio-dim); }
.set-input.mono { font-family: var(--mono); }
.set-input:read-only { color: var(--muted); cursor: default; }
.set-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: none; }
.set-row .sr-meta { flex: 1; min-width: 0; }
.set-row .sr-meta .t { font-size: 13.5px; font-weight: 600; }
.set-row .sr-meta .d { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.copy-field { display: flex; gap: 8px; }
.copy-field .set-input { flex: 1; }
.copy-btn { flex-shrink: 0; padding: 0 15px; border-radius: 10px; background: var(--bg-4); border: 1px solid var(--line); color: var(--text); font-size: 12.5px; font-weight: 700; transition: .15s; }
.copy-btn:hover { background: var(--bg-5); color: var(--vio-bright); }

/* switch */
.switch { width: 44px; height: 25px; border-radius: 20px; background: var(--bg-5); border: 1px solid var(--line); position: relative; transition: .18s; flex-shrink: 0; cursor: pointer; }
.switch.on { background: var(--vio); border-color: var(--vio); }
.switch .knob { position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: .18s cubic-bezier(.2,.8,.2,1); box-shadow: 0 2px 5px rgba(0,0,0,0.4); }
.switch.on .knob { left: 21px; }

.lang-grid { display: flex; flex-direction: column; gap: 8px; }
.lang-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg-3); transition: .14s; text-align: left; }
.lang-opt:hover { border-color: var(--line-2); }
.lang-opt.on { border-color: var(--vio); background: var(--vio-dim); }
.lang-opt .flag { font-size: 22px; }
.lang-opt .ln-name { font-size: 14px; font-weight: 700; }
.lang-opt .ln-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.lang-opt .ln-check { margin-left: auto; color: var(--vio-bright); font-weight: 700; opacity: 0; }
.lang-opt.on .ln-check { opacity: 1; }

/* ===================== live support ===================== */
.support-fab { position: fixed; bottom: 22px; right: 22px; z-index: 75; display: flex; align-items: center; gap: 10px; padding: 13px 18px 13px 15px; border-radius: 999px; background: linear-gradient(180deg, var(--vio-bright), var(--vio)); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px -8px var(--vio-glow); transition: .18s; }
.support-fab:hover { transform: translateY(-2px); filter: brightness(1.06); }
.support-fab .fab-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.3); }
.support-fab .fab-ic { font-size: 18px; }
.support-win { position: fixed; bottom: 22px; right: 22px; z-index: 76; width: min(360px, calc(100vw - 32px)); height: min(560px, calc(100vh - 110px)); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 26px 70px -16px rgba(0,0,0,0.8); animation: popIn .2s cubic-bezier(.2,.9,.2,1); }
.support-head { display: flex; align-items: center; gap: 11px; padding: 15px 16px; background: linear-gradient(160deg, var(--bg-4), var(--bg-3)); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.support-head .sh-av { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--vio), var(--vio-deep)); display: grid; place-items: center; font-size: 18px; }
.support-head .sh-meta { flex: 1; }
.support-head .sh-meta .t { font-size: 14px; font-weight: 700; }
.support-head .sh-meta .s { font-size: 11.5px; color: var(--green); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.support-head .sh-meta .s .d { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green-glow); }
.support-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.s-msg { display: flex; gap: 9px; max-width: 88%; animation: feedIn .25s ease; }
.s-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.s-msg .sm-av { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; font-size: 13px; background: var(--bg-4); }
.s-msg .sm-bubble { background: var(--bg-4); border: 1px solid var(--line); border-radius: 13px; padding: 9px 12px; font-size: 13px; line-height: 1.45; color: #d8d3e3; }
.s-msg.me .sm-bubble { background: var(--vio); border-color: var(--vio); color: #fff; }
.s-faq { display: flex; flex-wrap: wrap; gap: 7px; }
.s-faq button { font-size: 12px; font-weight: 600; color: var(--vio-bright); background: var(--vio-dim); border: 1px solid rgba(166,77,255,0.25); border-radius: 999px; padding: 7px 12px; transition: .12s; }
.s-faq button:hover { background: rgba(166,77,255,0.22); }
.support-input { flex-shrink: 0; padding: 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.support-input input { flex: 1; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; color: var(--text); font-size: 13px; outline: none; }
.support-input input:focus { border-color: var(--vio); box-shadow: 0 0 0 3px var(--vio-dim); }
.support-input .ssend { width: 42px; border-radius: 10px; background: var(--vio); color: #fff; display: grid; place-items: center; transition: .15s; }
.support-input .ssend:hover { background: var(--vio-bright); }

/* announcement bar */
.announce { position: fixed; top: calc(var(--top-h) + 10px); left: 50%; transform: translateX(-50%); z-index: 38; display: flex; align-items: center; gap: 11px; max-width: min(680px, calc(100vw - 32px)); padding: 11px 15px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line-2); box-shadow: 0 14px 40px -12px rgba(0,0,0,0.6); animation: popIn .25s ease; }
.announce.high { border-color: rgba(255,77,109,0.4); background: linear-gradient(180deg, rgba(255,77,109,0.12), var(--bg-3)); }
.announce.medium { border-color: rgba(166,77,255,0.4); }
.announce .a-ic { font-size: 16px; }
.announce .a-text { font-size: 13px; font-weight: 600; color: var(--text); }
.announce .a-x { margin-left: 4px; color: var(--muted); width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; }
.announce .a-x:hover { color: var(--text); background: var(--bg-4); }

@media (max-width: 560px) {
  .modal-body { flex-direction: column; }
  .set-tabs { width: 100%; flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); padding: 10px; }
  .set-tab { white-space: nowrap; }
  .set-tab .st-label { display: none; }
  .set-tab .st-ic { font-size: 17px; }
}

/* ===================== crash ===================== */
.crash-board { display: flex; flex-direction: column; gap: 14px; }
.crash-hist { display: flex; gap: 6px; flex-wrap: wrap; position: relative; z-index: 2; }
.crash-hchip { font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 7px; border: 1px solid; }
.crash-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; min-height: 240px; }
.crash-curve { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.crash-rocket { position: absolute; left: 12%; bottom: 14%; font-size: 38px; transition: transform .1s linear; filter: drop-shadow(0 0 14px rgba(255,77,109,0.5)); }
.crash-mult { font-family: var(--mono); font-weight: 800; font-size: 72px; letter-spacing: -0.03em; line-height: 1; transition: color .2s; position: relative; z-index: 2; }
.crash-status { margin-top: 12px; font-size: 14px; color: var(--muted); position: relative; z-index: 2; }
.crash-players { background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.crash-players-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 10px 13px; border-bottom: 1px solid var(--line); }
.crash-players-list { max-height: 150px; overflow-y: auto; }
.crash-prow { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 13px; font-size: 13px; border-bottom: 1px solid var(--line); }
.crash-prow:last-child { border-bottom: none; }
.crash-prow .cp-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crash-prow .cp-bet { font-family: var(--mono); color: var(--muted); display: flex; align-items: center; gap: 4px; }
.crash-prow .cp-bet .coin { width: 12px; height: 12px; }
.crash-prow .cp-res { font-family: var(--mono); font-weight: 700; color: var(--muted-2); min-width: 70px; text-align: right; }
.crash-prow.cashed { background: rgba(47,208,122,0.08); }
.crash-prow.cashed .cp-res { color: var(--green); }
.crash-prow.busted { opacity: 0.5; }
.crash-prow.busted .cp-res { color: var(--red); }
@media (max-width: 600px) { .crash-mult { font-size: 52px; } .crash-stage { min-height: 180px; } }

/* economy switch (crypto / robux) */
.eco-switch { display: flex; gap: 6px; padding: 12px 20px 0; }
.eco-switch button { flex: 1; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 9px; border-radius: 9px; background: var(--bg-3); border: 1px solid var(--line); transition: .12s; }
.eco-switch button:hover { color: var(--text); }
.eco-switch button.on { background: var(--vio-dim); color: var(--vio-bright); border-color: rgba(166,77,255,0.4); }
.rank-perma-tag { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #00e5d0; background: rgba(0,229,208,0.16); padding: 2px 7px; border-radius: 5px; margin-left: 7px; }
.rank-row.perma { border-color: rgba(0,229,208,0.4); background: linear-gradient(135deg, rgba(0,229,208,0.08), var(--bg-3)); }
.rank-perks { font-size: 11.5px; color: var(--muted); background: rgba(0,229,208,0.07); border: 1px solid rgba(0,229,208,0.22); border-radius: 10px; padding: 10px 12px; margin-top: 10px; line-height: 1.45; }

/* ===================== wallet ===================== */
.amount-card { background: linear-gradient(160deg, var(--bg-4), var(--bg-3)); border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-align: center; }
.amount-card .ac-main { display: flex; align-items: center; justify-content: center; gap: 10px; }
.amount-card .ac-main .coin { width: 30px; height: 30px; }
.amount-card .ac-val { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; }
.amount-card .ac-eq { font-size: 13px; color: var(--muted); margin-top: 8px; }
.amount-card .ac-eq b { color: var(--green); font-family: var(--mono); }

.qchip-row { display: flex; gap: 7px; flex-wrap: wrap; }
.qchip { flex: 1; min-width: 60px; font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--text); background: var(--bg-3); border: 1px solid var(--line); border-radius: 9px; padding: 9px 8px; transition: .13s; }
.qchip:hover { border-color: var(--vio); color: var(--vio-bright); background: var(--vio-dim); }

.method-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.method-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 13px 8px; border-radius: 11px; background: var(--bg-3); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); transition: .14s; }
.method-chip .mg { font-size: 20px; }
.method-chip:hover { color: var(--text); border-color: var(--line-2); }
.method-chip.on { color: var(--vio-bright); border-color: var(--vio); background: var(--vio-dim); }
.redeem-bar { display: flex; align-items: center; gap: 8px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 12px; margin-bottom: 14px; }
.redeem-bar .rb-ic { font-size: 16px; }
.redeem-bar input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: 0.02em; }
.redeem-bar .rb-btn { flex-shrink: 0; background: var(--vio-dim); color: var(--vio-bright); font-weight: 700; font-size: 12.5px; padding: 9px 14px; border-radius: 8px; transition: .13s; }
.redeem-bar .rb-btn:hover { background: rgba(166,77,255,0.22); }

.tx-row { display: flex; align-items: center; gap: 12px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.tx-ic { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font-size: 17px; font-weight: 700; }
.tx-ic.deposit { background: rgba(47,208,122,0.14); color: var(--green); border: 1px solid rgba(47,208,122,0.3); }
.tx-ic.withdraw { background: rgba(166,77,255,0.14); color: var(--vio-bright); border: 1px solid rgba(166,77,255,0.3); }
.tx-meta { flex: 1; min-width: 0; }
.tx-top { display: flex; align-items: baseline; gap: 5px; }
.tx-top .tx-type { font-size: 14px; font-weight: 700; text-transform: capitalize; }
.tx-top .tx-method { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.tx-id { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 3px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-id:hover { color: var(--vio-bright); }
.tx-id .tx-date { color: var(--muted-2); }
.tx-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.tx-amount { display: flex; align-items: center; gap: 4px; font-family: var(--mono); font-weight: 700; font-size: 14px; }
.tx-amount .coin { width: 14px; height: 14px; }
.tx-amount.pos { color: var(--green); }
.tx-amount.neg { color: var(--text); }

.tx-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.03em; }
.tx-badge.pending { background: rgba(255,203,61,0.14); color: var(--gold); border: 1px solid rgba(255,203,61,0.3); }
.tx-badge.ok { background: rgba(47,208,122,0.14); color: var(--green); border: 1px solid rgba(47,208,122,0.3); }
.tx-badge.bad { background: rgba(255,77,109,0.14); color: var(--red); border: 1px solid rgba(255,77,109,0.3); }
.tx-spin { width: 8px; height: 8px; border-radius: 50%; border: 2px solid rgba(255,203,61,0.35); border-top-color: var(--gold); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== robux rail ===================== */
.rbx-tag { font-family: var(--mono); font-weight: 700; font-size: 0.92em; color: var(--vio-bright); }
.rbx-quote { background: linear-gradient(160deg, var(--bg-4), var(--bg-3)); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.rbx-quote .coin { width: 15px; height: 15px; }
.rbx-line { height: 1px; background: var(--line); margin: 5px 0; }
.rbx-rate-foot { font-size: 11px; color: var(--muted-2); font-family: var(--mono); margin-top: 8px; text-align: right; }
.rbx-lock-note { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--gold); background: rgba(255,203,61,0.1); border: 1px solid rgba(255,203,61,0.28); border-radius: 10px; padding: 9px 12px; margin-bottom: 10px; }
.rbx-lock-note .mono { display: inline-flex; align-items: center; gap: 3px; color: var(--text); font-weight: 700; }
.rbx-lock-note .coin { width: 13px; height: 13px; }
.rbx-liq { display: flex; justify-content: space-between; gap: 10px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; margin-bottom: 12px; font-size: 12.5px; color: var(--muted); }
.rbx-liq b { color: var(--text); }

.rbx-match { background: var(--bg-3); border: 1px solid rgba(166,77,255,0.3); border-radius: 13px; padding: 15px; margin-top: 14px; }
.rbx-match-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.rbx-match-head .lbl { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.rbx-match-head .usr { font-size: 15px; font-weight: 700; color: var(--vio-bright); }
.rbx-match-instru { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-bottom: 12px; }
.rbx-gamepass { display: flex; align-items: center; gap: 11px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; margin-bottom: 13px; }
.rbx-gamepass .gp-ic { font-size: 20px; }
.rbx-gamepass .gp-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rbx-gamepass .gp-lbl { font-size: 10.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.rbx-gamepass .gp-url { font-size: 11.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rbx-gamepass .gp-price { font-size: 15px; font-weight: 700; color: var(--vio-bright); flex-shrink: 0; }

.rbx-book { margin-top: 16px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 13px; padding: 13px; }
.rbx-book-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.rbx-book-head .ttl { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.rbx-book-head .ttl::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green-glow); animation: pulse 1.6s infinite; }
.rbx-book-head .dem { font-size: 12px; font-family: var(--mono); color: var(--muted); }
.rbx-book-empty { text-align: center; font-size: 12.5px; color: var(--green); padding: 16px 0; }
.rbx-book-list { display: flex; flex-direction: column; gap: 8px; }
.rbx-order { background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.rbx-order.mine { border-color: rgba(166,77,255,0.45); background: var(--vio-dim); }
.rbx-order-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.rbx-order-top .who { display: flex; align-items: center; gap: 7px; }
.rbx-order-top .pos { font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.rbx-order-top .nm { font-size: 12.5px; font-weight: 600; }
.rbx-order-top .you-badge { font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: var(--vio); color: #fff; letter-spacing: 0.04em; }
.rbx-order-top .amt { font-size: 12px; color: var(--text); }
.rbx-bar { height: 5px; border-radius: 4px; background: var(--bg-5); overflow: hidden; }
.rbx-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--vio), var(--green)); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.rbx-order-bot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.rbx-order-bot .mono { font-size: 10.5px; color: var(--muted); }
.rbx-cancel { font-size: 11px; font-weight: 700; color: var(--red); padding: 3px 9px; border-radius: 6px; transition: .12s; }
.rbx-cancel:hover { background: rgba(255,77,109,0.14); }
