/* ====== Reset ringkas ====== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f5faff;            /* Putih kebiruan */
  color: #0f172a;                  /* Slate-900 */
  padding: 20px;
  line-height: 1.5;
}

/* ====== Heading & teks ====== */
h2 { margin: 0 0 12px; color: #0b1b2b; font-weight: 700; }
h3 { margin: 0 0 12px; color: #0b1b2b; font-weight: 600; }
h4 { margin: 16px 0 8px; color: #0b1b2b; font-weight: 600; }
a { color: #0ea5e9; text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: #64748b; }
.msg { margin: 10px 0 4px; color: #0369a1; }

/* ====== Card ====== */
.card {
  background: #ffffff;
  border: 1px solid #dbeafe;       /* biru muda */
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.06);
}

/* ====== Input & Select ====== */
input, select {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid #cbd5e1;       /* slate-300 */
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder { color: #94a3b8; }
input:focus, select:focus {
  border-color: #0ea5e9;           /* biru laut */
  box-shadow: 0 0 0 4px rgba(14,165,233,.15);
}

/* ====== Button ====== */
button {
  background: #0ea5e9;             /* biru laut */
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 16px rgba(14,165,233,.25);
}
a.btn, .btn-secondary {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 14px;
  transition: background .2s, color .2s, box-shadow .2s;
}

.btn-secondary {
  background: #e2e8f0;   /* abu terang */
  color: #0f172a;        /* teks gelap */
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.btn-secondary:hover {
  background: #cbd5e1;   /* abu sedikit lebih gelap */
}
button:hover { background: #0284c7; }
button:active { transform: translateY(1px); }
button.danger {
  background: #ef4444;
  box-shadow: 0 6px 16px rgba(239,68,68,.25);
}
button.danger:hover { background: #dc2626; }

/* ====== Tabs (Menu Atas) ====== */
.tabs {
  display: flex;
  gap: 10px;
  margin: 8px 0 16px;
  flex-wrap: wrap;
}
.tab {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;             /* pill */
  background: #e8f4ff;
  border: 1px solid #cfe8ff;
  color: #075985;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, box-shadow .2s;
}
.tab:hover { background: #dff0ff; }
.tab.active {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(14,165,233,.28);
}

/* ====== Tabel ====== */
table.list {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
table.list thead th {
  background: #eef6ff;
  color: #0b1b2b;
  text-align: left;
  padding: 10px;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
}
table.list tbody td {
  padding: 10px;
  border-bottom: 1px solid #eef2f7;
}
table.list tbody tr:hover {
  background: #f7fbff;
}

/* ====== Grid helper ====== */
.grid2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.row { display: flex; align-items: center; gap: 8px; }

/* ====== Login box ====== */
.login-box {
  max-width: 360px;
  margin: 72px auto;
  text-align: center;
}

/* ====== Form layout rapi ====== */
.form { display: grid; gap: 14px; max-width: 1080px; }
.form-row { display: grid; gap: 10px; }
.form-actions { display: flex; gap: 10px; margin-top: 6px; }

@media (min-width: 900px) {
  .form-row { grid-template-columns: 220px 1fr; align-items: center; }
  .form-actions { margin-left: 220px; }
}

label { font-weight: 600; color: #0b1b2b; }
.field-wrap { display: grid; gap: 6px; }
.hint { color: #64748b; font-size: 12px; }

/* tombol sekunder */
.btn-secondary {
  background: #e2e8f0; color: #0f172a;
  box-shadow: none;
}
.btn-secondary:hover { background:#cbd5e1; }

/* Input + buttons sejajar */
.input-group {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}
.btn-ghost{
  background: #e2f2ff;
  color:#0369a1;
  box-shadow:none;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #cfe8ff;
}
.btn-ghost:hover{ background:#d6ecff; }

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
}
.btn-outline {
  background: #ffffff;
  color: #0ea5e9;
  border: 1px solid #0ea5e9;
  box-shadow: none;
}
.btn-outline:hover {
  background: #e6f6ff;
}
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.tabs {
  display: flex;
  gap: 8px;
}

.logout {
  background: #e3342f;
  color: #fff;
  padding: 6px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.logout:hover {
  background: #cc1f1a;
}

:root{
  --card:#ffffff;
  --primary:#2f67ff;
  --primary-2:#00b8ff;
  --ring:#cfe6ff;
  --muted:#8aa1c4;
}

html,body{height:100%;}
body{
  background: linear-gradient(180deg,#f6fbff 0%, #edf6ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:#102a43;
}

/* ========== Login ========== */
.auth-wrap{
  height:100%;
  display:grid;
  place-items:center;
  padding:24px;
}
.login-card{
  width:min(420px, 92vw);
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border:1px solid #e8f0ff;
  border-radius:18px;
  padding:28px 28px 24px;
  text-align:center;
  box-shadow: 0 20px 60px rgba(13,89,177,.08), 0 8px 24px rgba(13,89,177,.06);
}
.logo-circle{
  width:56px; height:56px; border-radius:14px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color:#fff; display:grid; place-items:center;
  font-weight:800; letter-spacing:.4px; margin:0 auto 10px;
  box-shadow:0 10px 26px rgba(47,103,255,.35);
}
.login-card h1{margin:2px 0 2px; font-size:20px;}
.login-card .sub{margin:0 0 16px; font-size:13px; color:var(--muted);}

.field{margin:10px 0;}
.login-card input{
  width:100%; height:44px; padding:0 14px;
  border:1px solid #d9e6ff; border-radius:12px; outline:0;
  background:#fff; color:#102a43;
}
.login-card input::placeholder{color:#9fb3c8;}
.login-card input:focus{
  border-color:#99ccff;
  box-shadow:0 0 0 4px var(--ring);
}

.btn-primary{
  width:100%; height:44px; margin-top:8px;
  border:0; border-radius:12px; cursor:pointer;
  color:#fff; font-weight:600; letter-spacing:.2px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow:0 12px 26px rgba(0,130,255,.25);
}
.btn-primary:hover{filter:brightness(0.98);}
.btn-primary:active{transform:translateY(1px);}

.msg{min-height:16px; margin-top:10px; font-size:12px; color:#e3342f;}

input[readonly] {
  background: #f9fbfd;
  cursor: default;
}

/* === Cloaking table tidy === */
.cloak-table {
  table-layout: fixed;            /* kolom konsisten */
  width: 100%;
}
.cloak-table th, .cloak-table td {
  vertical-align: middle;
  padding: 10px 12px;
}

.cloak-table th:nth-child(1) { width: 52px; }     /* ID */
.cloak-table th:nth-child(2) { width: 260px; }    /* Domain */
.cloak-table th:nth-child(3) { width: 100px; }    /* Mode */
.cloak-table th:nth-child(4) { width: auto; }     /* Info (flex) */
.cloak-table th:nth-child(5) { width: 210px; }    /* API Token */
.cloak-table th:nth-child(6) { width: 260px; }    /* Aksi */

.cloak-info a, .cloak-info small {
  display: inline-block;
  max-width: 100%;
  color: #2563eb;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;             /* potong rapi bila panjang */
}

.token-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.token-chip {
  background: #eef4ff;
  color: #1e3a8a;
  border: 1px solid #c7dbff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12.5px;
}
.btn-copy-token.btn-sm {
  padding: 6px 10px;
  border-radius: 8px;
  background: #e6f0ff;
  color: #1e40af;
  border: 1px solid #c8d7ff;
}
.btn-copy-token.btn-sm:hover { filter: brightness(0.98); }

/* Aksi kanan + jarak antar tombol konsisten */
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.actions .btn-sm { padding: 7px 12px; }

/* Responsive: di layar sempit rapikan lebar kolom */
@media (max-width: 980px){
  .cloak-table th:nth-child(5){ width: 180px; }
  .cloak-table th:nth-child(6){ width: 220px; }
}
@media (max-width: 720px){
  .cloak-table { table-layout: auto; }
  .cloak-table th:nth-child(2){ width: 200px; }
  .cloak-info a, .cloak-info small { white-space: normal; }
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 8px;              /* jarak antara logo dan teks */
  font-size: 22px;       /* biar sesuai */
  font-weight: 600;
}

.logo-title2 {
  align-items: center;
 width: 60px;
 height: auto;
}

.logo-title .logo-icon {
  height: 28px;          /* sesuaikan ukuran logo */
  width: auto;
  border-radius: 6px;    /* opsional: rounded */
}

.copyright {
 text-align: center;
 font-size: 10px;
}

.checks .check {
    display:inline-flex;
    align-items:center;
    gap:6px;
}

.filter-inline {
  display: flex;
  gap: 20px;        /* jarak antar checkbox */
  align-items: center;
  flex-wrap: wrap;  /* kalau layar kecil, bisa turun ke bawah */
}

.filter-inline .checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.table.clean { width:100%; border-collapse:collapse; }
.table.clean th, .table.clean td{ padding:10px 12px; border-bottom:1px solid #eef1f6; }
.table.clean thead th{ background:#f6f9ff; color:#23324a; font-weight:700; }
.table.clean tbody tr:hover{ background:#fbfdff; }

/* style khusus tombol Batal */
.modal .btn.ghost {
  background: #e11d48;   /* merah */
  border: 1px solid #e11d48;
  color: #fff;           /* teks putih */
  font-weight: 600;
}

.modal .btn.ghost:hover {
  background: #be123c;   /* merah lebih gelap saat hover */
  border-color: #be123c;
}

/* Tombol Danger (Hapus Token / Batal) */
button.danger,
.btn.danger,
.btn-outline.danger {
  background: #e11d48;   /* merah */
  border: 1px solid #e11d48;
  color: #fff !important;  /* teks putih */
  font-weight: 600;
}

button.danger:hover,
.btn.danger:hover,
.btn-outline.danger:hover {
  background: #be123c;   /* merah gelap saat hover */
  border-color: #be123c;
}

.table-wrap { overflow: auto; border-radius: 12px; }
.table-foot { margin-top: 8px; font-size: 12px; color: #64748b; }

.list .cell-ellipsis {
  max-width: 0;              /* supaya table layout bisa ellipsis */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list td a {
  display: inline-block;
  max-width: 100%;
  color: #0d5bd8;
  text-decoration: none;
}
.list td a:hover { text-decoration: underline; }

/* tombol kecil selaras dengan yang lain */
.btn-sm { padding: 6px 10px; font-size: .9rem; }

/* css/style.css */
.badge{display:inline-block;padding:.15rem .5rem;border-radius:8px;background:#e5e7eb;color:#334155;font-size:.75rem}
.badge.success{background:#dcfce7;color:#166534}

/* Tombol Akun di samping Logout */
.nav-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-bar-right .tab {
  background: #f1f5f9;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
  transition: background .2s;
}
.nav-bar-right .tab.active {
  background: #0d5bd8;
  color: #fff;
}
.nav-bar-right .tab:hover {
  background: #e2e8f0;
}

/* Tombol Akun */
.account-btn {
  background: #0d5bd8;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.account-btn:hover {
  background: #0b4ab0;
}

/* Tombol Logout (sudah ada, tapi biar konsisten saya ulang) */
.logout {
  background: #dc2626;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.logout:hover {
  background: #b91c1c;
}

.btn {
  border:none;
  border-radius:10px;
  padding:10px 14px;
  cursor:pointer;
}
.btn-light {
  background:#f1f5f9;
  color:#111827;
}

/* ===== Modal generik ===== */
.modal[hidden]{ display:none !important; }
.modal{
  position: fixed; inset: 0; z-index: 1000;
}
.modal__backdrop{
  position:absolute; inset:0;
  background: rgba(15,23,42,.45);   /* slate-900/45 */
  backdrop-filter: blur(2px);
}
.modal__panel{
  position: relative; z-index: 1;
  width: min(820px, 92vw);
  margin: 6vh auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(2,132,199,.20);
  overflow: hidden;
}
.modal__head{
  display:flex; justify-content:space-between; align-items:center;
  padding: 12px 14px;
  background: #f6f9ff;
  border-bottom: 1px solid #e5e7eb;
}
.modal__body{ padding: 12px 14px; }
/* Header klaim kiri semua */
#wbClaimsTable thead th {
  text-align: left !important;
}

/* Revert body ke default (biar nggak ikut aturan lama) */
#wbClaimsTable tbody td {
  text-align: inherit;   /* atau 'left' kalau mau paksa kiri */
}
/* --- Dropdown Bot Telegram --- */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown .dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 8px 14px;
}
.nav-dropdown .chev {
  font-size: 12px;
  opacity: .9;
}

/* menu */
.nav-dropdown .dropdown-menu {
  position: absolute;
  right: 0;               /* nempel kanan biar rapi dekat tombol */
  top: calc(100% + 8px);
  min-width: 180px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e5eaf3;
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(15, 76, 129, .12);
  display: none;          /* default hidden */
  z-index: 40;
}
.nav-dropdown.open .dropdown-menu { display: block; }

.nav-dropdown .dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: #0f172a;
  text-decoration: none;
  white-space: nowrap;
}
.nav-dropdown .dropdown-menu a:hover {
  background: #f1f5f9;
}

/* kecilkan sedikit agar matching tombol lain */
.nav-bar-right .account-btn.dropdown-trigger {
  background: #0d5bd8;
  padding: 8px 12px;
}
/* === Samakan ukuran semua tombol kanan (Bot Telegram, Temukankami, Akun) === */
.nav-bar-right .account-btn,
.nav-dropdown .dropdown-trigger {
  background: #0d5bd8;
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 16px !important;   /* samakan padding */
  border-radius: 10px;
  height: 40px;                    /* tinggi konsisten */
  line-height: 20px;               /* teks tidak “menekan” */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: none;
}

.nav-dropdown .dropdown-trigger:hover,
.nav-bar-right .account-btn:hover { background: #0b4ab0; }

/* caret kecil & rata tengah */
.nav-dropdown .chev { font-size: 12px; line-height: 0; }

/* menu dropdown tetap */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown .dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 180px; padding: 6px; background: #fff;
  border: 1px solid #e5eaf3; border-radius: 10px;
  box-shadow: 0 12px 26px rgba(15,76,129,.12); display: none; z-index: 40;
}
.nav-dropdown.open .dropdown-menu { display: block; }
.nav-dropdown .dropdown-menu a { display:block; padding:9px 12px; border-radius:8px; color:#0f172a; font-weight:600; }
.nav-dropdown .dropdown-menu a:hover { background:#f1f5f9; }

/* Modal body scroll agar tidak oversize */
.modal__body{
  max-height: 70vh;         /* batasi tinggi konten */
  overflow: auto;
}
/* preview rule */
.code{
  width:100%;
  min-height:44px;
  resize:vertical;
  padding:10px 12px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#f6f9ff;
  color:#0b1b2b;
  font: 500 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
/* ====== Subs Domain New – Opsi & Preview ====== */
.rule-box{
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:12px 14px;
  background:#fff;
  margin-top:8px;
}
.rule-box .rule-head{
  font-weight:600; color:#0b1b2b; margin-bottom:10px;
  display:flex; align-items:center; gap:12px;
}
.rule-box .rule-opt{
  display:flex; align-items:center; gap:10px;
}
.rule-box .rule-sample{
  margin-top:10px;
  padding:10px 12px;
  background:#f6f9ff;
  border:1px solid #e5eaf3;
  border-radius:10px;
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color:#0f172a;
  overflow:auto;
  white-space:nowrap;
}

/* Tabel v2 – samakan tampilan */
.list td.cell-ellipsis{
  max-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* Badge kecil untuk QSA */
.badge.qsa{
  display:inline-block; padding:2px 8px; border-radius:999px;
  background:#e6f4ff; color:#075985; font-size:12px; font-weight:700;
}
.badge.qsa.off{
  background:#f3f4f6; color:#6b7280; font-weight:600;
}

/* Tombol aksi kecil sejajar */
.actions-inline{ white-space:nowrap; }
.actions-inline .btn-sm{ margin-left:6px; }
/* preview rule */
.code{
  width:100%;
  min-height:44px;
  resize:vertical;
  padding:10px 12px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#f6f9ff;
  color:#0b1b2b;
  font: 500 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
:root{
  --imlek-white:#fffaf2;
  --imlek-paper:#fff7ed;
  --imlek-red:#c40022;
  --imlek-red2:#ff2d55;
  --imlek-gold:#ffd166;
  --imlek-gold2:#ffb703;

  --ink:#1b1b1b;          /* teks gelap agar kontras di mode cerah */
  --muted-ink:#5b5560;
  --line:rgba(196,0,34,.18);
}

/* ===== BASE CERAH PUTIH + MERAH ===== */
:root{ color-scheme: light; }  /* paksa nuansa cerah */
html,body{ background: var(--imlek-white); }

body{
  color: var(--ink) !important;
  background:
    radial-gradient(900px 520px at 12% 10%, rgba(255,45,85,.18) 0%, transparent 60%),
    radial-gradient(820px 520px at 88% 12%, rgba(255,183,3,.16) 0%, transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(196,0,34,.10) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--imlek-paper) 100%) !important;
}

/* teks & heading tetap jelas */
h2,h3,h4{ color: var(--ink) !important; text-shadow:none !important; }
label{ color: var(--ink) !important; }
.muted{ color: var(--muted-ink) !important; }
.msg{ color: var(--imlek-red) !important; }
a{ color: var(--imlek-red2) !important; }
a:hover{ color: var(--imlek-red) !important; text-decoration: underline; }

/* ===== CARD / PANEL jadi “kertas putih” ===== */
.card, .login-card, .modal__panel{
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(196,0,34,.18) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.08) !important;
  color: var(--ink) !important;
}
.card::before,
.login-card::before,
.modal__panel::before{
  content:"";
  position:absolute; inset:10px;
  border-radius: inherit;
  border: 1px dashed rgba(196,0,34,.22);
  pointer-events:none;
  opacity:.85;
}

/* ===== INPUTS ===== */
input, textarea, select{
  background:#fff !important;
  color: var(--ink) !important;
  border: 1px solid rgba(196,0,34,.20) !important;
}
input::placeholder, textarea::placeholder{ color: rgba(27,27,27,.45) !important; }
input:focus, textarea:focus, select:focus{
  border-color: rgba(255,45,85,.75) !important;
  box-shadow: 0 0 0 4px rgba(255,45,85,.14) !important;
}
input[readonly]{
  background:#fff !important;
  color: var(--ink) !important;
  border-color: rgba(196,0,34,.18) !important;
}

/* ===== BUTTONS: merah cerah + emas ===== */
button, .btn, .btn-primary{
  color:#fff !important;
  font-weight:800 !important;
  background: linear-gradient(90deg, var(--imlek-red2), var(--imlek-red)) !important;
  box-shadow: 0 10px 22px rgba(255,45,85,.20) !important;
  position:relative;
  overflow:hidden;
}
button:hover, .btn:hover, .btn-primary:hover{
  filter: brightness(1.03);
  box-shadow: 0 14px 26px rgba(255,45,85,.24) !important;
}
button::after, .btn::after, .btn-primary::after{
  content:"";
  position:absolute; inset:-40% -60%;
  background: linear-gradient(90deg, transparent 0%,
    rgba(255,255,255,.18) 45%,
    rgba(255,255,255,.32) 50%,
    rgba(255,255,255,.18) 55%,
    transparent 100%);
  transform: rotate(12deg) translateX(-60%);
  transition: transform .55s ease;
}
button:hover::after, .btn:hover::after, .btn-primary:hover::after{
  transform: rotate(12deg) translateX(60%);
}

/* secondary / outline */
.btn-secondary, .btn-ghost, .btn-outline{
  background: rgba(196,0,34,.06) !important;
  color: var(--imlek-red) !important;
  border: 1px solid rgba(196,0,34,.18) !important;
}
.btn-secondary:hover, .btn-ghost:hover, .btn-outline:hover{
  background: rgba(196,0,34,.10) !important;
}

/* danger */
button.danger, .btn.danger, .btn-outline.danger{
  background: linear-gradient(90deg, #ff3b30, #b3001b) !important;
  border: 1px solid rgba(179,0,27,.35) !important;
}

/* ===== TABS ===== */
.tab{
  background: rgba(255,45,85,.06) !important;
  border: 1px solid rgba(196,0,34,.16) !important;
  color: var(--imlek-red) !important;
}
.tab:hover{ background: rgba(255,45,85,.10) !important; }
.tab.active{
  background: linear-gradient(90deg, var(--imlek-red2), var(--imlek-red)) !important;
  border-color: transparent !important;
  color:#fff !important;
}

/* ===== TABLE ===== */
table.list, .table.clean{
  border: 1px solid rgba(196,0,34,.16) !important;
  background: #fff !important;
}
table.list thead th,
.table.clean thead th{
  background: linear-gradient(90deg, rgba(255,45,85,.16), rgba(255,183,3,.12)) !important;
  color: var(--ink) !important;
  border-bottom: 1px solid rgba(196,0,34,.14) !important;
}
table.list tbody td,
.table.clean tbody td{
  color: var(--ink) !important;
  border-bottom: 1px solid rgba(196,0,34,.08) !important;
}
table.list tbody tr:hover,
.table.clean tbody tr:hover{
  background: rgba(255,45,85,.06) !important;
}

/* ===== NAV BUTTONS kanan ===== */
.nav-bar-right .account-btn,
.nav-dropdown .dropdown-trigger{
  background: linear-gradient(90deg, var(--imlek-red2), var(--imlek-red)) !important;
  color:#fff !important;
}
.nav-dropdown .dropdown-menu{
  background:#fff !important;
  border: 1px solid rgba(196,0,34,.16) !important;
}
.nav-dropdown .dropdown-menu a{
  color: var(--ink) !important;
}
.nav-dropdown .dropdown-menu a:hover{
  background: rgba(255,45,85,.08) !important;
}

/* ============================================================
   FRAME POJOK (ORNAMEN SUDUT) – fixed overlay
   ============================================================ */
body::before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  z-index:9999;
  /* 4 sudut: pakai conic + linear biar mirip frame motif */
  background:
    /* top-left */
    conic-gradient(from 180deg at 42px 42px,
      rgba(255,183,3,.0) 0 20%,
      rgba(255,183,3,.85) 20% 28%,
      rgba(255,45,85,.95) 28% 45%,
      rgba(255,183,3,.80) 45% 55%,
      rgba(255,183,3,0) 55% 100%) 0 0 / 120px 120px no-repeat,

    /* top-right */
    conic-gradient(from 270deg at calc(100% - 42px) 42px,
      rgba(255,183,3,.0) 0 20%,
      rgba(255,183,3,.85) 20% 28%,
      rgba(255,45,85,.95) 28% 45%,
      rgba(255,183,3,.80) 45% 55%,
      rgba(255,183,3,0) 55% 100%) 100% 0 / 120px 120px no-repeat,

    /* bottom-left */
    conic-gradient(from 90deg at 42px calc(100% - 42px),
      rgba(255,183,3,.0) 0 20%,
      rgba(255,183,3,.85) 20% 28%,
      rgba(255,45,85,.95) 28% 45%,
      rgba(255,183,3,.80) 45% 55%,
      rgba(255,183,3,0) 55% 100%) 0 100% / 120px 120px no-repeat,

    /* bottom-right */
    conic-gradient(from 0deg at calc(100% - 42px) calc(100% - 42px),
      rgba(255,183,3,.0) 0 20%,
      rgba(255,183,3,.85) 20% 28%,
      rgba(255,45,85,.95) 28% 45%,
      rgba(255,183,3,.80) 45% 55%,
      rgba(255,183,3,0) 55% 100%) 100% 100% / 120px 120px no-repeat,

    /* garis frame tipis */
    linear-gradient(90deg, rgba(196,0,34,.22), rgba(255,183,3,.18), rgba(196,0,34,.22)) 0 0 / 100% 6px no-repeat,
    linear-gradient(90deg, rgba(196,0,34,.22), rgba(255,183,3,.18), rgba(196,0,34,.22)) 0 100% / 100% 6px no-repeat,
    linear-gradient(180deg, rgba(196,0,34,.22), rgba(255,183,3,.18), rgba(196,0,34,.22)) 0 0 / 6px 100% no-repeat,
    linear-gradient(180deg, rgba(196,0,34,.22), rgba(255,183,3,.18), rgba(196,0,34,.22)) 100% 0 / 6px 100% no-repeat;

  filter: drop-shadow(0 8px 18px rgba(0,0,0,.10));
  opacity:.95;
}

/* ============================================================
   CONFETTI – ringan (CSS only) pakai repeating gradients
   ============================================================ */
.auth-wrap::after{
  content:"";
  position:fixed; inset:-20px 0 0 0;
  pointer-events:none;
  z-index:8;
  background:
    /* confetti merah */
    radial-gradient(circle at 10% 10%, rgba(255,45,85,.90) 0 3px, transparent 4px),
    radial-gradient(circle at 20% 30%, rgba(255,45,85,.65) 0 2px, transparent 3px),
    radial-gradient(circle at 35% 18%, rgba(255,45,85,.80) 0 2px, transparent 3px),
    radial-gradient(circle at 55% 22%, rgba(255,45,85,.70) 0 3px, transparent 4px),
    radial-gradient(circle at 72% 14%, rgba(255,45,85,.85) 0 2px, transparent 3px),
    radial-gradient(circle at 86% 28%, rgba(255,45,85,.65) 0 3px, transparent 4px),

    /* confetti emas */
    radial-gradient(circle at 14% 22%, rgba(255,183,3,.85) 0 3px, transparent 4px),
    radial-gradient(circle at 28% 12%, rgba(255,183,3,.60) 0 2px, transparent 3px),
    radial-gradient(circle at 44% 28%, rgba(255,183,3,.80) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 10%, rgba(255,183,3,.75) 0 3px, transparent 4px),
    radial-gradient(circle at 78% 24%, rgba(255,183,3,.60) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 16%, rgba(255,183,3,.82) 0 2px, transparent 3px);

  opacity:.55;
  animation: confetti-fall 9s linear infinite;
  transform: translateY(-18px);
}

@keyframes confetti-fall{
  0%   { transform: translateY(-30px); filter: blur(0px); }
  100% { transform: translateY(260px); filter: blur(.15px); }
}

/* supaya confetti tidak ganggu klik & tidak berat */
@media (max-width: 520px){
  body::before{ opacity:.88; }
  .auth-wrap::after{ opacity:.45; }
}

/* aksesibilitas */
@media (prefers-reduced-motion: reduce){
  .auth-wrap::after{ animation:none !important; }
}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center;z-index:9999}
.modal-box{background:#0b0f16;border-radius:14px;min-width:520px;max-width:680px;padding:20px 22px;box-shadow:0 10px 30px #00f0ff}
.modal .form-row{margin-bottom:12px}
.modal .form-row label{display:block;font-weight:600;margin-bottom:6px}
.modal .form-actions{display:flex;gap:10px;margin-top:6px}
.btn.sm{padding:6px 10px;font-size:.9rem}
.btn.ghost{background:#f4f6fb;border:1px solid #e6ebf5}
/* ===== Modal (Imlek Cerah: Putih + Merah + Emas) ===== */
.modal{
  position:fixed;
  inset:0;
  background: rgba(196,0,34,.12);              /* merah tipis */
  backdrop-filter: blur(2px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

/* panel modal */
.modal-box{
  background: rgba(255,255,255,.96);           /* kertas putih */
  color:#1b1b1b;
  border-radius:16px;
  min-width:520px;
  max-width:680px;
  padding:20px 22px;

  border:1px solid rgba(196,0,34,.18);
  box-shadow:
    0 18px 46px rgba(0,0,0,.10),
    0 0 0 1px rgba(255,183,3,.10) inset;       /* emas tipis */
  position:relative;
  overflow:hidden;
}

/* garis frame dalam + header glow lembut */
.modal-box::before{
  content:"";
  position:absolute;
  inset:10px;
  border-radius:14px;
  border:1px dashed rgba(196,0,34,.22);
  pointer-events:none;
}
.modal-box::after{
  content:"";
  position:absolute;
  left:-20%;
  top:-40%;
  width:140%;
  height:70%;
  background: radial-gradient(closest-side, rgba(255,183,3,.18), transparent 70%);
  pointer-events:none;
  transform: rotate(-8deg);
}

/* layout */
.modal .form-row{ margin-bottom:12px; }
.modal .form-row label{
  display:block;
  font-weight:700;
  margin-bottom:6px;
  color:#1b1b1b;
}
.modal .form-actions{
  display:flex;
  gap:10px;
  margin-top:6px;
}

/
