/* =====================================================================
   WijayaPedia UI v2 - satu file untuk semua halaman user
   Tema: gelap (default) & terang. Ganti warna cukup di bagian :root.
   ===================================================================== */
:root {
  --primary: #4F6BFF;
  --primary-2: #8B5CF6;
  --grad: linear-gradient(135deg, #3D5AFE 0%, #7C4DFF 55%, #9F5BFF 100%);
  --grad-soft: linear-gradient(135deg, rgba(61, 90, 254, .18), rgba(159, 91, 255, .18));
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar-w: 248px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* tema gelap */
  --bg: #060A1C;
  --bg-glow-1: rgba(79, 107, 255, .22);
  --bg-glow-2: rgba(139, 92, 246, .20);
  --surface: rgba(17, 24, 58, .72);
  --surface-solid: #0E1533;
  --surface-2: rgba(255, 255, 255, .045);
  --surface-3: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .14);
  --text: #EEF1FF;
  --text-2: #C3C8E6;
  --muted: #8A91B7;
  --input-bg: rgba(5, 9, 28, .55);
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, .55);
  --shadow-primary: 0 14px 34px -12px rgba(79, 107, 255, .65);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #EEF1FA;
  --bg-glow-1: rgba(79, 107, 255, .14);
  --bg-glow-2: rgba(139, 92, 246, .12);
  --surface: rgba(255, 255, 255, .86);
  --surface-solid: #FFFFFF;
  --surface-2: #F4F6FC;
  --surface-3: #E9EDF8;
  --border: rgba(15, 23, 42, .08);
  --border-strong: rgba(15, 23, 42, .15);
  --text: #0F172A;
  --text-2: #334155;
  --muted: #64748B;
  --input-bg: #F6F8FD;
  --shadow: 0 10px 30px -14px rgba(30, 41, 99, .25);
  --shadow-primary: 0 14px 30px -14px rgba(79, 107, 255, .55);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(900px 500px at 10% -10%, var(--bg-glow-1), transparent 60%),
                    radial-gradient(800px 500px at 100% 0%, var(--bg-glow-2), transparent 60%);
  background-attachment: fixed; min-height: 100vh; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(79, 107, 255, .35); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; min-width: 0; }
