/* ==========================================================================
   modern.css — Modern Minimalist Design System (UdunJadiBot)
   Dimuat SETELAH style.css di semua halaman.
   1) Token warna/radius/bayangan  → @layer modern (menang atas !important lama)
   2) Komponen publik (landing, auth, legal)  → body.pub / .authp / .auth-body
   3) Komponen aplikasi (dashboard & admin)   → .app-body
   ========================================================================== */

/* ---------- 1. DESIGN TOKENS ---------- */
@layer modern {
  html[data-theme="light"], html[data-theme="light"] body {
    --bg:#fafafb !important; --bg2:#f4f4f6 !important; --card:#ffffff !important; --card-2:#f7f7f9 !important; --chip:#f1f1f4 !important;
    --border:#e7e7ec !important; --border-soft:#eeeef2 !important; --line:#e7e7ec !important;
    --text:#111114 !important; --mut:#6b6b76 !important; --muted:#6b6b76 !important; --gray:#52525b !important;
    --accent:#111114 !important; --accent-light:#2a2a30 !important; --accent-strong:#000000 !important; --accent-text:#111114 !important;
    --accent-ink:#ffffff !important; --accent-soft:rgba(17,17,20,.06) !important; --accent-glow:transparent !important;
    --hl:#111114 !important; --btn-bg:#111114 !important; --btn-fg:#ffffff !important; --nav:rgba(250,250,251,.82) !important;
    --shadow:0 12px 32px rgba(17,17,20,.07) !important; --shadow-sm:0 1px 2px rgba(17,17,20,.04),0 2px 8px rgba(17,17,20,.04) !important;
    --grad:none !important; --g-grad:none !important; --g-accent:#111114 !important; --g-accent-2:#2a2a30 !important; --g-ink:#111114 !important;
    --g-border-ink:#e7e7ec !important; --g-on-accent:#ffffff !important;
    --zk-accent:#111114 !important; --zk-accent-hover:#000000 !important; --zk-text:#111114 !important; --zk-muted:#6b6b76 !important;
    --zk-border:#e7e7ec !important; --zk-secondary:#f7f7f9 !important; --sx-accent:#111114 !important;
    --merek-jingga:#111114 !important; --merek-garis:#e7e7ec !important; --merek-teks:#111114 !important; --merek-teks-redup:#6b6b76 !important;
  }
  html[data-theme="dark"], html[data-theme="dark"] body {
    --bg:#0b0b0d !important; --bg2:#101013 !important; --card:#131316 !important; --card-2:#17171b !important; --chip:#1a1a1f !important;
    --border:#25252b !important; --border-soft:#1e1e23 !important; --line:#25252b !important;
    --text:#f4f4f6 !important; --mut:#9a9aa6 !important; --muted:#9a9aa6 !important; --gray:#b4b4be !important;
    --accent:#f5f5f7 !important; --accent-light:#d9d9de !important; --accent-strong:#ffffff !important; --accent-text:#f5f5f7 !important;
    --accent-ink:#0b0b0d !important; --accent-soft:rgba(245,245,247,.08) !important; --accent-glow:transparent !important;
    --hl:#f5f5f7 !important; --btn-bg:#f4f4f6 !important; --btn-fg:#0b0b0d !important; --nav:rgba(11,11,13,.8) !important;
    --shadow:0 16px 40px rgba(0,0,0,.45) !important; --shadow-sm:0 1px 2px rgba(0,0,0,.3),0 2px 10px rgba(0,0,0,.25) !important;
    --grad:none !important; --g-grad:none !important; --g-accent:#f5f5f7 !important; --g-accent-2:#d9d9de !important; --g-ink:#f4f4f6 !important;
    --g-border-ink:#25252b !important; --g-on-accent:#0b0b0d !important;
    --zk-accent:#f5f5f7 !important; --zk-accent-hover:#ffffff !important; --zk-text:#f4f4f6 !important; --zk-muted:#9a9aa6 !important;
    --zk-border:#25252b !important; --zk-secondary:#17171b !important; --sx-accent:#f5f5f7 !important;
    --merek-jingga:#f5f5f7 !important; --merek-garis:#25252b !important; --merek-teks:#f4f4f6 !important; --merek-teks-redup:#9a9aa6 !important;
  }
  :root, html, html body {
    --r-sm:10px !important; --r-md:12px !important; --r-lg:16px !important; --r-xl:20px !important;
    --font-head:'Inter','Helvetica Neue',system-ui,sans-serif !important;
    --ease:cubic-bezier(.2,.7,.2,1) !important;
  }
}

/* ---------- 2. TIPOGRAFI DASAR ---------- */
html body {
  font-family:'Inter','Outfit',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-feature-settings:'cv11','ss01';
  line-height:1.6; letter-spacing:-.005em;
  background:var(--bg); color:var(--text);
}
h1,h2,h3,h4 { font-family:'Inter',system-ui,sans-serif; letter-spacing:-.025em; line-height:1.15; }
::selection { background:var(--accent-soft); color:var(--text); }
:focus-visible { outline:none; }

/* ---------- 3. HALAMAN PUBLIK ---------- */
body.pub .wrap { width:100%; max-width:1120px; margin:0 auto; padding:0 24px; }

/* Navbar */
body.pub .nav {
  position:sticky; top:0; z-index:50;
  background:var(--nav); -webkit-backdrop-filter:saturate(180%) blur(14px); backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--border-soft);
}
body.pub .nav .wrap { display:flex; align-items:center; gap:28px; height:68px; }
body.pub .brand {
  display:inline-flex; align-items:center; gap:10px; text-decoration:none;
  font-family:'Inter',sans-serif; font-weight:700; font-size:17px; letter-spacing:-.02em; color:var(--text);
}
body.pub .brand img { border-radius:9px; }
body.pub .nav .links { display:flex; gap:4px; }
body.pub .nav .links a {
  padding:8px 14px; border-radius:999px; font-size:14px; font-weight:500; color:var(--mut); text-decoration:none;
  transition:color .2s var(--ease), background .2s var(--ease);
}
body.pub .nav .links a:hover { color:var(--text); background:var(--chip); }
body.pub .nav .sp { flex:1; }
body.pub .ib {
  display:inline-grid; place-items:center; width:40px; height:40px; border-radius:999px;
  background:transparent; border:1px solid var(--border); color:var(--text); cursor:pointer;
  transition:background .2s var(--ease), transform .2s var(--ease);
}
body.pub .ib:hover { background:var(--chip); }
body.pub .ib svg { width:18px; height:18px; }
body.pub #mbtn { display:none; }
body.pub .mnav { display:none; }
body.pub .mnav.open { display:flex; flex-direction:column; gap:2px; padding:12px 24px 20px; border-top:1px solid var(--border-soft); background:var(--bg); }
body.pub .mnav a { padding:12px 4px; text-decoration:none; font-weight:500; border-bottom:1px solid var(--border-soft); }

/* Tombol lembut */
.btn, .gw-btn, .gbtn, .btn-block, .btn-small {
  border-radius:999px; font-weight:600; letter-spacing:-.01em;
  transition:transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), opacity .2s;
}
body.pub .btn, body.pub .gw-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 22px; font-size:14.5px; text-decoration:none; cursor:pointer;
  background:var(--btn-bg); color:var(--btn-fg); border:1px solid var(--btn-bg);
}
body.pub .btn.lg { padding:14px 28px; font-size:15.5px; }
body.pub .btn.hd { padding:9px 20px; }
body.pub .btn:hover, body.pub .gw-btn:hover { transform:translateY(-1px); box-shadow:0 8px 20px rgba(17,17,20,.14); }
body.pub .btn:active { transform:translateY(0); }
body.pub .btn.ghost { background:transparent; color:var(--text); border:1px solid var(--border); }
body.pub .btn.ghost:hover { background:var(--chip); box-shadow:none; }
body.pub .gw-btn.is-off { background:var(--chip); color:var(--mut); border-color:var(--border); pointer-events:none; }

/* Hero */
body.pub .hero { position:relative; text-align:center; padding:112px 0 96px; overflow:hidden; }
body.pub .hero.hv { min-height:min(86vh,720px); display:grid; place-items:center; }
body.pub .hv-bg { position:absolute; inset:0; z-index:0; }
body.pub .hv-bg video { width:100%; height:100%; object-fit:cover; opacity:.5; }
body.pub .hv-ov { position:absolute; inset:0; background:linear-gradient(to bottom,var(--bg) 0%,transparent 28%,transparent 62%,var(--bg) 100%), linear-gradient(var(--bg),var(--bg)); opacity:1; mix-blend-mode:normal; }
html[data-theme="light"] body.pub .hv-ov { background:linear-gradient(to bottom,var(--bg) 0%,rgba(250,250,251,.55) 35%,rgba(250,250,251,.7) 65%,var(--bg) 100%); }
html[data-theme="dark"]  body.pub .hv-ov { background:linear-gradient(to bottom,var(--bg) 0%,rgba(11,11,13,.62) 35%,rgba(11,11,13,.75) 65%,var(--bg) 100%); }
body.pub .hv-in { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; }
body.pub .hero h1 { margin:22px 0 0; max-width:16em; font-size:clamp(36px,6.4vw,68px); font-weight:800; letter-spacing:-.04em; }
body.pub .hero .sub { margin:22px auto 0; max-width:34em; font-size:clamp(16px,2vw,19px); color:var(--mut); }
body.pub .hero .cta { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:36px; }
body.pub .pill {
  display:inline-flex; align-items:center; gap:8px; padding:6px 14px 6px 12px;
  border:1px solid var(--border); background:var(--card); border-radius:999px;
  font-size:13px; font-weight:500; color:var(--mut); box-shadow:var(--shadow-sm);
}
body.pub .pill .dot { width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px var(--accent-soft); }

