/* ABPX Trade AI — dark navy/black theme, matching the operator's reference layout.
   The ABPX coin artwork (topbar badge + page background watermark) comes from abpxmall.com. */
:root {
  --bg: #04060b;
  --bg-2: #080c14;
  --bg-3: #0b1018;
  --panel: #0d1119;
  --panel-2: #121822;
  --input: #0f141d;
  --line: #1c2432;
  --line-2: #2a3444;
  --text: #f5f7fa;
  --muted: #98a2b3;
  --dim: #6b7686;
  --accent: #4d8dff;
  --accent-2: #2f6fdc;
  --accent-soft: #8ab4ff;
  --gold: #e8c37a;
  --up: #2fd07a;
  --down: #f6465d;
  --radius: 14px;
  --gap: 20px;
  --pad: 22px;
  --font: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background: linear-gradient(180deg, #04060b 0%, #06090f 55%, #04060b 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Big ABPX coin on the right, fading into the black — same idea as the operator's reference
   layout. `position: fixed` keeps it out of the flex flow; it never intercepts clicks. */
body::before {
  content: '';
  position: fixed;
  top: -14vh;
  right: -18vw;
  width: min(1080px, 108vw);
  height: min(1080px, 108vw);
  background: url("assets/abpx-coin-bg.jpg") center / contain no-repeat;
  opacity: .45;
  pointer-events: none;
  /* z-index:-1 (not 0/1) so the artwork stays UNDER every piece of content without having to
     raise .shell/.view. Giving those wrappers a z-index turns them into a stacking context and
     then the sticky topbar (z-index 40) paints above overlays inside .shell — which is exactly
     what happened: the ChatRoom Code of Ethics dialog became un-clickable under the topbar. */
  z-index: -1;
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 50%, #000 55%, transparent 100%);
}
@media (max-width: 900px) {
  body::before { opacity: .3; top: -6vh; right: -34vw; width: 132vw; height: 132vw; }
}
/* NOTE: deliberately NO z-index on .shell/.view/.topbar. The watermark uses z-index:-1
   instead — see the comment on body::before. */
:where(.site-foot) { position: relative; }

a { color: var(--accent-soft); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.small { font-size: 12.5px; }
.muted { color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }
.gold { color: var(--gold); }
.violet { color: var(--accent-soft); }

/* ---------------------------------------------------------------- topbar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: 11px 22px;
  background: rgba(2, 4, 8, .9);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-weight: 800; font-size: 18px; flex: none; }
.brand .brand-suffix { color: var(--muted); font-weight: 700; font-size: 15px; margin-left: 2px; }
/* The ABPX coin badge: official artwork from abpxmall.com, round, no plate needed on black. */
.brand-coin { display: block; width: 40px; height: 40px; flex: none; border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(77, 141, 255, .45)); }
.foot-coin { display: block; width: 38px; height: 38px; border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(77, 141, 255, .35)); }
.brand-text { display: flex; align-items: baseline; gap: 6px; line-height: 1.15; min-width: 0; }
.brand-name { letter-spacing: .02em; }

/* Plain topbar text link ("Log in") next to the white "Sign up" pill. */
.tb-link { color: var(--text); font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 10px; }
.tb-link:hover { background: rgba(255, 255, 255, .07); }
.btn-white {
  background: #ffffff; color: #06090f !important; border: 1px solid #ffffff; font-weight: 800;
}
.btn-white:hover { background: #e8edf5; border-color: #e8edf5; }
.token-icon { width: 38px; height: 38px; border-radius: 50%; display: block; background: transparent; flex: none; object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(77, 141, 255, .35)); }
.token-icon.sm { width: 28px; height: 28px; }
.token-icon.lg { width: 52px; height: 52px; }
.nav-main { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; flex-wrap: wrap; min-width: 0; }
.nav-main a { color: var(--muted); font-weight: 600; font-size: 13.5px; padding: 7px 11px; border-radius: 9px; white-space: nowrap; }
.nav-main a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-main a.is-active { color: #fff; background: rgba(125, 60, 255, .22); }
/* Menu tarik-turun "Wallet" di bilah atas (Balance / Deposit / Withdrawals / Staking).
   Desktop: isi melayang di bawah tombol. HP: blok yang SAMA mengembang di dalam drawer
   (aturan @media 900px di bawah) — karena itu markupnya hanya satu, tidak diduplikasi. */
.nav-drop { position: relative; display: inline-flex; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font: inherit;
  font-weight: 600; font-size: 13.5px; color: var(--muted); padding: 7px 11px; border-radius: 9px;
  border: 1px solid transparent; background: none; white-space: nowrap;
}
.nav-drop-btn:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-drop-btn.is-active { color: #fff; background: rgba(125, 60, 255, .22); }
.nav-caret { font-size: 10px; line-height: 1; transition: transform .18s ease; }
.nav-drop.is-open .nav-caret { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 214px;
  padding: 8px; display: none; flex-direction: column; gap: 2px;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .5);
}
.nav-drop.is-open .nav-drop-menu { display: flex; }
.nav-drop-menu a {
  display: block; width: 100%; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.nav-drop-menu a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-drop-menu a.is-active { color: #fff; background: rgba(125, 60, 255, .18); }
.nav-drop-menu .drop-note {
  padding: 2px 12px 8px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim);
}

.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: 0 1 auto; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
.member-chip { display: flex; align-items: center; gap: 10px; padding: 5px 8px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent)); }
.who { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.who strong { font-size: 12.5px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.pill-admin { font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 3px 7px; border-radius: 6px; color: var(--gold); background: rgba(245, 185, 66, .14); border: 1px solid rgba(245, 185, 66, .4); }

/* ---------------------------------------------------------------- layout */
.shell { width: 100%; max-width: 1200px; margin: 0 auto; padding: 30px 22px 60px; flex: 1 1 auto; }
.view { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 19px; }
.section-head p { color: var(--muted); font-size: 13px; }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

.split, .split-wide { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--gap); align-items: start; }
.split-wide { grid-template-columns: 1.35fr .65fr; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.split > *, .split-wide > *, .grid-cards > *, .grid-2 > *, .grid-3 > *, .stat-grid > * { min-width: 0; }

/* ---------------------------------------------------------------- hero */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center;
  padding: 34px; border-radius: 20px; border: 1px solid var(--line);
  background:
    radial-gradient(620px 320px at 88% 8%, rgba(125, 60, 255, .30), transparent 65%),
    radial-gradient(420px 260px at 8% 96%, rgba(245, 185, 66, .12), transparent 62%),
    linear-gradient(160deg, #1a1038 0%, #130b28 60%, #100a20 100%);
}
.hero > * { min-width: 0; }
.hero h1 { font-size: 34px; margin: 14px 0 12px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: var(--muted); font-size: 14.5px; max-width: 58ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* ---------------------------------------------------------------- cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--pad); min-width: 0; }
.card-tight { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h3 { font-size: 15.5px; }
.card-head .label { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.card.glow { border-color: rgba(125, 60, 255, .45); box-shadow: 0 0 0 1px rgba(125, 60, 255, .1), 0 20px 44px rgba(0, 0, 0, .42); }
.card.gold-glow { border-color: rgba(245, 185, 66, .45); box-shadow: 0 0 0 1px rgba(245, 185, 66, .1), 0 18px 40px rgba(0, 0, 0, .38); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.balance-main { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.balance-sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.big-amount { font-size: 24px; font-weight: 800; }
.asset-icon { width: 38px; height: 38px; border-radius: 50%; display: block; background: var(--panel-2); object-fit: contain; }
.asset-icon.sm { width: 28px; height: 28px; }

.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.stat .label { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); }
.stat .value { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.stat .hint { font-size: 12.5px; color: var(--muted); }

.feature { display: flex; flex-direction: column; gap: 8px; }
.feature .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 18px;
  background: rgba(125, 60, 255, .16); border: 1px solid rgba(125, 60, 255, .34); }
.feature h4 { margin: 4px 0 0; font-size: 14.5px; }
.feature p { color: var(--muted); font-size: 13px; }

.steps { display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.step strong { display: block; font-size: 13.5px; }
.step p { color: var(--muted); font-size: 12.8px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 10px 16px; font-size: 13.5px; font-weight: 700; font-family: inherit;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #d99a1c); color: #2a1c00; }
.btn-gold:hover { filter: brightness(1.06); }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--text); border-color: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-ok { background: rgba(36, 208, 122, .14); color: var(--up); border-color: rgba(36, 208, 122, .4); }
.btn-ok:hover { background: rgba(36, 208, 122, .22); }
.btn-danger { background: rgba(246, 70, 93, .12); color: var(--down); border-color: rgba(246, 70, 93, .4); }
.btn-danger:hover { background: rgba(246, 70, 93, .2); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- chips & badges */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 11.8px; font-weight: 700;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--muted); }
.chip-violet { color: var(--accent-soft); border-color: rgba(125, 60, 255, .4); background: rgba(125, 60, 255, .12); }
.chip-warn { color: var(--gold); border-color: rgba(245, 185, 66, .35); background: rgba(245, 185, 66, .09); }
.chip-ok { color: var(--up); border-color: rgba(36, 208, 122, .35); background: rgba(36, 208, 122, .09); }
.chip-bad { color: var(--down); border-color: rgba(246, 70, 93, .38); background: rgba(246, 70, 93, .1); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.badge-ok { color: var(--up); background: rgba(36, 208, 122, .12); border-color: rgba(36, 208, 122, .3); }
.badge-warn { color: var(--gold); background: rgba(245, 185, 66, .12); border-color: rgba(245, 185, 66, .3); }
.badge-bad { color: var(--down); background: rgba(246, 70, 93, .12); border-color: rgba(246, 70, 93, .3); }
.badge-violet { color: var(--accent-soft); background: rgba(125, 60, 255, .14); border-color: rgba(125, 60, 255, .34); }
.badge-neutral { color: var(--muted); background: rgba(255, 255, 255, .06); border-color: var(--line-2); }

/* rating badges — colour follows the signal strength */
.rate { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 8px; font-size: 11.8px; font-weight: 800;
  letter-spacing: .04em; border: 1px solid transparent; white-space: nowrap; }
.rate-strongbuy { color: #0a2a17; background: linear-gradient(135deg, #3ef08f, var(--up)); }
.rate-buy { color: var(--up); background: rgba(36, 208, 122, .13); border-color: rgba(36, 208, 122, .38); }
.rate-hold { color: var(--gold); background: rgba(245, 185, 66, .12); border-color: rgba(245, 185, 66, .36); }
.rate-sell { color: var(--down); background: rgba(246, 70, 93, .13); border-color: rgba(246, 70, 93, .38); }
.rate-strongsell { color: #fff; background: linear-gradient(135deg, var(--down), #b3243a); }
.rate-collecting { color: var(--accent-soft); background: rgba(125, 60, 255, .14); border-color: rgba(125, 60, 255, .4); }
.rate-fixed { color: var(--gold); background: rgba(245, 185, 66, .14); border-color: rgba(245, 185, 66, .45); }

.notice { border: 1px dashed rgba(245, 185, 66, .45); background: rgba(245, 185, 66, .07); color: #f6e2b6;
  border-radius: 12px; padding: 13px 15px; font-size: 12.8px; }
.notice-violet { border-color: rgba(125, 60, 255, .45); background: rgba(125, 60, 255, .1); color: #dcd0ff; }
.notice-warn { border-color: rgba(245, 185, 66, .55); background: rgba(245, 185, 66, .1); color: #ffe6b8; }
.notice-warn strong { color: #ffd98a; }
.notice-bad { border-color: rgba(246, 70, 93, .45); background: rgba(246, 70, 93, .07); color: #ffc2cb; }
.disclaimer { border: 1px dashed rgba(125, 60, 255, .4); background: rgba(125, 60, 255, .07); color: #d9cdff;
  border-radius: 12px; padding: 13px 15px; font-size: 12.6px; line-height: 1.55; }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.input, .select, textarea.input {
  width: 100%; padding: 11px 13px; font-family: inherit; font-size: 13.5px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
}
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(125, 60, 255, .2); }
.input::placeholder { color: var(--dim); }
textarea.input { min-height: 92px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.form-grid > * { min-width: 0; }
.form-note { font-size: 12.4px; color: var(--muted); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.checkbox { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-family: inherit; font-size: 12.5px;
  font-weight: 700; padding: 7px 12px; border-radius: 9px; cursor: pointer; }
.seg button.is-active { border-color: var(--accent); background: rgba(125, 60, 255, .16); color: #fff; }
.seg button.seg-long.is-active { border-color: rgba(36, 208, 122, .5); background: rgba(36, 208, 122, .14); color: var(--up); }
.seg button.seg-short.is-active { border-color: rgba(246, 70, 93, .5); background: rgba(246, 70, 93, .14); color: var(--down); }

/* ---------------------------------------------------------------- tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
/* `table-wrap` is the older/alternative spelling used by the Reports page markup — without
   this rule a wide report table pushes the WHOLE page sideways on a phone (real bug found
   by the 390px audit: scrollWidth 1386px vs 390px viewport). */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; max-width: 100%; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
table.tbl th { text-align: left; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--dim);
  padding: 11px 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl td.num, table.tbl th.num { text-align: right; white-space: nowrap; }
table.tbl tr.is-clickable { cursor: pointer; }
table.tbl tr.is-clickable:hover td { background: rgba(125, 60, 255, .07); }
.tbl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.cell-asset { display: flex; align-items: center; gap: 10px; }
.cell-asset strong { font-size: 13.4px; }

/* ---------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; }
.tabs button { border: 0; background: transparent; color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 700;
  padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button.is-active { background: rgba(125, 60, 255, .2); color: #fff; }
/* Menu yang sengaja TETAP terlihat walau akun terkunci (Withdrawals, 26 Okt 2026) diberi gembok kecil
   supaya anggota tahu halaman itu memang terkunci, bukan rusak. Server tetap penentu (403). */
#nav a.is-locked { opacity: .72; }
#nav a.is-locked::after { content: "🔒"; font-size: 10px; margin-left: 5px; line-height: 1; }
/* Kartu token test-WD: kode harus terbaca dari jauh (dikirim lewat WhatsApp) — monospace besar. */
.wd-token-code { font-size: 24px; font-weight: 800; letter-spacing: .12em; font-family: var(--mono, monospace);
  color: var(--gold); background: rgba(245, 185, 66, .1); border: 1px dashed rgba(245, 185, 66, .45);
  border-radius: 10px; padding: 10px 14px; display: inline-block; }
@media (max-width: 430px) { .wd-token-code { font-size: 20px; letter-spacing: .08em; } }

/* ---------------------------------------------------------------- signals */
.signal-card { display: flex; flex-direction: column; gap: 14px; }
.signal-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.signal-head .sym { display: flex; align-items: center; gap: 10px; min-width: 0; }
.signal-head .sym strong { font-size: 15px; }
.signal-head .sym small { display: block; color: var(--muted); font-size: 11.8px; }
.signal-head .rate { margin-left: auto; }
.score-wrap { display: flex; align-items: center; gap: 12px; }
.score-bar { flex: 1 1 auto; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; min-width: 80px; }
.score-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.score-num { font-weight: 800; font-size: 15px; min-width: 34px; text-align: right; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.kv-cell { background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; min-width: 0; }
.kv-cell .k { font-size: 10.8px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.kv-cell .v { font-size: 14px; font-weight: 800; margin-top: 3px; }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.level-cell { border-radius: 11px; padding: 11px 13px; border: 1px solid var(--line); background: var(--bg-2); min-width: 0; }
.level-cell .k { font-size: 10.8px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.level-cell .v { font-size: 14.5px; font-weight: 800; margin-top: 3px; }
.reasons { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.reasons li { display: flex; gap: 9px; font-size: 12.8px; color: var(--muted); }
.reasons li::before { content: "▸"; color: var(--accent-soft); flex: none; }
.progress { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); }
.spark { display: block; width: 100%; height: 48px; }

/* ---------------------------------------------------------------- misc blocks */
.qr-box { background: #fff; border-radius: 12px; padding: 10px; width: 156px; height: 156px; display: grid; place-items: center; flex: none; }
.qr-box img, .qr-box svg { width: 100%; height: 100%; display: block; }
.addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.6px; word-break: break-all;
  background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: 10px; padding: 11px 13px; }
.kv { display: flex; flex-direction: column; }
.kv .r { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.2px; }
.kv .r:last-child { border-bottom: 0; }
.kv .r span { color: var(--muted); }
.kv .r strong { font-weight: 700; text-align: right; }
.list { display: flex; flex-direction: column; gap: 12px; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.list-item .li-main { min-width: 0; }
.list-item strong { font-size: 13.4px; }
.list-item small { display: block; color: var(--muted); font-size: 12.2px; }
.amt-pos { color: var(--up); font-weight: 700; }
.amt-neg { color: var(--down); font-weight: 700; }
.unit-badge { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; }
.unit-ABPX { color: var(--accent-soft); background: rgba(125, 60, 255, .15); border: 1px solid rgba(125, 60, 255, .35); }
.unit-USD { color: var(--gold); background: rgba(245, 185, 66, .14); border: 1px solid rgba(245, 185, 66, .35); }

/* ---------------------------------------------------------------- modal */
.modal-root { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px;
  background: rgba(6, 3, 14, .74); backdrop-filter: blur(6px); }
/* display:grid above would otherwise override the UA [hidden] rule and leave an
   invisible full-screen overlay swallowing every click on the page. */
.modal-root[hidden] { display: none; }
.modal { width: min(580px, 100%); max-height: 88vh; overflow: auto; background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 16px; padding: 22px; box-shadow: 0 30px 70px rgba(0, 0, 0, .62); }
.modal.wide { width: min(780px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.modal-head h3 { font-size: 16.5px; }
.modal-close { background: rgba(255, 255, 255, .06); border: 0; color: var(--muted); width: 30px; height: 30px; border-radius: 9px;
  font-size: 17px; line-height: 1; cursor: pointer; flex: none; }
.modal-close:hover { color: #fff; background: rgba(255, 255, 255, .1); }

/* ---------------------------------------------------------------- info VIP saat membuka web
   Permintaan pemilik akun (21 Okt 2026). Aturan penting di sini adalah KETERBACAAN DI ANDROID,
   jadi ukuran huruf ditulis eksplisit dalam px (bukan mewarisi body 14px), jarak baris longgar,
   kartu boleh digulir bila layar pendek, dan tombol setinggi ≥48px (nyaman disentuh).
   `dvh` dipakai dengan cadangan `vh` karena bilah alamat Chrome Android berubah-ubah. */
.vip-notice { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center;
  padding: 18px; background: rgba(4, 6, 11, .82); backdrop-filter: blur(8px) saturate(140%); }
.vip-notice[hidden] { display: none !important; }
.vip-notice-card {
  position: relative; width: min(560px, 100%); max-width: 100%;
  max-height: 88vh; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #101725 0%, #0b1018 100%);
  border: 1px solid var(--line-2); border-radius: 18px; padding: 22px 24px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.vip-notice-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.vip-notice-badge { display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800;
  letter-spacing: .14em; color: #0b0f16; background: linear-gradient(180deg, #f6dfa8, var(--gold)); }
.vip-notice-x { background: rgba(255, 255, 255, .07); border: 0; color: var(--muted);
  width: 38px; height: 38px; border-radius: 11px; font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.vip-notice-x:hover { color: #fff; background: rgba(255, 255, 255, .13); }
.vip-notice-title { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: .01em; font-weight: 800; color: #fff; }
.vip-notice-sub { margin: 6px 0 16px; font-size: 15px; font-weight: 600; color: var(--gold); }
.vip-notice-list { margin: 0; padding-left: 22px; }
.vip-notice-list li { font-size: 16px; line-height: 1.62; color: #e7ecf3; margin: 0 0 12px; }
.vip-notice-list li strong { color: #fff; }
.vip-notice-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px;
  background: rgba(255, 255, 255, .07); border-radius: 6px; padding: 1px 6px;
  overflow-wrap: anywhere; word-break: break-word; }
.vip-notice-en { margin: 4px 0 18px; font-size: 13px; line-height: 1.6; color: var(--muted);
  border-left: 2px solid var(--line-2); padding-left: 12px; }
.vip-notice-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vip-notice-actions .btn { flex: 1 1 180px; min-height: 48px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 16px; font-weight: 700; }
/* Tombol utama sengaja EMAS dengan teks gelap: kontras putih-di-biru hanya 3,2:1 (di bawah 4,5:1),
   sedangkan teks gelap di atas emas jauh lebih mudah dibaca di layar HP. */
.vip-notice-go { background: linear-gradient(180deg, #f6dfa8, var(--gold)); border-color: var(--gold);
  color: #0b0f16; text-shadow: none; }
.vip-notice-go:hover { background: linear-gradient(180deg, #ffe9bd, #f0cf8d); border-color: #f0cf8d; color: #0b0f16; }

@media (max-width: 560px) {
  /* Di HP kartu memakai lebar penuh dan huruf dinaikkan lagi — inilah yang membuat teks terbaca
     jelas saat dibuka di Android (bukan mengecil seperti versi desktop). */
  .vip-notice { padding: 12px; align-items: center; }
  .vip-notice-card { border-radius: 20px; padding: 20px 18px 22px; max-height: 90vh; max-height: 90dvh; }
  .vip-notice-title { font-size: 26px; }
  .vip-notice-sub { font-size: 16px; }
  .vip-notice-list li { font-size: 17px; line-height: 1.6; }
  .vip-notice-en { font-size: 13.5px; }
  .vip-notice-actions .btn { flex: 1 1 100%; min-height: 52px; font-size: 17px; }
  .vip-notice-go { order: 1; }
  .vip-notice-done { order: 2; }
}
@media (max-width: 360px) {
  .vip-notice-title { font-size: 23px; }
  .vip-notice-list li { font-size: 16px; }
}

/* ---------------------------------------------------------------- NEWS "syarat Test WD" (23 Okt 2026)
   Kartu kedua memakai kerangka .vip-notice (keterbacaan Android sudah terbukti), hanya ditambah:
   z-index lebih tinggi (tawaran unduh APK memakai 9000, jadi news ini tampil di atasnya), badge biru
   untuk KYC (beda dari badge emas VIP), dan daftar bernomor yang boleh memuat baris tebal. */
.wd-notice { z-index: 9200; }
.wd-notice .vip-notice-badge.is-kyc {
  background: linear-gradient(180deg, #a9c7ff, #6f9cf7); color: #08101f; letter-spacing: .12em;
}

/* ---------------------------------------------------------------- PENGUMUMAN TEST WD SETIAP MEMBUKA (28 Okt 2026)
   Permintaan pemilik akun: pengumuman untuk seluruh VIP setiap membuka web — "segera Test WD" dan
   "Ketua Perwakilan mulai lebih dulu". Kerangkanya .vip-notice (keterbacaan Android sudah diukur),
   ditambah badge HIJAU (ini ajakan bertindak, bukan peringatan), daftar batas ABPX → USDC, dan
   z-index PALING ATAS: kartu ini yang dibaca lebih dulu, sisanya menyusul setelah ditutup. */
.announce-notice { z-index: 9300; }
.announce-notice .vip-notice-badge.is-announce {
  background: linear-gradient(180deg, #a9f0c8, #2fd07a); color: #04180d; letter-spacing: .12em;
}
.announce-notice .vip-notice-body p { font-size: 16px; line-height: 1.62; color: #e7ecf3; margin: 0 0 12px; }
.announce-notice .vip-notice-body p strong { color: #fff; }
/* Daftar batas: dua angka yang paling sering ditanyakan anggota, jadi dibuat seperti tabel kecil. */
#wd-announce-limits { margin: 4px 0 14px; }
#wd-announce-limits .r { font-size: 14.5px; }
#wd-announce-limits .r strong { color: var(--gold); font-size: 14px; }
@media (max-width: 560px) {
  .announce-notice .vip-notice-body p { font-size: 17px; }
  #wd-announce-limits .r { font-size: 15px; }
}

/* ---------------------------------------------------------------- NOTIFIKASI WALLET GANDA (24 Okt 2026)
   Kartu ketiga memakai kerangka .vip-notice yang keterbacaannya sudah terukur (kontras AA, tombol ≥52px
   di HP). Bedanya cuma badge MERAH (ini peringatan, bukan pengumuman) dan daftar akun pasangan di
   `#dup-notice-peers` — nomor anggota + nama yang DISAMARKAN, tidak pernah data kontak orang lain.
   z-index di bawah news KYC: urutannya info VIP → news KYC → wallet ganda → tawaran APK. */
.dup-notice { z-index: 9150; }
.dup-notice .vip-notice-badge.is-dup {
  background: linear-gradient(180deg, #ffb4a8, #f2694f); color: #180503; letter-spacing: .12em;
}
.dup-notice .vip-notice-body p { font-size: 16px; line-height: 1.62; color: #e7ecf3; margin: 0 0 12px; }
.dup-notice .vip-notice-body p strong { color: #fff; }
.dup-notice-peers { display: grid; gap: 8px; margin: 4px 0 14px; }
.dup-notice-peer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); border-radius: 11px;
  padding: 10px 12px; font-size: 14px; }
.dup-notice-peer .mono { color: var(--gold); font-size: 13px; }
.dup-notice-peer .same { color: #ffd9a0; font-weight: 700; }
.dup-notice-wallet { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
  background: rgba(255, 255, 255, .07); border-radius: 6px; padding: 1px 6px;
  overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 560px) {
  .dup-notice .vip-notice-body p { font-size: 17px; }
  .dup-notice-peer { font-size: 15px; }
}

/* ---------------------------------------------------------------- toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, 90vw); }
.toast { background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--accent);
  border-radius: 11px; padding: 12px 14px; font-size: 13px; box-shadow: 0 16px 34px rgba(0, 0, 0, .45); }
.toast.err { border-left-color: var(--down); }
.toast.ok { border-left-color: var(--up); }

/* ---------------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--line); background: rgba(18, 10, 38, .7); padding: 30px 22px 34px; }
.site-foot .foot-brand { display: flex; align-items: center; gap: 12px; max-width: 1200px; margin: 0 auto 14px; }
.site-foot .foot-brand img { width: 34px; height: 34px; }
.site-foot .foot-brand strong { display: block; font-size: 14px; }
.site-foot .foot-brand span { color: var(--muted); font-size: 12.4px; }
.foot-note { max-width: 1200px; margin: 0 auto; color: var(--dim); font-size: 12.3px; line-height: 1.62; }
.foot-note strong { color: var(--muted); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 26px; }
  .split, .split-wide { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
}
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 11px 16px; }
  .nav-main { order: 3; flex: 1 1 100%; overflow-x: auto; }
  .topbar-actions { margin-left: auto; }
  .shell { padding: 22px 16px 48px; }
  .view { gap: 24px; }
  .grid-2 { grid-template-columns: 1fr; }
  .who strong { max-width: 92px; }
}
@media (max-width: 560px) {
  .hero { padding: 22px 18px; border-radius: 16px; }
  .hero h1 { font-size: 24px; }
  .balance-main { font-size: 26px; }
  .toasts { left: 14px; right: 14px; bottom: 14px; max-width: none; }
  .topbar { padding: 10px 12px; gap: 8px; }
  .brand { font-size: 16px; min-width: 0; }
  .brand-coin { width: 34px; height: 34px; }
  .topbar-actions { gap: 6px; }
  .btn-sm { padding: 6px 10px; font-size: 12px; }
  /* Dashboard is already a nav item, so drop the duplicate link to keep the
     topbar inside a 390px viewport. */
  #member-chip a[href="#/dashboard"] { display: none; }
  .member-chip { padding: 4px; gap: 8px; }
  .member-chip .who { display: none; }
  .signal-head .rate { margin-left: 0; }
}
@media print {
  .topbar, .site-foot, .toasts, .modal-root, .btn { display: none !important; }
}

/* ---------------------------------------------------------------- staking packages */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--gap); }
.tier-grid > * { min-width: 0; }
.tier-card { display: flex; flex-direction: column; gap: 14px; }
.tier-card.is-current { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(245, 185, 66, .18); }
.tier-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tier-head h3 { font-size: 16px; }
.tier-amount { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.tier-unit { font-size: 12.5px; color: var(--muted); }
.tier-apy { font-size: 27px; font-weight: 800; color: var(--gold); letter-spacing: -.02em; }
.tier-apy.unset { font-size: 15px; font-weight: 700; color: var(--muted); }
.tier-rows { display: flex; flex-direction: column; gap: 0; }
.tier-rows .r { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12.8px; }
.tier-rows .r:last-child { border-bottom: 0; }
.tier-rows .r span { color: var(--muted); }
.tier-term { display: inline-flex; align-items: center; gap: 7px; font-size: 11.8px; font-weight: 700; color: var(--gold); }
.stake-callout { display: flex; align-items: center; gap: 10px; font-size: 12.6px; color: var(--muted); }
.stake-callout strong { color: var(--text); }
.big-reward { font-size: 20px; font-weight: 800; }
.tier-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .09); overflow: hidden; }
.tier-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.lock-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--gold); }
.price-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.price-big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
@media (max-width: 560px) {
  .price-big { font-size: 30px; }
  .tier-amount { font-size: 21px; }
}

/* ---------------------------------------------------------------- multi-asset wallet */
.unit-ABPX { color: var(--accent-soft); background: rgba(125, 60, 255, .15); border: 1px solid rgba(125, 60, 255, .35); }
.unit-USDC { color: #8fc0ff; background: rgba(39, 117, 202, .18); border: 1px solid rgba(39, 117, 202, .45); }
.unit-USDT { color: #6ee7b7; background: rgba(38, 161, 123, .18); border: 1px solid rgba(38, 161, 123, .45); }
.unit-IDR { color: var(--gold); background: rgba(245, 185, 66, .14); border: 1px solid rgba(245, 185, 66, .35); }
.asset-card.is-off { opacity: .62; border-style: dashed; }
.asset-card.is-off:hover { border-color: var(--line-2); }
.seg button:disabled { opacity: .5; cursor: not-allowed; }
.idr-channel { display: flex; align-items: center; gap: 12px; }

/* ------------------------------------------------------------------ menu HP (drawer)
   Sama seperti di app ABPIGCV Mall Global: di layar ≤900px menu pindah ke panel geser dari
   kiri dan muncul tombol 3 garis di kiri atas, supaya topbar tidak membungkus jadi beberapa
   baris. Di desktop tidak ada perubahan (tombol disembunyikan, #nav kembali inline).
   Modul JS: public/nav-mobile.js (identik dengan app pistake). */

.nav-toggle { display: none; }
.nav-drawer-head { display: none; }
.nav-scrim { display: none; }

@media (max-width: 900px) {
  .topbar { flex-wrap: nowrap; gap: 10px; padding: 10px 12px; align-items: center; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .topbar-actions { flex-wrap: nowrap; gap: 6px; margin-left: auto; }

  /* Tombol 3 garis (kiri atas) */
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 42px; height: 42px; flex: 0 0 auto; padding: 0 10px;
    border: 1px solid var(--line-2); border-radius: 12px;
    background: rgba(255, 255, 255, 0.05); cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--text); }
  .nav-toggle:hover { border-color: var(--gold); }
  .nav-toggle[aria-expanded="true"] { border-color: var(--gold); background: rgba(245, 185, 66, 0.14); }

  /* Panel menu geser dari kiri.
     PENTING: .topbar memakai `backdrop-filter` → topbar menjadi CONTAINING BLOCK untuk anak
     position:fixed, jadi `top:0;bottom:0` akan mengukur tinggi topbar (±72px), bukan layar.
     Karena itu tingginya dipatok eksplisit 100dvh/100vh. */
  #nav {
    position: fixed; top: 0; left: 0; z-index: 70;
    height: 100vh; max-height: 100vh;
    width: min(84vw, 330px); max-width: 330px;
    display: flex; flex-direction: column; flex-wrap: nowrap; gap: 4px;
    align-items: stretch; flex: none;
    padding: 14px 14px 26px; margin: 0;
    background: var(--panel); border-right: 1px solid var(--line-2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(-104%); transition: transform 0.22s ease; visibility: hidden;
  }
  @supports (height: 100dvh) {
    #nav { height: 100dvh; max-height: 100dvh; }
  }
  #nav.is-open { transform: translateX(0); visibility: visible; }
  #nav a {
    display: block; width: 100%; padding: 13px 14px; border-radius: 12px;
    font-size: 15.5px; font-weight: 600; border-bottom: 1px solid var(--line);
  }
  #nav a:last-of-type { border-bottom: none; }

  /* Menu Wallet di dalam drawer: tombol jadi selebar menu lain, isinya mengembang di tempat
     (bukan melayang) supaya tidak keluar layar dan tetap bisa digulir. */
  .nav-drop { display: block; width: 100%; }
  .nav-drop-btn {
    display: flex; width: 100%; justify-content: space-between; align-items: center;
    padding: 13px 14px; border-radius: 12px; font-size: 15.5px; font-weight: 600;
    color: var(--muted); border-bottom: 1px solid var(--line);
  }
  .nav-drop-btn.is-active { color: #fff; background: rgba(125, 60, 255, .22); }
  .nav-drop-menu {
    position: static; min-width: 0; padding: 6px; margin: 4px 0 6px 8px;
    border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03);
    box-shadow: none;
  }
  .nav-drop-menu a { padding: 11px 12px; font-size: 14.5px; border-bottom: none; }

  .nav-drawer-head {
    display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between;
    padding: 2px 4px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line-2);
  }
  .nav-drawer-head strong { font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dim); }
  .nav-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
    border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.05);
    color: var(--text); font-size: 20px; line-height: 1;
  }
  .nav-close:hover { border-color: var(--gold); }

  /* Scrim di BAWAH topbar (z-index 20 < topbar 40) — lihat catatan stacking context di atas. */
  .nav-scrim {
    display: none; position: fixed; inset: 0; z-index: 20;
    background: rgba(6, 3, 14, 0.62); backdrop-filter: blur(2px);
  }
  .nav-scrim.is-open { display: block; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 400px) {
  .topbar { padding: 9px 10px; gap: 8px; }
  .brand-coin { width: 30px; height: 30px; }
  .nav-toggle { width: 38px; height: 38px; }
}


/* ---------------------------------------------------------------- theme variables used by the
   blocks below (kept here so the component styles stay identical across both portals). */
:root {
  --input: #0f141d;
  --purple-2: var(--accent-soft);
  --violet: var(--accent-soft);
  --ok: var(--up);
  --danger: var(--down);
  --warn: var(--gold);
  --panel-3: var(--panel-2);
}

/* ---------------------------------------------------------------- locked panel (VIP only / blocked account) */
.locked-panel { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.locked-panel .lock-ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(125, 60, 255, 0.18); color: var(--purple-2); font-size: 20px;
}
/* ---------------------------------------------------------------- KYC photo evidence (selfie + document) */
/* ---------------------------------------------------------------- KYC photo evidence
   The member KYC card (selfie + document) and the evidence preview in the admin panel.
   KYC photos are only shown to their owner and to admins; thumbnails use a fixed aspect ratio so
   the layout never jumps. */
.kyc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .kyc-grid { grid-template-columns: 1fr; } }
.kyc-box {
  display: flex; flex-direction: column; gap: 10px; padding: 16px;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--input); min-width: 0;
}
.kyc-box-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.kyc-thumb {
  padding: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden;
  background: #000; cursor: zoom-in; display: block; width: 100%;
}
.kyc-thumb img { display: block; width: 100%; height: 190px; object-fit: cover; }
.kyc-empty {
  display: flex; align-items: center; justify-content: center; min-height: 120px;
  border: 1px dashed var(--line-2); border-radius: 12px; color: var(--muted-2); font-size: 13px;
}
.kyc-full { display: flex; justify-content: center; background: #000; border-radius: 12px; overflow: hidden; }
.kyc-full img { display: block; max-width: 100%; max-height: 68vh; object-fit: contain; }
.kyc-proof { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.kyc-mini {
  position: relative; width: 64px; height: 64px; padding: 0; cursor: zoom-in;
  border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #000;
}
.kyc-mini img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kyc-mini span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 4px;
  font-size: 9.5px; font-weight: 700; text-align: center; letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.62); color: #fff;
}
.kyc-mini.is-missing {
  cursor: default; display: flex; align-items: center; justify-content: center;
  color: var(--muted-2); background: rgba(255, 255, 255, 0.04); border-style: dashed;
}
.kyc-mini.is-missing span { background: transparent; color: var(--muted-2); }
/* Kolom centang untuk "Approve selected" (23 Okt 2026): sempit, dan kotak centangnya seukuran jari
   (di HP minimal 20px) supaya bisa dipakai tanpa salah pencet. */
.kyc-pick-cell { width: 34px; text-align: center; }
.kyc-pick-cell input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; }
@media (max-width: 560px) { .kyc-pick-cell input[type="checkbox"] { width: 22px; height: 22px; } }
/* ---------------------------------------------------------------- admin: toolbar / paging / reports / member rows */
/* ---------------------------------------------------------------- panel admin: cari & paginasi
   Daftar member di produksi sudah 700+ baris dan daftar KYC 200 baris: dirender sekaligus
   membuat halaman admin setinggi ~182.000px sehingga praktis tidak terjangkau (terutama di HP).
   Sekarang keduanya dirender 25 baris per halaman + kotak pencarian. */
.admin-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.admin-search {
  flex: 1 1 260px; min-width: 0; padding: 10px 14px; border-radius: 11px;
  border: 1px solid var(--line-2); background: var(--input); color: var(--text); font-size: 14px;
}
.admin-search:focus { outline: none; border-color: var(--gold); }
.admin-pager {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px;
}
.admin-pager .small { margin: 0 4px; }
/* Rows-per-screen selector in the admin panel (default 100). */
.admin-size {
  padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--input); color: var(--text); font-size: 13.5px; font-weight: 600;
}


/* ---------------------------------------------------------------- Reports page
   Dipakai public/reports.js. Angka USD di sini bernilai GCV — labelnya wajib tetap ada. */
.report-filters { display: grid; gap: 14px; margin-bottom: 18px; }
.report-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* Label kelompok di antara tab laporan ("Member & VIP" sebelum enam laporan orang) — pemisah visual,
   bukan tombol: lebar penuh supaya enam laporan member tidak menyatu dengan laporan keuangan. */
.report-group { flex: 1 0 100%; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-2); margin-top: 4px; display: flex; align-items: center; gap: 10px; }
.report-group::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.report-tab { border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--ink);
  padding: 8px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.report-tab:hover { border-color: var(--purple-2); }
.report-tab.is-active { background: linear-gradient(118deg, var(--purple), var(--purple-2)); color: #fff; border-color: transparent; }
.report-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.report-field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted-2); }
.report-field input { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, .25); color: var(--ink); font: inherit; min-width: 130px; }
.report-search input { min-width: 190px; }
.report-check { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted-2); padding-bottom: 8px; }
.report-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; justify-content: space-between; }
.report-actions { display: flex; gap: 8px; }
.report-kpi { margin: 4px 0 2px; }
.report-kpi .stat { min-width: 0; }
.report-tbl td { vertical-align: top; }
.report-tbl th.num, .report-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.report-tbl tr.report-total td { font-weight: 800; border-top: 2px solid var(--gold); background: rgba(245, 185, 66, .07); }
.report-notes { margin: 0; padding-left: 18px; color: var(--muted-2); font-size: 13px; display: grid; gap: 4px; }
.report-code { font-size: 19px; letter-spacing: .06em; padding: 8px 12px; border-radius: 10px;
  border: 1px dashed var(--line); background: rgba(0, 0, 0, .25); display: inline-block; }
.temp-pw { font-size: 20px; letter-spacing: .08em; padding: 10px 14px; border-radius: 10px;
  background: rgba(245, 185, 66, .12); border: 1px solid rgba(245, 185, 66, .45); display: inline-block; }
.notice-bad { border: 1px solid rgba(255, 120, 140, .45); background: rgba(255, 90, 120, .10); }
@media (max-width: 620px) {
  .report-bar { flex-direction: column; align-items: stretch; }
  .report-field input, .report-search input { min-width: 0; width: 100%; }
  .report-actions { width: 100%; }
  .report-actions .btn { flex: 1 1 auto; text-align: center; }
}

/* Sub-bagian di modal "Manage member": peran / saldo / password (supaya menu pengangkatan
   Admin Operator tidak lagi terkubur di dalam form penyesuaian saldo). */
.adj-section { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; display: grid; gap: 10px; }
.adj-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.adj-title { margin: 0; font-size: 13px; font-weight: 800; color: var(--gold); letter-spacing: .02em; }

/* ---------------------------------------------------------------- members list: action markers
   Kolom "Action" + penyorotan baris yang menunggu keputusan admin (KYC / belum VIP).
   Server sudah mengurutkan baris-baris ini KE ATAS — warna hanya membantu mata. */
.tbl .row-flag { width: 1%; white-space: nowrap; padding-right: 4px; }
.tbl tr.row-attention td { background: rgba(245, 185, 66, .07); }
.tbl tr.row-attention td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
@media (max-width: 700px) {
  .tbl .row-flag { display: none; }   /* di HP badge tindakan tetap terlihat di kolom Status/KYC */
}

/* Bulk action bar for the member list (tick rows → activate VIP in one go). */
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); }
.bulk-bar .small { margin-right: 4px; }
.bulk-bar .btn[disabled] { opacity: .45; cursor: not-allowed; }
.row-check { accent-color: #f5b942; width: 16px; height: 16px; cursor: pointer; }

/* ---------------------------------------------------------------- ChatRoom */
/* ---------------------------------------------------------------- ChatRoom
   Hanya untuk member VIP. Tampilan mirip WhatsApp: gelembung pesan, avatar, jam kirim,
   pemisah tanggal, dan penanda @sebutan. Semua warna mengikuti palet app. */
.chat-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-bottom: 20px; }
.chat-stat { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.chat-stat span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-2); font-weight: 700; }
.chat-stat strong { display: block; font-size: 20px; margin-top: 4px; }

.chat-room { display: flex; flex-direction: column; gap: 16px; }
.chat-list { display: flex; flex-direction: column; gap: 14px; max-height: 58vh; min-height: 240px;
  overflow-y: auto; overscroll-behavior: contain; padding: 4px 6px 4px 2px; }
.chat-empty { text-align: center; padding: 40px 16px; }
.chat-empty-ico { font-size: 34px; display: block; margin-bottom: 8px; }

.chat-day { text-align: center; margin: 6px 0 2px; }
.chat-day span { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11.5px;
  color: var(--muted); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }

.chat-msg { display: flex; gap: 10px; align-items: flex-end; min-width: 0; }
.chat-msg.is-mine { flex-direction: row-reverse; }
.chat-ava { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none;
  border: 1px solid rgba(253, 187, 67, .38); background: rgba(255, 255, 255, .04); }
.chat-ava-txt { display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #1b1030;
  background: var(--pi-grad); }
.chat-bubble-wrap { min-width: 0; max-width: min(680px, 76%); display: flex; flex-direction: column; gap: 4px; }
.chat-msg.is-mine .chat-bubble-wrap { align-items: flex-end; }
.chat-meta { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 12.5px; }
.chat-name { font-weight: 700; color: var(--text); }
.chat-admin { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #1b1030;
  background: var(--pi-grad); padding: 1px 7px; border-radius: 999px; font-weight: 800; }
.chat-meta-sub { color: var(--muted-2); font-size: 11.5px; }
.chat-bubble { padding: 11px 14px; border-radius: 14px; line-height: 1.6; font-size: 14.5px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); overflow-wrap: anywhere; }
.chat-msg.is-mine .chat-bubble { background: linear-gradient(135deg, rgba(125, 60, 255, .42), rgba(177, 140, 255, .26));
  border-color: rgba(177, 140, 255, .45); }
.chat-msg.is-deleted .chat-bubble { background: rgba(255, 255, 255, .03); border-style: dashed; }
.chat-bubble .mention { color: #ffd97a; font-weight: 700; }
.chat-foot { display: flex; gap: 10px; align-items: center; font-size: 11.5px; color: var(--muted-2); }
.chat-tools { display: inline-flex; gap: 4px; }
.chat-tool { border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted);
  border-radius: 8px; padding: 2px 7px; font-size: 12px; cursor: pointer; line-height: 1.5; }
.chat-tool:hover { border-color: rgba(177, 140, 255, .7); color: var(--text); }

.chat-live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  margin-left: 8px; vertical-align: middle; box-shadow: 0 0 0 0 rgba(36, 208, 122, .6); animation: chat-pulse 2.2s infinite; }
@keyframes chat-pulse { 0% { box-shadow: 0 0 0 0 rgba(36, 208, 122, .55); } 70% { box-shadow: 0 0 0 9px rgba(36, 208, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(36, 208, 122, 0); } }

.chat-composer { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; position: relative; }
.chat-composer textarea { resize: none; min-height: 46px; max-height: 140px; padding: 12px 14px; border-radius: 12px;
  background: var(--input); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 14.5px; width: 100%; }
.chat-composer textarea:focus { outline: none; border-color: rgba(177, 140, 255, .7); }
.chat-hint { margin: 0; }
.chat-mention-box { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 5; min-width: 240px; max-width: 320px;
  max-height: 220px; overflow-y: auto; padding: 6px; border-radius: 12px; background: var(--card-solid);
  border: 1px solid var(--line-2); box-shadow: 0 14px 34px rgba(8, 4, 20, .55); }
.chat-mention-item { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 8px 10px;
  border: 0; border-radius: 9px; background: transparent; color: var(--text); cursor: pointer; font: inherit; font-size: 13.5px; }
.chat-mention-item:hover { background: rgba(177, 140, 255, .16); }
.chat-muted-note { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(245, 185, 66, .35); background: rgba(245, 185, 66, .08); font-size: 13.5px; }
.chat-admin { padding: 16px 18px; }
.chat-admin summary { cursor: pointer; font-weight: 700; }
.chat-admin .tbl { margin-top: 12px; }

@media (max-width: 640px) {
  .chat-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .chat-bubble-wrap { max-width: 86%; }
  .chat-list { max-height: 62vh; }
  .chat-composer { grid-template-columns: 1fr; }
  .chat-composer .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-live-dot { animation: none; }
}

/* ---------------------------------------------------------------- ChatRoom: system rows + Code of Ethics */
/* ChatRoom — SYSTEM rows (automatic warning/block from the machine or an admin) + the warning chip. */
.chat-sys { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0;
  padding: 9px 13px; border-radius: 11px; font-size: 13px; line-height: 1.5;
  color: #ffe6b8; background: rgba(245, 185, 66, .10); border: 1px dashed rgba(245, 185, 66, .45); }
.chat-sys.is-deleted { opacity: .6; }
.chat-sys-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.chat-sys-time { font-size: 11.5px; color: var(--muted-2); }
.chat-warn-chip { margin: 8px 0 0; padding: 9px 13px; border-radius: 11px; font-size: 13px;
  color: #ffd9a1; background: rgba(246, 70, 93, .10); border: 1px solid rgba(246, 70, 93, .4); }
.chat-admin .chat-head { display: flex; gap: 12px; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; margin: 18px 0 8px; }
.chat-admin .chat-head h4 { margin: 0; font-size: 14.5px; }

/* ChatRoom — CODE OF ETHICS (a dismissible dialog + the reminder strip). */
.crules-banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  margin-bottom: 18px; padding: 13px 16px; border-radius: 13px; font-size: 13.5px; line-height: 1.6;
  color: #ffe9c2; background: rgba(245, 185, 66, .10); border: 1px solid rgba(245, 185, 66, .45); }
.crules-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  padding: 20px; background: rgba(6, 3, 14, .72); overflow-y: auto; }
.crules-panel { width: min(720px, 100%); max-height: 88vh; display: flex; flex-direction: column;
  border-radius: 18px; background: var(--card-solid); border: 1px solid rgba(245, 185, 66, .45);
  box-shadow: 0 26px 60px rgba(4, 2, 12, .6); overflow: hidden; }
.crules-head { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.crules-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: #241703; background: var(--pi-grad); }
.crules-title { margin: 9px 0 0; font-size: 18px; line-height: 1.35; }
.crules-close { flex: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: var(--muted); }
.crules-close:hover { color: var(--text); border-color: rgba(245, 185, 66, .6); }
.crules-body { padding: 18px 20px; overflow-y: auto; font-size: 14px; line-height: 1.75; color: #efe9ff;
  overflow-wrap: anywhere; }
.crules-foot { padding: 14px 20px 18px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.crules-note { margin: 0 0 12px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 560px) {
  .crules-panel { max-height: 92vh; }
  .crules-body { font-size: 13.5px; padding: 16px; }
  .crules-foot .btn { width: 100%; }
}


/* ---------------------------------------------------------------- announcement banner ("Coming soon") */
.announce {
  position: relative; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: clamp(18px, 2.4vw, 26px); border-radius: 18px; margin-bottom: 24px;
  border: 1px solid rgba(245, 185, 66, .42);
  background:
    radial-gradient(520px 220px at 8% -40%, rgba(125, 60, 255, .35), transparent 70%),
    linear-gradient(120deg, rgba(245, 185, 66, .12), rgba(125, 60, 255, .12));
  overflow: hidden;
}
.announce.is-live { border-color: rgba(36, 208, 122, .5); background: linear-gradient(120deg, rgba(36, 208, 122, .14), rgba(125, 60, 255, .12)); }
.announce-chip {
  flex: none; padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em;
  background: var(--gold); color: #241700; animation: announce-pulse 2.4s ease-in-out infinite;
}
.announce.is-live .announce-chip { background: var(--up); color: #04240f; }
@keyframes announce-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: .88; } }
.announce-body { flex: 1 1 320px; min-width: 0; display: grid; gap: 6px; }
.announce-body h3 { font-size: clamp(17px, 2.1vw, 23px); }
.announce-body p { font-size: 13px; color: var(--muted); }
.announce-note { font-size: 12px !important; color: var(--gold) !important; }
.announce-plate {
  flex: none; margin-left: auto; padding: 10px 14px; border-radius: 12px; font-weight: 800; font-size: 13px;
  background: rgba(245, 185, 66, .14); border: 1px solid rgba(245, 185, 66, .4); color: var(--gold);
}
.announce-close {
  position: absolute; top: 10px; right: 12px; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); color: var(--muted);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.announce-close:hover { color: var(--text); border-color: var(--gold); }
@media (max-width: 700px) {
  .announce { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 16px; padding-right: 46px; }
  .announce-chip { justify-self: start; }
  .announce-body { grid-column: 2; }
  .announce-plate { grid-column: 1 / -1; margin-left: 0; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .announce-chip { animation: none; } }

/* ---------------------------------------------------------------- "message the admin on WhatsApp" line */
.wa-line {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid rgba(36, 208, 122, .35); background: rgba(36, 208, 122, .08);
  font-size: 13px; color: var(--muted);
}
.wa-line a { color: var(--up); font-weight: 700; }
.wa-ico { font-size: 17px; }

/* ---------------------------------------------------------------- small admin helpers */
.btn.is-disabled { opacity: .55; pointer-events: none; }
.tab-badge {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  background: var(--gold); color: #241700; font-size: 10.5px; font-weight: 800;
}

/* ---------------------------------------------------------------- admin row action buttons */
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.row-actions .btn { padding: 6px 10px; font-size: 12px; }
.chat-admin { padding: 16px 18px; }


/* ---------------------------------------------------------------- auth layout (login page)
   Mirrors the operator's reference: hero copy + ABPX coin on the left, the sign-in card on the
   right. Kept self-contained so the rest of the portal keeps its own spacing. */
.auth {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  gap: 44px; align-items: center; padding: 26px 0 44px;
}
.auth-hero { display: grid; gap: 14px; min-width: 0; }
.auth-coin {
  width: 104px; height: 104px; border-radius: 50%;
  filter: drop-shadow(0 10px 34px rgba(77, 141, 255, .35));
}
.auth-h1 {
  font-size: clamp(34px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -.02em; font-weight: 800;
  margin: 2px 0 4px; max-width: 14ch;
}
.auth-sub { color: var(--muted); font-size: 15px; max-width: 46ch; }
.auth-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.pill {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04); color: var(--text); font-size: 13px; font-weight: 600;
}
.auth-card {
  background: rgba(14, 18, 26, .92); border: 1px solid var(--line);
  border-radius: 18px; padding: 30px 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  backdrop-filter: blur(10px);
}
.auth-title { font-size: 27px; }
.auth-welcome { color: var(--muted); font-size: 13.5px; margin: 6px 0 20px; }
.auth-seg { margin-bottom: 16px; }
.auth-seg button { flex: 1 1 auto; }
.auth-card .field label {
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700;
}
.auth-card .input { background: #0f141d; border-color: var(--line-2); padding: 13px 14px; font-size: 14.5px; }
.auth-card .input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(77, 141, 255, .18); }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0 18px; font-size: 13px; }
.auth-links a { color: var(--muted); font-weight: 600; }
.auth-links a:hover { color: var(--text); }
.auth-submit { width: 100%; justify-content: center; padding: 14px 18px; font-size: 15px; }
.auth-foot { color: var(--dim); font-size: 12.5px; margin-top: 16px; }
.auth-foot a { font-weight: 700; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; gap: 26px; padding-top: 8px; }
  .auth-h1 { font-size: clamp(30px, 8vw, 42px); max-width: none; }
  .auth-coin { width: 76px; height: 76px; }
  .auth-card { padding: 22px 18px; }
}


/* Big home hero: the coin sits above the headline, like the reference layout. */
.hero-coin { width: 84px; height: 84px; border-radius: 50%; margin-bottom: 14px;
  filter: drop-shadow(0 10px 30px rgba(77, 141, 255, .35)); }
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); }
@media (max-width: 560px) {
  .hero-coin { width: 64px; height: 64px; }
}


/* ---------------------------------------------------------------- danger notice + delete action
   Used by the "delete member" dialog and the danger-zone section of Manage member. */
.notice-danger {
  border-color: rgba(246, 70, 93, .45) !important;
  background: rgba(246, 70, 93, .1) !important;
  color: #ffd9de;
}
.notice-danger strong { color: #ffb3bd; }
.btn-danger { background: rgba(246, 70, 93, .16); border: 1px solid rgba(246, 70, 93, .55); color: #ffb3bd; font-weight: 700; }
.btn-danger:hover { background: rgba(246, 70, 93, .26); border-color: var(--down); color: #fff; }
.btn-danger[disabled] { opacity: .45; cursor: not-allowed; }

/* List of accounts inside the delete dialogs. */
.del-list { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; max-height: 210px; overflow-y: auto; }
.del-list li { font-size: 13px; }
.del-list li strong { color: var(--text); }


/* ---------------------------------------------------------------- Digital ID Card (member card)
   Two sides (front & back), exported as a PNG or printed. Content rule: IDENTITY & MEMBERSHIP
   only — no balance, no asset value, no bank details.
   LOOK: "GOLD EXCLUSIVE" — onyx base, metallic gold gradient (foil sheen), warm ink text and
   gold-grey labels. The same palette is used by the canvas export (.devtest/tradeai-ui.js and
   .devtest/tradeai-card-live.js assert the structure of both). */
.vc-empty { color: var(--muted); font-size: 13.5px; }
.vc-mini {
  padding: 6px 11px; border-radius: 9px; cursor: pointer;
  background: rgba(230, 192, 114, .10); border: 1px solid rgba(230, 192, 114, .38);
  color: #f3e2b6; font-size: 11.5px; font-weight: 700;
}
.vc-mini:hover { background: rgba(230, 192, 114, .18); border-color: rgba(230, 192, 114, .6); }
.vc-mini:disabled { opacity: 0.6; cursor: wait; }
.ic-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ic-head h3 { font-size: 19px; font-weight: 800; }
.ic-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ic-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 20px; }

/* the card itself */
.ic-card {
  position: relative; overflow: hidden; border-radius: 22px; min-height: 300px;
  padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  background:
    radial-gradient(120% 90% at 8% -18%, rgba(230, 192, 114, .26), transparent 62%),
    radial-gradient(90% 80% at 104% 108%, rgba(199, 154, 60, .22), transparent 66%),
    linear-gradient(150deg, #1c1709 0%, #0d0b06 46%, #1a1408 100%);
  border: 1px solid rgba(230, 192, 114, .55);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(253, 243, 207, .18);
  color: #fbf7ec;
}
.ic-back { justify-content: flex-start; }
/* ---- TANDA TEST-WD di Kartu ID (30 Okt 2026) ------------------------------------------------
   Permintaan pemilik akun: anggota yang MENDAPAT token test-withdrawal diberi tanda di Kartu ID
   digital dengan WARNA BERBEDA dari yang lain. Kartu biasa = emas/oniks, kartu PERWAKILAN = aksen ungu
   (`.ic-tier.is-position`), dan kartu PEMEGANG TOKEN TEST-WD = **TEAL (biru-hijau)** supaya langsung
   kelihatan beda di daftar kartu mana pun. Hanya kelas `.ic-wd` yang berubah; kartu lain tidak disentuh. */
.ic-card.ic-wd {
  background:
    radial-gradient(120% 90% at 8% -18%, rgba(45, 212, 191, .28), transparent 62%),
    radial-gradient(90% 80% at 104% 108%, rgba(14, 116, 144, .26), transparent 66%),
    linear-gradient(150deg, #06211f 0%, #04120f 46%, #04201c 100%);
  border-color: rgba(45, 212, 191, .60);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(153, 246, 228, .22);
}
.ic-card.ic-wd .ic-foil {
  background: linear-gradient(115deg, transparent 18%, rgba(153, 246, 228, .18) 42%, rgba(153, 246, 228, .05) 52%, transparent 72%);
}
.ic-card.ic-wd .ic-top { border-bottom-color: rgba(45, 212, 191, .28); }
.ic-card.ic-wd .ic-brand strong,
.ic-card.ic-wd .ic-vipno,
.ic-card.ic-wd .ic-wallet-label {
  background: linear-gradient(120deg, #d3fff7, #5eead4 45%, #14b8a6 78%, #d3fff7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ic-card.ic-wd .ic-brand span,
.ic-card.ic-wd .ic-member,
.ic-card.ic-wd .ic-position { color: #7fd8cb; }
.ic-card.ic-wd .ic-tier {
  border-color: rgba(45, 212, 191, .70); color: #ccfbf1; background: rgba(45, 212, 191, .14);
}
.ic-card.ic-wd .ic-avatar,
.ic-card.ic-wd .ic-qr { border-color: rgba(45, 212, 191, .85); }
.ic-card.ic-wd .ic-avatar { background: linear-gradient(120deg, #d3fff7, #5eead4 48%, #14b8a6); }
.ic-card.ic-wd .ic-qr { box-shadow: 0 10px 26px rgba(0, 0, 0, .5), 0 0 0 1px rgba(45, 212, 191, .7); }
.ic-card.ic-wd .ic-chip {
  border-color: rgba(45, 212, 191, .48); color: #ccfbf1; background: rgba(45, 212, 191, .12);
}
.ic-card.ic-wd .ic-watermark { opacity: .08; filter: hue-rotate(120deg) saturate(1.4); }
/* chip penanda khusus — selalu paling menonjol di baris fakta */
.ic-chip-wd {
  border-color: rgba(45, 212, 191, .95) !important;
  color: #04211d !important;
  background: linear-gradient(120deg, #d3fff7, #5eead4 55%, #2dd4bf) !important;
  letter-spacing: .10em;
}

/* metallic foil band sweeping across the card */
.ic-foil {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: linear-gradient(115deg, transparent 18%, rgba(253, 243, 207, .16) 42%, rgba(253, 243, 207, .04) 52%, transparent 72%);
}
.ic-top { display: flex; align-items: center; gap: 12px; position: relative; padding-bottom: 14px;
  border-bottom: 1px solid rgba(230, 192, 114, .22); }
.ic-mark { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  filter: drop-shadow(0 0 10px rgba(230, 192, 114, .45)); }
.ic-brand { display: flex; flex-direction: column; line-height: 1.3; }
.ic-brand strong {
  font-size: 18px; font-weight: 800; letter-spacing: .3px;
  background: linear-gradient(120deg, #fdf3cf, #e6c072 45%, #c79a3c 78%, #fdf3cf);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ic-brand span { font-size: 11px; color: #b09a6d; font-weight: 600; letter-spacing: .04em; }
.ic-tier {
  margin-left: auto; padding: 6px 15px; border-radius: 999px; white-space: nowrap;
  border: 1px solid rgba(230, 192, 114, .62); color: #f3e2b6;
  background: rgba(230, 192, 114, .10);
  font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}

/* two columns: identity on the left, wallet QR on the right */
/* The body takes the space between the header and the footer and spreads its two rows:
   identity + QR on top, the fact chips just above the footer (no dead space in the middle). */
.ic-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 18px;
  align-content: space-between; align-items: center; position: relative; flex: 1 1 auto; }
.ic-chiprow { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-self: end; }
.ic-chip {
  padding: 5px 12px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #f3e2b6;
  border: 1px solid rgba(230, 192, 114, .38); background: rgba(230, 192, 114, .08);
}
.ic-chip.is-expired { border-color: rgba(246, 70, 93, .5); color: #ffb3bd; background: rgba(246, 70, 93, .1); }
/* ABPX coin watermark inside the card — fills the middle without adding any data. */
.ic-watermark {
  position: absolute; left: 50%; top: 54%; width: 330px; height: 330px; transform: translate(-50%, -50%);
  background: url("assets/abpx-coin.png") center / contain no-repeat;
  opacity: .10; pointer-events: none;
}
.ic-idzone { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ic-avatar {
  width: 84px; height: 84px; flex: 0 0 auto; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(120deg, #fdf3cf, #e6c072 48%, #c79a3c);
  border: 2px solid rgba(230, 192, 114, .8);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
}
.ic-photo { width: 100%; height: 100%; object-fit: cover; }
.ic-initial { font-size: 30px; font-weight: 800; color: #2a1f06; }
.ic-id { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ic-name { font-size: 25px; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; color: #fbf7ec; }
.ic-vipno, .ic-member { font-weight: 700; }
.ic-vipno {
  font-size: 14px; letter-spacing: .06em;
  background: linear-gradient(120deg, #fdf3cf, #e6c072 45%, #c79a3c 78%, #fdf3cf);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ic-member { font-size: 12px; color: #b09a6d; }
/* Regional role from the Daftar Perwakilan list (e.g. "Ketua — Riau"). Muted gold, one line,
   ellipsised so a long position never pushes the QR column out of the card. */
/* A representative's card prints their POSITION in the tier chip ("Leader · Riau") instead of
   "Member" — bold gold so it reads as the card's headline rank. */
.ic-tier.is-position {
  letter-spacing: .10em; text-transform: uppercase; font-weight: 800;
  max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ic-position {
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: #cdb489;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ic-qrzone { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.ic-wallet-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; text-align: center;
  background: linear-gradient(120deg, #fdf3cf, #e6c072 45%, #c79a3c 78%, #fdf3cf);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ic-qr {
  background: #fff; border-radius: 16px; padding: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5), 0 0 0 1px rgba(230, 192, 114, .55);
}
.ic-qr img { display: block; width: 126px; height: 126px; border-radius: 10px; }
.ic-qr.is-empty { width: 142px; height: 142px; }
.ic-wallet-addr { font-size: 11px; color: #e6c072; letter-spacing: .02em; }

.ic-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 18px;
  border-top: 1px solid rgba(230, 192, 114, .3); padding-top: 13px; position: relative; }
.ic-meta > div { display: flex; flex-direction: column; gap: 3px; }
.ic-meta span { font-size: 10.5px; color: #b09a6d; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ic-meta strong { font-size: 14.5px; font-weight: 700; color: #fbf7ec; }
.ic-valid strong, .ic-meta > div:first-child strong {
  background: linear-gradient(120deg, #fdf3cf, #e6c072 45%, #c79a3c 78%, #fdf3cf);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* back side */
.ic-stripe { height: 14px; margin: -22px -22px 0; background: linear-gradient(120deg, #fdf3cf, #e6c072 45%, #c79a3c 78%, #fdf3cf); }
.ic-back-body { display: flex; flex-direction: column; gap: 12px; position: relative; padding-top: 8px; }
.ic-rows { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr));
  grid-template-rows: repeat(7, auto); grid-auto-flow: column; gap: 10px 20px; }
.ic-row { display: flex; flex-direction: column; gap: 3px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(230, 192, 114, .14); }
.ic-row span { font-size: 10.5px; color: #b09a6d; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ic-row strong { font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; color: #fbf7ec; }
.ic-sign { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.ic-sig-line { border-top: 1px solid rgba(230, 192, 114, .5); padding-top: 5px; max-width: 260px; }
.ic-sig-name { font-family: "Segoe Script", "Plus Jakarta Sans", cursive; font-size: 18px; font-weight: 700; color: #fdf3cf; }
.ic-sig-cap { display: flex; justify-content: space-between; gap: 12px; max-width: 560px; font-size: 10.5px; color: #b09a6d; }
.ic-note { font-size: 11px; color: #e6c072; line-height: 1.5; overflow-wrap: anywhere; }
.ic-foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-top: 4px; }
@media (max-width: 620px) {
  .ic-body { grid-template-columns: 1fr; justify-items: start; gap: 14px; }
  .ic-qrzone { align-items: flex-start; }
  .ic-rows { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .ic-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ic-name { font-size: 21px; }
}

/* ---------------------------------------------------------------- print: only the card
   The "Print / Save PDF" button adds `body.printing-card`, so a member can print (or save as PDF)
   just the two sides of the card — no topbar, no footer, no other dashboard content. */
@media print {
  body.printing-card { background: #fff; }
  body.printing-card .topbar,
  body.printing-card .site-foot,
  body.printing-card .toasts,
  body.printing-card #modal-root,
  body.printing-card .nav-scrim,
  body.printing-card .no-print { display: none !important; }
  body.printing-card .view { display: none !important; }
  body.printing-card #view-dashboard { display: block !important; }
  body.printing-card .shell { padding: 0; margin: 0; max-width: none; }
  body.printing-card .vip-card { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
  body.printing-card .ic-head, body.printing-card .ic-foot { display: none !important; }
  body.printing-card #view-dashboard > *:not(.vip-card) { display: none !important; }
  body.printing-card .ic-pair { grid-template-columns: 1fr; gap: 16px; }
  body.printing-card .ic-card {
    break-inside: avoid; page-break-inside: avoid;
    box-shadow: none; border: 1px solid #999;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}

/* Wrapper around the two card sides (uses the panel look of a normal .card). */
.vip-card {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--pad); min-width: 0;
  background-image: radial-gradient(760px 320px at 88% -30%, rgba(77, 141, 255, .14), transparent 70%);
}

/* Locked (disabled) inputs in a read-only panel. */
.input.is-locked, .select.is-locked, textarea.is-locked { opacity: .75; cursor: not-allowed; }
.chip-danger { border-color: rgba(246, 70, 93, .5); color: #ffb3bd; background: rgba(246, 70, 93, .12); }

/* ---------------------------------------------------------------- on-chain wallet (admin)
   Live figures read from the public chains, with solscan.io as the reference. Kept visually
   separate from the portal numbers so the two are never confused. */
.oc-addr { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.oc-addr span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.oc-addr code { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; font-size: 12.5px; }
.oc-addr.is-missing em { color: var(--dim); font-size: 12.5px; }
.oc-table { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 10px 0; }
.oc-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.oc-row:last-child { border-bottom: 0; }
.oc-row:nth-child(even) { background: rgba(255, 255, 255, .02); }
.oc-sym strong { display: block; font-size: 13.5px; }
.oc-sym span { font-size: 11px; color: var(--muted); }
.oc-val { text-align: right; }
.oc-lbl { display: block; font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.oc-val strong { font-size: 14px; }
.oc-link a { font-size: 12px; font-weight: 700; }
@media (max-width: 560px) {
  .oc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .oc-link { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- CS AI (assistant)
   Dedicated #/cs page plus the compact ask-box on the landing page. Answers are rendered as
   escaped text with list/link recognition (see csFormat() in public/ai-cs.js). */
.cs-card { display: flex; flex-direction: column; gap: 14px; }
.cs-body-wrap {
  display: flex; flex-direction: column; gap: 14px; overflow-y: auto;
  max-height: 460px; padding-right: 4px; scroll-behavior: smooth;
}
.cs-body-short { max-height: 320px; }
.cs-msg { display: flex; gap: 11px; align-items: flex-start; }
.cs-msg .cs-avatar {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-size: 16px; background: linear-gradient(135deg, rgba(245, 185, 66, 0.28), rgba(201, 174, 255, 0.22));
}
.cs-msg .cs-body {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px; padding: 12px 14px; font-size: 14px; line-height: 1.6;
  min-width: 0; max-width: 92%;
}
.cs-msg.is-user { flex-direction: row-reverse; }
.cs-msg.is-user .cs-body {
  background: rgba(125, 60, 255, 0.18); border-color: rgba(125, 60, 255, 0.42);
  border-radius: 14px 14px 4px 14px;
}
.cs-msg .cs-body p { margin: 0 0 8px; }
.cs-msg .cs-body p:last-child { margin-bottom: 0; }
.cs-list { margin: 4px 0 8px; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.cs-typing .cs-dots { display: inline-flex; gap: 4px; align-items: center; height: 18px; }
.cs-typing .cs-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); display: block;
  animation: cs-dot 1.1s ease-in-out infinite;
}
.cs-typing .cs-dots i:nth-child(2) { animation-delay: 0.15s; }
.cs-typing .cs-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes cs-dot { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

.cs-composer { display: flex; gap: 10px; align-items: flex-end; }
.cs-composer textarea {
  flex: 1; min-width: 0; resize: vertical; min-height: 48px; max-height: 160px;
  padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--input); color: var(--text);
}
.cs-composer textarea:focus { border-color: var(--gold); }
.cs-composer .cs-send { flex: 0 0 auto; }
.cs-foot { font-size: 12px; }
.cs-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-chip {
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04); color: var(--muted); font-size: 12.5px; cursor: pointer;
  text-align: left;
}
.cs-chip:hover { border-color: var(--gold); color: var(--text); }
.cs-hist {
  display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  cursor: pointer; margin-bottom: 8px; text-align: left;
}
.cs-hist:hover { border-color: var(--gold); }
/* Chip used for the "active / not ready" state in the admin CS AI card. */
.chip-ok { border-color: rgba(47, 208, 122, .5); color: #a9f0c8; background: rgba(47, 208, 122, .12); }

/* ---------------------------------------------------------------- CS AI provider profiles
   Editor in the CS AI admin card (public/cs-profiles.js — identical file in both portals). */
.csprof-wrap { display: grid; gap: 10px; margin: 6px 0 4px; }
.csprof {
  border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px;
  background: rgba(255, 255, 255, .03); display: grid; gap: 10px;
}
.csprof-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.csprof-order {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(230, 192, 114, .16); border: 1px solid rgba(230, 192, 114, .45);
  color: #f3e2b6; font-size: 11.5px; font-weight: 800;
}
.csprof-actions { margin-left: auto; display: inline-flex; gap: 6px; }
.cs-prof-btn {
  width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 13px; line-height: 1;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text);
}
.cs-prof-btn:hover { border-color: rgba(230, 192, 114, .6); }
.cs-prof-del:hover { border-color: var(--down); color: #ffb3bd; }
.csprof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 14px; }
.csprof-field { display: flex; flex-direction: column; gap: 4px; }
.csprof-field > span { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.csprof-clear { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.csprof-note { font-size: 12px; color: var(--dim); line-height: 1.5; margin: 0; }
.csprof-add { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.csprof-add .select { min-width: 240px; }
@media (max-width: 560px) { .csprof-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- recovery phrase grid
   The 12 words are numbered so the member can write them down in order. Nothing here is
   printed or logged; the panel only appears after the owner presses "Show my phrase & key". */
.phrase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px; margin-top: 8px; }
.phrase-word { display: flex; align-items: baseline; gap: 6px; padding: 8px 10px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; word-break: break-word; }
.phrase-word em { font-style: normal; font-size: 10.5px; color: var(--dim); min-width: 16px; text-align: right; }
@media (max-width: 560px) { .phrase-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .phrase-word { font-size: 12px; padding: 7px 8px; } }

/* ------------------------------------------- CS AI mengambang ("Ask to AI Super")
   Ikon asisten di kanan bawah supaya CS AI bisa ditanya dari halaman mana pun (dulu hanya kotak
   yang terkubur di beranda) — permintaan pemilik akun, disamakan dengan pistake & ABPXStaking.
   Aturan ini sengaja di AKHIR berkas supaya menang atas aturan generik di atasnya. */
.cs-float { position: fixed; right: 18px; bottom: 18px; z-index: 48; display: flex; flex-direction: column;
  align-items: flex-end; gap: 12px; pointer-events: none; }
.cs-float > * { pointer-events: auto; }

.cs-fab { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 7px 18px 7px 7px; border-radius: 999px; border: 1px solid rgba(232, 195, 122, .5);
  background: linear-gradient(120deg, rgba(58, 44, 14, .96), rgba(13, 17, 25, .97));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 0 0 0 rgba(232, 195, 122, .5);
  animation: cs-fab-pulse 3.4s ease-in-out infinite; }
.cs-fab:hover { border-color: rgba(232, 195, 122, .85); }
.cs-fab:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.cs-fab.is-open { animation: none; }
.cs-fab-img { width: 54px; height: 54px; border-radius: 50%; flex: none; display: block;
  background: #14120a; border: 2px solid rgba(232, 195, 122, .55); }
.cs-fab-label { font-weight: 800; font-size: 14.5px; letter-spacing: .2px; color: #fff; white-space: nowrap; }
.cs-fab-badge { position: absolute; top: -4px; left: 42px; font-size: 10px; font-weight: 800; letter-spacing: .08em;
  padding: 2px 7px; border-radius: 999px; color: #17130a; background: linear-gradient(135deg, var(--gold), #d99a1c); }
@keyframes cs-fab-pulse {
  0% { box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 0 0 0 rgba(232, 195, 122, .45); }
  70% { box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 0 0 14px rgba(232, 195, 122, 0); }
  100% { box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 0 0 0 rgba(232, 195, 122, 0); }
}

.cs-panel { width: min(520px, calc(100vw - 24px)); height: min(88vh, 780px); max-height: calc(100vh - 24px);
  display: flex; flex-direction: column; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(232, 195, 122, .35);
  background: var(--panel); box-shadow: 0 26px 60px rgba(0, 0, 0, .62); }
.cs-panel-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  padding: 11px 13px; border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(58, 44, 14, .55), rgba(13, 17, 25, .6)); }
.cs-panel-head .chip { white-space: nowrap; justify-self: end; }
.cs-panel-img { width: 40px; height: 40px; border-radius: 50%; flex: none; background: #14120a;
  border: 1px solid rgba(232, 195, 122, .5); }
.cs-panel-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cs-panel-title strong { font-size: 15px; }
.cs-panel-title span { line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-chip-model { font-weight: 600; }
.cs-panel-close { flex: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 18px;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); color: var(--muted); }
.cs-panel-close:hover { color: var(--text); border-color: rgba(232, 195, 122, .7); }
.cs-panel-body { padding: 14px; display: flex; flex-direction: column; gap: 10px;
  flex: 1 1 auto; min-height: 0; overflow-y: auto; }
/* Transkrip mengambil sisa ruang: tanpa `flex:1` + `min-height`, kolom ini bisa menyusut sampai
   ~67px di dalam flex container sehingga jawaban AI hilang dari layar (bug yang sudah diperbaiki
   di pistake — jangan dihilangkan). */
.cs-panel-body .cs-body-wrap { flex: 1 1 auto; min-height: 240px; max-height: none; }
.cs-panel-body .cs-composer { flex: 0 0 auto; }
/* Saran pertanyaan jadi SATU baris yang bisa digeser supaya transkrip tetap lapang. */
.cs-panel-body .cs-chips { flex: 0 0 auto; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.cs-panel-body .cs-chip { flex: 0 0 auto; }
.cs-panel-body .cs-foot { flex: 0 0 auto; font-size: 11.5px; line-height: 1.5; }

/* Di HP: label tetap tampil (lebih kecil) dan isi halaman diberi ruang bawah supaya tidak tertutup. */
@media (max-width: 640px) {
  .cs-float { right: 10px; bottom: 10px; gap: 10px; }
  .cs-fab { padding: 6px 14px 6px 6px; gap: 8px; }
  .cs-fab-img { width: 46px; height: 46px; }
  .cs-fab-label { font-size: 13px; }
  .cs-fab-badge { left: 34px; }
  .cs-panel { width: calc(100vw - 16px); height: calc(100vh - 96px); max-height: none; }
  .cs-panel-head { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; padding: 10px 11px; }
  .cs-panel-img { width: 34px; height: 34px; }
  .cs-panel-title strong { font-size: 14px; }
  .cs-panel-title span { display: none; }
  .cs-chip-model { display: none; }
  .shell { padding-bottom: 96px; }
}
/* Ikon mengambang tidak boleh ikut tercetak (kartu ID / laporan dicetak dari halaman ini). */
@media print { .cs-float { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .cs-fab { animation: none; } }

/* ------------------------------------------------------------------ INBOX CS (16 Okt 2026)
   Menggantikan ruang chat VIP "ChatRoom" (diarsipkan). Percakapan pribadi 1-lawan-1 antara
   anggota/pengunjung dengan petugas CS. Gaya dibuat menyatu dengan tema gelap + aksen emas app ini.
   Ditulis di AKHIR berkas agar tidak ada aturan lama yang menimpanya (kebiasaan di repo ini). */

.nav-badge {
  display: inline-block; margin-left: 6px; min-width: 18px; padding: 1px 6px;
  border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 16px; text-align: center;
  color: #08132a; background: linear-gradient(135deg, #8ab4ff, #3b82f6);
}

.inbox-transcript {
  display: flex; flex-direction: column; gap: 10px;
  min-height: 260px; max-height: min(58vh, 560px); overflow-y: auto;
  padding: 16px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.03);
}
.inbox-row { display: flex; }
.inbox-row.is-mine { justify-content: flex-end; }
.inbox-row.is-them { justify-content: flex-start; }
.inbox-bubble {
  max-width: min(78%, 560px); padding: 10px 13px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.05);
}
.inbox-row.is-mine .inbox-bubble {
  background: linear-gradient(135deg, rgba(59,130,246,.20), rgba(59,130,246,.12));
  border-color: rgba(96,165,250,.45);
}
.inbox-meta { display: flex; gap: 10px; align-items: baseline; margin-bottom: 5px; font-size: 11.5px; opacity: .75; }
.inbox-meta time { font-variant-numeric: tabular-nums; }
.inbox-text { font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.inbox-sys { text-align: center; margin: 4px 0; }
.inbox-sys span {
  display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: 12px;
  border: 1px dashed rgba(255,255,255,.20); background: rgba(255,255,255,.03); opacity: .85;
}
.inbox-day {
  align-self: center; margin: 6px 0 2px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .55;
}
.inbox-composer { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; }
.inbox-composer textarea {
  flex: 1 1 auto; min-height: 54px; max-height: 160px; resize: vertical;
  padding: 11px 13px; border-radius: 12px; font: inherit; font-size: 14.5px;
  color: inherit; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
}
.inbox-composer textarea:focus { outline: none; border-color: rgba(96,165,250,.55); }
.form-note.is-err { color: #ff9aa8; }

/* --- panel petugas --- */
.inbox-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.inbox-kpi { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); }
.inbox-kpi span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; font-weight: 700; }
.inbox-kpi strong { display: block; font-size: 20px; margin-top: 4px; }
.inbox-split { display: grid; gap: 16px; grid-template-columns: minmax(240px, 340px) 1fr; align-items: start; }
.inbox-list { display: flex; flex-direction: column; gap: 10px; max-height: min(62vh, 620px); overflow-y: auto; }
.inbox-thread {
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 12px; border-radius: 12px; font: inherit; color: inherit;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03);
}
.inbox-thread:hover { border-color: rgba(96,165,250,.55); }
.inbox-thread.is-active { border-color: rgba(96,165,250,.75); background: rgba(59,130,246,.12); }
.inbox-thread-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.inbox-thread-top time { font-size: 11.5px; opacity: .65; }
.inbox-thread-prev { display: block; margin: 5px 0 7px; font-size: 13px; opacity: .78; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-thread-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.inbox-view { min-width: 0; }
.inbox-who {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center;
  padding: 12px; border-radius: 12px; margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.03);
}
.tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); opacity: .9;
}
.tag-ok { border-color: rgba(36,208,122,.5); background: rgba(36,208,122,.14); color: #7cf0b4; }
.tag-warn { border-color: rgba(96,165,250,.5); background: rgba(59,130,246,.18); color: #f7d491; }

/* Di HP: daftar percakapan di atas, isi percakapan di bawah (satu kolom). */
@media (max-width: 860px) {
  .inbox-split { grid-template-columns: 1fr; }
  .inbox-list { max-height: 300px; }
  .inbox-transcript { max-height: min(52vh, 460px); }
  .inbox-composer { flex-direction: column; }
  .inbox-composer button { width: 100%; }
}

/* Kotak centang izin peran ADMIN OPERATOR (kartu setelan owner). */
.perm-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 6px; }
.perm-item {
  display: flex; gap: 9px; align-items: center; padding: 9px 11px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); font-size: 13.5px; cursor: pointer;
}
.perm-item:hover { border-color: rgba(245,185,66,.6); }
.perm-item input { margin: 0; }

/* ---- Admin "login as member" banner (21 Oct 2026) ------------------------------------------- */
.imp-banner {
  /* In the normal flow (NOT sticky): the topbar is already sticky at top:0, and a second sticky bar
     would paint over it and hide the menu. This bar sits under the topbar and scrolls with the page. */
  position: relative; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px;
  padding: 10px 16px;
  background: linear-gradient(120deg, #4F46E5, #8B5CF6);
  color: #fff; font-size: 13.5px; line-height: 1.4;
  box-shadow: 0 6px 18px rgba(79, 70, 229, .35);
}
.imp-banner strong { font-weight: 800; }
.imp-banner .btn { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.55); color: #fff; }
.imp-banner .btn:hover { background: rgba(255,255,255,.26); }
@media (max-width: 640px) {
  .imp-banner { font-size: 12.5px; padding: 8px 12px; text-align: center; }
}

/* ---- Pemilih bahasa (23 Okt 2026) ------------------------------------------------------------
   Permintaan pemilik akun: pilihan bahasa seluruh dunia, tombolnya di TOPBAR sejajar "Log in",
   dan harus MUDAH DITEKAN DI ANDROID. Karena itu:
     · tinggi tombol 36px (≥ 32px = nyaman disentuh) dan selalu terlihat di topbar, tidak masuk menu;
     · di layar ≤430px label kode (EN/ID/…) tetap tampil, teks "Log in" boleh menyusut lebih dulu;
     · tidak memakai posisi absolut → tidak menutupi tombol lain dan tidak ikut tergulir. */
.tb-lang {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 10px;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: var(--text); text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  flex: 0 0 auto; cursor: pointer;
}
.tb-lang:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .38); }
.tb-lang:focus-visible { outline: 2px solid var(--gold, #F5B942); outline-offset: 2px; }
.tb-lang-globe { font-size: 15px; line-height: 1; }
.tb-lang-code { min-width: 22px; text-align: center; }
@media (max-width: 430px) {
  .tb-lang { height: 32px; padding: 0 8px; gap: 4px; font-size: 12px; }
  .tb-lang-globe { font-size: 13px; }
  .topbar-actions { gap: 6px; }
}

/* Halaman #/language — daftar semua bahasa (bendera + nama asli + kode).
   `auto-fit minmax(210px,1fr)` = 1 kolom di HP, 2–4 kolom di desktop; tidak ada gulir menyamping. */
.lang-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 4px;
}
.lang-item {
  display: flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 12px 14px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  color: var(--text); text-align: start; cursor: pointer;
  font: inherit; width: 100%;
}
.lang-item:hover { border-color: rgba(245, 185, 66, .55); background: rgba(255, 255, 255, .08); }
.lang-item.is-active {
  border-color: rgba(245, 185, 66, .85);
  background: linear-gradient(120deg, rgba(245, 185, 66, .18), rgba(245, 185, 66, .06));
  box-shadow: 0 6px 20px rgba(245, 185, 66, .18);
}
.lang-flag { font-size: 22px; line-height: 1; flex: 0 0 auto; }
.lang-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.lang-text strong { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.lang-text small { font-size: 11.5px; opacity: .72; overflow-wrap: anywhere; }
.lang-code {
  flex: 0 0 auto; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; letter-spacing: .06em; opacity: .8;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; padding: 2px 6px;
}
.lang-check { flex: 0 0 auto; color: var(--gold, #F5B942); font-weight: 800; }
@media (max-width: 560px) {
  .lang-grid { grid-template-columns: 1fr; gap: 10px; }
  .lang-item { min-height: 54px; padding: 11px 12px; }
}

/* RTL (Arab): arahkan teks & ikon, tanpa merusak grid/tabel. */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .topbar, html[dir="rtl"] .nav-main, html[dir="rtl"] .topbar-actions { direction: rtl; }
html[dir="rtl"] .lang-item { text-align: right; }
html[dir="rtl"] .nav-drop-menu { text-align: right; }

/* ---- Halaman #/legal (23 Okt 2026) — status perizinan Singapore & Hong Kong --------------------
   Dua kartu berdampingan di desktop, SATU kolom di HP (grid-cards sudah membungkus; di sini hanya
   memastikan tabel persyaratan tidak membuat halaman melebar di Android). */
.legal-grid { align-items: start; }
.legal-jur .card-head h3 { font-size: 17px; }
.legal-req td, .legal-req th { vertical-align: top; }
.legal-req td:nth-child(1) { white-space: nowrap; }
.legal-req td:nth-child(2) { line-height: 1.45; }
.legal-req td:nth-child(3) { font-size: 11.5px; line-height: 1.45; }
.legal-notes { margin: 6px 0 0; padding-left: 20px; }
.legal-notes li { font-size: 12.5px; line-height: 1.6; margin-bottom: 8px; color: var(--muted, #a9a4c9); }
html[dir="rtl"] .legal-notes { padding-left: 0; padding-right: 20px; }
@media (max-width: 900px) {
  .legal-req td:nth-child(1) { white-space: normal; }
}
@media (max-width: 560px) {
  .legal-req td, .legal-req th { font-size: 12px; }
  .legal-req td:nth-child(3) { font-size: 11px; }
}

/* ---- Kartu Legal: hero band skyline + logo koin ABPX (23 Okt 2026) --------------------------
   Permintaan pemilik akun: "buat tampilan background yang cantik untuk kota Hongkong dan ada logo
   coin ABPX". Ilustrasi = SVG ORISINAL buatan sendiri (bukan foto pihak ketiga — tangkapan layar
   pembanding memuat watermark & merek lain), jadi aman dipakai di halaman publik.
   Kartu memakai `overflow:hidden` supaya sudut ilustrasi mengikuti radius kartu. */
.legal-jur { overflow: hidden; padding: 0; }
.legal-hero {
  position: relative;
  min-height: 148px;
  padding: 16px 18px;
  display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
  background-color: #0a1522;
  background-size: cover;
  background-position: center 72%;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
/* Lapisan gelap di bawah supaya teks di atas ilustrasi tetap terbaca (WCAG), plus cahaya emas tipis. */
.legal-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,10,20,.10) 0%, rgba(6,10,20,.45) 55%, rgba(8,12,20,.88) 100%);
}
.legal-hero-glow {
  position: absolute; z-index: -1; right: -30px; top: -40px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,195,122,.34), rgba(232,195,122,0) 70%);
  filter: blur(2px);
}
/* Logo koin ABPX: bulat, dengan cincin emas + bayangan, sedikit menonjol dari dasar band. */
.legal-hero-coin {
  width: 54px; height: 54px; flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(232,195,122,.55);
  box-shadow: 0 6px 18px rgba(0,0,0,.55), 0 0 0 4px rgba(232,195,122,.10);
  background: #0a0f18;
}
.legal-hero-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 180px; }
.legal-hero-flag { font-size: 15px; line-height: 1; opacity: .95; }
.legal-hero-text strong {
  font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,.75);
}
.legal-hero-text small {
  font-size: 11.5px; line-height: 1.45; color: #e7e2d4; opacity: .95;
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
}
.legal-hero-chip { align-self: flex-start; flex: 0 0 auto; backdrop-filter: blur(6px); background: rgba(8,12,20,.55); }
.legal-jur-body { padding: 16px 18px 18px; }

/* Singapura: rim langit lebih dingin (teal) vs Hong Kong yang emas — supaya kedua kartu terasa
   berbeda tanpa keluar dari palet app. */
.legal-jur-sg .legal-hero-glow {
  background: radial-gradient(circle, rgba(127,227,208,.30), rgba(127,227,208,0) 70%);
}
.legal-jur-sg .legal-hero-coin { border-color: rgba(127,227,208,.5); box-shadow: 0 6px 18px rgba(0,0,0,.55), 0 0 0 4px rgba(127,227,208,.10); }

@media (max-width: 560px) {
  .legal-hero { min-height: 124px; padding: 12px 14px; gap: 10px; background-position: center 68%; }
  .legal-hero-coin { width: 44px; height: 44px; }
  .legal-hero-text strong { font-size: 17px; }
  .legal-hero-text small { font-size: 11px; }
  .legal-jur-body { padding: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .legal-hero-coin { transition: transform .25s ease; }
  .legal-jur:hover .legal-hero-coin { transform: translateY(-2px) scale(1.03); }
}

/* ---- Halaman #/news (23 Okt 2026) — info pasar + ulasan trading 2026 --------------------------
   Grid editorial: 1 kolom di HP, 2 kolom ≥900px. Teks ulasan panjang → ukuran 13px, line-height 1.65. */
.news-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 901px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.news-sec, .news-grid > .card { min-width: 0; }
.news-p { font-size: 13px; line-height: 1.68; margin: 0 0 10px; color: var(--text); }
.news-p:last-child { margin-bottom: 0; }
.news-list { margin: 6px 0 0; padding-left: 20px; }
.news-list li { font-size: 12.8px; line-height: 1.65; margin-bottom: 9px; color: var(--muted); }
.news-list li:last-child { margin-bottom: 0; }
.news-list-tight li { margin-bottom: 7px; }
html[dir="rtl"] .news-list { padding-left: 0; padding-right: 20px; }

/* Kartu video: kotak "play" dekoratif + tombol; TIDAK memuat iframe YouTube (tanpa cookie pihak
   ketiga, tanpa skrip eksternal di halaman kita) — hanya tautan keluar. */
.news-video-body { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-top: 10px; }
.news-video-thumb {
  flex: 0 0 auto; width: 132px; height: 78px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; font-size: 22px; color: #fff;
  background: linear-gradient(135deg, rgba(246,70,93,.85), rgba(139,92,246,.75));
  box-shadow: 0 8px 22px rgba(0,0,0,.45);
}
.news-video .btn-gold { margin-top: 2px; }
@media (max-width: 560px) {
  .news-video-thumb { width: 100%; height: 96px; }
  .news-p { font-size: 12.8px; }
}

/* ---- "Data berjalan" per anggota (23 Okt 2026) -----------------------------------------------
   Permintaan pemilik akun: teks berjalan ke KIRI berisi apa yang belum dilengkapi anggota yang
   sedang login, dan hilang sendiri setelah diisi. Satu baris, tidak membungkus, tidak menahan layout
   lain (di aliran normal, bukan posisi absolut → tidak menutupi topbar/modal).
   Keterbacaan: latar gelap pekat + teks terang (kontras > 7:1), dan animasi DINONAKTIFKAN bila
   pengunjung memilih "kurangi gerakan". */
.reminder-bar {
  position: relative;
  display: flex; align-items: stretch; gap: 0;
  background: linear-gradient(90deg, rgba(246, 70, 93, .18), rgba(139, 92, 246, .16));
  border-bottom: 1px solid rgba(246, 70, 93, .35);
  overflow: hidden;
}
.reminder-tag {
  flex: 0 0 auto;
  display: flex; align-items: center;
  padding: 7px 12px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: rgba(246, 70, 93, .85);
  white-space: nowrap;
}
.reminder-viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.reminder-track {
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap; width: max-content;
  padding: 7px 14px;
  font-size: 12.5px;
  animation-name: reminder-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: 24s;                /* ditimpa JS sesuai panjang teks */
  will-change: transform;
}
@keyframes reminder-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* isi digandakan 2× → mulus tanpa jeda */
}
/* Berhenti saat disentuh/di-hover supaya bisa dibaca; berjalan lagi setelah dilepas. */
.reminder-bar:hover .reminder-track,
.reminder-bar:focus-within .reminder-track { animation-play-state: paused; }
.reminder-who {
  font-weight: 800; color: #fff;
  padding: 1px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .14);
}
.reminder-item {
  color: #fff; text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, .45);
  padding-bottom: 1px;
}
.reminder-item:hover, .reminder-item:focus { color: #ffe9b8; border-bottom-color: #ffe9b8; }
.reminder-item.is-bad { color: #ffd0d7; }
.reminder-item.is-warn { color: #ffe0a8; }
.reminder-item.is-info { color: #d9e6ff; }
.reminder-dot { color: rgba(255, 255, 255, .55); margin: 0 2px; }
.reminder-cta {
  flex: 0 0 auto;
  color: #04060b; background: var(--gold, #e8c37a);
  font-weight: 800; font-size: 11.5px; text-decoration: none;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.reminder-cta:hover { filter: brightness(1.08); }

/* Tanpa gerakan: jangan bergulir — tampilkan sebagai teks yang boleh membungkus. */
@media (prefers-reduced-motion: reduce) {
  .reminder-track { animation: none !important; white-space: normal; width: auto; display: flex; flex-wrap: wrap; }
  .reminder-bar { align-items: flex-start; }
}
@media (max-width: 560px) {
  .reminder-tag { font-size: 10px; padding: 6px 9px; }
  .reminder-track { font-size: 12px; padding: 6px 10px; gap: 8px; }
}

/* ---- Menu "Test WD": kartu per REGIONAL (30 Okt 2026) ---------------------------------------- */
.twd-region { margin-top: 14px; }
.twd-region .card-head h3 { font-size: 15px; }
.twd-table td { vertical-align: top; }
@media (max-width: 700px) {
  .twd-table th:nth-child(4), .twd-table td:nth-child(4) { display: none; }
}

/* ---- Chip cakupan di menu "Find member" (30 Okt 2026) --------------------------------------- */
.ms-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.ms-scope { font-size: 12px; }
.ms-scope.is-active { background: rgba(232, 195, 122, .18); border-color: rgba(232, 195, 122, .55); color: #ffe9b8; }
.ms-count {
  display: inline-block; margin-left: 5px; padding: 0 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); font-size: 10.5px; font-variant-numeric: tabular-nums;
}
.ms-big .ms-input { font-size: 16px; padding: 14px 16px; }
@media (max-width: 560px) { .ms-big .ms-input { font-size: 15px; padding: 12px 13px; } }

/* ---- PENCARIAN ANGGOTA: hasil LANGSUNG di bawah kolom (29 Okt 2026) --------------------------
   Permintaan pemilik akun: hasil pencarian tampil langsung di bawah kolom pencarian dan admin bisa
   langsung "Log in as". Dibuat sebagai daftar kartu (bukan tabel) supaya terbaca di HP dan tiap baris
   punya tombolnya sendiri. */
.ms-box { position: relative; margin: -4px 0 12px; }
.ms-field { position: relative; }
.ms-input { width: 100%; }
.ms-hint { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.ms-results:not(:empty) {
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(10, 12, 20, .72);
  overflow: hidden;
}
.ms-list { display: grid; }
.ms-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.ms-row:first-child { border-top: 0; }
.ms-row:hover { background: rgba(255, 255, 255, .03); }
.ms-main { flex: 1 1 260px; min-width: 0; display: grid; gap: 3px; }
.ms-title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-width: 0; }
.ms-title strong { overflow-wrap: anywhere; }
.ms-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.ms-meta span { overflow-wrap: anywhere; }
.ms-wallet { font-size: 11.5px; color: var(--muted); }
.ms-wallet.down { color: #ff9aa8; }
.ms-match { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; }
.ms-actions { display: flex; gap: 6px; flex-wrap: wrap; flex: 0 0 auto; }
.ms-empty { padding: 12px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) {
  .ms-actions { flex: 1 1 100%; }
  .ms-actions .btn { flex: 1 1 auto; }
}

/* ---- MENU TREE anggota (28 Okt 2026): pohon + rantai posisi ------------------------------- */
.net-tree, .net-kids { list-style: none; margin: 0; padding: 0; }
.net-node.is-self {
  border-color: rgba(232, 195, 122, .55);
  background: linear-gradient(135deg, rgba(232, 195, 122, .16), rgba(139, 92, 246, .10));
}
.tree-path { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px dashed rgba(255, 255, 255, .2); display: grid; gap: 8px; }
.tree-path li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.tree-path li.is-self { color: #ffe9b8; }
@media (max-width: 560px) {
  .tree-path { padding-left: 10px; }
  .tree-path li { font-size: 12.5px; }
}

/* ---- POHON JARINGAN REFERRAL di panel admin (28 Okt 2026) -------------------------------------
   Permintaan pemilik akun: Team Management → Ketua Provinsi → team provinsi. Dibuat sebagai daftar
   bertingkat yang bisa digulir (bukan kanvas), supaya terbaca di HP dan tidak butuh pustaka grafik. */
.net-tree, .net-kids { list-style: none; margin: 0; padding: 0; }
.net-kids {
  margin: 6px 0 6px 16px;
  padding-left: 12px;
  border-left: 1px dashed rgba(255, 255, 255, .18);
  display: grid; gap: 6px;
}
.net-node {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 7px 10px; border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  min-width: 0;
}
.net-node strong { font-size: 13px; overflow-wrap: anywhere; }
.net-node .mono { font-size: 11px; }
@media (max-width: 560px) {
  .net-kids { margin-left: 10px; padding-left: 8px; }
  .net-node { padding: 6px 8px; gap: 5px; }
  .net-node strong { font-size: 12.5px; }
}

/* ---- INFO DATA PERWAKILAN di app anggota (28 Okt 2026) -----------------------------------------
   Permintaan pemilik akun: perwakilan yang wallet ABPX-nya belum aktif / KYC-nya belum lengkap diberi
   info di app masing-masing. Dibuat sebagai KARTU DI ALIRAN NORMAL (bukan modal, bukan posisi absolut)
   supaya tidak pernah memblokir klik seperti modal tawaran app — 50+ harness browser tidak perlu ditambal.
   Hilang sendiri begitu datanya lengkap (server yang menentukan; tidak ada tombol "abaikan"). */
.rep-notice {
  display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap;
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(246, 70, 93, .42);
  background: linear-gradient(135deg, rgba(246, 70, 93, .16), rgba(139, 92, 246, .12));
}
.rep-notice-body { flex: 1 1 260px; min-width: 0; }
.rep-notice-title {
  display: block; font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 3px;
}
.rep-notice-lede { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .78); line-height: 1.5; }
.rep-notice-list { list-style: none; margin: 9px 0 0; padding: 0; display: grid; gap: 6px; }
.rep-notice-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; color: #fff; overflow-wrap: anywhere;
}
.rep-notice-list li::before {
  content: "!"; flex: 0 0 auto;
  width: 17px; height: 17px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; color: #2a0b12; background: #ff8fa1;
}
.rep-notice-list li.is-kyc::before { background: #ffd27f; }
.rep-notice-act { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
@media (max-width: 560px) {
  .rep-notice { padding: 12px 13px; gap: 10px; }
  .rep-notice-act { flex: 1 1 100%; }
  .rep-notice-act .btn { width: 100%; }
}

/* ---- Kartu "Ownership & roles" di halaman Legal (23 Okt 2026) -------------------------------- */
.legal-own-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 12px; }
@media (min-width: 720px) { .legal-own-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.legal-own {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  min-width: 0;
}
.legal-own-role {
  font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--gold, #e8c37a);
}
.legal-own-name { font-size: 17px; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.legal-own-region { font-size: 12px; color: var(--muted); }
.legal-own-contract {
  align-self: flex-start; margin-top: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(232, 195, 122, .16); color: #ffe6ae;
  border: 1px solid rgba(232, 195, 122, .45);
}
html[dir="rtl"] .legal-own-contract { align-self: flex-end; }

/* ---- Tawaran "Download & install" saat membuka web (23 Okt 2026) ----------------------------
   Elemen SENDIRI (#app-prompt-root), bukan #modal-root, supaya tidak bertabrakan dengan modal lain
   (info VIP untuk tamu, prompt wajib ganti sandi). Kartu di tengah, latar digelapkan. */
#app-prompt-root[hidden] { display: none !important; }
.app-prompt-backdrop {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(3, 5, 10, .72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.app-prompt-card {
  position: fixed; z-index: 9001;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(480px, calc(100vw - 28px));
  max-height: calc(100vh - 40px); overflow-y: auto;
  padding: 20px 20px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, #101725, #0a0f18 60%);
  border: 1px solid rgba(232, 195, 122, .32);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .65);
  color: var(--text);
}
.app-prompt-head { display: flex; align-items: flex-start; gap: 12px; }
.app-prompt-head h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.3; flex: 1 1 auto; }
.app-prompt-x {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  color: var(--text); font-size: 18px; line-height: 1; cursor: pointer;
}
.app-prompt-x:hover { background: rgba(255, 255, 255, .14); }
.app-prompt-body { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; }
.app-prompt-icon {
  flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%;
  border: 1px solid rgba(232, 195, 122, .45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5), 0 0 0 4px rgba(232, 195, 122, .08);
  background: #070b12;
}
.app-prompt-body > div { min-width: 0; }
.app-prompt-sub { margin: 0; font-weight: 800; font-size: 14px; color: #ffe6ae; }
.app-prompt-note {
  margin: 12px 0 0; padding: 9px 11px; border-radius: 10px;
  background: rgba(246, 70, 93, .12); border: 1px solid rgba(246, 70, 93, .3);
}
.app-prompt-actions {
  display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; justify-content: flex-end;
}
.app-prompt-actions .btn { min-height: 44px; }
.app-prompt-foot { margin: 12px 0 0; }
@media (max-width: 560px) {
  .app-prompt-card { padding: 18px 16px 14px; }
  .app-prompt-body { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .app-prompt-actions { flex-direction: column-reverse; }
  .app-prompt-actions .btn { width: 100%; }
}

/* ------------------------------------------------------------------ bukti pembayaran WD (31 Okt 2026)
   Bukti transfer yang diunggah admin dilihat anggota sebagai kuitansi, dan admin melihat pratinjaunya
   di modal review. Ukurannya dibatasi supaya tabel riwayat tidak melebar di HP (390px). */
.wd-proof-thumb { display: inline-block; vertical-align: middle; }
.wd-proof-thumb img {
  display: block; width: 46px; height: 34px; object-fit: cover; border-radius: 8px;
  border: 1px solid rgba(245, 185, 66, .45); background: #0b0f16;
}
.admin-proof-img {
  display: block; max-width: 100%; width: 260px; height: auto; border-radius: 12px;
  border: 1px solid rgba(245, 185, 66, .45); background: #0b0f16;
}
@media (max-width: 560px) {
  .wd-proof-thumb img { width: 40px; height: 30px; }
  .admin-proof-img { width: 100%; max-width: 100%; }
}

/* ------------------------------------------------------------------ paginasi Test WD (31 Okt 2026)
   Daftar perwakilan dipotong 100 baris per halaman; pager duduk di bawah tabel tiap daerah dan di
   dasar daftar. Di HP tombolnya melebar supaya mudah dijangkau jempol. */
.twd-pager {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .07);
}
.twd-pager .form-actions { margin: 0; }
.twd-region .card-head { align-items: flex-start; }
@media (max-width: 560px) {
  .twd-pager { flex-direction: column; align-items: stretch; }
  .twd-pager .form-actions { display: flex; }
  .twd-pager .form-actions .btn { flex: 1 1 0; min-height: 42px; }
  .twd-region .card-head > .form-actions { width: 100%; justify-content: space-between; }
}

/* ------------------------------------------------------------------ blok "kode Anda sendiri" (31 Okt 2026)
   Pengumuman Test-WD kini dibaca SEMUA anggota, jadi ia menampilkan keadaan kode MILIK pembaca
   (aktif / menunggu aktivasi / terpakai / belum terbit) tepat di bawah paragraf pembuka. */
.vip-notice-mine {
  margin: 12px 0 4px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(245, 185, 66, .35); background: rgba(245, 185, 66, .07);
}
.vip-notice-mine-head {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #f5b942; margin-bottom: 6px;
}
.vip-notice-mine .r { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.vip-notice-mine .r > span { color: #b9b3c9; font-size: 12.5px; }
.vip-notice-mine .r > strong { font-size: 13px; text-align: right; word-break: break-word; }
.vip-notice-mine-note { margin: 8px 0 0; color: #cfc8dd; line-height: 1.5; }
@media (max-width: 560px) {
  .vip-notice-mine .r { flex-direction: column; gap: 2px; }
  .vip-notice-mine .r > strong { text-align: left; }
}

/* ------------------------------------------------------------------ Code Referensi (upline) · 31 Okt 2026
   Baris paling atas kartu "Profile & bank details" di menu Account: menampilkan atasan anggota
   (kode · nama · jabatan) atau kotak isian bila belum punya. Dibuat satu baris fleksibel supaya di
   390px tidak memaksa halaman melebar. */
.upline-box {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid rgba(245, 185, 66, .32); background: rgba(245, 185, 66, .06);
}
.upline-box .upline-name { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .upline-box { gap: 8px; }
  .upline-box .wd-token-code { font-size: 12px; }
}

/* ------------------------------------------------------------------ PEMILIH ATASAN (2 Nov 2026)
   Rantai yang benar: Team Management → Perwakilan Provinsi → Perwakilan Kabupaten/Kota → Member/VIP.
   Anggota memilih atasan dari DAFTAR (nama + jabatan + jenjang terlihat), bukan mengetik kode orang dari
   luar. Penempatan yang tidak mengikuti rantai tetap boleh disimpan → diberi tanda "unusual" + peringatan,
   dan dicatat di panel admin untuk dikoreksi (keputusan pemilik akun). */
.hier-pick { margin-top: 10px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px; }
.hier-who { display: flex; flex-direction: column; gap: 2px; font-size: 12.4px; }
.hier-who > span:first-child { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.hier-list { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow: auto; margin-top: 8px; }
.hier-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 2px 2px 4px; }
.hier-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; text-align: left;
  padding: 8px 10px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); color: inherit;
  font: inherit;
}
.hier-row:hover, .hier-row:focus-visible { border-color: rgba(245, 185, 66, .5); background: rgba(245, 185, 66, .07); }
.hier-row.is-rec { border-color: rgba(46, 204, 113, .38); background: rgba(46, 204, 113, .06); }
.hier-row-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 170px; }
.hier-row-main strong { overflow-wrap: anywhere; }
.hier-chosen { margin-top: 8px; }
.hier-chosen-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(245, 185, 66, .35); background: rgba(245, 185, 66, .07); }
@media (max-width: 560px) {
  .hier-list { max-height: 260px; }
  .hier-row { padding: 8px; }
}

/* ------------------------------------------------------------------ kartu "Hierarchy check" (panel, 2 Nov 2026) */
.hier-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.hier-kpi { border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 10px 12px; background: rgba(255, 255, 255, .03); }
.hier-kpi .l { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
.hier-kpi .v { display: block; font-size: 19px; font-weight: 800; margin-top: 2px; }
.hier-kpi .s { display: block; font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.hier-kpi.is-bad { border-color: rgba(246, 70, 93, .45); background: rgba(246, 70, 93, .07); }
.hier-kpi.is-ok { border-color: rgba(46, 204, 113, .38); background: rgba(46, 204, 113, .06); }
.hier-chain { font-size: 12.6px; color: var(--dim); margin: 0 0 10px; }
.hier-chain strong { color: var(--ink); }

/* ------------------------------------------------------------------ pemilih regional (31 Okt 2026)
   Dua pemilih (provinsi & kabupaten/kota) di menu Find member. Dibuat grid yang turun jadi satu kolom
   di HP, dan catatan di bawahnya menjelaskan DARI MANA daerah seorang anggota diketahui. */
.ms-region {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.6fr) auto;
  gap: 12px; align-items: end; margin-top: 14px;
}
.ms-region .field { margin: 0; min-width: 0; }
.ms-region .ms-region-actions { display: flex; align-items: end; }
.ms-region .ms-region-actions .btn { min-height: 42px; }
.ms-region-note { margin: 10px 0 0; line-height: 1.5; }
@media (max-width: 720px) {
  .ms-region { grid-template-columns: minmax(0, 1fr); }
  .ms-region .ms-region-actions .btn { width: 100%; }
}

/* ------------------------------------------------------------------ tab Wallet terkunci (31 Okt 2026)
   Deposit · Withdrawals · Staking tetap TERLIHAT untuk semua anggota (permintaan pemilik akun) dan hanya
   diberi penanda. Tab terkunci tetap bisa dibuka — isinya kartu penjelasan status, bukan formulir. */
.tabs button.is-locked { opacity: .78; }
.tabs button.is-locked .tab-lock { font-size: 10px; margin-left: 4px; line-height: 1; }
.tabs button.is-locked.is-active { background: rgba(245, 185, 66, .18); color: #ffe6ae; }
@media (max-width: 560px) {
  .tabs button.is-locked .tab-lock { font-size: 9px; margin-left: 2px; }
}

/* ------------------------------------------------------------------ pendaftaran: field bentrok (31 Okt 2026)
   Data yang sudah terpakai (username · e-mail · No HP · wallet Solana) ditolak server dengan
   `details.field`; formulir menyorot kolomnya dan menampilkan pesan di #signup-error. */
.input.is-invalid, .select.is-invalid {
  border-color: rgba(246, 70, 93, .75) !important;
  box-shadow: 0 0 0 3px rgba(246, 70, 93, .16);
}
.notice.down {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px; line-height: 1.55;
  border: 1px solid rgba(246, 70, 93, .45); background: rgba(246, 70, 93, .10); color: #ffd6dc;
}
.notice.down strong { color: #ffb3bd; }

/* ------------------------------------------------------------------ modal pembayaran WD (1 Nov 2026)
   Kotak "Where to pay": alamat wallet anggota + No. Rekening bank dengan tombol salin. Di HP tombolnya
   dinaikkan ke 36px supaya mudah disentuh (versi pertama hanya 29px — terukur di harness). */
#wd-payee .form-actions .btn { min-height: 36px; }
#wd-payee .kv .r > strong { line-height: 1.45; }
@media (max-width: 560px) {
  #wd-payee .form-actions { display: flex; gap: 8px; }
  #wd-payee .form-actions .btn { width: 100%; min-height: 40px; }
}

/* ------------------------------------------------------------------ INFO BERJALAN TEST-WD (2 Nov 2026)
   Berisi NAMA · KOTA · jumlah test-WD anggota yang sudah mengirim ABPX dan menunggu USDC. Baris itu
   HILANG SENDIRI begitu operator menandai permintaannya dibayar (server hanya mengirim yang `pending`).

   TATA LETAK (revisi 2 Nov 2026 atas tangkapan layar pemilik akun): **JUDUL di baris atas, teks berjalan
   memakai SELURUH LEBAR di bawahnya**. Versi pertama menaruh label di kiri dan penghitung di kanan pada
   baris yang sama, sehingga di HP teks hanya mendapat ±200 px dan terpotong di tengah nama. */
.wdm-bar {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(90deg, rgba(30, 190, 140, .16), rgba(139, 92, 246, .14));
  border-bottom: 1px solid rgba(46, 204, 113, .32);
  overflow: hidden;
}
.wdm-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 12px 2px;
}
.wdm-tag {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: #04150f; background: linear-gradient(135deg, #35e0a1, #19b985);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.wdm-count { font-size: 11px; font-weight: 700; color: #b9f5dc; white-space: nowrap; }
/* Jumlah UANG yang sudah dibayar ($ dan Rp) + sisa kewajiban — emas muda supaya terbaca sebagai nominal,
   bukan pengulangan angka orang. Di layar lebar ikut satu baris dengan penghitung. */
.wdm-money {
  font-size: 11px; font-weight: 800; color: #ffe6a8; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.wdm-money::before { content: '· '; color: rgba(220, 239, 230, .42); font-weight: 400; }
.wdm-viewport { width: 100%; min-width: 0; overflow: hidden; }
.wdm-track {
  display: inline-flex; align-items: center; gap: 26px;
  white-space: nowrap; width: max-content;
  padding: 4px 14px 8px; font-size: 13px;
  animation-name: wdm-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
@keyframes wdm-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.wdm-bar:hover .wdm-track,
.wdm-bar:focus-within .wdm-track { animation-play-state: paused; }
.wdm-item { display: inline-flex; align-items: center; gap: 7px; color: #dcefe6; }

/* ---- KELOMPOK "SUDAH DIBAYAR" (3 Nov 2026) ------------------------------------------------------
   Permintaan pemilik akun: info berjalan juga menampilkan yang SUDAH paid. Bedanya harus terlihat tanpa
   membaca kalimat: titik + label berwarna EMAS, sedangkan yang menunggu tetap hijau. */
.wdm-item.is-paid .wdm-dot { background: #f5c451; box-shadow: 0 0 0 3px rgba(245, 196, 81, .18); }
.wdm-item.is-paid .wdm-name { color: #fff4d6; }
.wdm-item.is-paid .wdm-amt { color: #ffd98a; }
.wdm-flag {
  font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  border-radius: 999px; padding: 1px 7px; white-space: nowrap;
  color: #b9f5dc; background: rgba(53, 224, 161, .14); border: 1px solid rgba(53, 224, 161, .3);
}
.wdm-flag.is-paid { color: #1a1206; background: linear-gradient(135deg, #ffe9a8, #f5c451); border-color: transparent; }
.wdm-dot { width: 7px; height: 7px; border-radius: 999px; background: #35e0a1; flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(53, 224, 161, .18); }
.wdm-name { font-weight: 800; color: #fff; }
.wdm-mid { color: var(--dim); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }
.wdm-reg { color: #cfe9dd; font-size: 12.5px; font-weight: 600; }
.wdm-amt { font-weight: 800; color: #7ff0c4; font-variant-numeric: tabular-nums; }
.wdm-you { background: rgba(53, 224, 161, .18); color: #b9f5dc; border-radius: 999px; padding: 0 7px;
  font-size: 11px; font-weight: 700; }
.wdm-sep { color: rgba(220, 239, 230, .42); }
/* Label kelompok per baris ("VIP Member Test-WD") — dipertahankan sebagai penanda jenis baris. */
.wdm-kind { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: #04150f; background: linear-gradient(135deg, #8ef2c9, #35e0a1);
  border-radius: 999px; padding: 1px 8px; }
/* ---- PERAPIAN LAYAR ANDROID (3 Nov 2026) --------------------------------------------------------
   Diukur di 360 & 390 px (bukan dikira): baris judul boleh MEMBUNGKUS (label & penghitung dua angka
   tidak lagi berdesakan), teks bergulir satu baris tanpa mendorong halaman ke samping, dan jarak antar
   baris dikecilkan supaya tinggi bar tetap ringkas di layar HP. */
.wdm-bar { max-width: 100%; overflow-x: clip; }
.wdm-head { flex-wrap: wrap; row-gap: 2px; }
@media (max-width: 560px) {
  /* Di HP yang terpenting: NAMA · KOTA · JUMLAH, terbaca penuh. Jabatan memang sudah tidak dirender. */
  .wdm-head { padding: 5px 9px 0; column-gap: 6px; }
  .wdm-tag { font-size: 9.5px; padding: 3px 8px; letter-spacing: .05em; }
  .wdm-count { font-size: 11px; white-space: normal; line-height: 1.25; }
  /* Di HP: uang boleh TURUN BARIS SENDIRI hanya kalau memang tidak muat (flex-wrap di .wdm-head).
     Versi sebelumnya memaksa `flex: 1 0 100%` sehingga selalu 2 baris walau muat 1 baris — setelah
     teks "to pay" dihapus, 390 px ke atas sudah muat satu baris sehingga bar lebih ringkas. */
  .wdm-money { font-size: 11px; line-height: 1.3; }
  .wdm-money::before { content: '· '; }
  .wdm-track { font-size: 12.5px; gap: 18px; padding: 3px 10px 7px; }
  .wdm-reg { font-size: 12px; }
  .wdm-item { gap: 6px; }
  .wdm-flag { font-size: 9px; padding: 1px 6px; }
}
@media (max-width: 400px) {
  /* 360 px: label kelompok & "≈ Rp" adalah hal pertama yang boleh dipangkas — nama & nominal tidak. */
  .wdm-track { font-size: 12px; gap: 14px; }
  .wdm-flag { font-size: 8.5px; }
  .wdm-idr { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .wdm-track { animation: none !important; white-space: normal; width: auto; display: flex; flex-wrap: wrap; }
}

/* ---- Kurs nyata di info berjalan Test-WD (2 Nov 2026): 1 ABPX = 3 USDC, 1 USDC = Rp 16.500 ---- */
.wdm-idr { color: #ffe6a8; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------- KUNCI TUJUAN DANA setelah test-WD (6 Nov 2026)
   Hanya DUA kolom yang terkunci untuk anggota: alamat wallet Solana dan NOMOR rekening. Nama bank, nama
   pemilik rekening, e-mail, No HP, nama, negara, dan alamat tetap bisa diedit. Kolom terkunci memang
   `disabled` di markup (server juga menolak), jadi tampilannya dibuat jelas "terbaca tapi tidak bisa
   diubah" tanpa terlihat seperti formulir rusak. */
#profile-form.is-profile-locked .form-grid input:disabled,
#profile-form.is-profile-locked .form-grid select:disabled {
  opacity: .68;
  cursor: not-allowed;
  background: rgba(255, 255, 255, .02);
}
#profile-form.is-profile-locked .card-head .label { color: #f5c451; }
#profile-lock-notice { margin: 0 0 14px; }
#view-wallet #profile-lock-notice { margin: 0; }

/* ---------------------------------------------- TANTANGAN LOGIN BERLAPIS (6 Nov 2026)
   Angka numerik dari sistem atau teka-teki geser gambar, diminta SEBELUM password dinilai.
   Dibuat ringkas dan besar-sentuh supaya tetap mudah di HP (Android). */
.login-challenge, .login-mfa {
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
}
.login-mfa { border-color: rgba(245, 196, 81, .35); background: rgba(245, 196, 81, .07); }
.lc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.lc-head strong { font-size: .95rem; }
.lc-tabs { display: flex; gap: 6px; }
.lc-tabs button {
  border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: inherit;
  border-radius: 999px; padding: 5px 11px; font-size: .78rem; cursor: pointer; min-height: 32px;
}
.lc-tabs button.is-active { background: rgba(245, 196, 81, .18); border-color: rgba(245, 196, 81, .5); color: #f5c451; }
.lc-note { margin: 0 0 10px; font-size: .82rem; opacity: .85; }
.lc-code-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lc-code { border-radius: 10px; display: block; max-width: 100%; height: auto; }
.lc-slider-wrap {
  position: relative; width: 280px; max-width: 100%; height: 132px;
  border-radius: 10px; overflow: hidden; margin-bottom: 10px;
}
.lc-slide, .lc-piece { display: block; border-radius: 10px; }
.lc-piece { position: absolute; top: 0; left: 0; border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
.lc-range { width: 280px; max-width: 100%; accent-color: #f5c451; height: 34px; }
.lc-foot { margin: 8px 0 0; font-size: .78rem; opacity: .8; }
#lc-answer { text-align: center; font-size: 1.15rem; }
@media (max-width: 430px) {
  .lc-slider-wrap, .lc-range { width: 100%; }
  .login-challenge, .login-mfa { padding: 12px; }
}

/* ============================================================ MENU "MEMBER STATUS" (11 Nov 2026)
   chip penyaring status, baris terpilih, dan lencana "Representative" emas. Ditambahkan di akhir
   berkas supaya tidak menimpa aturan .chip/.badge yang sudah ada. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* Chip penyaring pada menu Member status harus NYAMAN DISENTUH di HP (target ≥36 px), bukan chip
   kecil 24 px seperti lencana informasi. */
#ms-search-card .chip { min-height: 36px; padding: 8px 14px; font-size: 12.5px; cursor: pointer; }
.chip-active { border-color: rgba(245, 185, 66, .55); color: var(--gold); background: rgba(245, 185, 66, .14); }
.badge-gold { color: var(--gold); background: rgba(245, 185, 66, .14); border-color: rgba(245, 185, 66, .38); }
#ms-table tr.row-active { background: rgba(245, 185, 66, .07); }
#ms-table tr.row-active td { border-top-color: rgba(245, 185, 66, .28); }
#ms-form .form-note { display: block; line-height: 1.5; }

/* ============================================================ PUSAT PERINGATAN KEAMANAN (25 Nov 2026)
   Tombol 🔔 di topbar + panel daftar peringatan. Warna mengikuti tema gelap-emas app ini.
   Angka di badge: peringatan BELUM TERBACA milik akun yang sedang masuk (staf bisa beralih "All accounts"). */
.tb-bell {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 11px; border: 1px solid rgba(245, 196, 81, .28);
  background: rgba(245, 196, 81, .06); color: inherit; cursor: pointer; padding: 0;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.tb-bell:hover, .tb-bell:focus-visible { background: rgba(245, 196, 81, .14); border-color: rgba(245, 196, 81, .5); }
.tb-bell:active { transform: scale(.96); }
.tb-bell-icon { font-size: 17px; line-height: 1; }
.tb-bell.has-alerts { border-color: rgba(245, 196, 81, .55); }
.tb-bell.has-high { border-color: rgba(255, 107, 107, .7); background: rgba(255, 107, 107, .12); }
.tb-bell-badge {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: #ff6b6b; color: #1b1206; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
@media (max-width: 430px) { .tb-bell { width: 32px; height: 32px; border-radius: 10px; } .tb-bell-icon { font-size: 15px; } }

.alerts-scrim { position: fixed; inset: 0; background: rgba(4, 6, 11, .55); z-index: 9400; }
.alerts-panel {
  position: fixed; z-index: 9401; top: 64px; right: 16px; width: min(430px, calc(100vw - 24px));
  max-height: min(78vh, 720px); display: flex; flex-direction: column;
  background: #11151d; border: 1px solid rgba(245, 196, 81, .3); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55); overflow: hidden;
}
.alerts-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; }
.alerts-head strong { font-size: 16px; }
.alerts-scope { margin: 0 16px 8px; }
.alerts-list { overflow-y: auto; padding: 4px 10px 10px; display: flex; flex-direction: column; gap: 8px; }
.alerts-row { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); }
.alerts-row.is-unread { border-color: rgba(245, 196, 81, .35); background: rgba(245, 196, 81, .06); }
.alerts-row-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.alerts-row-head strong { font-size: 13.5px; }
.alerts-when { margin-left: auto; font-size: 11.5px; opacity: .7; }
.alerts-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.alerts-detail { font-size: 12.5px; opacity: .82; margin: 6px 0 0 16px; word-break: break-word; }
.alerts-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 7px 0 0 16px; font-size: 11.5px; opacity: .72; }
.alerts-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid rgba(255, 255, 255, .07); }
.alerts-note { margin: 0; padding: 0 16px 14px; font-size: 11px; opacity: .55; line-height: 1.5; }
.btn-xs { padding: 3px 8px; font-size: 11.5px; border-radius: 8px; }
#login-enroll { margin-top: 12px; }
#login-enroll .form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
