/* VIP Community — tenang, jelas, tepercaya. Netral gelap/terang + satu aksen emas. */
:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #efeee9;
  --line: #dddbd3;
  --text: #1b1b19;
  --muted: #6b6a63;
  --accent: #a87a1e;
  --accent-ink: #ffffff;
  --accent-soft: #f3e7cc;
  --green: #1f7a4d;
  --green-soft: #dcefe4;
  --red: #b2382e;
  --red-soft: #f6dedb;
  --blue: #2f5e9e;
  --blue-soft: #dfe8f5;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 4px 16px rgb(0 0 0 / .04);
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', var(--font);
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --nav-h: 64px;
}
/* Tema: ikut perangkat (bawaan) atau dipilih member (tombol ☀/☾ & menu Akun → Tampilan) */
:root[data-theme="light"] { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111110;
    --surface: #1a1a18;
    --surface-2: #232320;
    --line: #2f2f2b;
    --text: #ecebe6;
    --muted: #9a998f;
    --accent: #e0b354;
    --accent-ink: #1a1405;
    --accent-soft: #3a2f16;
    --green: #5fc690;
    --green-soft: #173527;
    --red: #ef7f73;
    --red-soft: #3d1e1b;
    --blue: #8db4ec;
    --blue-soft: #1c2a3e;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111110;
  --surface: #1a1a18;
  --surface-2: #232320;
  --line: #2f2f2b;
  --text: #ecebe6;
  --muted: #9a998f;
  --accent: #e0b354;
  --accent-ink: #1a1405;
  --accent-soft: #3a2f16;
  --green: #5fc690;
  --green-soft: #173527;
  --red: #ef7f73;
  --red-soft: #3d1e1b;
  --blue: #8db4ec;
  --blue-soft: #1c2a3e;
  --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.01em; margin: 0; }
code, .mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.h2 { font-size: 22px; margin-bottom: 4px; }
.h3 { font-size: 16px; margin-bottom: 8px; }
.pre-line { white-space: pre-line; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text);
  font: 600 14px var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.05); border-color: var(--accent); }
.btn--ghost { background: transparent; }
.btn--danger { color: var(--red); }
.btn--link { border: 0; background: none; min-height: 0; padding: 0; color: var(--accent); font-weight: 500; }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

input, textarea, select {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text);
  font: 15px var(--font);
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }

.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.form__error { color: var(--red); min-height: 1em; margin: 0; font-size: 13px; }
.hint { font-size: 12px; color: var(--muted); margin: -4px 0 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.pill { font: 600 12px var(--mono); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill--vip { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.chips {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
  scroll-snap-type: x proximity; scroll-behavior: smooth; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 4px;
}
.chips > * { scroll-snap-align: start; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font: 500 13px var(--font); cursor: pointer; white-space: nowrap;
}
.chip.is-active, .chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }

.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 10px; padding: 3px; }
.seg__btn { border: 0; background: none; padding: 9px; border-radius: 8px; font: 600 14px var(--font); color: var(--muted); cursor: pointer; }
.seg__btn.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.empty { color: var(--muted); text-align: center; padding: 24px 8px; margin: 0; }
.risk { color: var(--muted); font-size: 12px; text-align: center; margin: 24px 0 8px; }

#toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px;
  font-size: 14px; max-width: calc(100vw - 32px); transition: .2s; z-index: 50;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast[data-kind="error"] { background: var(--red); color: #fff; }

.boot { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth__card { width: 100%; max-width: 400px; padding: 28px 22px; display: grid; gap: 16px; }
.auth__title { font-size: 28px; }

/* ---------- app shell ---------- */
.app { max-width: 720px; margin: 0 auto; padding: 0 16px calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); }
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px; margin: 0 -16px; background: var(--bg); /* selebar layar: isi yang digeser tidak menembus header */
}
.topbar__brand { display: flex; align-items: center; gap: 10px; font: 700 18px var(--display); }
.topbar__title { display: none; font: 600 24px var(--display); }
.topbar__end { display: flex; align-items: center; gap: 8px; }
.icon-btn svg, .help-opt svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn--theme { width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0; color: var(--muted); }
.icon-btn--theme:hover { color: var(--text); }
.topbar__mark { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); transform: rotate(45deg); }
.banner { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.announce { border-left: 3px solid var(--accent); padding: 8px 12px; margin-bottom: 12px; background: var(--surface); border-radius: 0 10px 10px 0; white-space: pre-line; font-size: 14px; }
.section { margin: 16px 0; }
.section.card { padding: 16px; }

.bottom-nav {
  will-change: transform;
  position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: 720px; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(6, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line);
}
.bottom-nav button {
  position: relative; display: grid; place-items: center; align-content: center; gap: 2px;
  border: 0; background: none; color: var(--muted); font: 500 12px var(--font); cursor: pointer;
}
.bottom-nav button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav button.is-active { color: var(--text); font-weight: 600; }
.bottom-nav button.is-active svg { color: var(--accent); }
.nav-brand { display: none; }
.dot { position: absolute; top: 12px; left: calc(50% + 10px); width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* ---------- signals ---------- */
.daybar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; margin: 4px 0 12px; }
.icon-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 22px; cursor: pointer; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.daybar__mid { text-align: center; }
.daybar__date { position: relative; display: inline-block; font: 600 16px var(--display); cursor: pointer; }
.daybar__date input { position: absolute; inset: 0; opacity: 0; cursor: pointer; padding: 0; }

.locked-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; margin-bottom: 12px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px dashed var(--accent);
}
.locked-strip p { margin: 2px 0 0; }

