:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --panel-2: #f0f2f5;
  --navy: #16233f;
  --navy-2: #1d2f52;
  --ink: #16233f;
  --muted: #6b7488;
  --line: #d3dae3;
  --line-strong: #a7b4c5;
  --accent: #1e88e5;
  --accent-2: #1668b5;
  --accent-ink: #ffffff;
  --gold: #d4a017;
  --gold-soft: #fbeecb;
  --danger: #c0392b;
  --win: #1e7d4f;
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

html[data-theme="night"] {
  --bg: #0f1626;
  --panel: #182238;
  --panel-2: #1e2a44;
  --navy: #0f1a2e;
  --navy-2: #16233f;
  --ink: #eef2f8;
  --muted: #aeb8c8;
  --line: #26334c;
  --line-strong: #35486b;
  --accent: #4ea3f0;
  --accent-2: #2a86da;
  --accent-ink: #06111f;
  --gold: #e3b955;
  --gold-soft: #372c14;
  --danger: #e57a6f;
  --win: #4fce93;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding-bottom: 86px;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.inline { display: inline; }

/* ------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 9px 14px; min-height: 58px;
  background: var(--panel); border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 172px; overflow: hidden; }
.brand .mark { display: flex; line-height: 0; flex: 0 0 auto; overflow: hidden; max-width: 150px; }
.brand .mark svg { height: 22px !important; width: auto !important; max-width: 150px; }
html[data-theme="night"] .brand .mark svg { filter: brightness(0) invert(1); opacity: .92; }
.brand-txt { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; line-height: 1.1; }
.brand-txt b { font: 700 15px/1.15 Georgia, "Times New Roman", serif; letter-spacing: .06em; color: var(--navy); }
html[data-theme="night"] .brand-txt b { color: var(--ink); }
.brand-txt b + b { color: var(--navy); }
.brand-txt small { font-size: 9.5px; color: var(--muted); }

.top-right { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }

.chip {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); padding: 5px 9px; border-radius: 9px;
  white-space: nowrap; background: var(--panel-2);
}
.chip b { color: var(--navy); font-size: 13px; }
html[data-theme="night"] .chip b { color: var(--gold); }
.balpin { background: var(--panel-2); border-color: var(--line-strong); }
.bump { animation: bump .5s cubic-bezier(.2,.9,.3,1.4); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }

.theme-btn, .link-btn, .btn { font: inherit; cursor: pointer; border-radius: 9px; background: transparent; color: var(--ink); border: 0; }
.theme-btn { border: 1px solid var(--line); padding: 5px 9px; font-size: 13px; color: var(--muted); }
.link-btn { padding: 4px 2px; font-size: 12px; color: var(--muted); text-decoration: underline; }
body.role-member .top .link-btn { display: none; }
body.role-member .top .link-btn.show { display: inline; }
html[data-theme="day"] .t-night, html[data-theme="night"] .t-day { display: none; }

/* ------------------------------------------------------------- tab staf */
.tabs { display: flex; gap: 2px; overflow-x: auto; background: var(--panel); border-bottom: 1px solid var(--line); padding: 0 10px; }
.tabs a { padding: 11px 12px; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; position: relative; }
.tabs a.on { color: var(--navy); border-bottom-color: var(--accent); font-weight: 600; }
html[data-theme="night"] .tabs a.on { color: var(--gold); border-bottom-color: var(--gold); }

.dot-badge { display: inline-block; width: 7px; height: 7px; margin-left: 4px; background: var(--danger); border-radius: 50%; vertical-align: middle; }

/* ------------------------------------------------------------- layout */
.wrap { max-width: 900px; margin: 0 auto; padding: 14px 14px 40px; }
.wrap-app { max-width: 540px; }

h1 { font-size: 19px; margin: 0 0 4px; color: var(--navy); }
html[data-theme="night"] h1 { color: var(--ink); }
h2 { font-size: 14px; margin: 20px 0 10px; font-weight: 700; color: var(--navy); }
html[data-theme="night"] h2 { color: var(--ink); }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.small { font-size: 12px; }
.right { text-align: right; }
.center { text-align: center; }
.back { display: inline-block; font-size: 12px; color: var(--muted); margin-bottom: 10px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; }
.card + .card { margin-top: 12px; }

.flash { border: 1px solid var(--accent); background: #e8f2fd; color: #0d4f8b; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
html[data-theme="night"] .flash { background: #14304d; color: #cfe6ff; }
.flash.bad { border-color: var(--danger); background: #fdecea; color: #8f2b20; }
html[data-theme="night"] .flash.bad { background: #3a1f1d; color: #ffcdc6; }

.empty { color: var(--muted); border: 1px dashed var(--line-strong); padding: 14px; text-align: center; border-radius: 10px; font-size: 14px; background: var(--panel); }

/* ------------------------------------------------------------- auth */
.auth { max-width: 400px; margin: 4vh auto 0; }
.auth-hero { position: relative; overflow: hidden; border-radius: 18px; min-height: 176px; display: flex; align-items: flex-end; background: linear-gradient(92deg, #101c33 0%, #0e1a2e 40%, #0a1220 62%, #06090f 100%); border: 1px solid #22354f; margin-bottom: 12px; }
.auth-hero .ph { position: absolute; right: 0; bottom: 0; height: 100%; width: 62%; object-fit: cover; object-position: 60% 9%; filter: saturate(.95) brightness(1.05) contrast(1.02); -webkit-mask-image: linear-gradient(90deg, transparent 2%, rgba(0,0,0,.35) 16%, #000 38%), linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(90deg, transparent 2%, rgba(0,0,0,.35) 16%, #000 38%), linear-gradient(180deg, #000 82%, transparent 100%); }
.auth-hero::after { content: ""; position: absolute; right: 0; top: 0; width: 96px; height: 58px; background: linear-gradient(225deg, rgba(10,18,34,.96) 34%, rgba(10,18,34,.55) 62%, transparent 88%); }
.auth-hero .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,34,.10) 0%, rgba(10,18,34,0) 40%, rgba(10,18,34,.62) 100%); }
.auth-hero .in { position: relative; z-index: 2; padding: 16px; color: #fff; max-width: 66%; }
.auth-hero h1 { color: #fff; font: 600 20px/1.2 Georgia, serif; margin: 7px 0 4px; }
.auth-hero p { font-size: 11.5px; color: #c3d1e5; margin: 0; }
.auth .card { box-shadow: 0 18px 40px -28px rgba(11,20,38,.55); }
.auth .switch { text-align: center; margin: 12px 0 0; }
.auth-foot { font-size: 11.5px; color: var(--muted); text-align: center; margin: 14px 6px 0; }
.auth h1 { font-size: 21px; }
.auth .switch { font-size: 13px; color: var(--muted); margin-top: 14px; }
.auth .switch a { text-decoration: underline; color: var(--accent); }

/* ------------------------------------------------------------- form */
label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 5px; font-weight: 600; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 12px; margin-bottom: 13px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
input.mono, .amount { font-family: var(--mono); font-size: 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong); padding: 11px 16px; font-weight: 700; font-size: 14px; background: var(--panel); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.wide { width: 100%; }
.btn.ghost { background: transparent; }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.btn:disabled { cursor: not-allowed; }
.btn.primary:disabled { background: var(--panel-2); color: var(--muted); border-color: var(--line-strong); }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ------------------------------------------------------------- hero banner */
.hero {
  position: relative; overflow: hidden; border-radius: 18px;
  background: #0f1a2e; border: 1px solid #24395f; padding: 0;
  color: #fff; min-height: 196px; display: flex; align-items: flex-end;
  box-shadow: 0 14px 30px -18px rgba(11,20,36,.6);
}
.hero .ph { position: absolute; right: 0; top: 0; height: 100%; width: 70%; object-fit: cover; object-position: 58% 8%; filter: saturate(.92) contrast(1.05) brightness(1.06); -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.5) 16%, #000 40%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.5) 16%, #000 40%); }
.hero .veil { position: absolute; inset: 0; background: linear-gradient(90deg, #0d1830 22%, rgba(13,24,48,.96) 46%, rgba(13,24,48,.35) 62%, rgba(13,24,48,.08) 100%); }
.hero .veil::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,16,30,.85), transparent 62%); }
.hero-in { position: relative; z-index: 2; padding: 16px 16px 14px; max-width: 64%; }
.kicker { display: inline-block; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(214,164,23,.5); border-radius: 999px; padding: 3px 9px; background: rgba(214,164,23,.12); }
.hero h3 { font: 600 17px/1.25 Georgia, "Times New Roman", serif; margin: 8px 0 6px; letter-spacing: .005em; }
.hero p { font-size: 11.5px; line-height: 1.4; color: #c4d2e6; margin: 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, rgba(120,170,255,.55) 1px, transparent 1.6px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 72% 40%, #000 0%, transparent 68%);
}

.hero .dots { position: absolute; left: 18px; bottom: 14px; display: flex; gap: 5px; }
.hero .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.35); }
.hero .dots i:first-child { background: #fff; }

/* ------------------------------------------------------------- identitas */
.who { display: flex; align-items: center; gap: 11px; margin: 14px 0; }
.ava { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 44px; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.who .hi b { display: block; font-size: 15px; color: var(--navy); }
html[data-theme="night"] .who .hi b { color: var(--ink); }
.who .hi small { color: var(--muted); font-size: 12px; }
.who .lvl { margin-left: auto; text-align: right; }
.who .lvl small { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.who .lvl-txt { color: var(--gold); }
.lvl b { font-size: 13px; color: var(--navy); }
html[data-theme="night"] .who .lvl b { color: var(--ink); }

/* ------------------------------------------------------------- kartu saldo */
.saldo {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 14px 15px 0; position: relative; overflow: hidden;
}
.saldo .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; }
.saldo .lbl { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #cdd8ea; }

.saldo .amt { display: flex; align-items: center; gap: 7px; font-size: 26px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.saldo .amt .cur { font-size: 13px; color: #cdd8ea; font-weight: 600; margin-right: 2px; }
.sess-strip { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 8px 13px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.sess-strip b { color: var(--ink); }
.hero .live small { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #b3c2d8; }
.hero .live b { font-size: 34px; font-weight: 700; color: #fff; line-height: 1.05; letter-spacing: -.02em; }
.hero .live span { font-size: 10.5px; color: #a9b8ce; }
.saldo .acts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.saldo .acts a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 11px 4px; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: #dfe7f4; }
.saldo .acts a + a { border-left: 1px solid rgba(255,255,255,.14); }
.saldo .acts a:hover { background: rgba(255,255,255,.07); }
.saldo .acts span { font-size: 16px; }

/* ------------------------------------------------------------- trade menu */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 12px; }
.ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.tiles a { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.tiles a:hover { border-color: var(--accent); }
.nums span em
, .tiles .lg { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--panel-2); font-size: 16px; font-weight: 700; color: var(--navy); }
.tiles a .lg { color: var(--navy); }
.tiles a.on { border-color: var(--navy); }
.tiles b { font-size: 11px; line-height: 1.25; font-weight: 600; }
.tiles small { font-size: 9.5px; color: var(--muted); }
.tiles a .dot-badge { margin: 0; }
html[data-theme="night"] .nums span em
, .tiles .lg { background: rgba(227,185,85,.12); color: var(--gold); }
html[data-theme="night"] .tiles a.on .lg { background: var(--gold); color: #1a1205; }
html[data-theme="night"] .pita .logos { color: #d9c07c; }
html[data-theme="night"] .promo b { color: var(--gold); }

/* ------------------------------------------------------------- promo & pita */
.promo { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.promo b { font-size: 20px; display: block; font-weight: 700; }
.promo p { font-size: 12px; color: #cdd8ea; margin: 2px 0 10px; }
.promo .cs { display: block; text-align: center; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 8px 12px; font-size: 11.5px; }
.promo .art { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(232,194,106,.16); color: #e8c26a; font-size: 18px; flex: 0 0 40px; }

.pita { margin: 10px 0 8px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 11px 14px; }
.pita b { display: block; font-size: 13px; }
.pita small { font-size: 10.5px; color: #cdd8ea; display: block; margin-bottom: 6px; }
.pita .logos { display: flex; gap: 10px; font-size: 10px; letter-spacing: .1em; color: #d3dcec; }

.switch-mode { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 12px; color: var(--muted); width: fit-content; cursor: pointer; }
.sw-lbl { font-weight: 600; color: var(--ink); }
.switch-mode .knob { width: 34px; height: 19px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .2s; }
.switch-mode .knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .2s; }
html[data-theme="night"] .sw-lbl { font-weight: 600; color: var(--ink); }
.switch-mode .knob { background: var(--accent); }
html[data-theme="night"] .switch-mode .knob::after { transform: translateX(15px); }

/* ------------------------------------------------------------- nav bawah */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--panel); border-top: 1px solid var(--line); padding: 6px 0 8px; }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: var(--muted); padding: 5px 0; position: relative; }
.nav a span { font-size: 17px; }
.nav a.on { color: var(--navy); font-weight: 700; }
html[data-theme="night"] .nav a.on { color: var(--gold); }
html[data-theme="night"] .bar span { background: var(--gold); }
html[data-theme="night"] .quick button { color: var(--gold); border-color: var(--line-strong); }
html[data-theme="night"] .dirs .hub { color: var(--gold); opacity: .75; }
html[data-theme="night"] .card, html[data-theme="night"] .tiles a { border-color: #2c3b57; }
.nav a .dot-badge { position: absolute; top: 2px; right: 50%; margin-right: -14px; }

/* ------------------------------------------------------------- sesi & angka */
.session-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.session-code { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .05em; }
.timer { font-family: var(--mono); font-size: 22px; font-weight: 700; }
.timer.low { color: var(--danger); }
.bar { height: 5px; background: var(--panel-2); border-radius: 99px; margin: 9px 0 15px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); width: 100%; transition: width .3s linear; }

.nums { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.nums label { margin: 0; }
.nums input { display: none; }
.nums span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 60px; border: 1.5px solid var(--line-strong); border-radius: 10px; cursor: pointer; background: var(--panel); }
.nums span i { font-family: var(--mono); font-style: normal; font-size: 18px; font-weight: 700; color: var(--navy); }
html[data-theme="night"] .nums span i { color: var(--ink); }
.nums span em { font-style: normal; font-size: 8px; font-weight: 600; letter-spacing: .02em; padding: 0 2px; letter-spacing: .03em; color: var(--muted); text-align: center; line-height: 1; }
.nums input:checked + span { background: var(--navy); border-color: var(--navy); box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.nums input:checked + span i { color: #fff; }
.nums input:checked + span em { color: rgba(255,255,255,.75); }
html[data-theme="night"] .nums input:checked + span { background: var(--gold); border-color: #f2cf7a; box-shadow: 0 0 0 2px rgba(227,185,85,.35), 0 6px 16px -8px rgba(227,185,85,.8); }
html[data-theme="night"] .nums input:checked + span i { color: #16110a; }
html[data-theme="night"] .nums input:checked + span em { color: rgba(22,17,10,.75); }
.nums input:disabled + span, .dirs input:disabled + span { cursor: default; }
form.locked .nums input:not(:checked) + span, form.locked .dirs input:not(:checked) + span { opacity: .45; }

.dirs { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 42px); gap: 7px; margin: 13px auto 0; max-width: 290px; }
.dirs label { margin: 0; }
.dirs input { display: none; }
.dirs span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--panel); }
.dirs span b { font-family: var(--mono); font-size: 14px; color: var(--navy); }
html[data-theme="night"] .dirs span b { color: var(--ink); }
.dirs input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.dirs input:checked + span b { color: #fff; }
html[data-theme="night"] .dirs input:checked + span { background: var(--gold); border-color: #f2cf7a; color: #16110a; box-shadow: 0 0 0 2px rgba(227,185,85,.35); }
html[data-theme="night"] .dirs input:checked + span b { color: #16110a; }
.dirs .d-utara { grid-column: 2; grid-row: 1; }
.dirs .d-barat { grid-column: 1; grid-row: 2; }
.dirs .d-timur { grid-column: 3; grid-row: 2; }
.dirs .d-selatan { grid-column: 2; grid-row: 3; }
.dirs .hub { grid-column: 2; grid-row: 2; display: grid; place-items: center; color: var(--line-strong); font-size: 11px; }

/* ------------------------------------------------------------- nominal */
.stake-box { margin-top: 14px; }
.stake-field { display: block; background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 12px; padding: 9px 13px 6px; margin-bottom: 8px; }
.stake-field .rp { font-family: var(--mono); color: var(--muted); font-size: 15px; }
.stake-field input { border: 0; background: transparent; margin: 0; padding: 2px 0 6px; font-family: var(--mono); font-size: 26px; font-weight: 700; width: 100%; letter-spacing: -.01em; }
.stake-field input:focus { outline: none; }
.stake-field:focus-within { border-color: var(--accent); }
.quick { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
.quick button { font: inherit; font-size: 13px; padding: 8px; border-radius: 9px; cursor: pointer; background: var(--panel); border: 1px solid var(--line-strong); color: var(--accent); font-weight: 600; }
.quick button.clr { color: var(--muted); }
.quick button:hover { border-color: var(--accent); }

.sum { display: grid; gap: 7px; margin-top: 4px; }
.sum div { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.sum b { font-family: var(--mono); color: var(--ink); }
.sum .win b { color: var(--win); }
.sum .win em { font-style: normal; color: var(--win); font-family: var(--mono); }
.sum .total { border-top: 1px solid var(--line); padding-top: 7px; font-size: 14px; color: var(--ink); }

.bet-status { border-left: 3px solid var(--accent); background: var(--panel-2); padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.55; }

.balance { display: flex; align-items: baseline; gap: 8px; }
.balance b { font-family: var(--mono); font-size: 22px; }

/* ------------------------------------------------------------- tabel */
table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--panel); }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; background: var(--panel-2); }
td.mono, td .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }

.badge { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; padding: 3px 7px; border-radius: 5px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.badge.ok { border-color: var(--win); color: var(--win); }
.badge.bad { border-color: var(--danger); color: var(--danger); }
.badge.win { border-color: var(--win); color: var(--win); }
.badge.lost { border-color: var(--danger); color: var(--danger); }
.badge.vip { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }

.acts { display: flex; gap: 6px; flex-wrap: wrap; }
.acts .btn { padding: 6px 10px; font-size: 12px; }

.foot { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 12px 16px; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.stats span { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stats b { display: block; font-family: var(--mono); font-size: 18px; }

@media (max-width: 560px) {
  input, select, textarea { font-size: 16px; }
  .wrap { padding: 12px 12px 40px; }
  .nums span { height: 54px; }
  .tabs { overflow-x: hidden; }
  .tabs a { flex: 1 1 0; min-width: 0; text-align: center; padding: 10px 2px; font-size: 11.5px; }
  .dirs { grid-template-rows: repeat(3, 40px); max-width: 100%; }
  .row2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  th:nth-child(n+4), td:nth-child(n+4) { display: none; }
  table.dense th:nth-child(n+4), table.dense td:nth-child(n+4) { display: table-cell; }
  .hero .corp { font-size: 15px; }
}

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero, .who, .saldo, .tiles a, .promo, .pita, .card, .stats > div { animation: rise .45s cubic-bezier(.2,.8,.3,1) both; }
.who { animation-delay: .05s; } .saldo { animation-delay: .1s; } .tiles a:nth-child(2) { animation-delay: .06s; }
.tiles a:nth-child(3) { animation-delay: .1s; } .tiles a:nth-child(4) { animation-delay: .14s; } .promo { animation-delay: .1s; }
.btn.primary { transition: transform .15s ease, background .2s ease, box-shadow .2s; box-shadow: 0 8px 18px -12px rgba(22,35,63,.9); }
.btn.primary:not(:disabled):active { transform: translateY(1px) scale(.995); }
.play .bar span { transition: width .4s linear, background .3s; }
.play input:checked + span { transition: background .18s ease, box-shadow .18s ease, color .18s ease; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ------------------------------------------------------------- sidebar staf */
.side {
  position: fixed; left: 0; top: 0; bottom: 0; width: 214px; z-index: 25;
  background: var(--navy); color: #dfe7f4; padding: 74px 10px 16px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
}
.side a { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 9px; font-size: 13.5px; color: #c8d4e6; }
.side a span { width: 16px; text-align: center; opacity: .8; }
.side a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side a.on { background: rgba(227,185,85,.16); color: #f2d391; font-weight: 700; }
.side .dot-badge { margin-left: auto; }
.side-sep { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: #7f90aa; padding: 12px 11px 4px; }
body.role-staff .wrap, body.role-super .wrap { margin-left: 240px; }
body.role-staff .top, body.role-super .top { padding-left: 252px; }
body.role-staff .foot, body.role-super .foot { padding-left: 240px; }
@media (max-width: 900px) and (min-width: 761px) {
  .side { width: 182px; }
  body.role-staff .wrap, body.role-super .wrap { margin-left: 196px; }
  body.role-staff .top, body.role-super .top { padding-left: 206px; }
  body.role-staff .foot, body.role-super .foot { padding-left: 196px; }
  .side a { font-size: 12.5px; padding: 8px 9px; }
}
@media (max-width: 760px) {
  .side { position: static; width: auto; flex-direction: row; gap: 4px; overflow-x: auto; padding: 8px 10px; margin: 0; }
  .side a { white-space: nowrap; padding: 8px 10px; font-size: 12.5px; }
  .side-sep { display: none; }
  body.role-staff .wrap, body.role-super .wrap { margin-left: 0; }
  body.role-staff .top, body.role-super .top { padding-left: 14px; }
  body.role-staff .foot, body.role-super .foot { padding-left: 16px; }
}
.numset { display: flex; gap: 4px; }
.numset select { margin: 0; padding: 6px 4px; }

/* dialog kelola member */
dialog.sheet { border: 0; border-radius: 14px; padding: 0; width: min(420px, 92vw); background: var(--panel); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(9,16,30,.7); }
dialog.sheet::backdrop { background: rgba(8,12,20,.55); backdrop-filter: blur(2px); }
dialog.sheet .hd { padding: 13px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
dialog.sheet .hd b { font-size: 14px; }
dialog.sheet .bd { padding: 14px 16px; max-height: 68vh; overflow-y: auto; }
dialog.sheet .bd section { border-top: 1px solid var(--line); padding-top: 11px; margin-top: 11px; }
dialog.sheet .bd section:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
dialog.sheet .row2 { gap: 8px; }
.err-line { color: var(--danger); font-size: 12px; margin: 0 0 8px; }

.rek { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 12px 13px; margin-bottom: 14px; background: var(--panel-2); display: grid; gap: 3px; }
.rek b { font-size: 14px; }
.rek .big { font-size: 18px; letter-spacing: .04em; }
.rek .btn { margin-top: 8px; width: fit-content; padding: 7px 12px; font-size: 12px; }
.rek p { margin: 4px 0 0; }
.trade-card { display: flex; align-items: center; gap: 14px; background: linear-gradient(120deg, var(--navy) 0%, #22375c 100%); color: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 18px 34px -24px rgba(11,20,36,.85); }
.trade-card .ic { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 15px; display: grid; place-items: center; background: rgba(227,185,85,.16); color: var(--gold); font-size: 24px; box-shadow: inset 0 0 0 1px rgba(227,185,85,.35); }
.trade-card b { display: block; font-size: 17px; }
.trade-card small { color: #c3d1e5; font-size: 11.5px; }
.trade-card .go { margin-left: auto; font-size: 20px; color: var(--gold); }

/* kontras mode terang: sel angka */
.nums span { border-width: 2px; }
.nums span em { font-size: 8.6px; font-weight: 700; color: #45506a; }
html[data-theme="night"] .nums span em { color: #b9c5d6; }
.dirs span { border-width: 1.5px; }
.sess-strip, .card, .rek { border-color: var(--line-strong); }

@media (max-width: 760px) {
  .card { overflow-x: auto; }
  table.dense th, table.dense td { white-space: nowrap; }
}

@media (max-width: 760px) {
  .sesi-table th:nth-child(2), .sesi-table td:nth-child(2) { display: none; }
  .sesi-table select { min-width: 60px; }
}

.ava.big { width: 84px; height: 84px; display: inline-grid; place-items: center; font-size: 30px; border-radius: 50%; overflow: hidden; }

.pick { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 9px 12px; border-radius: 10px; background: var(--panel-2); border: 1px dashed var(--line-strong); }
.pick b { font-size: 14px; }

/* kabar pasar */
.ticker { overflow: hidden; margin: 10px -16px 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.ticker-run { display: flex; align-items: center; gap: 10px; width: max-content; padding: 7px 0; animation: tick 90s linear infinite; }
.ticker:hover .ticker-run { animation-play-state: paused; }
.ticker a { font-size: 11.5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.ticker a:hover { color: var(--ink); }
.ticker i { color: var(--gold); font-style: normal; font-size: 9px; }
.tk-src { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 9.5px; margin-right: 6px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-run { animation: none; overflow-x: auto; } }

.news-scroll { display: flex; gap: 9px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 10px; scroll-snap-type: x mandatory; }
.news-card { flex: 0 0 168px; scroll-snap-align: start; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 9px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 7px; }
.news-card b { font-size: 12px; line-height: 1.35; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card small { font-size: 10px; color: var(--muted); }
.news-card .thumb { display: block; height: 54px; border-radius: 8px; background-size: cover; background-position: center; background-color: var(--panel-2); }
.news-card .thumb.mono { display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #f6efe2; letter-spacing: .07em; text-transform: uppercase; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; }
.sec-h h2 { margin-bottom: 8px; }
.more-link { font-size: 11.5px; color: var(--gold); font-weight: 600; }
.news-list { display: flex; flex-direction: column; gap: 9px; }
.news-row { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 11px; text-decoration: none; color: inherit; }
.news-row .ntop { display: block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 5px; }
.news-row b { font-size: 13.5px; line-height: 1.4; }
.news-row .thumb { display: block; height: 120px; margin-top: 9px; border-radius: 9px; background-size: cover; background-position: center; }

.news-card { justify-content: flex-start; }
.src-chip { font-size: 9px; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; color: var(--gold); }
.news-card b { -webkit-line-clamp: 4; }

@media (max-width: 760px) {
  .side { -webkit-mask-image: linear-gradient(to right, #000 86%, rgba(0,0,0,.25)); mask-image: linear-gradient(to right, #000 86%, rgba(0,0,0,.25)); padding-right: 22px; }
}