/* Section & grid */
body.pub .s { padding:96px 0; }
body.pub .s + .s { border-top:1px solid var(--border-soft); }
body.pub .sh { max-width:40em; margin:0 auto 52px; text-align:center; }
body.pub .sh h2 { margin:0; font-size:clamp(28px,4vw,40px); font-weight:700; letter-spacing:-.035em; }
body.pub .sh p { margin:14px 0 0; color:var(--mut); font-size:16.5px; }
body.pub .grid { display:grid; gap:20px; }
body.pub .g3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
body.pub .g4 { grid-template-columns:repeat(4,minmax(0,1fr)); }

/* Kartu bersih */
body.pub .card, body.pub .gw-card, .acard {
  background:var(--card); border:1px solid var(--border-soft); border-radius:var(--r-xl);
  padding:28px; box-shadow:var(--shadow-sm);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
body.pub .card:hover, body.pub .gw-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); border-color:var(--border); }
body.pub .card h3 { margin:0 0 8px; font-size:18px; font-weight:650; }
body.pub .card p { margin:0; color:var(--mut); font-size:15px; }
body.pub .card .num {
  display:grid; place-items:center; width:36px; height:36px; margin-bottom:18px; border-radius:11px;
  background:var(--accent-soft); color:var(--accent-text); font-weight:700; font-size:15px;
}
body.pub .fade { opacity:0; transform:translateY(14px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
body.pub .fade.in { opacity:1; transform:none; }
html:not(.js) body.pub .fade { opacity:1; transform:none; }

/* Status server */
body.pub .gw-head { display:flex; align-items:center; gap:10px; margin-bottom:18px; }
body.pub .gw-head svg { width:20px; height:20px; color:var(--mut); }
body.pub .gw-name { font-weight:600; flex:1; }
body.pub .gw-vip { font-size:11px; font-weight:700; padding:3px 9px; border-radius:999px; background:var(--accent-soft); color:var(--accent-text); }
body.pub .gw-dot { width:9px; height:9px; border-radius:50%; background:#9a9aa6; }
body.pub .gw-card[data-st="online"] .gw-dot { background:#22c55e; box-shadow:0 0 0 4px rgba(34,197,94,.15); }
body.pub .gw-card[data-st="full"] .gw-dot { background:#f59e0b; }
body.pub .gw-card[data-st="offline"] .gw-dot, body.pub .gw-card[data-st="maintenance"] .gw-dot { background:#ef4444; }
body.pub .gw-cap { display:flex; justify-content:space-between; font-size:13.5px; color:var(--mut); margin-bottom:8px; }
body.pub .gw-cap b { color:var(--text); font-weight:600; }
body.pub .gw-bar { height:6px; border-radius:99px; background:var(--chip); overflow:hidden; }
body.pub .gw-bar i { display:block; height:100%; border-radius:99px; background:var(--accent); transition:width .6s var(--ease); }
body.pub .gw-stats { display:flex; flex-wrap:wrap; gap:6px 14px; margin:16px 0 20px; font-size:12.5px; color:var(--mut); }
body.pub .gw-btn { width:100%; }
body.pub .gw-empty { grid-column:1/-1; text-align:center; color:var(--mut); padding:24px 0; }

/* Paket harga */
body.pub .price { display:flex; flex-direction:column; gap:12px; position:relative; }
body.pub .price.hot { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent), var(--shadow); }
body.pub .price .tag { position:absolute; top:-12px; left:24px; padding:4px 12px; border-radius:999px; background:var(--accent); color:var(--accent-ink); font-size:12px; font-weight:600; }
body.pub .price .nm { font-size:15px; font-weight:600; color:var(--mut); }
body.pub .price .pr { font-size:34px; font-weight:800; letter-spacing:-.04em; }
body.pub .price .pr small { font-size:14px; font-weight:500; color:var(--mut); letter-spacing:0; }
body.pub .price ul { list-style:none; margin:4px 0 8px; padding:0; display:grid; gap:10px; font-size:14.5px; color:var(--gray); }
body.pub .price li { display:flex; gap:10px; }
body.pub .price li::before { content:""; flex:none; width:16px; height:16px; margin-top:3px; border-radius:50%; background:var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236c6c78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 8.3 2.2 2.2 4.8-4.8'/%3E%3C/svg%3E") center/12px no-repeat; }
body.pub .price .btn { margin-top:auto; }

/* FAQ */
body.pub .faq { max-width:760px; margin:0 auto; display:grid; gap:12px; }
body.pub .fi { background:var(--card); border:1px solid var(--border-soft); border-radius:var(--r-lg); transition:border-color .2s; }
body.pub .fi.open { border-color:var(--border); box-shadow:var(--shadow-sm); }
body.pub .fq { width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 22px; background:none; border:0; color:var(--text); font-size:16px; font-weight:600; text-align:left; cursor:pointer; }
body.pub .fq svg { width:18px; height:18px; flex:none; color:var(--mut); transition:transform .3s var(--ease); }
body.pub .fi.open .fq svg { transform:rotate(180deg); }
body.pub .fa { display:grid; grid-template-rows:0fr; transition:grid-template-rows .35s var(--ease); }
body.pub .fa > p { overflow:hidden; margin:0; padding:0 22px; color:var(--mut); font-size:15px; }
body.pub .fi.open .fa { grid-template-rows:1fr; }
body.pub .fi.open .fa > p { padding-bottom:22px; }

/* Footer minimalis */
body.pub footer { border-top:1px solid var(--border-soft); padding:64px 0 36px; background:var(--bg); color:var(--mut); font-size:14.5px; }
body.pub .fgrid { display:grid; grid-template-columns:1.6fr repeat(3,1fr); gap:40px; }
body.pub footer h6 { margin:0 0 14px; font-size:13px; font-weight:600; color:var(--text); letter-spacing:.02em; }
body.pub footer a { display:block; padding:5px 0; color:var(--mut); text-decoration:none; transition:color .2s; }
body.pub footer a:hover { color:var(--text); }
body.pub footer .brand { display:inline-flex; padding:0; }
body.pub footer .copy { margin-top:48px; padding-top:24px; border-top:1px solid var(--border-soft); font-size:13px; }
body.pub footer .copy a { display:inline; }

/* Halaman legal (privacy, terms) */
body.pub main.wrap h1 { font-weight:800; letter-spacing:-.04em; }
body.pub main.wrap h3 { font-weight:650; }
body.pub main.wrap p { line-height:1.75; }

/* ---------- 4. AUTH / SETUP ---------- */
body.authp, body.auth-body { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:100vh; min-height:100dvh; padding:24px; background:var(--bg); }
body.authp main { width:100%; display:flex; justify-content:center; }
.acard { width:100%; max-width:420px; padding:40px 32px; text-align:center; box-shadow:var(--shadow); }
.acard h1 { margin:20px 0 8px; font-size:26px; font-weight:750; letter-spacing:-.035em; }
.acard .d { color:var(--mut); font-size:15px; margin:0 0 26px; }
.acard .lg { border-radius:14px; }
.gbtn { width:100%; display:flex; align-items:center; justify-content:center; gap:12px; padding:13px 20px; font-size:15px; cursor:pointer; background:var(--card); color:var(--text); border:1px solid var(--border); }
.gbtn:hover:not(:disabled) { background:var(--chip); transform:translateY(-1px); }
.gbtn .g { width:20px; height:20px; }
.acard .terms { display:flex; gap:10px; margin-top:18px; text-align:left; font-size:13px; color:var(--mut); }
.acard .terms a { color:var(--accent-text); }
.acard input[type=text], .acard input[type=password], .acard input[type=email] { width:100%; padding:13px 16px; margin-bottom:12px; font-size:16px; text-align:center; letter-spacing:.2em; }
.mini { margin-top:22px; font-size:14px; }
.mini a { color:var(--mut); }
.mini a:hover { color:var(--text); }

/* ---------- 5. APLIKASI (dashboard & admin) ---------- */
.app-body { background:var(--bg); }
.app-panel, .cfg-panel-card, .pay-sum-card, .mon-stat, .admin-item {
  background:var(--card); border:1px solid var(--border-soft); border-radius:var(--r-xl);
  box-shadow:var(--shadow-sm);
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.app-panel:hover, .admin-item:hover { border-color:var(--border); }
.panel-title { font-weight:650; letter-spacing:-.02em; }
.panel-title .ic { border-radius:11px; background:var(--accent-soft); color:var(--accent-text); }
.panel-desc, .hint, .rs-hint { color:var(--mut); }

/* Navbar aplikasi & sidebar */
.lp-nav, .admin-topbar { background:var(--nav); -webkit-backdrop-filter:saturate(180%) blur(14px); backdrop-filter:saturate(180%) blur(14px); border-bottom:1px solid var(--border-soft); box-shadow:none; }
.lp-icon-btn { border-radius:999px; border:1px solid var(--border); background:transparent; color:var(--text); transition:background .2s var(--ease); }
.lp-icon-btn:hover { background:var(--chip); }
.app-sidebar { background:var(--card); border-left:1px solid var(--border-soft); box-shadow:var(--shadow); }
.app-menu a, .app-menu button, .sb-list a, .sb-list button { border-radius:12px; transition:background .2s var(--ease), color .2s var(--ease); }
.app-menu a:hover, .sb-list a:hover, .sb-list button:hover { background:var(--chip); }
.app-menu a.active, .sb-list a.active { background:var(--accent-soft); color:var(--accent-text); }
.sb-section, .sb-lbl { color:var(--mut); font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }
.sidebar-backdrop { background:rgba(10,10,14,.4); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); }

/* Tombol */
.btn-block, .rs-btn, .cfg-bk-btn {
  border-radius:12px; font-weight:600; background:var(--btn-bg); color:var(--btn-fg); border:1px solid var(--btn-bg);
}
.btn-block:hover:not(:disabled), .rs-btn:hover:not(:disabled) { transform:translateY(-1px); box-shadow:0 8px 20px rgba(17,17,20,.14); }
.btn-block:active { transform:none; }
.btn-block:disabled, .btn:disabled { opacity:.5; cursor:not-allowed; }
.btn-small, .sm { border-radius:999px; }

/* Form */
.inp, .cfg-field, .fld input, .fld select, .fld textarea, .rs-field, .sd-field,
.app-body input[type=text], .app-body input[type=password], .app-body input[type=email],
.app-body input[type=number], .app-body input[type=search], .app-body textarea, .app-body select {
  background:var(--card-2); color:var(--text); border:1px solid var(--border); border-radius:12px;
  transition:border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.inp:focus-within, .cfg-field:focus, .rs-field:focus, .sd-field:focus,
.app-body input:focus, .app-body textarea:focus, .app-body select:focus,
.acard input:focus {
  outline:none; border-color:var(--text); box-shadow:none; background:var(--card);
}
.acard input { background:var(--card-2); color:var(--text); border:1px solid var(--border); border-radius:12px; }
::placeholder { color:var(--mut); opacity:.7; }
.form-label, .fld > label, .sd-label, .pr-lbl { font-size:13px; font-weight:600; color:var(--gray); }

/* Modal */
.modal-overlay { background:rgba(10,10,14,.5); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
.modal { border-radius:22px; border:1px solid var(--border-soft); background:var(--card); box-shadow:0 24px 64px rgba(0,0,0,.25); }

/* Tabel */
table { width:100%; }
th { font-size:12px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--mut); }
th, td { padding:12px 14px; border-bottom:1px solid var(--border-soft); text-align:left; }
tbody tr { transition:background .15s; }
tbody tr:hover { background:var(--card-2); }

/* Switch */
.cfg-switch-track { border-radius:999px; }

/* Scrollbar halus */
* { scrollbar-width:thin; scrollbar-color:var(--border) transparent; }
::-webkit-scrollbar { width:10px; height:10px; }
::-webkit-scrollbar-thumb { background:var(--border); border-radius:99px; border:3px solid transparent; background-clip:content-box; }

/* ---------- 6. RESPONSIVE ---------- */
@media (max-width:960px) {
  body.pub .g4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.pub .fgrid { grid-template-columns:1fr 1fr; }
}
@media (max-width:760px) {
  body.pub .nav .links, body.pub .nav .btn.hd { display:none; }
  body.pub #mbtn { display:inline-grid; }
  body.pub .nav .wrap { height:60px; gap:12px; }
  body.pub .hero { padding:72px 0 64px; }
  body.pub .s { padding:64px 0; }
  body.pub .sh { margin-bottom:36px; }
  body.pub .g3, body.pub .g4 { grid-template-columns:1fr; }
  body.pub .card, body.pub .gw-card { padding:22px; }
  body.pub .fgrid { grid-template-columns:1fr; gap:28px; }
  .acard { padding:32px 22px; }
  .app-main { padding-left:14px; padding-right:14px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
  body.pub .fade { opacity:1; transform:none; }
}


/* ==========================================================================
   v2 — MODERN MINIMALIST (semua halaman)
   Semua aturan di @layer modern + !important supaya menang atas style.css.
   Prinsip: spasi lega, sudut lembut, bayangan halus, garis tipis HANYA di field.
   ========================================================================== */
@layer modern {
  :root, html, html body {
    --r-ctl:12px !important; --r-md:14px !important; --r-lg:18px !important; --r-xl:24px !important;
    --sp-1:8px; --sp-2:16px; --sp-3:24px; --sp-4:32px; --sp-5:48px;
    --ease:cubic-bezier(.22,.8,.24,1) !important;
  }
  html[data-theme="light"], html[data-theme="light"] body {
    --bg:#f6f6f8 !important; --card:#ffffff !important; --card-2:#f2f2f5 !important; --chip:#f0f0f4 !important;
    --border:#e6e6ec !important; --border-soft:#ececf1 !important; --line:#e6e6ec !important;
    --text:#0e0e11 !important; --mut:#6b6b77 !important; --muted:#6b6b77 !important; --gray:#4a4a55 !important;
    --btn-bg:#0e0e11 !important; --btn-fg:#ffffff !important; --nav:rgba(246,246,248,.8) !important;
    --sh-1:0 1px 2px rgba(14,14,17,.04), 0 4px 16px -6px rgba(14,14,17,.08);
    --sh-2:0 2px 4px rgba(14,14,17,.04), 0 18px 40px -16px rgba(14,14,17,.16);
    --shadow:var(--sh-2) !important; --shadow-sm:var(--sh-1) !important;
  }
  html[data-theme="dark"], html[data-theme="dark"] body {
    --bg:#09090b !important; --card:#111114 !important; --card-2:#17171b !important; --chip:#1a1a1f !important;
    --border:#24242a !important; --border-soft:#1c1c21 !important; --line:#24242a !important;
    --text:#f5f5f7 !important; --mut:#9c9ca8 !important; --muted:#9c9ca8 !important; --gray:#c2c2cb !important;
    --btn-bg:#f5f5f7 !important; --btn-fg:#09090b !important; --nav:rgba(9,9,11,.78) !important;
    --sh-1:0 1px 2px rgba(0,0,0,.4), 0 6px 20px -8px rgba(0,0,0,.55);
    --sh-2:0 2px 4px rgba(0,0,0,.4), 0 22px 48px -18px rgba(0,0,0,.7);
    --shadow:var(--sh-2) !important; --shadow-sm:var(--sh-1) !important;
  }
}

@layer modern {
  /* ---------- Dasar ---------- */
  html body { font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif !important; font-size:15px !important; line-height:1.6 !important;
    background:var(--bg) !important; background-image:none !important; color:var(--text) !important; -webkit-font-smoothing:antialiased; }
  html body::before, html body::after, .app-shell::before, .app-shell::after, .lp::before, .lp-aurora, .lp-particles { display:none !important; content:none !important; }
  html body :is(h1,h2,h3,h4,.panel-title) { font-family:'Inter',system-ui,sans-serif !important; letter-spacing:-.022em !important; color:var(--text) !important; }
  html body :focus, html body :focus-visible { outline:none !important; }
  html body ::selection { background:color-mix(in srgb,var(--text) 16%,transparent) !important; color:inherit !important; }

  /* ---------- Topbar & sidebar ---------- */
  html body .lp-nav, html body .admin-topbar {
    background:var(--nav) !important; -webkit-backdrop-filter:saturate(180%) blur(18px) !important; backdrop-filter:saturate(180%) blur(18px) !important;
    border:0 !important; box-shadow:none !important; min-height:60px !important;
  }
  html body .app-sidebar, html body #app-menu.app-sidebar { background:var(--card) !important; border:0 !important; box-shadow:1px 0 0 var(--border-soft) !important; border-radius:0 !important; }
  html body .sb-balance { background:var(--card-2) !important; border:0 !important; border-radius:var(--r-lg) !important; padding:14px 16px !important; }
  html body .sb-list > a, html body .sb-list > button, html body .sb-foot > button, html body .sb-foot a {
    border-radius:var(--r-ctl) !important; font-weight:500 !important; color:var(--mut) !important;
    transition:background .2s var(--ease), color .2s var(--ease) !important;
  }
  html body .sb-list > a:hover, html body .sb-list > button:hover, html body .sb-foot > button:hover { background:var(--chip) !important; color:var(--text) !important; }
  html body .sb-list > a[aria-current="page"], html body .sb-list > a.active, html body .sb-list > button.active {
    background:var(--chip) !important; color:var(--text) !important; font-weight:600 !important;
  }
  html body .sb-section { color:var(--mut) !important; font-size:11px !important; font-weight:600 !important; letter-spacing:.08em !important; text-transform:uppercase !important; }
  html body .sb-section::after { display:none !important; }
  html body .sb-foot { background:transparent !important; border:0 !important; }
  html body .lp-icon-btn, html body .btn-back, html body .nav-back, html body .sb-close, html body .stats-close, html body .ann-x, html body .report-close {
    background:var(--card) !important; border:0 !important; border-radius:var(--r-ctl) !important; color:var(--text) !important; box-shadow:var(--sh-1) !important;
    transition:transform .2s var(--ease), background .2s var(--ease) !important;
  }
  html body .lp-icon-btn:hover, html body .btn-back:hover, html body .nav-back:hover { background:var(--chip) !important; transform:translateY(-1px); }

  /* ---------- Area konten ---------- */
  html body .app-main { padding-top:calc(var(--nav-bottom,60px) + 28px) !important; padding-bottom:72px !important; gap:var(--sp-3) !important; }
  html body .app-main > *:not(.cs-panel):not(.gc-panel) { width:100% !important; max-width:1040px !important; margin-left:auto !important; margin-right:auto !important; }
  html body .app-main > * + * { margin-top:0 !important; }
  html body.pg-flat .app-main > *, html body .app-main.pg-full > * { max-width:none !important; }

  /* ---------- Kartu & panel ---------- */
  html body :is(.app-panel,.admin-card,.bot-card,.cfg-group,.info-card,.stats-box,.mon-stat,.mon-server,.pay-sum-card,.bot-sum-card,.cfg-card,.cl-card,.cfg-menu-btn,.cfg-switch,.pricing-plan,.report-settings-card,.admin-item,.mon-item,.lp-auth-card,.acard) {
    background:var(--card) !important; background-image:none !important; border:0 !important; border-radius:var(--r-xl) !important; box-shadow:var(--sh-1) !important;
  }
  html body .app-panel { padding:clamp(20px,2.6vw,32px) !important; margin-bottom:0 !important; }
  /* kartu di dalam kartu: tanpa latar tambahan */
  html body .app-panel :is(.info-card,.stats-box,.admin-item,.mon-item,.cfg-card,.cfg-switch,.pricing-plan,.result-box,.stats-item,.pay-plan,.cl-card,.mon-stat) {
    background:var(--card-2) !important; box-shadow:none !important; border-radius:var(--r-lg) !important;
  }
  html body .app-panel .app-panel { background:transparent !important; box-shadow:none !important; padding:0 !important; }
  html body :is(.info-card.clickable,.cfg-menu-btn,.bot-card):hover { box-shadow:var(--sh-2) !important; transform:translateY(-2px); }
  html body .panel-title { font-size:clamp(17px,2.2vw,20px) !important; font-weight:650 !important; gap:12px !important; margin-bottom:6px !important; }
  html body .panel-title .ic, html body .info-card .ic, html body .cfg-menu-ic, html body .cs-head-ic, html body .lp-card-icon {
    background:var(--chip) !important; color:var(--text) !important; border:0 !important; border-radius:var(--r-md) !important; box-shadow:none !important;
  }
  html body :is(.panel-desc,.hint,.rs-hint,.cfg-menu-desc) { color:var(--mut) !important; font-weight:400 !important; line-height:1.6 !important; }
  html body :is(.info-card .label,.stats-lbl,.mon-lbl,th) { color:var(--mut) !important; font-weight:500 !important; text-transform:none !important; letter-spacing:0 !important; font-size:12.5px !important; }
  html body :is(.stats-num,.mon-num) { font-weight:650 !important; letter-spacing:-.03em !important; color:var(--text) !important; background:none !important; -webkit-text-fill-color:currentColor !important; }
  html body .mon-stat::before { display:none !important; }

  /* ---------- Tombol ---------- */
  html body :is(.btn-block,.lp-submit,.btn-small.primary,.rs-btn.primary,.pricing-cta,.m-ok,.cfg-bk-btn.primary,.report-btn-send,.pairing-copy-btn,.cs-send):not(:disabled):not([disabled]) {
    background:var(--btn-bg) !important; background-image:none !important; color:var(--btn-fg) !important; -webkit-text-fill-color:var(--btn-fg) !important;
    border:0 !important; border-radius:var(--r-ctl) !important; font-weight:600 !important; box-shadow:none !important; min-height:44px !important;
    transition:transform .2s var(--ease), opacity .2s var(--ease), box-shadow .2s var(--ease) !important;
  }
  html body :is(.btn-block,.lp-submit,.btn-small.primary,.pricing-cta,.m-ok,.report-btn-send):hover:not(:disabled) { transform:translateY(-1px); box-shadow:var(--sh-2) !important; }
  html body :is(.btn-block,.lp-submit,.btn-small.primary,.pricing-cta):active:not(:disabled) { transform:translateY(0) scale(.99); }
  html body :is(.btn-small:not(.primary),.rs-btn:not(.primary),.dp-ghost,.btn-block.ghost,.btn-block.secondary,.btn-cancel,.m-cancel,.report-btn-cancel,.cfg-bk-btn,.report-file-btn,.prof-btn,.pricing-renew,.pay-check,.chip) {
    background:var(--card-2) !important; background-image:none !important; color:var(--text) !important; -webkit-text-fill-color:var(--text) !important;
    border:0 !important; border-radius:var(--r-ctl) !important; font-weight:500 !important; box-shadow:none !important; min-height:40px;
    transition:background .2s var(--ease), transform .2s var(--ease) !important;
  }
  html body :is(.btn-small:not(.primary),.rs-btn:not(.primary),.dp-ghost,.cfg-bk-btn,.prof-btn,.chip):hover { background:var(--chip) !important; }
  html body :is(.btn-block,.btn-small,.lp-submit):disabled, html body :is(.btn-block,.btn-small,.lp-submit)[disabled] { background:var(--chip) !important; color:var(--mut) !important; -webkit-text-fill-color:var(--mut) !important; opacity:.7 !important; box-shadow:none !important; cursor:not-allowed !important; }
  html body :is(.btn-small.danger,.btn-block.danger,.m-ok.danger,.prof-btn.danger,.admin-del) { background:color-mix(in srgb,#e5484d 12%,var(--card)) !important; color:#e5484d !important; -webkit-text-fill-color:#e5484d !important; border:0 !important; }

  /* ---------- Tab / segmented ---------- */
  html body :is(.deploy-tabs,.stats-tabs,.mon-tabs,.prefix-mode-group,#speed-group,.lp-tabs,.sa-tabs) {
    background:var(--chip) !important; border:0 !important; border-radius:var(--r-md) !important; padding:4px !important; gap:4px !important;
  }
  html body :is(.deploy-tab,.stats-tab,.mon-tab,.prefix-mode-btn,.lp-tab,.report-type-btn) {
    background:transparent !important; color:var(--mut) !important; -webkit-text-fill-color:currentColor !important; border:0 !important; border-radius:calc(var(--r-md) - 4px) !important; box-shadow:none !important; font-weight:500 !important;
  }
  html body :is(.deploy-tab,.stats-tab,.mon-tab,.prefix-mode-btn,.lp-tab,.report-type-btn).active {
    background:var(--card) !important; color:var(--text) !important; -webkit-text-fill-color:currentColor !important; box-shadow:var(--sh-1) !important; font-weight:600 !important;
  }
  html body .stats-tab.active::after { display:none !important; }

  /* ---------- Field (satu-satunya yang memakai garis tipis) ---------- */
  html body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),select,textarea),
  html body :is(.lp-in,.stats-search,.stats-select,.search-box,.report-input,.cs-compose textarea,.cfg-field input,.cfg-field select,.cfg-field textarea,.pill-select) {
    background:var(--card) !important; border:1px solid var(--border) !important; border-radius:var(--r-ctl) !important; color:var(--text) !important;
    box-shadow:none !important; font-family:inherit !important; font-size:14.5px !important;
    transition:border-color .2s var(--ease), background .2s var(--ease) !important;
  }
  html body .lp-in :is(input,select), html body .country-field select { border:0 !important; background:transparent !important; border-radius:0 !important; }
  html body :is(input,select,textarea):hover { border-color:color-mix(in srgb,var(--text) 22%,var(--border)) !important; }
  html body :is(input,select,textarea):focus, html body .lp-in:focus-within { border-color:var(--text) !important; box-shadow:none !important; background:var(--card) !important; }
  html body .lp-in :is(input,select):hover, html body .lp-in :is(input,select):focus { border:0 !important; }
  html body ::placeholder { color:var(--mut) !important; opacity:.75 !important; }
  html body :is(label,.form-label,.report-label,.cfg-field label) { color:var(--gray) !important; font-weight:500 !important; font-size:13px !important; text-transform:none !important; letter-spacing:0 !important; }
  html body input[type=checkbox], html body input[type=radio] { accent-color:var(--text) !important; }
  html body :is(.cfg-switch-input:checked + .cfg-switch-track,.cl-row input:checked + .cl-track,.pr-toggle input:checked + .pr-track,.rs-switch input:checked + .rs-track) { background:var(--text) !important; background-image:none !important; box-shadow:none !important; }
  html body :is(.cfg-switch-input:checked + .cfg-switch-track::after,.pr-toggle input:checked + .pr-track::after) { background:var(--bg) !important; }

  /* ---------- Tabel & daftar ---------- */
  html body table { border-collapse:separate !important; border-spacing:0 !important; }
  html body :is(th,td) { border:0 !important; border-bottom:1px solid var(--border-soft) !important; padding:14px 16px !important; }
  html body th { background:transparent !important; border-bottom-color:var(--border) !important; }
  html body tbody tr:last-child td { border-bottom:0 !important; }
  html body tbody tr:hover { background:var(--card-2) !important; }
  html body .table-wrap { background:transparent !important; border:0 !important; border-radius:var(--r-lg) !important; }
  html body :is(.stats-item,.admin-item,.mon-item) { padding:14px 16px !important; border-radius:var(--r-lg) !important; }
  html body .stats-empty { background:var(--card-2) !important; border:0 !important; border-radius:var(--r-lg) !important; color:var(--mut) !important; }
  html body .stats-empty::before { background:var(--chip) !important; border:0 !important; }
  html body :is(.si-badge,.cfg-gtag,.cl-tag,.cmd-off-tag,.role-chip,.mon-badge) { background:var(--chip) !important; color:var(--gray) !important; border:0 !important; border-radius:999px !important; font-weight:600 !important; }

  /* ---------- Modal, toast, menu ---------- */
  html body .modal-overlay { background:rgba(9,9,11,.5) !important; -webkit-backdrop-filter:blur(8px) !important; backdrop-filter:blur(8px) !important; }
  html body :is(.modal,.cfg-modal,.stats-modal,.report-modal,.announce-modal,.pr-modal,.pay-modal) {
    background:var(--card) !important; border:0 !important; border-radius:28px !important; box-shadow:var(--sh-2) !important;
  }
  html body .toast { background:var(--btn-bg) !important; color:var(--btn-fg) !important; border:0 !important; border-radius:var(--r-lg) !important; box-shadow:var(--sh-2) !important; }
  html body :is(.report-head,.report-foot,.ann-head) { background:transparent !important; border:0 !important; }
  html body :is(hr,.divider,.menu-divider,.welcome-divider) { display:none !important; }
  html body :is(.sb-head,.cs-head,.cs-compose,.cs-list-head,.cfg-actions) { border-color:var(--border-soft) !important; }

  /* ---------- Chat (CS / global) ---------- */
  html body .cs-panel, html body .gc-panel { background:var(--card) !important; border:0 !important; border-radius:var(--r-xl) !important; box-shadow:var(--sh-1) !important; overflow:hidden !important; }
  html body .cs-msg.them { background:var(--chip) !important; color:var(--text) !important; }
  html body .cs-msg.me { background:var(--btn-bg) !important; color:var(--btn-fg) !important; }
  html body .cs-msg { border-radius:18px !important; }
  html body .cs-thread { border:0 !important; border-radius:var(--r-md) !important; margin:2px 8px !important; width:calc(100% - 16px) !important; }
  html body .cs-thread.active { background:var(--chip) !important; }

  /* ---------- Halaman deploy (stepper) ---------- */
  html body :is(.dp-server,.dp-card,.dp-opt) { background:var(--card-2) !important; border:0 !important; border-radius:var(--r-lg) !important; box-shadow:none !important; transition:background .2s var(--ease), box-shadow .2s var(--ease) !important; }
  html body :is(.dp-server,.dp-opt):hover:not(:disabled) { background:var(--chip) !important; }
  html body :is(.dp-server,.dp-opt).sel, html body :is(.dp-server,.dp-opt).selected, html body :is(.dp-server,.dp-opt).active { background:var(--card) !important; box-shadow:0 0 0 1.5px var(--text) !important; }

  /* ---------- Scrollbar ---------- */
  html body * { scrollbar-width:thin; scrollbar-color:var(--border) transparent; }
  html body ::-webkit-scrollbar { width:8px; height:8px; }
  html body ::-webkit-scrollbar-thumb { background:var(--border); border-radius:99px; }

  /* ---------- Halaman publik (landing, auth, legal) ---------- */
  html body.pub .nav { background:var(--nav) !important; border:0 !important; box-shadow:none !important; }
  html body.pub .btn, html body.pub .gw-btn { background:var(--btn-bg) !important; color:var(--btn-fg) !important; border:0 !important; border-radius:999px !important; font-weight:600 !important; box-shadow:none !important; }
  html body.pub .btn.ghost { background:var(--card) !important; color:var(--text) !important; box-shadow:var(--sh-1) !important; }
  html body.pub .btn:hover, html body.pub .gw-btn:hover { box-shadow:var(--sh-2) !important; transform:translateY(-1px); }
  html body.pub .gw-btn.is-off { background:var(--chip) !important; color:var(--mut) !important; }
  html body.pub :is(.card,.gw-card,.fi,.pill,.price) { background:var(--card) !important; border:0 !important; border-radius:var(--r-xl) !important; box-shadow:var(--sh-1) !important; }
  html body.pub .price.hot { box-shadow:0 0 0 1.5px var(--text), var(--sh-2) !important; }
  html body.pub .price .tag { background:var(--btn-bg) !important; color:var(--btn-fg) !important; }
  html body.pub .card .num { background:var(--chip) !important; color:var(--text) !important; border-radius:var(--r-md) !important; }
  html body.pub .s + .s { border-top:0 !important; }
  html body.pub footer { border-top:0 !important; background:transparent !important; }
  html body.pub footer .copy { border-top:1px solid var(--border-soft) !important; }
  html body.pub .hero h1 { font-weight:750 !important; letter-spacing:-.04em !important; line-height:1.04 !important; text-wrap:balance; }
  html body.pub .gw-bar { background:var(--chip) !important; }
  html body.pub .gw-bar i { background:var(--text) !important; }
  html body.pub .pill .dot { background:#22c55e !important; box-shadow:0 0 0 4px rgba(34,197,94,.16) !important; }
  html body.authp, html body.auth-body { background:var(--bg) !important; }
  html body :is(.acard,.lp-auth-card) { border-radius:28px !important; box-shadow:var(--sh-2) !important; }
  html body .gbtn, html body .lp-google { background:var(--card) !important; color:var(--text) !important; -webkit-text-fill-color:var(--text) !important; border:1px solid var(--border) !important; border-radius:var(--r-ctl) !important; box-shadow:none !important; }

  /* ---------- Responsif ---------- */
  @media (max-width:900px) {
    html body .app-main > * { max-width:100% !important; }
  }
  @media (max-width:640px) {
    html body .app-panel { padding:18px !important; border-radius:var(--r-lg) !important; }
    html body :is(.modal,.cfg-modal,.stats-modal,.report-modal) { border-radius:22px !important; }
    html body .app-main { padding-bottom:56px !important; }
  }
  @media (prefers-reduced-motion:reduce) {
    html body *, html body *::before, html body *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
  }
}

/* v2b — perbaikan detail hasil uji tampilan */
@layer modern {
  html body .app-panel .admin-topbar, html body .app-panel .cfg-panel-head, html body .app-panel .stats-head {
    background:transparent !important; -webkit-backdrop-filter:none !important; backdrop-filter:none !important; box-shadow:none !important; border:0 !important; padding:0 !important; min-height:0 !important; position:static !important;
  }
  html body .panel-title { background:transparent !important; }
  html body .app-panel :is(.bot-sum-card,.pay-sum-card,.sum-card,[class$="-sum-card"],.mon-stat,.stats-box) {
    background:var(--card-2) !important; box-shadow:none !important; border:0 !important; border-radius:var(--r-lg) !important; outline:0 !important;
  }
  html body :is([class*="-sum-label"],[class*="-label"]:not(.sb-balance-label),[class*="-lbl"]) { text-transform:none !important; letter-spacing:0 !important; font-weight:500 !important; color:var(--mut) !important; font-size:12.5px !important; }
  html body [class*="-sum-value"] { font-weight:650 !important; letter-spacing:-.03em !important; color:var(--text) !important; font-size:24px !important; }
  /* baris kontrol (pencarian + filter) tidak berlatar sendiri */
  html body .admin-item:has(input, select), html body .admin-item:has(.stats-search) {
    background:transparent !important; box-shadow:none !important; padding:0 !important; gap:12px !important; border-radius:0 !important;
  }
  html body .stats-search { min-height:46px !important; }
  /* ikon & kepala panel */
  html body .panel-title .ic { width:40px !important; height:40px !important; display:inline-flex !important; align-items:center !important; justify-content:center !important; }
  /* garis timeline sidebar lebih halus */
  html body .sb-list > a::before, html body .sb-list > a::after { opacity:.5; }
}

@layer modern {
  @media (min-width:1100px) {
    html body .app-shell .app-main { margin-left:var(--sb-w,296px) !important; padding-left:clamp(32px,3.6vw,56px) !important; padding-right:clamp(32px,3.6vw,56px) !important; }
  }
  @media (max-width:1099px) {
    html body .app-shell .app-main { margin-left:0 !important; padding-left:20px !important; padding-right:20px !important; }
  }
  @media (max-width:640px) {
    html body .app-shell .app-main { padding-left:14px !important; padding-right:14px !important; }
  }
}

@layer modern {
  html body .info-card .cta-hint { background:var(--btn-bg) !important; color:var(--btn-fg) !important; -webkit-text-fill-color:var(--btn-fg) !important; border:0 !important; border-radius:999px !important; padding:6px 14px !important; font-weight:600 !important; letter-spacing:0 !important; text-transform:none !important; font-size:12px !important; }
  html body .info-card .cta-hint svg { stroke:currentColor !important; }
  html body .panel-title, html body .panel-title * { text-transform:none !important; }
  html body .info-card .value { font-weight:650 !important; color:var(--text) !important; }
  html body .info-card .sub { color:var(--mut) !important; }
}

/* ---------- FIX: huruf tab tidak kelihatan ----------
   Penyebab: -webkit-text-fill-color dari aturan lama (gradient text) menimpa `color`,
   sehingga huruf tab aktif = warna latar. Di sini warna & fill dipaksa sama (kontras terjamin). */
@layer modern {
  html body :is(.deploy-tab,.stats-tab,.mon-tab,.sd-tab,.ps-tab,.sp-tab,.bc-tab,.tab-btn,.prefix-mode-btn,.report-type-btn,.lp-tab,.sa-tab,.sd-chip),
  html body :is(.deploy-tab,.stats-tab,.mon-tab,.sd-tab,.ps-tab,.sp-tab,.bc-tab,.tab-btn,.prefix-mode-btn,.report-type-btn,.lp-tab,.sa-tab,.sd-chip) * {
    -webkit-text-fill-color: currentColor !important;
    background-clip: border-box !important; -webkit-background-clip: border-box !important;
    opacity: 1 !important; visibility: visible !important;
  }
  html body :is(.deploy-tab,.stats-tab,.mon-tab,.sd-tab,.ps-tab,.sp-tab,.bc-tab,.tab-btn,.prefix-mode-btn,.report-type-btn,.lp-tab,.sa-tab,.sd-chip):not(.active):not([aria-selected="true"]) { color: var(--mut) !important; }
  html body :is(.deploy-tab,.stats-tab,.mon-tab,.sd-tab,.ps-tab,.sp-tab,.bc-tab,.tab-btn,.prefix-mode-btn,.report-type-btn,.lp-tab,.sa-tab,.sd-chip):is(.active,[aria-selected="true"]) {
    background: var(--card) !important; color: var(--text) !important;
  }
  html body :is(.sd-tabs,.ps-tabs,.sp-tabs,.bc-tabs) { background: var(--chip) !important; }
}

/* ---------- Chat Global & Hubungi CS: FULL LAYAR (tanpa container/kartu) ---------- */
@layer modern {
  html body.gc-body .app-main, html body.cs-body .app-main {
    padding: calc(60px + env(safe-area-inset-top, 0px)) 0 0 0 !important;
    max-width: none !important; width: auto !important;
    height: 100vh !important; height: 100dvh !important;
    overflow: hidden !important; box-sizing: border-box !important;
  }
  html body.gc-body .app-main > .gc-panel, html body.cs-body .app-main > .cs-panel {
    width: 100% !important; max-width: none !important; margin: 0 !important;
    height: 100% !important; min-height: 0 !important;
    display: flex !important; flex-direction: column !important;
    border-radius: 0 !important; border: 0 !important; box-shadow: none !important;
    background: var(--bg) !important; padding: 0 !important;
  }
  html body.gc-body .gc-msgs, html body.cs-body .cs-msgs {
    flex: 1 1 auto !important; min-height: 0 !important; overflow-y: auto !important;
    padding: 16px clamp(12px, 3vw, 28px) !important;
  }
  html body.gc-body .gc-compose-wrap, html body.cs-body .cs-compose {
    flex: 0 0 auto !important; margin: 0 !important; border-radius: 0 !important;
    border: 0 !important; border-top: 1px solid var(--border) !important; box-shadow: none !important;
    background: var(--card) !important;
    padding: 10px clamp(12px, 3vw, 28px) calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html body.gc-body .gc-compose { border: 0 !important; background: transparent !important; padding: 0 !important; box-shadow: none !important; }
}

/* ---------- FIX: huruf alert / toast / modal tidak kelihatan ---------- */
@layer modern {
  html body .toast { background: var(--btn-bg) !important; color: var(--btn-fg) !important; -webkit-text-fill-color: var(--btn-fg) !important; opacity: 1; }
  html body .toast.error { background: #c9343a !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  html body .toast * { color: inherit !important; -webkit-text-fill-color: currentColor !important; }

  html body .modal h3, html body .modal h3 * { -webkit-text-fill-color: currentColor !important; }
  html body .modal h3 { color: var(--text) !important; }
  html body .modal .modal-text { color: var(--text) !important; -webkit-text-fill-color: currentColor !important; opacity: .82;
    background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
  html body .modal .modal-brand { color: var(--mut) !important; -webkit-text-fill-color: currentColor !important; }
  html body .modal .m-ok { background: var(--btn-bg) !important; color: var(--btn-fg) !important; -webkit-text-fill-color: var(--btn-fg) !important; }
  html body .modal .m-ok.danger { background: color-mix(in srgb,#e5484d 14%,var(--card)) !important; color: #e5484d !important; -webkit-text-fill-color: #e5484d !important; }
  html body .modal .m-cancel { background: var(--card-2) !important; color: var(--text) !important; -webkit-text-fill-color: var(--text) !important; }

  /* kotak alert/notifikasi di halaman (login, daftar, form, dll.) */
  html body :is(.lp-alert,.alert,.flash,.notice,.msg-box) { -webkit-text-fill-color: currentColor !important; opacity: 1 !important; visibility: visible !important; }
  html body :is(.lp-alert,.alert,.flash,.notice,.msg-box) * { -webkit-text-fill-color: currentColor !important; }
  html body :is(.lp-alert,.alert,.flash,.notice,.msg-box) { color: var(--text) !important; background: color-mix(in srgb, var(--mut) 12%, var(--card)) !important; border: 1px solid var(--border) !important; border-radius: var(--r-md, 12px) !important; }
  html body :is(.lp-alert,.alert,.flash,.notice,.msg-box):is(.success,.ok) { background: color-mix(in srgb,#30a46c 16%,var(--card)) !important; border-color: color-mix(in srgb,#30a46c 45%,var(--border)) !important; }
  html body :is(.lp-alert,.alert,.flash,.notice,.msg-box):is(.error,.danger,.err) { background: color-mix(in srgb,#e5484d 14%,var(--card)) !important; border-color: color-mix(in srgb,#e5484d 45%,var(--border)) !important; }
  html body :is(.lp-alert,.alert,.flash,.notice,.msg-box):is(.warn,.warning) { background: color-mix(in srgb,#f5a524 16%,var(--card)) !important; border-color: color-mix(in srgb,#f5a524 45%,var(--border)) !important; }
}

/* ---------- FIX: tombol Keluar disamakan dengan tombol sidebar lain ---------- */
@layer modern {
  html body .app-sidebar .sb-foot > button.sb-logout {
    background: transparent !important; color: var(--mut) !important; margin-top: 0 !important;
    -webkit-text-fill-color: currentColor !important; box-shadow: none !important; border: 0 !important;
  }
  html body .app-sidebar .sb-foot > button.sb-logout svg { color: inherit !important; stroke: currentColor !important; }
  @media (hover: hover) {
    html body .app-sidebar .sb-foot > button.sb-logout:hover { background: var(--chip) !important; color: var(--text) !important; }
  }
}

/* ==========================================================================
   FIX v2 — chat CS tidak hitam, huruf selalu terbaca, switch tema terlihat
   Ditaruh di @layer modern (layer pertama), jadi !important di sini menang
   atas @layer zk / glass milik style.css.

   Akar masalahnya:
   1. Token --grad / --g-grad di-set `none`, tapi banyak aturan lama masih
      memakai gradien itu sebagai latar atau sebagai isi teks (background-clip:
      text + text-fill transparent). Hasilnya: huruf tembus pandang.
   2. Bubble CS memakai class .me / .them (cs.js), sedangkan aturan lama
      mengira .mine. Akibatnya -webkit-text-fill-color sama dengan warna
      bubble (hitam di terang, putih di gelap) dan huruf lenyap.
   3. Switch tema (.sb-sw): trek dan knob sama-sama putih di tema gelap,
      dan trek nyaris sama dengan latar di tema terang.
   ========================================================================== */
@layer modern {

  /* ---------- 1. CHAT HUBUNGI CS ---------- */
  html body .cs-msgs { background: transparent !important; border-radius: 0 !important; }

  /* pesan lawan (admin / AI) */
  html body .cs-msg:not(.me):not(.mine) {
    background: var(--card-2) !important; background-image: none !important;
    border: 1px solid var(--border) !important; box-shadow: none !important;
    color: var(--text) !important; -webkit-text-fill-color: var(--text) !important;
  }
  /* pesan kita — abu-abu lembut, BUKAN hitam */
  html body .cs-msg.me, html body .cs-msg.mine {
    background: color-mix(in srgb, var(--text) 11%, var(--card)) !important; background-image: none !important;
    border: 1px solid var(--border) !important; box-shadow: none !important;
    color: var(--text) !important; -webkit-text-fill-color: var(--text) !important;
  }
  html body .cs-msg.pending { opacity: .65 !important; }
  html body .cs-msg *, html body .cs-msg .cs-text, html body .cs-msg .cs-quote b, html body .cs-msg .cs-quote span {
    -webkit-text-fill-color: currentColor !important;
  }
  html body .cs-msg .cs-text { color: var(--text) !important; }
  html body .cs-msg .cs-who { color: var(--mut) !important; font-weight: 600 !important; }
  html body .cs-msg .cs-who-ai { color: var(--text) !important; }
  html body .cs-msg .cs-time { color: var(--mut) !important; opacity: .9 !important; }
  html body .cs-msg .cs-quote { background: var(--chip) !important; color: var(--text) !important; border-left: 3px solid var(--border) !important; border-radius: 10px !important; }
  html body .cs-msg .cs-reply-btn, html body .cs-msg .cs-reply-btn svg { color: var(--mut) !important; stroke: currentColor !important; }
  html body .cs-sys, html body .cs-empty, html body .cs-typing, html body .cs-ended-text {
    color: var(--mut) !important; -webkit-text-fill-color: currentColor !important;
  }
  html body .cs-compose textarea { color: var(--text) !important; -webkit-text-fill-color: var(--text) !important; caret-color: var(--text) !important; }
  html body .cs-compose textarea::placeholder { color: var(--mut) !important; -webkit-text-fill-color: var(--mut) !important; opacity: 1 !important; }
  html body .cs-replybar, html body .cs-preview { background: var(--card) !important; color: var(--text) !important; }
  html body .cs-replybar-body, html body .cs-replybar-body * { color: var(--text) !important; -webkit-text-fill-color: currentColor !important; }
  html body .cs-attach { background: var(--chip) !important; color: var(--text) !important; border: 0 !important; }
  html body .cs-attach svg, html body .cs-send svg { stroke: currentColor !important; }
  html body .cs-send { background: var(--btn-bg) !important; color: var(--btn-fg) !important; -webkit-text-fill-color: var(--btn-fg) !important; }

  /* daftar percakapan (admin CS) */
  html body .cs-thread, html body .cs-thread * { color: var(--text) !important; -webkit-text-fill-color: currentColor !important; }
  html body .cs-thread .cs-count, html body .cs-thread [class*="-sub"], html body .cs-thread [class*="-time"] { color: var(--mut) !important; }

  /* ---------- 2. CHAT GLOBAL ---------- */
  html body .gc-row .gc-bubble, html body .gc-bubble {
    background: var(--card-2) !important; background-image: none !important;
    border: 1px solid var(--border) !important; box-shadow: none !important;
    color: var(--text) !important; -webkit-text-fill-color: var(--text) !important;
  }
  html body .gc-row.me .gc-bubble, html body .gc-bubble-me, html body .gc-row.me .gc-bubble.gc-bubble-me {
    background: color-mix(in srgb, var(--text) 11%, var(--card)) !important; background-image: none !important;
    border: 1px solid var(--border) !important; box-shadow: none !important;
    color: var(--text) !important; -webkit-text-fill-color: var(--text) !important;
  }
  html body .gc-row .gc-bubble *, html body .gc-row.me .gc-bubble * { -webkit-text-fill-color: currentColor !important; }
  html body .gc-row .gc-text { color: var(--text) !important; }
  html body .gc-row .gc-name-t, html body .gc-row.me .gc-name-t { color: var(--text) !important; -webkit-text-fill-color: var(--text) !important; }
  html body .gc-row .gc-time, html body .gc-row .gc-views, html body .gc-row .gc-vc, html body .gc-row .gc-edited,
  html body .gc-row.me .gc-time, html body .gc-row.me .gc-views, html body .gc-row.me .gc-vc, html body .gc-row.me .gc-edited {
    color: var(--mut) !important; -webkit-text-fill-color: var(--mut) !important;
  }
  html body .gc-row .gc-more svg, html body .gc-row .gc-eye svg, html body .gc-row.me .gc-more svg, html body .gc-row.me .gc-eye svg {
    stroke: var(--mut) !important; color: var(--mut) !important;
  }
  html body .gc-quote, html body .gc-quote * { color: var(--text) !important; -webkit-text-fill-color: currentColor !important; }
  html body .gc-input, html body .gc-compose textarea { color: var(--text) !important; -webkit-text-fill-color: var(--text) !important; caret-color: var(--text) !important; }
  html body .gc-compose textarea::placeholder { color: var(--mut) !important; -webkit-text-fill-color: var(--mut) !important; opacity: 1 !important; }
  html body .gc-send { background: var(--btn-bg) !important; color: var(--btn-fg) !important; -webkit-text-fill-color: var(--btn-fg) !important; }

  /* ---------- 3. TEKS GRADIEN YANG MENJADI TRANSPARAN → teks solid ---------- */
  html body :is(.sb-brand span, .lp-brand, .lp-brand-box, .brand-wordmark, .foot-title, .lp-made, .lp-hl, .lp-hl-anim,
                .stats-num, .sd-balance, .lp-footer-name, .uname) {
    background: none !important; background-image: none !important;
    -webkit-background-clip: border-box !important; background-clip: border-box !important;
    color: var(--text) !important; -webkit-text-fill-color: var(--text) !important;
    animation: none !important; opacity: 1 !important;
  }
  html body .lp-brand .lp-brand-box, html body .lp-footer .lp-brand-box, html body .app-sidebar .lp-brand-box {
    background: none !important; background-image: none !important;
    color: var(--text) !important; -webkit-text-fill-color: var(--text) !important;
  }
  html body .lp-made { color: var(--mut) !important; -webkit-text-fill-color: var(--mut) !important; }

  /* ---------- 4. SALDO DI SIDEBAR ---------- */
  html body .sb-balance { background: var(--card-2) !important; background-image: none !important; box-shadow: none !important; }
  html body .sb-balance-label { color: var(--mut) !important; -webkit-text-fill-color: var(--mut) !important; }
  html body .sb-balance-amount {
    background: none !important; background-image: none !important;
    -webkit-background-clip: border-box !important; background-clip: border-box !important;
    color: var(--text) !important; -webkit-text-fill-color: var(--text) !important; font-weight: 700 !important;
  }

  /* ---------- 5. LATAR GRADIEN KOSONG + TEKS TERANG/GELAP → solid kontras ---------- */
  html body :is(.pager button.active, .gw-nav-btn.gw-nav-primary, .lp-step-no, .pay-done-ic, .pay-method-ic, .cfg-nav-ic,
                .acct-ava, .cat-item-ic, .lb-you, .pricing-plan .popular-label) {
    background: var(--btn-bg) !important; background-image: none !important;
    color: var(--btn-fg) !important; -webkit-text-fill-color: var(--btn-fg) !important; border-color: transparent !important;
  }
  html body .lb-you * { color: var(--btn-fg) !important; -webkit-text-fill-color: var(--btn-fg) !important; }
  html body :is(.pay-done-ic, .pay-method-ic, .cfg-nav-ic, .cat-item-ic, .lp-step-no) svg { stroke: currentColor !important; color: inherit !important; }
  html body input[type=file]::file-selector-button {
    background: var(--btn-bg) !important; background-image: none !important; color: var(--btn-fg) !important; border: 0 !important;
  }

  /* ---------- 6. SWITCH TEMA DI SIDEBAR (#theme-toggle .sb-sw) ---------- */
  html body #app-menu #theme-toggle .sb-sw, html body .app-sidebar #theme-toggle .sb-sw {
    display: block !important; position: relative !important; flex: none !important;
    width: 46px !important; height: 26px !important; border-radius: 999px !important;
    background-image: none !important; box-sizing: border-box !important;
    /* terang: trek abu tegas */
    background-color: #c4c4cc !important;
    box-shadow: inset 0 0 0 1px rgba(17,17,20,.22) !important;
    transition: background-color .2s ease !important;
  }
  html body #app-menu #theme-toggle .sb-sw::after, html body .app-sidebar #theme-toggle .sb-sw::after {
    content: "" !important; position: absolute !important; top: 3px !important; left: 3px !important;
    width: 20px !important; height: 20px !important; border-radius: 50% !important;
    background: #ffffff !important; box-shadow: 0 1px 3px rgba(0,0,0,.4) !important;
    transition: transform .2s ease !important; display: block !important;
  }
  /* gelap: trek terang, knob gelap → selalu kontras */
  html[data-theme="dark"] body #app-menu #theme-toggle .sb-sw, html[data-theme="dark"] body .app-sidebar #theme-toggle .sb-sw {
    background-color: #f4f4f6 !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35) !important;
  }
  html[data-theme="dark"] body #app-menu #theme-toggle .sb-sw::after, html[data-theme="dark"] body .app-sidebar #theme-toggle .sb-sw::after {
    background: #0b0b0d !important; box-shadow: 0 1px 3px rgba(0,0,0,.5) !important; transform: translateX(20px) !important;
  }
  html body #app-menu #theme-toggle .sb-lbl, html body #app-menu #theme-toggle #theme-label {
    -webkit-text-fill-color: currentColor !important; opacity: 1 !important; visibility: visible !important;
  }
  html body #app-menu #theme-toggle .sb-lbl { color: var(--text) !important; }
  html body #app-menu #theme-toggle #theme-label { color: var(--mut) !important; }
  @media (prefers-reduced-motion: reduce) {
    html body #app-menu #theme-toggle .sb-sw, html body #app-menu #theme-toggle .sb-sw::after { transition: none !important; }
  }
}

/* Perbaikan akhir (ikon role, switch, ikon SVG).
   1) Ikon badge role: developer=code-2, admin=shield-check, super premium=crown, premium=star.
   2) Switch/toggle selalu kelihatan di mode gelap & terang.
   3) Pengaman ikon SVG agar tidak hilang. */


/* ================= 1) IKON ROLE ================= */
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .si-badge.rb::before,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .rb::before {
  content: "" !important; display: inline-block !important; flex: none !important;
  width: 12px !important; height: 12px !important; margin-right: 4px;
  background: currentColor !important;
  -webkit-mask: var(--rb-ic) center / contain no-repeat !important; mask: var(--rb-ic) center / contain no-repeat !important;
}
/* user biasa: ikon user */
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .rb.rb-user::before { --rb-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
/* developer = lucide code-2 (code-xml) */
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .rb.rb-developer::before { --rb-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 16 4-4-4-4'/%3E%3Cpath d='m6 8-4 4 4 4'/%3E%3Cpath d='m14.5 4-5 16'/%3E%3C/svg%3E"); }
/* admin = lucide shield-check */
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .rb.rb-admin::before { --rb-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
/* premium (dan role custom biasa) = lucide star */
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .rb.rb-premium::before,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .rb.rb-custom::before { --rb-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.878L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z'/%3E%3C/svg%3E"); }
/* super premium (role custom bertanda .rb-crown) = lucide crown */
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .rb.rb-crown::before { --rb-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z'/%3E%3Cpath d='M5.5 21h13'/%3E%3C/svg%3E"); }

/* Switch memakai layer 'modern' (layer paling awal = menang untuk !important). */
@layer modern {
/* ================= 2) SWITCH ================= */
/* terang */
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body :is(.cfg-switch-track, .pr-track, .cl-track, .rs-track, .cm-track, .mode-group .track) {
  background: #c9c9d1 !important; background-image: none !important;
  border: 1px solid rgba(0,0,0,.28) !important; box-shadow: none !important;
}
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body :is(.cfg-switch-track, .pr-track, .cl-track, .rs-track, .cm-track, .mode-group .track)::after {
  background: #ffffff !important; box-shadow: 0 1px 3px rgba(0,0,0,.4) !important;
}
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .cfg-switch-input:checked + .cfg-switch-track,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .cfg-switch-input:checked ~ .cfg-switch-track,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .pr-toggle input:checked + .pr-track,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .pr-toggle input:checked ~ .pr-track,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .cl-row input:checked + .cl-track,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .cl-row input:checked ~ .cl-track,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .rs-switch input:checked + .rs-track,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .rs-switch input:checked ~ .rs-track,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .cm-item input:checked + .cm-track,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .cm-item input:checked ~ .cm-track,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .mode-group input:checked + .track,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .mode-group input:checked ~ .track {
  background: #16161a !important; background-image: none !important; border-color: #16161a !important; box-shadow: none !important;
}
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .cfg-switch-input:checked + .cfg-switch-track::after,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .cfg-switch-input:checked ~ .cfg-switch-track::after,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .pr-toggle input:checked + .pr-track::after,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .pr-toggle input:checked ~ .pr-track::after,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .cl-row input:checked + .cl-track::after,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .cl-row input:checked ~ .cl-track::after,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .rs-switch input:checked + .rs-track::after,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .rs-switch input:checked ~ .rs-track::after,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .cm-item input:checked + .cm-track::after,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .cm-item input:checked ~ .cm-track::after,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .mode-group input:checked + .track::after,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme] body .mode-group input:checked ~ .track::after { background: #ffffff !important; }
/* gelap: trek abu terang bergaris, knob putih; aktif = trek putih, knob hitam */
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body :is(.cfg-switch-track, .pr-track, .cl-track, .rs-track, .cm-track, .mode-group .track) {
  background: #4a4a54 !important; background-image: none !important;
  border: 1px solid rgba(255,255,255,.42) !important; box-shadow: none !important;
}
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body :is(.cfg-switch-track, .pr-track, .cl-track, .rs-track, .cm-track, .mode-group .track)::after {
  background: #f4f4f6 !important; box-shadow: 0 1px 3px rgba(0,0,0,.6) !important;
}
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .cfg-switch-input:checked + .cfg-switch-track,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .cfg-switch-input:checked ~ .cfg-switch-track,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .pr-toggle input:checked + .pr-track,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .pr-toggle input:checked ~ .pr-track,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .cl-row input:checked + .cl-track,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .cl-row input:checked ~ .cl-track,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .rs-switch input:checked + .rs-track,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .rs-switch input:checked ~ .rs-track,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .cm-item input:checked + .cm-track,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .cm-item input:checked ~ .cm-track,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .mode-group input:checked + .track,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .mode-group input:checked ~ .track {
  background: #f4f4f6 !important; background-image: none !important; border-color: #ffffff !important; box-shadow: 0 0 0 2px rgba(255,255,255,.18) !important;
}
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .cfg-switch-input:checked + .cfg-switch-track::after,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .cfg-switch-input:checked ~ .cfg-switch-track::after,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .pr-toggle input:checked + .pr-track::after,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .pr-toggle input:checked ~ .pr-track::after,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .cl-row input:checked + .cl-track::after,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .cl-row input:checked ~ .cl-track::after,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .rs-switch input:checked + .rs-track::after,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .rs-switch input:checked ~ .rs-track::after,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .cm-item input:checked + .cm-track::after,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .cm-item input:checked ~ .cm-track::after,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .mode-group input:checked + .track::after,
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .mode-group input:checked ~ .track::after { background: #0b0b0d !important; box-shadow: 0 1px 3px rgba(0,0,0,.5) !important; }
/* sakelar tema di sidebar */
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="light"] body .sb-sw { background-color: #c4c4cc !important; box-shadow: inset 0 0 0 1px rgba(17,17,20,.3) !important; }
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .sb-sw { background-color: #f4f4f6 !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5) !important; }
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body .sb-sw::after { background: #0b0b0d !important; }
/* checkbox & radio polos */
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body input[type="checkbox"], html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="dark"] body input[type="radio"] { accent-color: #f4f4f6; color-scheme: dark; }
html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="light"] body input[type="checkbox"], html:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j):not(#_k):not(#_l):not(#_m):not(#_n):not(#_o):not(#_p):not(#_q):not(#_r):not(#_s):not(#_t):not(#_u)[data-theme="light"] body input[type="radio"] { accent-color: #16161a; color-scheme: light; }

/* ================= 3) PENGAMAN IKON ================= */
:where(svg.ico) { stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
:where(svg.ico:not([width]):not([height])) { width: 1.15em; height: 1.15em; }
:where(.emo-ic > svg.ico) { width: 1.1em; height: 1.1em; }

}