.filters { display: grid; gap: 10px; margin-bottom: 12px; }
.search { padding: 9px 12px; }

.signal-list { display: grid; gap: 10px; }
.skeleton { height: 140px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

.sig { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.sig--new { border-color: var(--accent); }
.sig__head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sig__time { margin-left: auto; color: var(--muted); font-size: 13px; }
.tag { font: 600 11px var(--font); letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.tag--free { background: var(--blue-soft); color: var(--blue); }
.tag--new { background: var(--accent); color: var(--accent-ink); }
.tag--tp { background: var(--green-soft); color: var(--green); text-transform: none; }
.tag--cl { background: var(--red-soft); color: var(--red); text-transform: none; }
.tag--dt { background: var(--accent); color: var(--accent-ink); text-transform: none; }
.tag--sw { background: var(--blue-soft); color: var(--blue); text-transform: none; }
.sig__ticker { display: inline-flex; align-items: baseline; gap: 4px; margin: 10px 0 8px; font-size: 26px; font-weight: 600; text-decoration: none; letter-spacing: .02em; }
.sig__ticker span { font-size: 14px; color: var(--muted); }
.levels { display: grid; gap: 6px; }
.lv { display: grid; grid-template-columns: 76px 1fr; align-items: baseline; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.lv__k { font-size: 12px; color: var(--muted); }
.lv__v { font-size: 15px; font-weight: 500; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.lv--buy { background: var(--accent-soft); }
.lv--tp { background: var(--green-soft); }
.lv--tp .lv__v { color: var(--green); }
.lv--cl { background: var(--red-soft); }
.lv--cl .lv__v { color: var(--red); }
.tp small { font-size: 10px; color: var(--muted); margin-right: 3px; }
.sig__raw { margin-top: 10px; }
.sig__raw summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.sig__raw pre, .sig__text { white-space: pre-wrap; word-break: break-word; font: 13px/1.55 var(--mono); margin: 8px 0 0; color: var(--text); }

/* signal body: format bayangan apa adanya, kode saham = link $FOLK */
.sig__body { white-space: pre-wrap; word-break: break-word; margin-top: 10px; font-size: 15px; line-height: 1.6; }
.sig__body b { font-weight: 600; }
.tk { font-family: var(--mono); font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 1px dashed currentColor; }
.tk:hover { border-bottom-style: solid; }

/* bukti pembayaran */
.proof { display: grid; gap: 8px; }
.proof__pick { justify-self: start; cursor: pointer; }
.proof__preview { display: flex; align-items: end; gap: 12px; }
.proof__preview img { max-width: 160px; max-height: 200px; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; }
.list__end { display: grid; justify-items: end; gap: 4px; }
.proof-dialog { border: 0; padding: 0; border-radius: var(--radius); background: var(--surface); color: var(--text); max-width: min(92vw, 640px); }
.proof-dialog::backdrop { background: rgb(0 0 0 / .6); }
.edit-dialog { border: 0; padding: 18px; border-radius: var(--radius); background: var(--surface); color: var(--text); width: min(92vw, 500px); max-height: 90vh; overflow: auto; }
.edit-dialog::backdrop { background: rgb(0 0 0 / .6); }
.edit-dialog .hint { margin: -2px 0 0; }
.edit-dialog [hidden] { display: none !important; }
.proof-dialog img { display: block; max-width: 100%; max-height: 80vh; }
.proof-dialog__bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; }

/* screening */
.scr .tk { font-size: 20px; }
.scr__rank { color: var(--muted); font-size: 13px; }
.scr__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40%; }
.scr__score { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; }
.scr__bar { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.scr__bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.scr__flags { margin: 6px 0; padding-left: 18px; font-size: 14px; }
.scr__kv { display: grid; gap: 4px; font-size: 14px; }
.scr__kv .muted { display: inline-block; min-width: 64px; }
.scr__filter { margin-top: 8px; }
.chat__quick { padding: 6px 2px 8px; align-items: center; }
.chat__quick .chip { font-size: 12px; padding: 5px 10px; }
.chat__quick > span { white-space: nowrap; flex: none; }
#scr-tabs { margin-top: 10px; }
#scr-desc { margin: 6px 0 0; }
.scr__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.scr__chg { font-size: 13px; }
.scr__chg.up { color: var(--green); }
.scr__chg.down { color: var(--red); }
.scr__warn { margin: 6px 0 0; font-size: 13px; color: var(--red); }
.scr__ai { margin: 8px 0 0; font-size: 14px; background: var(--blue-soft); padding: 8px 10px; border-radius: 8px; }

/* data saham */
.stock-search { display: flex; gap: 8px; margin: 10px 0 6px; }
.stock-search input { flex: 1; }
#recent-codes { margin: 8px 0; }
#search-results { margin-top: 10px; }
.list__btn { width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.mini-btn { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; padding: 3px 8px; font: 500 12px var(--font); cursor: pointer; }
.mini-btn:hover { border-color: var(--accent); }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline dotted; }
.data-out { margin-top: 10px; }
.data-text { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.6; }
.stock-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }
.stock-head__code { font-size: 28px; }
.stock-head p { margin: 2px 0 0; }
.stock-tabs { margin-bottom: 12px; }
.stock-panel { display: grid; gap: 10px; }
.stock-panel > .card { padding: 14px; }
.load-card { padding: 22px 16px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.load-card p { margin: 0; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--surface-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pro { display: grid; gap: 10px; }
.pro .card { padding: 14px; }
.pro__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pro__price { font-size: 28px; font-weight: 600; margin: 2px 0 0; }
.pro__bias { display: grid; gap: 4px; justify-items: end; min-width: 140px; }
.pro__bias > span { font: 700 18px var(--display); }
.pro__bias--bull > span { color: var(--green); }
.pro__bias--bear > span { color: var(--red); }
.pro__meter { width: 140px; height: 6px; border-radius: 99px; background: var(--red-soft); overflow: hidden; }
.pro__meter span { display: block; height: 100%; background: var(--green); }
.pro__chart p { margin: 6px 0 0; }
.pchart { width: 100%; height: auto; display: block; }
.ch-price { fill: none; stroke: var(--text); stroke-width: 2; }
.pchart line { stroke-width: 1; stroke-dasharray: 4 4; }
.ch-res { stroke: var(--red); } .ch-sup { stroke: var(--green); } .ch-sl { stroke: var(--red); stroke-dasharray: none !important; } .ch-tp { stroke: var(--accent); stroke-dasharray: none !important; }
.ch-t { font: 9px var(--mono); fill: var(--muted); }
.ch-t-sl, .ch-t-res { fill: var(--red); } .ch-t-sup { fill: var(--green); } .ch-t-tp { fill: var(--accent); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-top: 8px; }
.plan-grid div { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; display: grid; gap: 2px; }
.plan-grid small { color: var(--muted); font-size: 11px; }
.plan-grid b { font-size: 16px; }
.plan-grid .sl { background: var(--red-soft); } .plan-grid .sl b { color: var(--red); }
.plan-grid .tp { background: var(--green-soft); } .plan-grid .tp b { color: var(--green); }
.pro__warn { margin: 8px 0 0; color: var(--accent); }
.pro__ai { background: var(--blue-soft); border-color: transparent; }
.pro__list { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.pro__box p { margin: 4px 0; }
.kv--wide { grid-template-columns: 100px 1fr; margin-top: 6px; font-size: 14px; }
.brk__row { display: grid; grid-template-columns: 34px 1fr 76px; align-items: center; gap: 8px; margin: 6px 0; }
.brk__row span.small { text-align: right; }
.brk__bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.brk__bar span { display: block; height: 100%; }
.brk__bar--buy span { background: var(--green); } .brk__bar--sell span { background: var(--red); }

/* ---------- chat ---------- */
.chat__room { display: flex; flex-direction: column; height: calc(100vh - 140px - var(--nav-h)); height: calc(100dvh - 140px - var(--nav-h)); }
.chat__list { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px 12px; }
.chat__day { align-self: center; font-size: 11px; color: var(--muted); background: var(--surface-2); padding: 2px 10px; border-radius: 999px; margin: 6px 0; }
.msg { max-width: 86%; align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 8px 12px; }
.msg--mine { align-self: flex-end; border-radius: 14px 4px 14px 14px; background: var(--accent-soft); border-color: transparent; }
.msg--ai { background: var(--blue-soft); border-color: transparent; }
.msg--admin { border-color: var(--accent); }
.msg__meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.msg__meta time { margin-left: auto; padding-left: 8px; }
.msg__name { font-weight: 600; color: var(--text); }
.msg__reply { font-size: 11px; color: var(--muted); }
.msg__text { white-space: pre-wrap; word-break: break-word; margin-top: 2px; }
.mention { color: var(--blue); font-weight: 600; }
.badge { font: 600 10px var(--mono); padding: 1px 5px; border-radius: 4px; }
.badge--ai { background: var(--blue); color: #fff; }
.badge--admin { background: var(--accent); color: var(--accent-ink); }
.chat__composer { display: flex; align-items: flex-end; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.chat__composer textarea { min-height: 42px; max-height: 140px; resize: none; }
.chip--ai { min-height: 42px; font-family: var(--mono); }
.chat__muted { text-align: center; color: var(--red); font-size: 13px; }
.lock { padding: 28px 20px; text-align: center; display: grid; gap: 10px; justify-items: center; margin-top: 24px; }
.lock__icon { font-size: 32px; }

/* ---------- upgrade ---------- */
.tab--narrow { max-width: 760px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sec-sub { margin: 2px 0 0; }
.car-nav { display: none; gap: 6px; }
.car-nav .icon-btn { width: 38px; height: 38px; font-size: 20px; }
/* carousel: 1 kartu per layar, geser horizontal */
.carousel {
  position: relative; /* posisi kartu dihitung relatif ke carousel */
  display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  padding: 14px 7% 8px; margin: 0 -16px; scroll-padding-inline: 7%;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { flex: 0 0 86%; scroll-snap-align: center; scroll-snap-stop: always; }
.carousel--single { justify-content: center; }
.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.car-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--line); cursor: pointer; transition: width .2s, background .2s; }
.car-dots button.is-active { width: 22px; background: var(--accent); }
.pkg { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.pkg--hl { border: 2px solid var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 46%); }
.pkg__flag { position: absolute; top: -11px; left: 18px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 3px 10px; border-radius: 99px; }
.pkg__name { font-size: 18px; }
.pkg__price { font-size: 32px; font-weight: 600; margin: 6px 0 0; letter-spacing: -.01em; }
.pkg__dur { margin: 0 0 10px; font-size: 13px; }
.pkg__perks { list-style: none; padding: 12px 0 0; margin: 0 0 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; }
.pkg__perks li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.pkg__perks svg { width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pkg__cta { margin-top: auto; width: 100%; min-height: 46px; }
.up-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; margin-top: 4px; }
.up-status__tier { margin: 2px 0; font: 700 26px var(--display); }
.up-status p.small { margin: 0; }
.up-status__badge { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.up-status__badge svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.up-status.is-vip { border-color: var(--accent); background: linear-gradient(120deg, var(--accent-soft), var(--surface) 70%); }
.up-status.is-vip .up-status__badge { background: var(--accent); color: var(--accent-ink); }
.steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; gap: 14px; }
.step { counter-increment: st; position: relative; padding-left: 38px; display: grid; gap: 8px; }
.step::before { content: counter(st); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 700 13px var(--font); }
.step__title { margin: 2px 0 0; font-weight: 600; }
.history summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; list-style: none; min-height: 28px; }
.history summary::-webkit-details-marker { display: none; }
.history summary::after { content: '⌄'; color: var(--muted); margin-left: 8px; transition: transform .2s; }
.history[open] summary::after { transform: rotate(180deg); }
.history[open] summary { margin-bottom: 12px; }
.history__count { margin-left: auto; font: 600 12px var(--font); color: var(--muted); }
.history__count.is-pending { color: var(--accent); }
.credit-usage { display: grid; gap: 6px; margin-top: 4px; font-size: 13px; }
.credit-usage__row { display: grid; grid-template-columns: 140px 1fr auto; gap: 8px; align-items: center; }
.credit-usage__bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.credit-usage__bar span { display: block; height: 100%; background: var(--accent); }
.checkout { display: grid; gap: 12px; }
.checkout__head { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.checkout__head strong { font-size: 20px; }
.checkout__pay { background: var(--surface-2); border-radius: 10px; padding: 12px; font-size: 14px; }
.checkout__qr { max-width: 240px; width: 100%; border-radius: 10px; background: #fff; }

.list { display: grid; gap: 8px; }
.list__item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.list__item p { margin: 2px 0 0; }
.status { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.status--pending { background: var(--accent-soft); color: var(--accent); }
.status--approved, .status--done { background: var(--green-soft); color: var(--green); }
.status--rejected, .status--error { background: var(--red-soft); color: var(--red); }
.status--running { background: var(--blue-soft); color: var(--blue); }
.status--vip { background: var(--accent); color: var(--accent-ink); }
.status--muted { background: var(--surface-2); color: var(--muted); }

.kv { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; margin: 0; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; word-break: break-word; }

/* ---------- admin ---------- */
.status-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 12px; }
.status-box { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.status-box .row { gap: 8px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-behavior: smooth; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td .row { gap: 6px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar input, .toolbar select { width: auto; flex: 1 1 180px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat b { display: block; font: 600 24px var(--mono); }
.ai-budget { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.ai-budget__bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.ai-budget__bar span { display: block; height: 100%; background: var(--accent); }
.ai-budget__bar span.warn { background: var(--red); }
.cfg-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 6px 8px; align-items: center; }
.cfg-grid input { min-width: 0; }
.grid-2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.check { display: flex !important; align-items: center; gap: 8px; color: var(--text) !important; }
.check input { width: auto; }

/* ---------- admin: migrasi ---------- */
.mig__out:not(:empty) { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 12px; }
.mig__out .stat-grid { margin-bottom: 0; }
.mig__out .stat b { font-size: 20px; }
.mig__out .stat b.stat__text { font: 600 14px/1.4 var(--font); margin-top: 4px; }
.mig__out h3 { font-size: 14px; margin: 0; }
.mig__out .table-wrap { max-height: 420px; overflow: auto; }
.mig__out pre { white-space: pre-wrap; font: 12px/1.5 var(--mono); margin: 8px 0 0; color: var(--muted); }
.mig__note { margin: 0; font-size: 13px; }
.mig__note--err { color: var(--red); }
.mig__go { border: 1px solid var(--accent); border-radius: 10px; padding: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; background: var(--accent-soft); }

/* ---------- admin: menu vertikal ---------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  overscroll-behavior: contain;
  position: sticky; top: 0; align-self: flex-start; height: 100vh; flex: 0 0 252px; width: 252px; box-sizing: border-box;
  padding: 18px 12px 14px; background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px; overflow-y: auto; z-index: 40;
}
.admin-side__brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.admin-side__brand div { display: grid; line-height: 1.2; }
.admin-side__brand strong { font: 700 17px var(--display); }
.admin-side__close { margin-left: auto; display: none; }
.admin-nav { display: grid; gap: 16px; flex: 1; align-content: start; }
.admin-nav__group { display: grid; gap: 2px; }
.admin-nav__label { margin: 0; padding: 0 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side-link {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px;
  background: none; color: var(--text); font: 500 15px var(--font); text-align: left; cursor: pointer;
}
.side-link svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-link span { flex: 1; }
.side-link:hover { background: var(--surface-2); }
.side-link.is-active { background: var(--accent-soft); font-weight: 600; }
.side-link.is-active svg { color: var(--accent); }
.side-link:focus-visible, .icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.side-badge { min-width: 22px; height: 22px; padding: 0 7px; box-sizing: border-box; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font: 600 12px/22px var(--font); text-align: center; }
.side-badge--soft { background: var(--surface-2); color: var(--muted); }
.side-badge:empty { display: none; }
.admin-side__foot { display: grid; gap: 10px; }
.side-status { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 13px; }
.side-status__row { display: flex; align-items: center; gap: 8px; }
.side-status__row > span:nth-child(2) { flex: 1; }
.dot-s { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-s--on { background: var(--green); }
.dot-s--off { background: var(--red); }
.admin-main { flex: 1; min-width: 0; max-width: 1120px; box-sizing: border-box; padding: 24px 32px 56px; }
.admin-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.admin-top__title { margin: 0; font: 600 28px var(--display); }
.admin-top__menu { display: none; }
.admin-scrim { display: none; }
.icon-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 18px; cursor: pointer; }
@media (max-width: 899px) {
  .admin-side { position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: min(304px, 86vw); flex: none; transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility .2s; box-shadow: 4px 0 24px rgb(0 0 0 / .18); }
  .admin-shell.is-open .admin-side { transform: none; visibility: visible; }
  .admin-side__close, .admin-top__menu { display: inline-block; }
  .admin-shell.is-open .admin-scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgb(20 20 18 / .45); }
  .admin-main { padding: 14px 16px 48px; }
  .admin-top { position: sticky; top: 0; z-index: 20; margin: -14px -16px 14px; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .admin-top__title { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .admin-side { transition: none; } }
@media (max-width: 700px) { .table-wrap table { min-width: 640px; } }

/* ---------- kartu sinyal ringkas ---------- */
.sig__main { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 8px; }
.sig__code { font: 600 30px/1.1 var(--display); letter-spacing: .02em; color: var(--text); text-decoration: none; }
.sig__code:hover { color: var(--accent); }
.lv3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lv3__box { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.lv3__box span { display: block; font-size: 11px; color: var(--muted); }
.lv3__box b { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.lv3__box--tp { background: var(--green-soft); }
.lv3__box--tp span { color: var(--green); }
.lv3__box--cl { background: var(--red-soft); }
.lv3__box--cl span { color: var(--red); }
.sig__more { margin-top: 10px; }
.sig__more summary { cursor: pointer; font-size: 13px; color: var(--muted); min-height: 32px; display: flex; align-items: center; }
.sig__more .sig__body { margin-top: 6px; }

/* ---------- hasil saham tersimpan ---------- */
.saved-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; }
.saved-note p { margin: 0; flex: 1 1 220px; }

/* ---------- chat: balas, status AI ---------- */
.chat__note { margin: 0 0 6px; text-align: center; font-size: 11px; color: var(--muted); }
.chat__more { align-self: center; margin-bottom: 6px; }
.msg { position: relative; touch-action: pan-y; transition: transform .12s ease; }
.msg__reply-btn { margin-left: 6px; min-width: 32px; min-height: 28px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 15px; cursor: pointer; }
.msg__reply-btn:hover, .msg__reply-btn:focus-visible { background: var(--surface-2); color: var(--text); }
.msg__quote { display: grid; gap: 1px; width: 100%; margin-top: 6px; padding: 5px 8px; text-align: left; border: 0; border-left: 3px solid var(--accent); border-radius: 6px; background: rgb(0 0 0 / .05); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.msg__quote b { font-weight: 600; color: var(--accent); }
.msg__quote span { color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.msg--flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 3px transparent; } }
.reply-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 8px 6px 10px; border-left: 3px solid var(--accent); border-radius: 8px; background: var(--surface-2); }
.reply-bar[hidden] { display: none; }
.reply-bar__text { display: grid; flex: 1; min-width: 0; font-size: 12px; }
.reply-bar__text b { color: var(--accent); }
.reply-bar__text span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__ai { margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: 12px; }
.chat__ai[hidden] { display: none; }
.icon-btn--sm { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .msg { transition: none; } .msg--flash { animation: none; box-shadow: 0 0 0 3px var(--accent); } }

/* ---------- share cuan ---------- */
.cuan-form { padding: 14px; }
.cuan-drop { display: grid; place-items: center; gap: 8px; min-height: 120px; padding: 12px; border: 2px dashed var(--line); border-radius: 12px; background: var(--surface-2); color: var(--muted); font: 500 15px var(--font); cursor: pointer; }
.cuan-drop:hover, .cuan-drop:focus-visible { border-color: var(--accent); color: var(--text); }
.cuan-drop img { max-width: 100%; max-height: 260px; border-radius: 8px; }
.cuan-feed { display: grid; gap: 12px; }
.cuan-card { padding: 12px; display: grid; gap: 10px; }
.cuan-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cuan-card__img { padding: 0; border: 0; border-radius: 10px; background: var(--surface-2); cursor: zoom-in; overflow: hidden; display: block; }
.cuan-card__img img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.cuan-card__cap { margin: 0; font-size: 14px; }
@media (min-width: 720px) { .cuan-feed { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------- akun ---------- */
.profile { display: grid; gap: 12px; }
.profile__head { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 700 24px var(--display); }
.profile__id { min-width: 0; }
.profile__name { margin: 0; font: 700 20px var(--display); overflow-wrap: anywhere; }
.profile__id .small { margin: 2px 0 0; overflow-wrap: anywhere; }
.profile__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.profile__kv { padding-top: 10px; border-top: 1px solid var(--line); }
.credit-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.credit-card__bal { display: block; font-size: 34px; line-height: 1.1; margin-top: 2px; }
.settings { padding: 4px 16px !important; }
.settings__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); }
.settings__row:last-child { border-bottom: 0; }
.settings__row p { margin: 2px 0 0; }
.settings__pw { display: block; }
.settings__pw summary { display: grid; gap: 2px; cursor: pointer; list-style: none; }
.settings__pw summary::-webkit-details-marker { display: none; }
.settings__pw summary b::after { content: ' ›'; color: var(--muted); }
.settings__pw[open] summary b::after { content: ' ⌄'; }
.settings__pw .form { margin-top: 12px; }
.seg--3 { grid-template-columns: repeat(3, 1fr); min-width: 240px; }
.seg--3 .seg__btn { padding: 7px 10px; font-size: 13px; }

/* ---------- login lebih bersih ---------- */
.login-help__toggle { justify-self: center; }
.login-help { display: grid; gap: 8px; }
.help-opt { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.help-opt:hover { border-color: var(--accent); }
.help-opt span { font-size: 12px; color: var(--muted); }
.code-input { letter-spacing: .4em; font-family: var(--mono); font-size: 20px; }

/* ---------- halaman depan ---------- */
.landing { display: block; min-height: 100vh; max-width: 1120px; margin: 0 auto; padding: 0 16px 32px; }
.lp-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; background: var(--bg); }
.lp-hero { display: grid; gap: 24px; padding: 12px 0 8px; align-items: start; }
.lp-title { font-size: clamp(30px, 7vw, 52px); line-height: 1.08; margin: 8px 0 12px; letter-spacing: -.02em; }
.lp-accent { color: var(--accent); }
.lp-lead { font-size: 17px; color: var(--muted); margin: 0 0 18px; max-width: 560px; }
.btn--lg { min-height: 50px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.lp-cta-row { gap: 10px; }
.lp-proof { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lp-proof li { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.lp-proof b { font-size: 18px; }
.lp-proof span { font-size: 12px; color: var(--muted); }
.landing .auth__card { max-width: 440px; width: 100%; justify-self: center; scroll-margin-top: 80px; }
.lp-sec { margin: 44px 0 0; }
.lp-h2 { font-size: clamp(22px, 4.5vw, 30px); margin: 0 0 6px; }
.lp-sub { margin: 0 0 14px; }
.lp-feats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 14px; }
.lp-feat { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.lp-feat h3 { font-size: 16px; margin: 10px 0 4px; }
.lp-feat p { margin: 0; font-size: 14px; color: var(--muted); }
.lp-feat__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.lp-feat__ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.landing .mini-btn { display: none; }
.landing .sig { content-visibility: visible; }
.lp-steps { list-style: none; counter-reset: st; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.lp-steps li { counter-increment: st; position: relative; display: grid; gap: 4px; padding: 16px 16px 16px 58px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.lp-steps li::before { content: counter(st); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 700 14px var(--display); }
.lp-steps span { font-size: 14px; color: var(--muted); }
.lp-final { text-align: center; padding: 28px 18px; display: grid; gap: 8px; justify-items: center; }
.lp-final p { margin: 0 0 6px; }
.lp-foot { margin-top: 28px; }
@media (min-width: 900px) {
  .lp-hero { grid-template-columns: 1.15fr .85fr; gap: 48px; padding-top: 40px; }
  .lp-proof { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #lp-signals { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  /* halaman depan layar lebar: paket berdampingan (tanpa geser) kalau muat */
  .landing .carousel:has(> :nth-child(-n+3):last-child) { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); overflow: visible; padding: 14px 0 0; -webkit-mask-image: none; mask-image: none; }
  .landing .carousel:has(> :nth-child(-n+3):last-child) ~ .car-dots,
  .landing .sec-head:has(+ .carousel > :nth-child(-n+3):last-child) .car-nav { display: none; }
}

/* ---------- performa gulir: kartu di luar layar tidak digambar dulu ---------- */
.sig, .cuan-card { content-visibility: auto; contain-intrinsic-size: auto 200px; }

/* ---------- layar lebar: menu di samping kiri, sinyal 2 kolom ---------- */
@media (min-width: 768px) {
  .car-nav { display: flex; }
  .carousel { margin: 0; padding: 14px 4px 8px; scroll-padding-inline: 4px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
  .carousel > * { flex-basis: min(70%, 380px); }
}
@media (min-width: 1024px) {
  :root { --nav-h: 0px; }
  .app { max-width: 1240px; padding: 0 32px 40px calc(232px + 40px); }
  .topbar { padding: 22px 0 14px; margin: 0; }
  .topbar .topbar__brand { display: none; }
  .topbar .topbar__title { display: block; }
  .bottom-nav {
    left: 0; transform: none; top: 0; bottom: 0; width: calc(max(0px, 50% - 620px) + 232px); max-width: none; height: auto;
    grid-template-columns: 1fr; grid-auto-rows: 46px; align-content: start; gap: 4px; padding: 20px 12px 20px calc(max(0px, 50% - 620px) + 12px);
    border-top: 0; border-right: 1px solid var(--line); will-change: auto;
  }
  .nav-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font: 700 18px var(--display); color: var(--text); }
  .bottom-nav button { display: flex; justify-content: flex-start; gap: 12px; padding: 0 12px; border-radius: 10px; font-size: 15px; }
  .bottom-nav button:hover { background: var(--surface-2); color: var(--text); }
  .bottom-nav button.is-active { background: var(--accent-soft); }
  .bottom-nav .dot { position: static; margin-left: auto; }
  .signal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .chat__room { height: calc(100vh - 110px); height: calc(100dvh - 110px); }
  #toast { bottom: 24px; }
}

/* v14: banner "server penuh" saat kuota harian Firebase habis */
.quota-banner { position: sticky; top: 0; z-index: 200; display: block; padding: 12px 44px 12px 16px;
  background: #b3261e; color: #fff; font-size: 14px; line-height: 1.45; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.quota-banner b { font-weight: 600; }
.quota-banner button { position: absolute; right: 8px; top: 6px; width: 32px; height: 32px; border: 0; background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

/* v15: verifikasi email */
.verify { text-align: center; }
.verify__ic { font-size: 40px; line-height: 1; }
.verify__title { margin: 6px 0 0; font-size: 20px; }
.verify__text { margin: 0; color: var(--muted); line-height: 1.5; }
.verify__text b { color: var(--text); }
#verify-email { overflow-wrap: anywhere; }
.verify__more { justify-content: center; gap: 8px; flex-wrap: wrap; }
.verify-mail { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px;
  padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--text); font-size: 14px; }
