/* Tema warna & variabel global — Premium Black */

:root {
  --csz:36px;
  --ov:.75;
  --sz:var(--csz);

  /* permukaan */
  --bg:#050507;
  --bg2:#0a0a10;
  --surf:#0d0d13;
  --surf2:#15151e;

  /* teks */
  --ink:#f5f5f7;
  --mute:#8d8d9b;

  /* garis & aksen */
  --line:rgba(255,255,255,.08);
  --line2:rgba(255,255,255,.18);
  --acc:#ff4f8b;
  --acc2:#8b5cf6;
  --accink:#fff;
  --grad:linear-gradient(135deg,var(--acc),var(--acc2));
  --good:#34d399;

  /* warna turunan (ikut berubah saat ganti tema) */
  --w:255,255,255;                 /* warna tint untuk lapisan transparan (putih di tema gelap) */
  --sh:#000;                       /* warna bayangan */
  --back:rgba(0,0,0,.82);          /* latar belakang dialog */
  --barbg:rgba(5,5,7,.94);         /* bar sticky */
  --topbtn:rgba(20,20,30,.75);     /* tombol kembali ke atas */
  --toastbg:rgba(24,24,34,.9);
  --dlg1:#12121a; --dlg2:#09090d;  /* dialog detail */
  --code:#050507; --codeink:#b8b8c6;
  --pv1:#1b1b26; --pv2:#0b0b11;    /* latar preview skin di dialog */
  --sb:#2a2a38; --sbh:#3a3a4e;     /* scrollbar */
  --abby:#b4b4c2; --abtxt:#c3c3cf; --abshadow:0 1px 8px #000;
  --modeon:#fff; --modeon-ink:#09090c; --modeon-sh:0 6px 20px -6px rgba(255,255,255,.35);
  --tEvent:#ffb84d; --tBeli:#c4b5fd; --tTimap:#7dd3fc;
  --au1:.20; --au2:.20; --au3:.12;  /* kekuatan cahaya latar */

  /* gerak */
  --ease:cubic-bezier(.22,1,.36,1);
  --r:18px;

  color-scheme:dark;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}

/* ---------- Tema Putih ---------- */
:root[data-theme="light"] {
  --bg:#f6f4fc;
  --bg2:#efecf9;
  --surf:#ffffff;
  --surf2:#f4f1fc;

  --ink:#18162a;
  --mute:#6a6880;

  --line:rgba(40,30,90,.12);
  --line2:rgba(40,30,90,.24);
  --acc:#ec407a;
  --acc2:#7c4dff;
  --good:#059669;

  --w:30,25,70;
  --sh:rgba(60,40,130,.35);
  --back:rgba(40,30,90,.45);
  --barbg:rgba(246,244,252,.94);
  --topbtn:rgba(255,255,255,.9);
  --toastbg:rgba(255,255,255,.96);
  --dlg1:#ffffff; --dlg2:#f1eefb;
  --code:#f4f1fc; --codeink:#3b3956;
  --pv1:#ffffff; --pv2:#e8e4f6;
  --sb:#c9c3e0; --sbh:#b2aad2;
  --abby:#6a6880; --abtxt:#4a4862; --abshadow:none;
  --modeon:#ffffff; --modeon-ink:#18162a; --modeon-sh:0 4px 14px -4px rgba(60,40,130,.35);
  --tEvent:#b45309; --tBeli:#6d28d9; --tTimap:#0369a1;
  --au1:.16; --au2:.16; --au3:.08;

  color-scheme:light;
}
