/* =========================================================
   Reseller Panel — gaya aplikasi keuangan
   Referensi: kartu saldo hitam (garis sirkuit + cincin), tombol bulat
   mengilap, aksen lime, latar mint, grafik batang + sparkline,
   navigasi pill hitam dengan tombol lime di tengah.
   Semua warna ada di :root. Mode gelap: [data-theme="dark"] / sistem.
   ========================================================= */

:root {
  --bg: #edf1ed;
  --glow-1: rgba(198, 244, 50, .32);
  --glow-2: rgba(124, 77, 255, .10);
  --surface: #ffffff;
  --pop: #ffffff;
  --surface-2: #f2f5f2;
  --surface-3: #e5eae5;
  --bar: #dfe5df;
  --ink: #0f1110;
  --ink-2: #4b514d;
  --ink-3: #868d89;
  --line: rgba(15, 17, 16, .07);
  --shadow-sm: 0 1px 2px rgba(16, 24, 16, .04), 0 6px 18px rgba(16, 24, 16, .05);
  --shadow: 0 16px 40px rgba(16, 24, 16, .10);

  --lime: #c6f432;
  --lime-2: #b2e01c;
  --lime-soft: #eefac7;
  --green: #16a04a;  --green-soft: #ddf4e5;
  --red: #e5484d;    --red-soft: #fde4e4;
  --purple: #7c4dff; --purple-soft: #ebe5ff;
  --orange: #f08a24; --orange-soft: #fdebd8;
  --blue: #2f80ff;   --blue-soft: #e1ecff;
  --yellow: #f7c234; --yellow-soft: #fff3cc;

  --dark: #111312;
  --dark-2: #1b1e1c;
  --nav: #0f1110;

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;

  --ease: cubic-bezier(.2, .75, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #070807;
  --glow-1: rgba(198, 244, 50, .10);
  --glow-2: rgba(124, 77, 255, .10);
  --surface: #141615;
  --pop: #1f2321;
  --surface-2: #1b1e1c;
  --surface-3: #262a27;
  --bar: rgba(255, 255, 255, .16);
  --ink: #f1f4f2;
  --ink-2: #b2b9b4;
  --ink-3: #7b827e;
  --line: rgba(255, 255, 255, .07);
  --shadow-sm: none;
  --shadow: 0 16px 40px rgba(0, 0, 0, .5);
  --lime-soft: rgba(198, 244, 50, .12);
  --green-soft: rgba(22, 160, 74, .18);
  --red-soft: rgba(229, 72, 77, .18);
  --purple-soft: rgba(124, 77, 255, .2);
  --orange-soft: rgba(240, 138, 36, .18);
  --blue-soft: rgba(47, 128, 255, .18);
  --yellow-soft: rgba(247, 194, 52, .18);
  --dark: #1a1d1b;
  --dark-2: #242825;
  --nav: #1a1d1b;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070807; --glow-1: rgba(198, 244, 50, .10); --glow-2: rgba(124, 77, 255, .10);
    --surface: #141615; --surface-2: #1b1e1c; --surface-3: #262a27; --bar: rgba(255, 255, 255, .16); --pop: #1f2321;
    --ink: #f1f4f2; --ink-2: #b2b9b4; --ink-3: #7b827e; --line: rgba(255, 255, 255, .07);
    --shadow-sm: none; --shadow: 0 16px 40px rgba(0, 0, 0, .5);
    --lime-soft: rgba(198, 244, 50, .12); --green-soft: rgba(22, 160, 74, .18); --red-soft: rgba(229, 72, 77, .18);
    --purple-soft: rgba(124, 77, 255, .2); --orange-soft: rgba(240, 138, 36, .18); --blue-soft: rgba(47, 128, 255, .18);
    --yellow-soft: rgba(247, 194, 52, .18); --dark: #1a1d1b; --dark-2: #242825; --nav: #1a1d1b;
    color-scheme: dark;
  }
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(60vmax 40vmax at 100% -10%, var(--glow-1), transparent 60%),
    radial-gradient(50vmax 40vmax at -10% 30%, var(--glow-2), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
button { font-family: inherit; line-height: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; }
.ic-sm { width: 16px; height: 16px; flex: none; }
.muted { color: var(--ink-3); }
.mono { font-variant-numeric: tabular-nums; }
.pos { color: var(--green); }
.neg { color: var(--red); }
.mt { margin-top: 14px; }
.hide, [hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 12px; }

.app { width: 100%; max-width: 1120px; margin: 0 auto; padding: 14px 16px 128px; }
@media (min-width: 768px) { .app { padding: 22px 28px 136px; } }

.stack > * + * { margin-top: 14px; }
.grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid > *, .cols > *, .card { min-width: 0; }
.cols > * + * { margin-top: 14px; }
@media (min-width: 920px) {
  .cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .cols > * + * { margin-top: 0; }
}

/* ---------- Topbar ---------- */
.topbar { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; min-height: 52px; margin-bottom: 18px; }
.topbar.home { grid-template-columns: 1fr auto; }
.topbar .title { text-align: center; font-size: 17px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .tools { display: flex; gap: 8px; justify-content: flex-end; }
.topbar .tools form { margin: 0; }
.greet { display: flex; align-items: center; gap: 12px; min-width: 0; }
.greet .who { min-width: 0; }
.greet small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 500; }
.greet h1 { font-size: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.greet h1 b { font-weight: 800; }
.icon-btn {
  position: relative; width: 44px; height: 44px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .25s var(--spring), background-color .2s ease;
}
@media (hover: hover) { .icon-btn:hover { transform: translateY(-2px); } }
.icon-btn:active { transform: scale(.92); }
.avatar {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--dark); color: var(--lime); font-weight: 700; font-size: 14px;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 4.5px var(--lime-2);
}
/* Tombol logo NipStore di kiri atas */
.brand-dot { padding: 0; overflow: hidden; border: 0; background: #082543; box-shadow: 0 4px 12px rgba(8, 37, 67, .3); }
.brand-dot img { display: block; width: 100%; height: 100%; }
[data-theme-icon="sun"] { display: none; }
:root[data-theme="dark"] [data-theme-icon="sun"] { display: block; }
:root[data-theme="dark"] [data-theme-icon="moon"] { display: none; }

/* ---------- Kartu umum ---------- */
.card {
  position: relative; background: var(--surface); border-radius: var(--r-lg); padding: 18px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; min-height: 28px; }
.card-head h2 { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 16px; font-weight: 700; }
details.card > summary.card-head { display: flex; list-style: none; cursor: pointer; margin-bottom: 0; }
details.card > summary.card-head::-webkit-details-marker { display: none; }
details.card[open] > summary.card-head { margin-bottom: 14px; }
.card-head .link { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
@media (hover: hover) { .card-head .link:hover { color: var(--ink); } }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 2px 12px; }
.section-title h2 { font-size: 17px; font-weight: 700; }

/* ---------- Kartu saldo hitam (hero) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl); padding: 22px 18px 18px;
  background: radial-gradient(120% 90% at 100% 0%, #2c312e 0%, #141615 55%, #0d0f0e 100%);
  color: #fff; text-align: center;
  box-shadow: 0 22px 48px rgba(10, 16, 10, .28);
}
.hero-deco { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; color: rgba(255, 255, 255, .07); pointer-events: none; }
.hero::after {
  /* kilau lewat sesekali */
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .07), transparent);
  transform: skewX(-18deg); animation: sheen 7s ease-in-out 1.2s infinite;
}
@keyframes sheen { 0% { left: -40%; } 30%, 100% { left: 130%; } }
.code-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px; font-weight: 600; letter-spacing: .02em; max-width: 100%;
}
.code-chip .card-ic { width: 22px; height: 15px; border-radius: 4px; background: linear-gradient(135deg, var(--lime), #8fd11a); position: relative; flex: none; }
.code-chip .card-ic::after { content: ""; position: absolute; left: 4px; bottom: 3px; width: 7px; height: 2px; border-radius: 2px; background: rgba(0, 0, 0, .45); }
.code-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero .label { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .62); }
.hero .amount { font-size: clamp(30px, 9vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-top: 2px; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 12px; border-radius: 999px;
  background: rgba(198, 244, 50, .14); color: var(--lime); font-size: 12px; font-weight: 600;
}
.hero .pill.down { background: rgba(229, 72, 77, .16); color: #ff9c9f; }
.hero .pill.flat { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); }
.hero .meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font-size: 12px; color: rgba(255, 255, 255, .62); }
.hero .meta b { color: #fff; font-weight: 600; }

/* Panel tombol di dalam kartu hero */
.hero-panel {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  margin-top: 18px; padding: 14px 6px 12px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06);
}
.gbtn {
  display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0;
  background: none; border: 0; color: rgba(255, 255, 255, .78); font-size: 12px; font-weight: 500; line-height: 1.35; cursor: pointer; padding: 0;
}
.gbtn .c {
  position: relative; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #ffffff 0%, #e4e7e5 55%, #b9bebb 100%);
  color: #111; box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .18), 0 6px 14px rgba(0, 0, 0, .35);
  transition: transform .3s var(--spring);
}
.gbtn.primary .c { background: radial-gradient(circle at 32% 26%, #f2ffd0 0%, var(--lime) 50%, #93c512 100%); }
@media (hover: hover) { .gbtn:hover .c { transform: translateY(-3px) scale(1.04); } }
.gbtn:active .c { transform: scale(.9); }
.gbtn span.t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gbtn-form { margin: 0; display: flex; justify-content: center; min-width: 0; }
.gbtn-form .gbtn { width: 100%; }
.hero .amount.name { font-size: clamp(22px, 6.5vw, 30px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo > b, .promo > .chip, .promo > .btn { flex: none; }
.promo > b { font-size: 15px; font-weight: 800; }
.gbtn .badge-n { position: absolute; top: -4px; right: -6px; }

/* ---------- Kartu statistik kecil + sparkline ---------- */
.stat { display: flex; flex-direction: column; overflow: hidden; }
.stat .k { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 22px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.stat .k > span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .v { font-size: clamp(19px, 5.2vw, 24px); font-weight: 800; letter-spacing: -.02em; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .d { font-size: 12px; color: var(--ink-3); margin-top: 2px; min-height: 18px; }
.stat .spark { margin: auto -18px -18px; padding-top: 8px; height: 54px; width: calc(100% + 36px); }
.spark .line { fill: none; stroke: var(--c, var(--green)); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.spark .area { fill: var(--c, var(--green)); opacity: .12; }
.tone-green { --c: var(--green); }
.tone-purple { --c: var(--purple); }
.tone-orange { --c: var(--orange); }
.tone-blue { --c: var(--blue); }
.tone-yellow { --c: var(--yellow); }
.tone-lime { --c: var(--lime-2); }
.delta { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.delta.up { background: var(--green-soft); color: var(--green); }
.delta.down { background: var(--red-soft); color: var(--red); }
.delta.flat { background: var(--surface-2); color: var(--ink-3); }

/* ---------- Grafik batang ---------- */
.seg-tabs { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.seg-tabs button {
  border: 0; background: transparent; color: var(--ink-3); font-size: 12px; font-weight: 700;
  padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.seg-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .seg-tabs button.on { background: var(--surface-3); }
.chart-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 12px; }
.chart-total b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.chart-total span { font-size: 12px; color: var(--ink-3); }
.chart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.chart .y { display: flex; flex-direction: column; justify-content: space-between; height: 170px; padding-bottom: 0; font-size: 10px; color: var(--ink-3); text-align: right; min-width: 30px; }
.chart .plot { position: relative; height: 170px; }
.chart .plot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 50%;
  border-bottom: 1px solid var(--line);
}
.bars { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; height: 100%; }
.bar-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; cursor: pointer; }
.bar {
  width: min(34px, 100%); height: 4%; min-height: 6px; border-radius: 999px;
  background: var(--bar);
  transition: height .9s var(--ease), background-color .25s ease, transform .25s var(--spring);
}
.bars.hatched .bar { background: repeating-linear-gradient(135deg, #2b2e2c 0 3px, #3a3e3b 3px 6px); }
.bar-col.now .bar { background: var(--lime); box-shadow: 0 8px 18px rgba(178, 224, 28, .35); }
.bars.hatched .bar-col.now .bar { background: repeating-linear-gradient(135deg, var(--lime-2) 0 3px, var(--lime) 3px 6px); }
.bar-col:focus-visible .bar { background: var(--lime-2); transform: scaleX(1.06); }
@media (hover: hover) { .bar-col:hover .bar { background: var(--lime-2); transform: scaleX(1.06); } }
.tip {
  position: absolute; bottom: calc(var(--h, 0%) + 8px); left: 50%; transform: translate(-50%, 6px);
  padding: 5px 9px; border-radius: 10px; background: var(--dark); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .25s var(--ease); z-index: 2;
}
.bar-col:focus .tip, .bar-col.show .tip { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) { .bar-col:hover .tip { opacity: 1; transform: translate(-50%, 0); } }
.bar-col:first-child .tip { left: 0; transform: translate(0, 6px); }
.bar-col:first-child:focus .tip, .bar-col:first-child.show .tip { transform: translate(0, 0); }
@media (hover: hover) { .bar-col:first-child:hover .tip { transform: translate(0, 0); } }
.bar-col:last-child .tip { left: auto; right: 0; transform: translate(0, 6px); }
.bar-col:last-child:focus .tip, .bar-col:last-child.show .tip { transform: translate(0, 0); }
@media (hover: hover) { .bar-col:last-child:hover .tip { transform: translate(0, 0); } }
.x-labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 0; font-size: 11px; color: var(--ink-3); }
.x-labels span { flex: 1 1 0; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; }
/* Banyak batang (mis. 12 bulan): batang lebih rapat, label selang-seling di layar sempit. */
.bars.dense { gap: 4px; }
.x-labels.dense { gap: 4px; font-size: 10px; }
@media (max-width: 480px) {
  .x-labels.dense span { overflow: visible; }
  .x-labels.dense span:nth-child(even) { visibility: hidden; }
}
@media (max-width: 360px) {
  .stat .k { gap: 4px; }
  .delta { padding: 2px 6px; font-size: 10px; }
}

/* ---------- Progress bar ---------- */
.prog { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.prog > span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c, var(--green)); transition: width 1.1s var(--ease); }

/* ---------- Kartu ajakan (gaya "Enable Auto-Save") ---------- */
.promo {
  display: flex; align-items: center; gap: 14px; overflow: hidden;
  background: linear-gradient(120deg, var(--lime-soft), var(--surface) 70%);
}
.promo .tile { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.promo .txt { flex: 1; min-width: 0; }
.promo .txt b { display: block; font-size: 14px; font-weight: 700; }
.promo .txt span { display: block; font-size: 12px; color: var(--ink-3); }
.promo.alert { background: linear-gradient(120deg, var(--yellow-soft), var(--surface) 70%); }

/* ---------- Daftar baris ---------- */
.list { display: flex; flex-direction: column; }
.day-head { margin: 14px 2px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.day-head:first-child { margin-top: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; min-height: 64px; }
.list > .row { border-top: 1px solid var(--line); }
.list > .row:first-child, .list > .day-head + .row { border-top: 0; }
a.row { border-radius: 14px; transition: background-color .2s ease, transform .2s ease; }
@media (hover: hover) { a.row:hover { background: var(--surface-2); } }
a.row:active { transform: scale(.99); }
.row .main { flex: 1; min-width: 0; }
.row .title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .amt { flex: none; font-weight: 800; font-size: 14px; text-align: right; white-space: nowrap; }
.row .amt small { display: block; font-weight: 500; font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.row.struck .title, .row.struck .amt { text-decoration: line-through; opacity: .5; }
.row .chev { flex: none; color: var(--ink-3); }
.row .prog { margin-top: 6px; }
.empty { padding: 28px 10px; text-align: center; color: var(--ink-3); font-size: 13px; }
.empty .ill { width: 56px; height: 56px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 18px; background: var(--lime-soft); color: var(--ink); }

/* Avatar & ikon bulat berwarna */
.av {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%;
  font-weight: 800; font-size: 14px; position: relative;
}
.av.c0 { background: var(--lime); color: #142000; }
.av.c1 { background: #1f5c3f; color: #fff; }
.av.c2 { background: var(--purple-soft); color: var(--purple); }
.av.c3 { background: var(--yellow-soft); color: #8a6200; }
.av.c4 { background: var(--blue-soft); color: var(--blue); }
.av.c5 { background: var(--orange-soft); color: var(--orange); }
:root[data-theme="dark"] .av.c3 { color: var(--yellow); }
.av.off { background: var(--surface-3); color: var(--ink-3); }
.av.t-komisi { background: var(--green-soft); color: var(--green); }
.av.t-bonus { background: var(--yellow-soft); color: #9a6c00; }
:root[data-theme="dark"] .av.t-bonus { color: var(--yellow); }
.av.t-potongan { background: var(--red-soft); color: var(--red); }
.av.t-pencairan { background: var(--purple-soft); color: var(--purple); }
.av.t-pembatalan { background: var(--orange-soft); color: var(--orange); }
.av .dot { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--surface); color: #fff; }
.av .dot svg { width: 10px; height: 10px; }
.av .dot.in { background: var(--green); }
.av .dot.out { background: var(--ink); }
.rank { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; font-weight: 800; background: var(--surface-2); }
.rank.r1 { background: var(--lime); color: #142000; }
.rank.r2 { background: var(--purple-soft); color: var(--purple); }
.rank.r3 { background: var(--orange-soft); color: var(--orange); }

/* ---------- Chip & label ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; border: 0; cursor: default; font-family: inherit; }
button.chip { cursor: pointer; }
.chip.aktif, .chip.disetujui { background: var(--green-soft); color: var(--green); }
.chip.pasif, .chip.pending { background: var(--yellow-soft); color: #8a6200; }
:root[data-theme="dark"] .chip.pasif, :root[data-theme="dark"] .chip.pending { color: var(--yellow); }
.chip.nonaktif, .chip.ditolak, .chip.dibatalkan { background: var(--red-soft); color: var(--red); }
.chip.lime { background: var(--lime); color: #142000; }
.badge-n { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; box-shadow: 0 0 0 2px var(--surface); animation: pop .5s var(--spring) both, ping 2.4s ease-out 1s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 2px var(--surface), 0 0 0 2px rgba(229, 72, 77, .5); } 70%, 100% { box-shadow: 0 0 0 2px var(--surface), 0 0 0 10px rgba(229, 72, 77, 0); } }
@keyframes pop { from { transform: scale(0); } }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; padding: 9px 16px; border-radius: 999px; background: var(--surface); color: var(--ink-2);
  font-size: 13px; font-weight: 600; border: 1px solid var(--line); transition: background-color .25s ease, color .25s ease;
}
.tabs a.on { background: var(--dark); color: #fff; border-color: var(--dark); }
:root[data-theme="dark"] .tabs a.on { background: var(--lime); color: #142000; border-color: var(--lime); }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; min-width: 0; }
.field > label { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.hint { font-size: 11px; color: var(--ink-3); }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 13px 16px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: 15px; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { outline: none; border-color: var(--lime-2); background: var(--surface); box-shadow: 0 0 0 4px var(--lime-soft); }
.input.big { font-size: 26px; font-weight: 800; min-height: 64px; letter-spacing: -.02em; }
.search { position: relative; margin-bottom: 12px; }
.search .ic { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 50px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); }
.form-row { display: grid; gap: 0 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Pilihan, saran & kalender kustom (dibuat oleh app.js) ---------- */
.dd { position: relative; }
.dd-native { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.dd-btn { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.dd-btn .dd-val { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-btn.placeholder .dd-val { color: var(--ink-3); }
.dd-btn .dd-ic { flex: none; color: var(--ink-3); transition: color .2s ease; }
.dd-btn .dd-chev { flex: none; color: var(--ink-3); transform: rotate(90deg); transition: transform .3s var(--spring), color .2s ease; }
.dd-btn.open .dd-chev { transform: rotate(-90deg); color: var(--ink); }
.dd-btn.open .dd-ic { color: var(--ink); }
.dd-btn:focus-visible, .dd-btn.open, .dd:focus-within > .dd-btn { outline: none; border-color: var(--lime-2); background: var(--surface); box-shadow: 0 0 0 4px var(--lime-soft); }
.dd-btn.invalid { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }

.pop {
  position: fixed; z-index: 70; padding: 6px; overflow: auto; overscroll-behavior: contain;
  border-radius: 18px; background: var(--pop); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow), 0 2px 6px rgba(16, 24, 16, .06);
  opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: 50% 0;
  transition: opacity .16s ease, transform .26s var(--spring);
}
.pop.up { transform: translateY(6px) scale(.97); transform-origin: 50% 100%; }
.pop.show { opacity: 1; transform: none; }
.pop::-webkit-scrollbar { width: 10px; }
.pop::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 99px; background: var(--surface-3) padding-box; }

.dd-menu { max-height: 320px; }
.dd-opt {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 9px 12px; border-radius: 12px;
  font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; transition: background-color .12s ease;
}
.dd-opt + .dd-opt { margin-top: 2px; }
.dd-opt.active { background: var(--surface-2); }
.dd-opt[aria-selected="true"] { background: var(--lime-soft); }
.dd-opt[aria-selected="true"].active { background: var(--lime); color: #142000; }
.dd-txt { flex: 1; min-width: 0; }
.dd-txt b, .dd-txt small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-txt b { font-weight: 700; }
.dd-txt small { margin-top: 1px; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.dd-opt[aria-selected="true"].active small { color: #3d5200; }
.dd-tick { flex: none; color: var(--green); opacity: 0; transform: scale(.5); transition: opacity .2s ease, transform .3s var(--spring); }
.dd-opt[aria-selected="true"] .dd-tick { opacity: 1; transform: none; }
.dd-opt[aria-selected="true"].active .dd-tick { color: #142000; }
.dd-av {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--purple-soft); color: var(--purple); font-size: 12px; font-weight: 800;
}
.dd-opt mark { padding: 0 1px; border-radius: 4px; background: var(--lime); color: #142000; }
.dd-empty { padding: 16px 12px; font-size: 13px; color: var(--ink-3); text-align: center; }

.cal { padding: 12px; }
.cal-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 6px; margin-bottom: 6px; }
.cal-title { text-align: center; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.cal-nav {
  width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--surface-2); color: var(--ink); cursor: pointer; transition: transform .2s var(--spring), background-color .2s ease;
}
@media (hover: hover) { .cal-nav:hover { background: var(--surface-3); } }
.cal-nav:active { transform: scale(.9); }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-week span { padding: 6px 0; text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-3); }
.cal-week span:last-child { color: var(--red); }
.cal-grid button {
  height: 38px; min-width: 0; padding: 0; border: 0; border-radius: 12px; background: transparent;
  color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background-color .12s ease, transform .2s var(--spring);
}
.cal-grid button:nth-child(7n) { color: var(--red); }
@media (hover: hover) { .cal-grid button:hover { background: var(--surface-2); } }
.cal-grid button:active { transform: scale(.9); }
.cal-grid button.out { opacity: .38; }
.cal-grid button.today { box-shadow: inset 0 0 0 2px var(--lime-2); }
.cal-grid button.sel { background: var(--lime); color: #142000; font-weight: 800; }
.cal-grid button:focus-visible { outline: 3px solid var(--purple); outline-offset: -1px; }
.cal-grid.slide-l { animation: calL .28s var(--ease); }
.cal-grid.slide-r { animation: calR .28s var(--ease); }
@keyframes calL { from { opacity: 0; transform: translateX(14px); } }
@keyframes calR { from { opacity: 0; transform: translateX(-14px); } }
.cal-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

.seg { position: relative; display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--surface-2); }
.seg input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.seg label { text-align: center; padding: 11px 6px; border-radius: 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-3); transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.seg input:checked + label { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .seg input:checked + label { background: var(--surface-3); }
.seg input:focus-visible + label { outline: 3px solid var(--purple); }
.quick-amt { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 12px; }
.quick-amt button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .2s var(--spring), background-color .2s ease; }
@media (hover: hover) { .quick-amt button:hover { background: var(--lime-soft); transform: translateY(-2px); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px;
  border-radius: 999px; border: 0; background: var(--dark); color: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: transform .25s var(--spring), box-shadow .25s ease, opacity .2s ease; text-align: center;
}
@media (hover: hover) { .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); } }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-lime { background: var(--lime); color: #142000; }
@media (hover: hover) { .btn-lime:hover { box-shadow: 0 10px 24px rgba(178, 224, 28, .45); } }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-row .input { flex: 1; min-width: 160px; }

details.more { margin-top: 12px; }
details.more > summary { list-style: none; cursor: pointer; display: inline-block; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { margin-bottom: 12px; }
details.more[open] > :not(summary) { animation: fadeDown .35s var(--ease); }
details.rev { margin: -6px 0 6px 56px; }
details.rev > summary { display: inline-block; list-style: none; cursor: pointer; font-size: 11px; font-weight: 600; color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; }
details.rev > summary::-webkit-details-marker { display: none; }
details.rev[open] > summary { margin-bottom: 8px; }
details.rev[open] form { animation: fadeDown .3s var(--ease); }
details.rev .input { min-height: 40px; padding: 8px 14px; font-size: 13px; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Pesan ---------- */
.flash {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px 12px 16px; border-radius: var(--r-md);
  margin-bottom: 14px; font-size: 14px; font-weight: 500; animation: slideIn .5s var(--spring) both;
}
.flash > div { flex: 1; min-width: 0; }
.flash.success { background: var(--green-soft); color: var(--green); }
.flash.error { background: var(--red-soft); color: var(--red); }
.flash.info { background: var(--purple-soft); color: var(--purple); }
.flash.warn { background: var(--yellow-soft); color: #8a6200; }
:root[data-theme="dark"] .flash.warn { color: var(--yellow); }
.flash .x { border: 0; background: none; color: inherit; opacity: .6; cursor: pointer; padding: 0; width: 22px; height: 22px; display: grid; place-items: center; }
.flash.out { animation: slideOut .35s ease forwards; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
@keyframes slideOut { to { opacity: 0; transform: translateY(-8px); height: 0; padding-top: 0; padding-bottom: 0; margin: 0; } }
.secret { margin-top: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.secret code { padding: 6px 12px; border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 16px; letter-spacing: .05em; }

/* ---------- Info list ---------- */
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; font-size: 13px; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.link-box { display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 14px; border-radius: var(--r-md); background: var(--surface-2); font-size: 13px; }
.link-box .ic-sm { color: var(--ink-3); }
.link-box span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Paginasi ---------- */
.pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- Navigasi bawah ---------- */
.bnav {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; isolation: isolate;
  background: var(--nav); box-shadow: 0 18px 40px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .06);
  transform: translateX(-50%);
  max-width: calc(100vw - 24px);
  view-transition-name: bnav; /* tetap diam saat pindah halaman (View Transitions) */
}
/* Muncul dari bawah hanya saat pertama kali dibuka (kelas .enter dipasang JS). */
.bnav.enter { animation: navIn .6s var(--spring) both .1s; }
@keyframes navIn { from { opacity: 0; transform: translate(-50%, 30px); } }

/* Pil putih yang meluncur di belakang menu aktif. */
.bnav-ind {
  position: absolute; top: 6px; left: 0; z-index: 0; width: 48px; height: 48px; border-radius: 999px;
  background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
  pointer-events: none; will-change: transform, width;
  transition: opacity .25s ease, scale .3s var(--spring);
}
.bnav-ind.hide { opacity: 0; scale: .6; }
html:not(.js) .bnav-ind { display: none; }

.bnav a {
  position: relative; z-index: 1; height: 48px; min-width: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; color: rgba(255, 255, 255, .72); font-size: 13px; font-weight: 700; padding: 0 12px;
  transition: color .3s ease, padding .35s var(--ease), background-color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.bnav a .ic { transition: transform .35s var(--spring); }
.bnav a:focus { outline: none; }
.bnav a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
@media (hover: hover) { .bnav a:hover { color: #fff; } }
@media (hover: hover) { .bnav a:hover .ic { transform: translateY(-2px); } }
.bnav a:active .ic { transform: scale(.86); }
.bnav a .lbl {
  display: inline-block; max-width: 0; margin-left: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  transition: max-width .3s var(--ease), margin-left .3s var(--ease), opacity .2s ease;
}
.bnav a.on { color: #111; padding: 0 16px 0 14px; }
@media (hover: hover) { .bnav a.on:hover .ic { transform: none; } }
.bnav a.on .lbl { max-width: 96px; margin-left: 8px; opacity: 1; transition-delay: 0s, 0s, .08s; }
/* Tanpa JavaScript: latar putih langsung di menu aktif. */
html:not(.js) .bnav a.on:not(.fab) { background: #fff; }

.bnav a.fab {
  width: 56px; height: 56px; margin: -14px 2px 0; padding: 0; background: var(--lime); color: #142000; z-index: 2;
  box-shadow: 0 0 0 5px var(--nav), 0 10px 24px rgba(178, 224, 28, .45);
  transition: transform .35s var(--spring), background-color .2s ease, box-shadow .3s ease;
}
@media (hover: hover) { .bnav a.fab:hover { background: var(--lime-2); transform: translateY(-2px); } }
@media (hover: hover) { .bnav a.fab:hover .ic { transform: none; } }
.bnav a.fab .ic { width: 24px; height: 24px; }
.bnav a.fab .lbl { display: none; }
.bnav a.fab.on { padding: 0; animation: fabRing 2.2s ease-out infinite; }
.bnav a.fab.press { animation: fabPress .45s var(--spring); }
.bnav a.fab.press .ic { transform: rotate(90deg) scale(1.08); }
@keyframes fabPress { 0% { transform: scale(1); } 35% { transform: scale(.86); } 100% { transform: scale(1); } }
@keyframes fabRing {
  0% { box-shadow: 0 0 0 5px var(--nav), 0 0 0 5px rgba(198, 244, 50, .55), 0 10px 24px rgba(178, 224, 28, .45); }
  70%, 100% { box-shadow: 0 0 0 5px var(--nav), 0 0 0 16px rgba(198, 244, 50, 0), 0 10px 24px rgba(178, 224, 28, .45); }
}
.bnav .badge-n { position: absolute; top: 0; right: 0; }
@keyframes fadeIn { from { opacity: 0; } }
@media (max-width: 360px) {
  .bnav a { min-width: 44px; height: 44px; padding: 0 10px; }
  .bnav-ind { top: 6px; height: 44px; }
  .bnav a.on { padding: 0 12px; }
  .bnav a.on .lbl { max-width: 0; margin-left: 0; opacity: 0; }
  .bnav a.fab { width: 52px; height: 52px; }
}

/* ---------- Komunitas reseller ---------- */
.center { text-align: center; }
.avstack { display: flex; justify-content: center; margin-top: 16px; }
.avstack .av { width: 38px; height: 38px; font-size: 12px; margin-left: -10px; box-shadow: 0 0 0 3px #161817; animation: stackIn .5s var(--spring) both; }
.avstack .av:first-child { margin-left: 0; }
.avstack .av:nth-child(2) { animation-delay: .06s; } .avstack .av:nth-child(3) { animation-delay: .12s; }
.avstack .av:nth-child(4) { animation-delay: .18s; } .avstack .av:nth-child(5) { animation-delay: .24s; }
.avstack .av:nth-child(6) { animation-delay: .3s; } .avstack .av:nth-child(7) { animation-delay: .36s; }
.av.more { background: #2b2f2c; color: #fff; font-size: 11px; width: auto; min-width: 38px; padding: 0 8px; border-radius: 999px; }
@keyframes stackIn { from { opacity: 0; transform: translateX(-10px) scale(.6); } }
.promo .avstack { margin: 0; flex: none; justify-content: flex-start; }
.promo .avstack .av { width: 34px; height: 34px; box-shadow: 0 0 0 3px var(--surface); }
.promo .avstack .av.more { background: var(--dark); }
.promo.community { background: linear-gradient(120deg, var(--purple-soft), var(--surface) 72%); }
.chip.medal { background: var(--yellow-soft); color: #8a6200; }
.chip.medal.m2 { background: var(--surface-2); color: var(--ink-2); }
.chip.medal.m3 { background: var(--orange-soft); color: var(--orange); }
:root[data-theme="dark"] .chip.medal.m1 { color: var(--yellow); }
.row .title .chip { vertical-align: 1px; margin-left: 2px; }
.row .title.wrap { white-space: normal; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.row .title.wrap .vbadge { margin-left: 0; }

/* ---------- Pendaftaran & login pertama ---------- */
.auth-wide .auth-card { width: min(560px, 100%); }
.hero .tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--lime); color: #142000; font-size: 12px; font-weight: 800; }
.hero h1 { font-size: 24px; font-weight: 800; margin-top: 14px; }
.hero .tag + h1 + p, .hero h1 + p { margin-top: 6px; color: rgba(255, 255, 255, .65); font-size: 13px; }
.auth-card.mx { margin: 8px auto 0; }
.auth-card.mx .hero { text-align: left; padding: 26px 22px 46px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.invite-note { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 10px 14px; border-radius: var(--r-md); background: var(--purple-soft); color: var(--purple); font-size: 12px; font-weight: 600; }
.input[readonly] { background: var(--surface-3); color: var(--ink-2); cursor: not-allowed; }
.step-head { display: flex; align-items: center; gap: 12px; margin: 22px 0 12px; }
.step-head:first-of-type { margin-top: 6px; }
.step-head .num { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--dark); color: var(--lime); font-weight: 800; font-size: 14px; }
.step-head b { display: block; font-size: 15px; }
.step-head span:not(.num) { display: block; font-size: 12px; color: var(--ink-3); }
.terms { margin-top: 8px; padding: 14px 16px; border-radius: var(--r-md); background: var(--lime-soft); font-size: 13px; }
.terms ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); }
.check { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--lime-2); }
.link-u { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.done { text-align: center; padding: 30px 22px; }
.done h1 { font-size: 24px; font-weight: 800; margin-top: 4px; }
.done > p { margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.done-ico { width: 76px; height: 76px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: #142000; box-shadow: 0 0 0 10px var(--lime-soft); animation: icoPop .6s var(--spring) .1s both; }
.done-ico .ic { width: 36px; height: 36px; }
.done-steps { list-style: none; margin: 20px 0; padding: 0; text-align: left; display: grid; gap: 10px; }
.done-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); font-size: 14px; font-weight: 500; }
.done-steps span { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--dark); color: var(--lime); font-weight: 800; font-size: 13px; }
.secret-card { border: 2px dashed var(--lime-2); margin-bottom: 14px; }
code.pw { padding: 4px 10px; border-radius: 8px; background: var(--lime-soft); font-size: 15px; letter-spacing: .05em; }
code.link-code { display: block; width: 100%; padding: 10px 12px; border-radius: 12px; background: var(--lime-soft); color: var(--ink); font-size: 13px; letter-spacing: 0; word-break: break-all; }

/* ---------- Pendaftar & undangan ---------- */
.reg-page { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 920px) {
  .reg-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: auto 1fr; grid-template-areas: "make regs" "invs regs"; gap: 18px; align-items: start; }
  .reg-page .a-make { grid-area: make; }
  .reg-page .a-regs { grid-area: regs; }
  .reg-page .a-invs { grid-area: invs; }
}
.chip.terpakai { background: var(--purple-soft); color: var(--purple); }
.chip.kedaluwarsa { background: var(--surface-3); color: var(--ink-3); }
a.chip { cursor: pointer; text-decoration: none; }
.inv-row form { flex: none; }
.inv-row .sub { white-space: normal; }
details.audit { margin-top: 14px; }
details.audit > summary { display: flex; margin-bottom: 0; }
details.audit[open] > summary { margin-bottom: 10px; }
details.audit > summary .chev { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .3s var(--spring); }
details.audit[open] > summary .chev { transform: rotate(-90deg); }
.audit-row { align-items: flex-start; }
.audit-row .av { margin-top: 2px; }
.audit-row .sub.detail { white-space: normal; color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------- Centang 3 level (member aktif): hijau → biru → hitam ---------- */
.vbadge {
  --vc: #1d9bf0; --vglow: rgba(29, 155, 240, .35);
  display: inline-block; width: 16px; height: 16px; margin-left: 4px; vertical-align: -2px; flex: none;
  color: var(--vc); filter: drop-shadow(0 1px 2px var(--vglow));
  animation: vPop .5s var(--spring) .2s both;
}
.vbadge.v-hijau { --vc: #16a34a; --vglow: rgba(22, 163, 74, .35); }
.vbadge.v-biru { --vc: #1d9bf0; --vglow: rgba(29, 155, 240, .35); }
.vbadge.v-hitam { --vc: #111318; --vglow: rgba(0, 0, 0, .3); }
.greet h1 .vbadge { width: 18px; height: 18px; vertical-align: -1px; }
.hero .vbadge { width: 20px; height: 20px; vertical-align: -3px; filter: drop-shadow(0 2px 6px var(--vglow)); }
/* Centang hitam di latar gelap: garis tepi tipis terang supaya tetap terlihat. */
:root[data-theme="dark"] .vbadge.v-hitam, .hero .vbadge.v-hitam {
  filter: drop-shadow(0 0 .7px rgba(255, 255, 255, .9)) drop-shadow(0 2px 5px rgba(0, 0, 0, .45));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .vbadge.v-hitam { filter: drop-shadow(0 0 .7px rgba(255, 255, 255, .9)) drop-shadow(0 2px 5px rgba(0, 0, 0, .45)); }
}
@keyframes vPop { from { transform: scale(0) rotate(-45deg); opacity: 0; } }

/* ---------- Saklar on/off ---------- */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); cursor: pointer; margin-bottom: 12px; }
.switch .txt b { display: block; font-size: 14px; }
.switch .txt span { display: block; font-size: 12px; color: var(--ink-3); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; width: 50px; height: 30px; flex: none; border-radius: 999px; background: var(--surface-3); transition: background-color .25s ease; }
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .35s var(--spring);
}
.switch input:checked + .track { background: var(--lime-2); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid var(--purple); outline-offset: 2px; }

/* ---------- Jendela konfirmasi (bottom sheet di HP, kotak di desktop) ---------- */
html.modal-open { overflow: hidden; }
dialog.sheet {
  width: min(440px, 100%); max-width: 100%; margin: auto auto 0; padding: 14px 22px calc(22px + env(safe-area-inset-bottom));
  border: 0; border-radius: 30px 30px 0 0; background: var(--surface); color: var(--ink); text-align: center;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .28);
}
dialog.sheet[open] { animation: sheetUp .45s cubic-bezier(.22, 1, .36, 1) both; }
dialog.sheet::backdrop { background: rgba(8, 10, 9, .55); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
dialog.sheet[open]::backdrop { animation: fadeIn .25s ease both; }
dialog.sheet.closing { animation: sheetDown .22s ease forwards; }
dialog.sheet.closing::backdrop { animation: fadeOut .22s ease forwards; }
@keyframes sheetUp { from { transform: translateY(105%); } }
@keyframes sheetDown { to { transform: translateY(105%); } }
@keyframes fadeOut { to { opacity: 0; } }
.sheet-grab { width: 42px; height: 5px; margin: 0 auto 18px; border-radius: 999px; background: var(--surface-3); }
.sheet-ico {
  width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%;
  background: var(--red-soft); color: var(--red); animation: icoPop .5s var(--spring) .12s both;
}
.sheet-ico .ic { width: 28px; height: 28px; }
@keyframes icoPop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
dialog.sheet h2 { font-size: 20px; font-weight: 800; }
dialog.sheet p { margin-top: 8px; color: var(--ink-2); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.sheet-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.sheet-actions .btn { width: 100%; }
[data-cd-ok] { background: var(--red); color: #fff; }
dialog.tone-lime .sheet-ico { background: var(--lime-soft); color: #4d6a00; }
:root[data-theme="dark"] dialog.tone-lime .sheet-ico { color: var(--lime); }
dialog.tone-lime [data-cd-ok] { background: var(--lime); color: #142000; }
dialog.tone-purple .sheet-ico { background: var(--purple-soft); color: var(--purple); }
dialog.tone-purple [data-cd-ok] { background: var(--purple); color: #fff; }
@media (min-width: 640px) {
  dialog.sheet { margin: auto; padding: 28px 26px 24px; border-radius: 28px; box-shadow: var(--shadow); }
  dialog.sheet[open] { animation: popIn .35s var(--spring) both; }
  dialog.sheet.closing { animation: popOut .18s ease forwards; }
  .sheet-grab { display: none; }
}
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.94); } }
@keyframes popOut { to { opacity: 0; transform: scale(.96); } }

/* ---------- Foto profil ---------- */
.has-photo { padding: 0; overflow: hidden; background: var(--surface-3); }
.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar.has-photo { background: var(--dark); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.profile-hero { padding-top: 26px; }
.profile-hero .hero-ava {
  position: relative; display: block; width: 96px; height: 96px; margin: 0 auto 14px; padding: 0;
  border: 0; border-radius: 50%; background: none; cursor: pointer;
  transition: transform .35s var(--spring);
}
@media (hover: hover) { .profile-hero .hero-ava:hover { transform: scale(1.04); } }
.profile-hero .hero-ava:active { transform: scale(.95); }
.ava-img {
  width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--lime), #8fd11a); color: #142000; font-size: 30px; font-weight: 800;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .12), 0 12px 28px rgba(0, 0, 0, .4);
}
.ava-cam {
  position: absolute; right: -2px; bottom: 2px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  background: #fff; color: #111; box-shadow: 0 0 0 3px var(--dark), 0 4px 10px rgba(0, 0, 0, .35);
}
.profile-hero .ava-img { box-shadow: 0 0 0 3px #141615, 0 0 0 5px var(--lime), 0 14px 30px rgba(0, 0, 0, .45); }
.profile-hero .amount.name { margin-top: 0; line-height: 1.2; }
.profile-hero .label { margin-top: 4px; font-size: 13px; }
.profile-hero .label .chip { vertical-align: 1px; }
.hchips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.hchip {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-height: 32px; padding: 6px 12px 6px 10px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .07);
  color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
}
.hchip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hchip .ic-sm { width: 15px; height: 15px; flex: none; color: var(--lime); }
.hchip small { flex: none; padding-left: 7px; border-left: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .65); font-size: 11.5px; font-weight: 600; }

/* Edit profil: blok per akun TikTok (username + followers) */
.acct { margin-top: 4px; margin-bottom: 14px; padding: 12px 12px 2px; border-radius: var(--r-md); background: var(--surface-2); }
.acct-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.acct-head .chip { margin-left: auto; background: var(--surface); }
.acct-n { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--dark); color: var(--lime); font-size: 11px; font-weight: 800; }
.acct-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 10px; }
.acct .input { background: var(--surface); }
.acct > .hint { display: block; margin: -4px 0 10px; }

/* Kode kedua: label link & statistik per kode */
.link-label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12.5px; color: var(--ink-2); }
.link-label b { color: var(--ink); }
.code-row .av b { font-size: 16px; }
.code-row .prog { height: 6px; margin-top: 8px; }
.code-row .sub { white-space: normal; }
.code-row .prog > span { --c: var(--green); }
.code-row .prog.p2 > span { --c: var(--purple); }
.hint.warn-text { color: #8a6200; font-weight: 600; }
:root[data-theme="dark"] .hint.warn-text { color: var(--yellow); }
.hchip.add { cursor: pointer; border-style: dashed; color: rgba(255, 255, 255, .8); }
.profile-hero .hero-panel { margin-top: 18px; }
/* Progres menuju level centang berikutnya (sampai hitam) */
.vgoal { max-width: 320px; margin: 14px auto 0; text-align: left; }
.vgoal-txt { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.vgoal-txt .vbadge { margin: 0; opacity: .55; filter: grayscale(.4); animation: none; }
.vgoal-txt b { color: #fff; font-weight: 700; }
.vgoal .prog { height: 6px; margin-top: 8px; background: rgba(255, 255, 255, .12); }
.vgoal .prog > span { --c: linear-gradient(90deg, #1d9bf0, #6cc4ff); background: var(--c); }
.vgoal.vg-hijau .prog > span { --c: linear-gradient(90deg, #16a34a, #5fdc8c); }
.vgoal.vg-hitam .prog > span { --c: linear-gradient(90deg, #5b6170, #c9ced8); }
.vgoal-txt .vbadge.v-hitam { opacity: .8; filter: drop-shadow(0 0 .7px rgba(255, 255, 255, .9)); }
/* Pengaturan: 3 isian syarat centang */
.centang-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }
.centang-row .field { margin-bottom: 0; }
.centang-row label { display: flex; align-items: center; gap: 4px; }
.vbadge.inline { width: 14px; height: 14px; margin-left: 2px; animation: none; }
.photo-dd { display: flex; align-items: center; gap: 12px; }
.photo-dd form { margin: 0; }

/* Baris yang berupa tombol (menu pengaturan) */
.row-btn { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 14px; transition: background-color .2s ease; }
.list > .row-btn { border-top: 1px solid var(--line); border-radius: 0; }
.list > .row-btn:first-child { border-top: 0; }
@media (hover: hover) { .row-btn:hover .chev { transform: translateX(3px); } }
.row-btn .chev { transition: transform .25s var(--spring); }
.row-btn:active { background: var(--surface-2); }

/* ---------- Jendela form (sheet) ---------- */
dialog.form-sheet { text-align: left; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.icon-btn.sm { width: 38px; height: 38px; box-shadow: none; background: var(--surface-2); border: 0; }
dialog.form-sheet .hint { display: block; margin-top: 2px; }
.wallet-seg label { display: flex; align-items: center; justify-content: center; gap: 7px; }
.wdot { width: 10px; height: 10px; flex: none; border-radius: 50%; }
.wdot.w-dana { background: #118eea; }
.wdot.w-gopay { background: #00aed6; }
.wdot.w-ovo { background: #4c2a86; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.wdot.w-tng { background: #0055b8; }

.photo-pick { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 16px; text-align: center; }
.photo-prev { position: relative; width: 148px; height: 148px; border-radius: 50%; }
.photo-prev .ava-img { font-size: 46px; box-shadow: 0 0 0 4px var(--surface-2); }
.photo-prev canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 4px var(--lime-2); animation: pop .45s var(--spring) both; }
.photo-pick .flash { width: 100%; margin: 0; }

/* ---------- Link order pintar: pengaturan WA & jumlah klik ---------- */
.wa-order { margin: 4px 0 14px; padding: 14px 14px 2px; border-radius: var(--r-md); border: 1px dashed var(--line); }
.wa-order-head { margin-bottom: 12px; }
.wa-order-head b { display: block; font-size: 14px; }
.wa-order-head .hint { display: block; margin-top: 2px; }
.wa-slot .switch { background: var(--surface); border: 1px solid var(--line); }
.wa-order .flash { margin: 0 0 12px; }
.click-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.click-strip span { padding: 10px 8px; border-radius: 14px; background: var(--surface-2); text-align: center; font-size: 11.5px; color: var(--ink-3); }
.click-strip b { display: block; font-size: 18px; font-weight: 800; color: var(--ink); }

/* ---------- Animasi sukses (centang + konfeti) ---------- */
.celebrate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; pointer-events: none; }
.celebrate > * { grid-area: 1 / 1; }
.cel-check {
  width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%;
  background: var(--lime); color: #142000;
  box-shadow: 0 0 0 10px var(--lime-soft), 0 20px 44px rgba(0, 0, 0, .28);
  animation: celPop .55s var(--spring) both;
}
.cel-check svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.cel-check path { stroke-dasharray: 22; stroke-dashoffset: 22; animation: celDraw .38s ease .28s forwards; }
.cel-title {
  margin-top: 156px; padding: 8px 16px; border-radius: 999px; background: var(--dark); color: #fff;
  font-size: 14px; font-weight: 800; box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
  animation: celTitle .45s var(--ease) .18s both;
}
.cel-burst { position: relative; width: 0; height: 0; }
.cel-burst i {
  position: absolute; left: -4px; top: -6px; width: 8px; height: 12px; border-radius: 2px; background: var(--c);
  animation: confetti 1.15s cubic-bezier(.15, .7, .3, 1) var(--dl) both;
}
.cel-burst i.round { width: 8px; height: 8px; top: -4px; border-radius: 50%; }
.celebrate.out { animation: celOut .35s ease forwards; }
.celebrate.calm .cel-check, .celebrate.calm .cel-title { animation: none; }
.celebrate.calm .cel-check path { animation: none; stroke-dashoffset: 0; }
@keyframes celPop { from { opacity: 0; transform: scale(.3) rotate(-25deg); } }
@keyframes celDraw { to { stroke-dashoffset: 0; } }
@keyframes celTitle { from { opacity: 0; transform: translateY(10px) scale(.95); } }
@keyframes celOut { to { opacity: 0; transform: scale(.97); } }
@keyframes confetti {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(.3); }
  10% { opacity: 1; }
  60% { opacity: 1; transform: translate(var(--x), var(--y)) rotate(calc(var(--r) * .6)) scale(1); }
  100% { opacity: 0; transform: translate(calc(var(--x) * 1.15), calc(var(--y) + 70px)) rotate(var(--r)) scale(.85); }
}

/* Saldo berubah sejak terakhir dilihat: angka berpendar + label +Rp / −Rp melayang */
.chg-up { animation: chgUp 2s ease both; }
.chg-down { animation: chgDown 2s ease both; }
@keyframes chgUp { 0%, 65% { color: var(--lime); text-shadow: 0 0 26px rgba(198, 244, 50, .55); } }
@keyframes chgDown { 0%, 65% { color: #ffb48a; text-shadow: 0 0 26px rgba(240, 138, 36, .5); } }
.delta-pop {
  position: absolute; z-index: 3; padding: 4px 11px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  font-size: 12.5px; font-weight: 800; letter-spacing: .01em; transform: translate(-50%, -100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25); animation: deltaPop 2.8s var(--ease) both;
}
.delta-pop.up { background: var(--lime); color: #142000; }
.delta-pop.down { background: #ffd2b8; color: #7a3300; }
@keyframes deltaPop {
  0% { opacity: 0; transform: translate(-50%, -60%) scale(.6); }
  12% { opacity: 1; transform: translate(-50%, -112%) scale(1); }
  78% { opacity: 1; transform: translate(-50%, -128%); }
  100% { opacity: 0; transform: translate(-50%, -150%); }
}

/* Baris transaksi yang baru dicatat disorot sebentar */
.row.is-new { margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 14px; animation: rowNew 3s ease both; }
@keyframes rowNew { 0%, 45% { background: var(--lime-soft); box-shadow: inset 3px 0 0 var(--lime-2); } }

/* ---------- Transisi antar halaman (Chrome/Edge 126+, Safari 18.2+) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .18s ease both; }
::view-transition-new(root) { animation: vtIn .3s var(--ease) both; }
/* Nav bawah tidak di-crossfade: pil sudah sampai di posisi akhir sebelum pindah halaman,
   jadi gambar lama langsung diganti yang baru (tanpa bayangan ganda/abu-abu). */
::view-transition-group(bnav) { animation: none; }
::view-transition-old(bnav) { display: none; }
::view-transition-new(bnav) { animation: none; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Halaman masuk ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(420px, 100%); }
.auth .hero { text-align: left; padding: 26px 22px 46px; }
.auth .hero .auth-logo {
  position: absolute; top: 20px; right: 20px; width: 56px; height: 56px; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .12), 0 10px 24px rgba(0, 0, 0, .4);
  animation: pop .6s var(--spring) .15s both;
}
.auth .hero .tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--lime); color: #142000; font-size: 12px; font-weight: 800; }
.auth .hero h1 { font-size: 26px; font-weight: 800; margin-top: 14px; }
.auth .hero p { margin-top: 6px; color: rgba(255, 255, 255, .65); font-size: 13px; }
.auth-form { margin-top: -28px; position: relative; z-index: 1; box-shadow: var(--shadow); }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.auth-switch a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   Animasi muncul (aktif hanya kalau JavaScript jalan)
   ========================================================= */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
/* Pengaman: kalau app.js gagal dimuat (sinyal putus), isi tetap muncul setelah 3 detik — tidak kosong selamanya.
   app.js memasang kelas js-ready begitu jalan, jadi pengaman ini tidak mengganggu animasi normal. */
.js:not(.js-ready) .rv:not(.in) { animation: rvSafety .4s ease 3s forwards; }
@keyframes rvSafety { to { opacity: 1; transform: none; } }
@media print { .js .rv { opacity: 1 !important; transform: none !important; animation: none !important; } }
.js .spark .line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) .2s; }
.js .spark .area { opacity: 0; transition: opacity 1s ease .8s; }
.js .in .spark .line, .js .spark.in .line { stroke-dashoffset: 0; }
.js .in .spark .area, .js .spark.in .area { opacity: .12; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hero::after { display: none; }
  @view-transition { navigation: none; }
}

/* ---------- Misi ---------- */
.quest-head { display: flex; align-items: center; gap: 12px; }
.quest-head .main { flex: 1; min-width: 0; }
.quest-head .title { font-weight: 800; font-size: 15px; }
.quest-head .sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.quest-head .sub b { color: var(--ink-2); font-weight: 700; }
.quest-desc { margin-top: 10px; font-size: 13px; color: var(--ink-2); white-space: pre-line; }
.quest-prog { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.quest-prog .prog { flex: 1; height: 10px; }
.quest-prog .prog > span { --c: linear-gradient(90deg, var(--lime-2), var(--lime)); background: var(--c); }
.quest-prog .mono { flex: none; font-size: 13px; color: var(--ink-3); }
.quest-prog .mono b { color: var(--ink); font-size: 15px; }
.quest .hint { display: block; margin-top: 8px; }
.quest .btn { margin-top: 12px; }
.quest.is-done { background: linear-gradient(135deg, var(--green-soft), transparent 70%), var(--surface); }
.quest.is-done .quest-prog .prog > span { --c: var(--green); }
.quest-hero h1 { margin-top: 10px; }
.quest-promo .tile { background: var(--lime); color: #142000; }
.steps-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); }
.steps-list b { color: var(--ink); }
[data-show-if][hidden] { display: none !important; }


/* ---------- Daftar komisi per aplikasi ---------- */
.app-head { display: flex; align-items: center; gap: 10px; }
.app-head .av { width: 36px; height: 36px; font-size: 13px; flex: none; }
.price-list { display: grid; gap: 8px; }
.price-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); }
.price-row .main { flex: 1; min-width: 0; }
.price-row .title { font-weight: 800; font-size: 15px; }
.price-row .sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.price-row .sub b { color: var(--ink-2); font-weight: 700; }
.price-row .earn { flex: none; text-align: right; }
.price-row .earn small { display: block; font-size: 11px; color: var(--ink-3); }
.price-row .earn b { display: inline-block; margin-top: 2px; padding: 4px 10px; border-radius: 999px; background: var(--lime); color: #142000; font-size: 14px; font-weight: 800; }

/* ---------- Notifikasi WA ---------- */
.wa-preview { margin-top: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); font-family: inherit; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; color: var(--ink-2); }
.row .sub.wa-line { white-space: normal; overflow-wrap: anywhere; }
.pair-code { margin: 12px 0 4px; padding: 16px; border-radius: var(--r-md); background: var(--dark); color: var(--lime); text-align: center; font-size: 34px; font-weight: 800; letter-spacing: .12em; }
.wa-linked { display: flex; align-items: center; gap: 12px; }
.wa-linked b { display: block; font-size: 16px; }
.wa-linked span:not(.av) { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* ---------- Broadcast / pengumuman ---------- */
.bc-list { display: grid; gap: 14px; max-height: min(62vh, 560px); overflow-y: auto; margin: 4px -4px 14px; padding: 0 4px; }
.bc-item { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bc-item:last-child { border-bottom: 0; padding-bottom: 0; }
.bc-item h3 { font-size: 16px; font-weight: 800; margin-top: 8px; }
.bc-img { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: var(--r-md); background: var(--surface-2); }
.bc-body { margin: 6px 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.bc-body a { color: var(--purple); text-decoration: underline; }
.bc-body.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bc-card .bc-img { margin-bottom: 12px; }
.bc-promo .tile { background: var(--purple-soft); color: var(--purple); }
.bc-admin-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.bc-admin-head .main { flex: 1; min-width: 0; }
.bc-admin-head .title { font-weight: 800; }
.bc-admin-head .sub { font-size: 12px; color: var(--ink-3); }
.bc-thumb { width: 44px; height: 44px; flex: none; border-radius: 12px; object-fit: cover; }
.bc-textarea { min-height: 150px; }
.poster-pick { display: grid; gap: 10px; justify-items: start; }
.poster-prev img { display: block; max-width: 100%; max-height: 260px; border-radius: var(--r-md); }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