.brand-mark { width: 34px; height: 34px; flex: none; display: grid; place-items: center; }
.brand-mark svg { width: 34px; height: 34px; }
.brand-logo { height: 34px; width: auto; max-width: 160px; object-fit: contain; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Layout aplikasi ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: none; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--border);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); z-index: 60;
}
.sidebar-head { padding: 20px 18px; display: flex; align-items: center; justify-content: space-between; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 6px 12px; display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: 14px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text-2);
  font-weight: 500; font-size: 13.5px; transition: background .15s, color .15s;
}
.nav-item i { width: 18px; text-align: center; font-size: 15px; color: var(--muted); transition: color .15s; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--grad); color: #fff; box-shadow: var(--shadow-primary); }
.nav-item.active i { color: #fff; }
.nav-item .count { margin-left: auto; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.sidebar-foot { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.side-card { border-radius: 16px; padding: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.side-card.gold { background: linear-gradient(135deg, rgba(245, 158, 11, .16), rgba(17, 24, 58, .2)); border-color: rgba(245, 158, 11, .25); }
.side-card .title { font-weight: 700; font-size: 13px; }
.side-card .sub { font-size: 12px; color: var(--muted); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.topbar .brand { display: none; }
.search { position: relative; flex: 1; max-width: 420px; }
.search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.search input {
  width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2);
  padding: 0 16px 0 38px; outline: none; transition: border-color .15s, background .15s;
}
.search input:focus { border-color: var(--primary); background: var(--surface); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); cursor: pointer; transition: background .15s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--bg); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); }
.user-chip .meta { line-height: 1.2; padding-right: 6px; }
.user-chip .meta b { display: block; font-size: 13px; }
.user-chip .meta span { font-size: 11px; color: var(--primary); font-weight: 600; }
:root:not([data-theme="light"]) .user-chip .meta span { color: #9DB0FF; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.avatar.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 26px; }
.menu-btn { display: none; }

.content { padding: 24px; width: 100%; max-width: 1280px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; letter-spacing: -.02em; margin: 0; }
.page-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

/* ---------- Kartu & grid ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); box-shadow: var(--shadow); min-width: 0;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-title { font-size: 15px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.card-title i { color: var(--primary); }
.card-hero {
  position: relative; overflow: hidden; color: #fff; border: 1px solid rgba(255, 255, 255, .14);
  background: radial-gradient(400px 200px at 90% 0%, rgba(255, 255, 255, .18), transparent 60%), var(--grad);
  box-shadow: var(--shadow-primary);
}
.card-hero::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.card-hero .muted { color: rgba(255, 255, 255, .78); }
.card-gold {
  background: radial-gradient(260px 160px at 80% 0%, rgba(250, 204, 21, .28), transparent 60%), linear-gradient(160deg, #1B1A2E, #0D1024);
  color: #fff; border-color: rgba(250, 204, 21, .22);
}
:root[data-theme="light"] .card-gold { background: radial-gradient(260px 160px at 80% 0%, rgba(250, 204, 21, .35), transparent 60%), linear-gradient(160deg, #26243F, #12142B); }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-dash { grid-template-columns: 1.25fr 1.25fr .9fr; }
.g-side { grid-template-columns: minmax(0, 1fr) 340px; }
.g-order { grid-template-columns: minmax(0, 1fr) 300px; }
.span-2 { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .xs { font-size: 11px; } .bold { font-weight: 700; } .center { text-align: center; } .right { text-align: right; }
.t-success { color: var(--success); } .t-danger { color: var(--danger); } .t-warning { color: var(--warning); } .t-primary { color: var(--primary); }
:root:not([data-theme="light"]) .t-primary { color: #8FA2FF; }
.nowrap { white-space: nowrap; } .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .break { word-break: break-word; overflow-wrap: anywhere; } .pre { white-space: pre-line; }
.big-num { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }

/* ---------- Statistik kecil ---------- */
.stat { display: flex; align-items: center; gap: 12px; }
.stat-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 16px; flex: none; }
.ico-blue { background: rgba(79, 107, 255, .15); color: #6E86FF; }
.ico-green { background: rgba(34, 197, 94, .14); color: var(--success); }
.ico-amber { background: rgba(245, 158, 11, .15); color: var(--warning); }
.ico-purple { background: rgba(139, 92, 246, .16); color: #A684FF; }
.ico-red { background: rgba(239, 68, 68, .14); color: var(--danger); }
.stat .val { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.stat .lbl { font-size: 12px; color: var(--muted); }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px;
  border: 1px solid transparent; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: transform .1s, opacity .15s, background .15s; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-primary); }
.btn-primary:hover { opacity: .93; }
.btn-ghost { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-white { background: #fff; color: #2433A8; }
.btn-gold { background: linear-gradient(135deg, #FACC15, #F59E0B); color: #1F1300; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger-text { background: none; border: 0; color: var(--muted); height: auto; padding: 6px; font-weight: 500; font-size: 12px; }
.btn-danger-text:hover { color: var(--danger); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--input-bg);
  padding: 0 14px; outline: none; transition: border-color .15s, box-shadow .15s; font-size: 14px;
}
.textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 110px; }
.select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A91B7' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.select option { background: var(--surface-solid); color: var(--text); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 107, 255, .16); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.input-icon .input { padding-left: 42px; }
.input-icon .toggle-pass { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); width: 34px; height: 34px; cursor: pointer; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.input-prefix .input { padding-left: 42px; font-weight: 700; font-size: 16px; }
.stepper { display: flex; align-items: center; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: var(--input-bg); overflow: hidden; }
.stepper button { width: 44px; height: 100%; border: 0; background: transparent; cursor: pointer; color: var(--text-2); font-size: 16px; }
.stepper button:hover { background: var(--surface-3); }
.stepper input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; text-align: center; font-weight: 700; outline: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-2); font-size: 13px; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.hint { font-size: 12px; color: var(--muted); }
.hint.err { color: var(--danger); }

/* ---------- Alert, badge, chip ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13px; border: 1px solid; margin-bottom: 14px; }
.alert i { margin-top: 2px; }
.alert a { text-decoration: underline; font-weight: 600; }
.a-success { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .25); color: #16A34A; }
.a-error { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .25); color: #DC2626; }
.a-warning { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .25); color: #D97706; }
.a-info { background: rgba(59, 130, 246, .1); border-color: rgba(59, 130, 246, .25); color: #2563EB; }
:root:not([data-theme="light"]) .a-success { color: #4ADE80; }
:root:not([data-theme="light"]) .a-error { color: #F87171; }
:root:not([data-theme="light"]) .a-warning { color: #FBBF24; }
:root:not([data-theme="light"]) .a-info { color: #93B4FF; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.b-success { background: rgba(34, 197, 94, .12); color: var(--success); border-color: rgba(34, 197, 94, .25); }
.b-warning { background: rgba(245, 158, 11, .12); color: var(--warning); border-color: rgba(245, 158, 11, .25); }
.b-danger { background: rgba(239, 68, 68, .12); color: var(--danger); border-color: rgba(239, 68, 68, .25); }
.b-info { background: rgba(79, 107, 255, .12); color: #6E86FF; border-color: rgba(79, 107, 255, .25); }
.b-gray { background: var(--surface-2); color: var(--muted); border-color: var(--border); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 12px; font-weight: 600; }

/* ---------- Tabel & list ---------- */
.table-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty i { font-size: 34px; margin-bottom: 10px; display: block; opacity: .6; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; color: var(--muted); font-size: 13px; }

/* ---------- Platform & menu cepat ---------- */
.platforms { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.platforms::-webkit-scrollbar { display: none; }
.platform {
  flex: none; width: 92px; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text-2); transition: all .15s;
}
.platform .pi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; color: #fff; }
.platform:hover { border-color: var(--border-strong); }
.platform.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--shadow-primary); }
.pi-instagram { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.pi-tiktok { background: #111; } .pi-youtube { background: #FF0000; } .pi-facebook { background: #1877F2; } .pi-telegram { background: #229ED9; }
.pi-twitter { background: #000; } .pi-threads { background: #000; } .pi-spotify { background: #1DB954; } .pi-whatsapp { background: #25D366; }
.pi-shopee { background: #EE4D2D; } .pi-google { background: #4285F4; } .pi-discord { background: #5865F2; } .pi-twitch { background: #9146FF; }
.pi-soundcloud { background: #FF5500; } .pi-linkedin { background: #0A66C2; } .pi-roblox { background: #333; } .pi-website, .pi-other { background: var(--grad); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text-2); text-align: center; }
.quick a i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; max-height: 300px; overflow-y: auto; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow); display: none; }
.search-results.show { display: block; }
.search-results button { width: 100%; text-align: left; padding: 10px 14px; border: 0; background: none; cursor: pointer; border-bottom: 1px solid var(--border); }
.search-results button:hover { background: var(--surface-2); }
.detail-box { border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); padding: 14px; font-size: 13px; }
.detail-box .r { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; }
.total-box { border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); padding: 12px 16px; }

/* ---------- Progress, chart ---------- */
.progress { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #FACC15, #F59E0B); }
.chart { width: 100%; height: auto; display: block; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 13px; font-family: var(--font); }
.chart .line { fill: none; stroke: url(#lg); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart .dot { fill: var(--surface-solid); stroke: #6E86FF; stroke-width: 2.5; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.tabs a, .tabs button { flex: 1; text-align: center; padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: 13px; color: var(--muted); border: 0; background: none; cursor: pointer; white-space: nowrap; }
.tabs .on { background: var(--grad); color: #fff; box-shadow: var(--shadow-primary); }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pills a { padding: 7px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.pills a.on { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- Metode bayar (radio card) ---------- */
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt > span { display: block; height: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; transition: all .15s; }
.opt input:checked + span { border-color: var(--primary); background: rgba(79, 107, 255, .12); box-shadow: 0 0 0 3px rgba(79, 107, 255, .15); }
.opt b { display: block; font-size: 13.5px; }

/* ---------- Chat tiket ---------- */
.chat { display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 13.5px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.bubble.me { margin-left: auto; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.bubble.them { background: var(--surface-3); border-bottom-left-radius: 6px; }
.bubble-meta { font-size: 11px; color: var(--muted); }
.ticket-item { display: block; padding: 12px; border-radius: 12px; border: 1px solid transparent; }
.ticket-item:hover { background: var(--surface-2); }
.ticket-item.on { background: rgba(79, 107, 255, .1); border-color: rgba(79, 107, 255, .3); }

/* ---------- Mobile header & bottom nav ---------- */
.m-header { display: none; }
.bottom-nav { display: none; }
.backdrop { display: none; }

/* ---------- Tombol tema ---------- */
.theme-toggle .fa-sun { display: none; }
:root[data-theme="light"] .theme-toggle .fa-sun { display: inline; }
:root[data-theme="light"] .theme-toggle .fa-moon { display: none; }

/* =====================================================================
   RESPONSIF
   ===================================================================== */
@media (max-width: 1200px) {
  .g-dash { grid-template-columns: 1fr 1fr; }
  .g-dash > .dash-member { grid-column: span 2; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-105%); transition: transform .25s ease; background: var(--surface-solid); }
  body.nav-open .sidebar { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .4); }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 55; }
  .topbar { padding: 12px 16px; }
  .topbar .brand { display: flex; }
  .topbar .search { display: none; }
  .menu-btn { display: grid; }
  .user-chip .meta { display: none; }
  .user-chip { padding: 3px; }
  .content { padding: 16px 16px 110px; }
  .g-side, .g-order { grid-template-columns: 1fr; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--surface-solid) 88%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
  }
  .bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; font-size: 10.5px; font-weight: 600; color: var(--muted); }
  .bottom-nav a i { font-size: 18px; }
  .bottom-nav a.on { color: var(--primary); }
  :root:not([data-theme="light"]) .bottom-nav a.on { color: #8FA2FF; }
  .bottom-nav a.fab i { width: 46px; height: 46px; margin-top: -26px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--shadow-primary); font-size: 18px; }
  .bottom-nav .dot { position: absolute; top: 4px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
}
@media (max-width: 760px) {
  body { font-size: 13.5px; }
  .g-2, .g-3, .g-dash { grid-template-columns: 1fr; }
  .g-dash > .dash-member { grid-column: auto; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2 { grid-column: auto; }
  .card { padding: 16px; border-radius: 16px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .page-head h1 { font-size: 19px; }
  .big-num { font-size: 26px; }
  .hide-sm { display: none !important; }
  .stat .val { font-size: 17px; }
  .opt-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 761px) { .show-sm { display: none !important; } }

/* =====================================================================
   HALAMAN TAMU (landing, login, daftar)
   ===================================================================== */
.guest-nav { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); background: color-mix(in srgb, var(--bg) 70%, transparent); border-bottom: 1px solid var(--border); }
.guest-nav .in { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 24px; }
.guest-links { display: flex; gap: 22px; font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.guest-links a:hover { color: var(--text); }
.hero { max-width: 1200px; margin: 0 auto; padding: 56px 20px 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 52px; line-height: 1.05; letter-spacing: -.035em; margin: 16px 0; }
.grad-text { background: linear-gradient(90deg, #5B7CFF, #A66BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 16px; color: var(--text-2); max-width: 480px; margin: 0 0 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.hero-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.hero-feat { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.hero-feat i { font-size: 20px; color: #7C8CFF; }
.hero-feat b { display: block; font-size: 14px; }
.hero-feat span { font-size: 11.5px; color: var(--muted); }
.hero-art { position: relative; height: 470px; }
.phone {
  position: absolute; left: 50%; top: 50%; width: 250px; height: 460px; transform: translate(-40%, -50%) rotate(8deg);
  border-radius: 40px; padding: 12px; background: linear-gradient(160deg, #2A3170, #0B0F2A); border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 40px 80px -20px rgba(40, 60, 200, .55), inset 0 0 0 2px rgba(255, 255, 255, .05);
}
.phone .screen { width: 100%; height: 100%; border-radius: 30px; background: linear-gradient(180deg, #0F1640, #090D26); padding: 34px 14px 14px; overflow: hidden; color: #fff; }
.phone .notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 80px; height: 20px; border-radius: 999px; background: #05071A; }
.phone .mini-hero { border-radius: 18px; padding: 14px; background: var(--grad); }
.float-ico { border: 1px solid rgba(255, 255, 255, .18); position: absolute; width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; color: #fff; font-size: 28px; box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .5); animation: floaty 6s ease-in-out infinite; }
.float-ico:nth-child(2) { animation-delay: -1.5s; } .float-ico:nth-child(3) { animation-delay: -3s; } .float-ico:nth-child(4) { animation-delay: -4.5s; } .float-ico:nth-child(5) { animation-delay: -2.2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
.trust { position: absolute; right: 0; bottom: 30px; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border-strong); backdrop-filter: blur(16px); font-weight: 700; box-shadow: var(--shadow); }
.trust i { font-size: 26px; color: #5B8CFF; }
.section { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.section h2 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 6px; }
.feature-card .stat-ico { margin-bottom: 12px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.price-row:last-child { border-bottom: 0; }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary i { transform: rotate(180deg); }
.faq p { color: var(--text-2); margin: 10px 0 0; }
.footer { border-top: 1px solid var(--border); padding: 24px 20px; text-align: center; color: var(--muted); font-size: 12.5px; }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth { width: 100%; max-width: 900px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 28px; overflow: hidden; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.auth-form { padding: 34px; }
.auth-form .brand { justify-content: center; font-size: 22px; flex-direction: column; gap: 8px; }
.auth-form .brand-mark, .auth-form .brand-mark svg { width: 46px; height: 46px; }
.auth-form .brand-logo { height: 46px; }
.auth-side { position: relative; padding: 34px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: radial-gradient(400px 300px at 100% 100%, rgba(139, 92, 246, .45), transparent 60%), radial-gradient(300px 260px at 0% 0%, rgba(79, 107, 255, .35), transparent 60%), linear-gradient(160deg, #141C4F, #0A0E2A); color: #fff; }
.auth-side h2 { font-size: 22px; margin: 14px 0 6px; }
.auth-side ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 12px; }
.auth-side li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.auth-side li i { color: #22C55E; font-size: 18px; }
.auth-side .big-ico { position: absolute; right: -10px; bottom: -10px; font-size: 140px; color: rgba(140, 120, 255, .35); transform: rotate(-12deg); }
.auth-side .shield { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgba(79, 107, 255, .25); font-size: 26px; color: #8FB0FF; }
.auth-top { position: fixed; top: 14px; right: 14px; z-index: 10; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; text-align: left; }
  .hero h1 { font-size: 38px; }
  .hero-art { height: 380px; }
  .phone { width: 210px; height: 390px; }
  .guest-links { display: none; }
  .auth { grid-template-columns: 1fr; max-width: 440px; }
  .auth-side { display: none; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 32px; }
  .hero-feats { grid-template-columns: 1fr; }
  .hero-art { height: 330px; }
  .float-ico { width: 50px; height: 50px; font-size: 22px; border-radius: 15px; }
  .auth-form { padding: 26px 20px; }
  .trust { bottom: 0; padding: 10px 14px; font-size: 13px; }
}

/* ---------- Tambahan ---------- */
.opt { position: relative; display: block; }
.opt > span .xs { display: block; margin-top: 2px; }
.g-ticket { grid-template-columns: 320px minmax(0, 1fr); align-items: start; }
.chat-box { max-height: 58vh; overflow-y: auto; padding-right: 4px; }
.reply-bar { display: flex; gap: 8px; align-items: flex-end; }
.reply-bar .textarea { min-height: 46px; height: 46px; border-radius: 14px; }
@media (max-width: 1024px) {
  .g-ticket { grid-template-columns: 1fr; }
  .m-hide { display: none !important; }
  .chat-box { max-height: none; }
}

@media (max-width: 760px) {
  .g-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .g-stats .stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .g-stats .stat-ico { width: 34px; height: 34px; font-size: 14px; }
}
:root[data-theme="light"] .side-card.gold { background: linear-gradient(135deg, #FFF7E0, #FFFFFF); border-color: rgba(217, 119, 6, .25); }
:root[data-theme="light"] .side-card.gold .title { color: #B45309 !important; }
:root[data-theme="light"] .side-card.gold .fa-crown { color: #D97706 !important; }
@media (max-width: 1024px) { .bottom-nav a.fab span { margin-top: 2px; } }

/* ---------- Install aplikasi ---------- */
.install-card { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.install-card .grow { flex: 1; min-width: 0; }
.install-ico { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(2, 4, 16, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { width: 100%; max-width: 440px; background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); max-height: 90vh; overflow-y: auto; }
@media (min-width: 640px) { .modal { align-items: center; } }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13.5px; }
.steps li > span { width: 26px; height: 26px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 12px; }
[hidden] { display: none !important; }

/* ---------- Tagihan deposit ---------- */
.grid > *, .stack > * { min-width: 0; }
/* overflow-x di body pakai 'clip' (bukan hidden) supaya sidebar sticky tetap terkunci saat scroll */
html { overflow-x: hidden; }
body { overflow-x: clip; }
.bill { border-color: rgba(245, 158, 11, .35); }
.bill-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.bill-amount { text-align: center; padding: 14px 10px; border-radius: 16px; background: rgba(245, 158, 11, .08); border: 1px dashed rgba(245, 158, 11, .35); display: flex; flex-direction: column; gap: 6px; }
.bill-box { margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.acc-no { font-size: 20px; letter-spacing: .04em; overflow-wrap: anywhere; }
.bill-qr { margin-top: 12px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.bill-qr img { width: 230px; max-width: 100%; height: auto; border-radius: 16px; background: #fff; padding: 10px; border: 1px solid var(--border); }
@media (max-width: 760px) { .acc-no { font-size: 18px; } .bill-amount .big-num { font-size: 28px; } }

/* ---------- Tombol Google ---------- */
.btn-google { background: #fff; color: #1F1F1F; border: 1px solid #DADCE0; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.btn-google:hover { background: #F8F9FA; }
.or-line { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--muted); font-size: 12px; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.avatar { overflow: hidden; }

/* ---------- Halaman legal ---------- */
.legal { padding: 28px; line-height: 1.7; }
.legal h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -.02em; }
.legal h2 { font-size: 16px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--text-2); font-size: 14px; }
.legal ul { padding-left: 20px; margin: 6px 0; }
.legal a, .footer a { color: var(--primary); font-weight: 600; }
@media (max-width: 560px) { .legal { padding: 20px; } }

/* =====================================================================
   v3: sidebar terkunci, menu grup (Top 10), daftar layanan, update layanan, top 10
   ===================================================================== */
@media (min-width: 1025px) {
  .sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; align-self: flex-start; overflow: hidden; }
}
.sidebar-nav { min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 9px; }
.sidebar-foot { flex: none; border-top: 1px solid var(--border); }
.nav-group > summary { list-style: none; cursor: pointer; user-select: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary .nav-caret { margin-left: auto; width: auto; font-size: 11px; transition: transform .25s ease; }
.nav-group[open] > summary .nav-caret { transform: rotate(180deg); }
.nav-group > summary.open, .nav-group[open] > summary { background: var(--surface-2); color: var(--text); }
.nav-sub { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 6px 22px; margin-left: 9px; border-left: 1px dashed var(--border-strong); animation: navSub .25s ease; }
@keyframes navSub { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.nav-sub a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.nav-sub a .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex: none; }
.nav-sub a:hover { background: var(--surface-2); color: var(--text); }
.nav-sub a.on { color: var(--primary); background: var(--grad-soft); }
.nav-sub a.on .dot { background: var(--primary); box-shadow: 0 0 0 3px rgba(79, 107, 255, .2); }

/* Accordion daftar layanan (dashboard) */
.acc { padding: 6px; }
.acc details { border-bottom: 1px solid var(--border); }
.acc details:last-child { border-bottom: 0; }
.acc summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 12px; cursor: pointer; font-weight: 600; font-size: 14px; border-radius: 14px; user-select: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: var(--surface-2); }
.acc summary .ai { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; font-size: 14px; }
.acc summary .cnt { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted); }
.acc summary .car { color: var(--muted); font-size: 12px; transition: transform .25s ease; }
.acc details[open] summary .car { transform: rotate(180deg); }
.acc details[open] summary { color: var(--primary); }
.acc .acc-body { padding: 2px 8px 12px; max-height: 340px; overflow-y: auto; animation: navSub .25s ease; }
.svc-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; }
.svc-row + .svc-row { margin-top: 2px; }
.svc-row:hover { background: var(--surface-2); }
.svc-row .grow { flex: 1; min-width: 0; }
.svc-row .nm { font-size: 13px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-row .mt { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.svc-row .pr { color: var(--success); font-weight: 800; }
.svc-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 16px; flex: none; }
.btn-xs { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 10px; }

/* Update layanan */
.su-list { display: flex; flex-direction: column; gap: 10px; }
.su-item { display: flex; gap: 14px; padding: 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); transition: border-color .2s, transform .2s; }
.su-item:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.su-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; font-size: 18px; flex: none; box-shadow: 0 10px 20px -10px var(--c, #000); }
.su-up .su-ic { background: linear-gradient(135deg, #F59E0B, #F97316); --c: #F59E0B; }
.su-down .su-ic { background: linear-gradient(135deg, #22C55E, #10B981); --c: #22C55E; }
.su-new .su-ic { background: linear-gradient(135deg, #3D5AFE, #8B5CF6); --c: #4F6BFF; }
.su-off .su-ic { background: linear-gradient(135deg, #EF4444, #DC2626); --c: #EF4444; }
.su-on .su-ic { background: linear-gradient(135deg, #06B6D4, #3B82F6); --c: #06B6D4; }
.su-item .grow { flex: 1; min-width: 0; }
.su-time { font-size: 11.5px; color: var(--muted); }
.su-name { font-size: 13.5px; font-weight: 700; line-height: 1.4; margin: 2px 0 8px; word-break: break-word; }
.su-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.su-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 9px; font-size: 11.5px; font-weight: 800; }
.su-up .su-tag { background: rgba(245, 158, 11, .15); color: #F59E0B; }
.su-down .su-tag { background: rgba(34, 197, 94, .14); color: #22C55E; }
.su-new .su-tag { background: rgba(79, 107, 255, .15); color: #7C93FF; }
.su-off .su-tag { background: rgba(239, 68, 68, .14); color: #F87171; }
.su-on .su-tag { background: rgba(6, 182, 212, .15); color: #22D3EE; }
.su-tag.ghost { background: var(--surface-3) !important; color: var(--text-2) !important; }
.su-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
:root[data-theme="light"] .su-up .su-tag { color: #B45309; } :root[data-theme="light"] .su-down .su-tag { color: #15803D; }
:root[data-theme="light"] .su-new .su-tag { color: #3730A3; } :root[data-theme="light"] .su-off .su-tag { color: #B91C1C; } :root[data-theme="light"] .su-on .su-tag { color: #0E7490; }
@media (max-width: 560px) { .su-ic { width: 40px; height: 40px; font-size: 15px; border-radius: 12px; } .su-item { padding: 12px; gap: 12px; } }

/* Top 10 */
.top-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 6px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); }
.top-tabs a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 8px; border-radius: 13px; font-weight: 700; font-size: 13.5px; color: var(--text-2); text-align: center; }
.top-tabs a.on { background: var(--grad); color: #fff; box-shadow: var(--shadow-primary); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; }
.pod { position: relative; text-align: center; padding: 18px 12px 16px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.pod .medal { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 900; color: #fff; }
.pod.p1 { padding-top: 26px; border-color: rgba(250, 204, 21, .45); background: radial-gradient(120% 80% at 50% 0%, rgba(250, 204, 21, .18), transparent 60%), var(--surface-2); }
.pod.p1 .medal { width: 58px; height: 58px; font-size: 24px; background: linear-gradient(135deg, #FDE047, #F59E0B); box-shadow: 0 10px 26px -8px rgba(245, 158, 11, .9); }
.pod.p2 .medal { background: linear-gradient(135deg, #E2E8F0, #94A3B8); }
.pod.p3 .medal { background: linear-gradient(135deg, #FDBA74, #C2410C); }
.pod .nm { font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .vl { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pod .crown { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); color: #FACC15; font-size: 22px; filter: drop-shadow(0 4px 8px rgba(245, 158, 11, .6)); }
.rank-row { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 16px; }
.rank-row:nth-child(odd) { background: var(--surface-2); }
.rank-row .rk { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--surface-3); flex: none; }
.rank-row.me { outline: 2px solid var(--primary); }
@media (max-width: 560px) { .podium { gap: 8px; } .pod { padding: 14px 6px 12px; border-radius: 18px; } .pod .nm { font-size: 12.5px; } .top-tabs a { font-size: 12px; padding: 10px 4px; } }
/* HP/tablet: seluruh menu samping bisa di-scroll (sub-menu Top 10 tidak ketutup kartu bawah) */
@media (max-width: 1024px) {
  .sidebar { overflow-y: auto; overscroll-behavior: contain; }
  .sidebar-nav { flex: none; overflow: visible; }
  .sidebar-foot { margin-top: auto; }
}

/* Daftar layanan lebar penuh di bawah animasi */
.acc-wide summary { padding: 15px 14px; }
.acc-wide .acc-body { max-height: none; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.svc-grid .svc-row + .svc-row { margin-top: 0; }
.acc-empty { padding: 10px 12px 14px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } }

/* Update layanan: jenis "Info Diperbarui" + catatan perubahan */
.su-info .su-ic { background: linear-gradient(135deg, #6366F1, #06B6D4); --c: #6366F1; }
.su-info .su-tag { background: rgba(99, 102, 241, .15); color: #A5B4FC; }
:root[data-theme="light"] .su-info .su-tag { color: #4338CA; }
.su-note { margin-top: 8px; font-size: 12px; color: var(--text-2); line-height: 1.5; }
.su-note i { color: var(--muted); margin-right: 3px; }
/* Kartu angka (KPI) untuk halaman user juga */
.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi .top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 600; }
.kpi .v { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.kpi .s { font-size: 11.5px; color: var(--muted); }
@media (max-width: 760px) { .kpi .v { font-size: 18px; } }
.rp-filter .input { min-width: 0; width: 100%; }
