/* ============================================================
   KAMPUS MARKETER — Design System
   50 token warna (terang & gelap) dapat diubah dari menu Tampilan & Tema.
   Font: Plus Jakarta Sans · Ikon: Bootstrap Icons · Radius kartu 20px
   ============================================================ */
:root {
  --primary: #306CE0; --primary-hover: #2859C6; --primary-active: #1F4DB0; --primary-fg: #FFFFFF;
  --accent: #5AB6FE; --soft: #EDF3FF; --soft-hover: #DEE9FF; --soft-fg: #1F4DB0;
  --bg: #F8F9FF; --bg-alt: #F1F5FF; --bg-tint: #EBECF0; --card: #FFFFFF; --card-blue: #E7EEFE; --card-lavender: #EBEDF9;
  --grad-1: #3E7BEA; --grad-2: #306CE0; --grad-3: #2859C6;
  --ink: #060E22; --ink2: #3A4566; --muted: #5B6475; --faint: #8E8E92; --line: #E2E6F2; --line-strong: #C8CEDF;
  --solid: #060E22; --solid-hover: #1A2440; --solid-active: #000000; --solid-fg: #FFFFFF;
  --icon: #306CE0; --icon-hover: #2859C6; --icon-active: #1F4DB0; --tile: #EDF3FF; --tile-hover: #DEE9FF; --tile-active: #C9DBFF;
  --cat-green: #0F7A56; --cat-green-bg: #E6F8F0; --cat-orange: #B4400F; --cat-orange-bg: #FFEDE3; --cat-violet: #6340D6; --cat-violet-bg: #F0EBFF;
  --hover-surface: #F1F5FF; --hover-line: #9DB8F0; --focus-ring: #306CE0;
  --success: #0F7A56; --success-bg: #E6F8F0; --warn: #8A6100; --warn-bg: #FFF6D6; --danger: #B83A22; --danger-bg: #FDEBE6;
  --shadow-c: #306CE0; --star: #EECA4A;

  --sh-a: 12%; --sh-b: 18%; --sh-c: 28%;
  --sh1: 0 8px 24px color-mix(in srgb, var(--shadow-c) var(--sh-a), transparent);
  --sh2: 0 14px 32px color-mix(in srgb, var(--shadow-c) var(--sh-b), transparent);
  --sh3: 0 20px 40px color-mix(in srgb, var(--shadow-c) var(--sh-c), transparent);
  --r-card: 20px; --r-ctl: 12px; --r-shell: 24px; --r-pill: 999px;
  --rail-w: 84px; --rail-gap: 16px;
  --font: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --t: 160ms cubic-bezier(.2, .7, .3, 1);
  color-scheme: light;
}
[data-mode="dark"] {
  --primary: #6EA0FF; --primary-hover: #8BB3FF; --primary-active: #5B8FF0; --primary-fg: #06122E;
  --accent: #5AB6FE; --soft: #1B2C5E; --soft-hover: #23376F; --soft-fg: #BBD0FF;
  --bg: #0A0F1F; --bg-alt: #0E1630; --bg-tint: #121A38; --card: #121A33; --card-blue: #162656; --card-lavender: #1A2147;
  --grad-1: #2F63D6; --grad-2: #234DB0; --grad-3: #1A3A8A;
  --ink: #EEF2FF; --ink2: #C3CCEB; --muted: #9AA6CE; --faint: #6F7BA5; --line: #26305A; --line-strong: #34416F;
  --solid: #EEF2FF; --solid-hover: #FFFFFF; --solid-active: #C3CCEB; --solid-fg: #060E22;
  --icon: #6EA0FF; --icon-hover: #8BB3FF; --icon-active: #A9C5FF; --tile: #1B2C5E; --tile-hover: #23376F; --tile-active: #2C4486;
  --cat-green: #5FE0A8; --cat-green-bg: #0F2A22; --cat-orange: #FF9A7A; --cat-orange-bg: #33180F; --cat-violet: #B7A2FF; --cat-violet-bg: #231C4A;
  --hover-surface: #172143; --hover-line: #4A5C99; --focus-ring: #8BB3FF;
  --success: #5FE0A8; --success-bg: #0F2A22; --warn: #F2D36B; --warn-bg: #2E2608; --danger: #FF9A85; --danger-bg: #33140E;
  --shadow-c: #000000; --star: #EECA4A;
  --sh-a: 40%; --sh-b: 50%; --sh-c: 55%;
  color-scheme: dark;
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; touch-action: manipulation; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }
a:active { color: var(--primary-active); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--soft-hover); color: var(--ink); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }
p { margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- Tipografi ---------- */
.display { font-size: 48px; line-height: 56px; font-weight: 800; letter-spacing: -0.02em; }
.h1 { font-size: 32px; line-height: 40px; font-weight: 700; }
.h2 { font-size: 22px; line-height: 30px; font-weight: 700; letter-spacing: -0.01em; }
.h3 { font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -0.005em; }
.title em, .display em, .h1 em, .h2 em { font-style: normal; color: var(--primary); }
.lead { font-size: 16px; line-height: 26px; color: var(--ink2); }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 20px; }
.xs { font-size: 12px; line-height: 18px; }
.strong { font-weight: 700; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.nowrap { white-space: nowrap; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prose { color: var(--ink2); font-size: 15px; line-height: 26px; overflow-wrap: anywhere; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol, .prose ol + p, .prose blockquote + p, .prose p + blockquote { margin-top: 12px; }
.prose ul, .prose ol { margin: 8px 0 0; padding-left: 22px; }
.prose li + li { margin-top: 4px; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 12px 0 0; padding: 12px 16px; border-left: 3px solid var(--primary); background: var(--soft); color: var(--soft-fg); border-radius: 0 12px 12px 0; font-style: italic; }

/* ---------- Tata letak utilitas ---------- */
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.lg { gap: 20px; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.split { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.split.wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.split.s11 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split.s12 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.split.s13 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.split.s14 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.split.s15 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.split.s0911 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.split.side { grid-template-columns: 300px minmax(0, 1fr); }
.grid.g-auto { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.editor.ev { grid-template-columns: minmax(0, 1fr) 440px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; }
.section { margin-top: 40px; }
.section-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section-hd p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.band { margin-top: 40px; padding: 28px; border-radius: var(--r-shell); background: var(--bg-alt); border: 1px solid var(--line); }

/* ---------- Splash & pemulihan ---------- */
.splash { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--bg); z-index: 90; color: var(--muted); font-weight: 600; }
.splash-mark { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--grad-2), var(--grad-3)); box-shadow: var(--sh3); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .85; } }
.recover { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.recover .card { max-width: 440px; text-align: center; }

/* ---------- Kartu ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh1); padding: 24px; min-width: 0; }
.card.pad-sm { padding: 16px; } .card.pad-lg { padding: 28px; } .card.flat { box-shadow: none; }
.card.blue { background: var(--card-blue); } .card.lav { background: var(--card-lavender); } .card.alt { background: var(--bg-alt); box-shadow: none; }
.card.feat { background: linear-gradient(145deg, var(--grad-2), var(--grad-3)); border-color: transparent; color: #fff; box-shadow: var(--sh3); }
.card.feat h2, .card.feat h3, .card.feat .h1, .card.feat .h2, .card.feat .h3, .card.feat .muted, .card.feat .lead, .card.feat .small { color: #fff; }
.card.feat .muted { opacity: .9; }
.card-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-hd p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card.feat .card-hd p { color: #fff; opacity: .9; }
.hoverable { transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.hoverable:hover { transform: translateY(-2px); box-shadow: var(--sh2); border-color: var(--hover-line); }
.hoverable:active { transform: scale(.99); }
.inner { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.card.blue .inner, .card.lav .inner { background: var(--card); }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--r-pill); font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap; border: 1px solid transparent; transition: background var(--t), color var(--t), border-color var(--t), box-shadow var(--t), transform var(--t); text-decoration: none !important; user-select: none; }
.btn:active:not(:disabled), .btn.is-press { transform: scale(.98); }
.btn .bi { font-size: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-xs { height: 30px; padding: 0 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-hover); color: var(--primary-fg); box-shadow: var(--sh1); }
.btn-primary:active:not(:disabled) { background: var(--primary-active); }
.btn-solid { background: var(--solid); color: var(--solid-fg); }
.btn-solid:hover { background: var(--solid-hover); color: var(--solid-fg); }
.btn-solid:active:not(:disabled) { background: var(--solid-active); }
.btn-soft { background: var(--soft); color: var(--soft-fg); }
.btn-soft:hover { background: var(--soft-hover); color: var(--soft-fg); }
.btn-soft:active:not(:disabled) { background: var(--tile-active); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--primary); background: var(--hover-surface); color: var(--ink); }
.btn-outline:active:not(:disabled) { background: var(--soft-hover); }
.btn-ghost { color: var(--ink2); background: transparent; }
.btn-ghost:hover { background: var(--hover-surface); color: var(--ink); }
.btn-ghost:active:not(:disabled) { background: var(--soft-hover); color: var(--soft-fg); }
.btn-danger { background: var(--danger); color: #fff; }
[data-mode="dark"] .btn-danger { color: #2A0A04; }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 88%, #000); }
.btn-danger:active:not(:disabled) { background: color-mix(in srgb, var(--danger) 78%, #000); }
.btn-danger-soft { background: var(--danger-bg); color: var(--danger); }
.btn-danger-soft:hover { background: color-mix(in srgb, var(--danger-bg) 85%, var(--danger)); }
.btn-white { background: #fff; color: #1F4DB0; }
.btn-white:hover { background: #EDF3FF; color: #1F4DB0; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-tint) !important; color: var(--faint) !important; border-color: transparent !important; box-shadow: none !important; cursor: not-allowed; }
.btn-outline:disabled { background: transparent !important; border-color: var(--line) !important; }
.icon-btn { width: 40px; height: 40px; border-radius: var(--r-ctl); display: inline-grid; place-items: center; color: var(--ink2); transition: background var(--t), color var(--t); flex: 0 0 auto; }
.icon-btn:hover { background: var(--hover-surface); color: var(--ink); }
.icon-btn:active { background: var(--soft-hover); color: var(--soft-fg); }
.icon-btn.sm { width: 34px; height: 34px; font-size: 14px; }
.icon-btn.danger:hover { background: var(--danger-bg); color: var(--danger); }
.icon-btn:disabled { color: var(--faint); background: transparent; cursor: not-allowed; }
.spin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.link-btn { color: var(--primary); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { color: var(--primary-hover); text-decoration: underline; }

/* ---------- Badge & chip ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; line-height: 16px; white-space: nowrap; background: var(--soft); color: var(--soft-fg); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-success { background: var(--success-bg); color: var(--success); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-danger { background: var(--danger-bg); color: var(--danger); }
.b-neutral { background: var(--bg-tint); color: var(--muted); }
.b-violet { background: var(--cat-violet-bg); color: var(--cat-violet); }
.b-orange { background: var(--cat-orange-bg); color: var(--cat-orange); }
.b-green { background: var(--cat-green-bg); color: var(--cat-green); }
.b-white { background: rgba(255,255,255,.18); color: #fff; }
.b-solid { background: var(--solid); color: var(--solid-fg); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card); color: var(--ink2); font-size: 13px; font-weight: 600; transition: background var(--t), color var(--t), border-color var(--t); white-space: nowrap; }
.chip:hover { background: var(--soft); color: var(--soft-fg); border-color: transparent; }
.chip[aria-pressed="true"], .chip.on { background: var(--primary); color: var(--primary-fg); border-color: transparent; }
.chip .n { font-size: 11px; padding: 0 7px; border-radius: 99px; background: var(--bg-tint); color: var(--muted); line-height: 18px; }
.chip[aria-pressed="true"] .n, .chip.on .n { background: rgba(255,255,255,.22); color: var(--primary-fg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--bg-tint); color: var(--ink2); }
a.tag:hover { background: var(--soft); color: var(--soft-fg); text-decoration: none; }

/* ---------- Kotak ikon ---------- */
.tile { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; flex: 0 0 auto; font-size: 18px; background: var(--tile); color: var(--icon); transition: background var(--t), color var(--t); }
.tile.lg { width: 48px; height: 48px; font-size: 22px; }
.tile.sm { width: 32px; height: 32px; font-size: 15px; border-radius: 10px; }
.tile.green { background: var(--cat-green-bg); color: var(--cat-green); }
.tile.orange { background: var(--cat-orange-bg); color: var(--cat-orange); }
.tile.violet { background: var(--cat-violet-bg); color: var(--cat-violet); }
.tile.danger { background: var(--danger-bg); color: var(--danger); }
.tile.warn { background: var(--warn-bg); color: var(--warn); }
.tile.white { background: rgba(255,255,255,.18); color: #fff; }
.hoverable:hover .tile:not(.green):not(.orange):not(.violet):not(.white) { background: var(--tile-hover); color: var(--icon-hover); }
.hoverable:hover .tile.green { background: color-mix(in srgb, var(--cat-green-bg) 94%, var(--cat-green)); }
.hoverable:hover .tile.orange { background: color-mix(in srgb, var(--cat-orange-bg) 94%, var(--cat-orange)); }
.hoverable:hover .tile.violet { background: color-mix(in srgb, var(--cat-violet-bg) 94%, var(--cat-violet)); }

/* ---------- Formulir ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .lbl { font-size: 13px; font-weight: 600; color: var(--ink); }
.field .req { color: var(--danger); }
.hint { font-size: 12px; line-height: 18px; color: var(--muted); }
.hint.err { color: var(--danger); font-weight: 600; }
.hint.ok { color: var(--success); font-weight: 600; }
.input, .select, .textarea { width: 100%; min-height: 44px; padding: 0 16px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font-size: 14px; transition: border-color var(--t), box-shadow var(--t); }
.textarea { padding: 12px 16px; min-height: 96px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 19px, calc(100% - 15px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--primary); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus-ring) 25%, transparent); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:disabled, .select:disabled, .textarea:disabled, .input[readonly] { background: var(--bg-alt); color: var(--muted); border-color: var(--line); }
.input.bad, .select.bad, .textarea.bad { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 48px; }
.input-wrap .icon-btn { position: absolute; right: 2px; top: 2px; }
.input-icon { position: relative; }
.input-icon > .bi { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 42px; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink2); cursor: pointer; line-height: 1.45; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); flex: 0 0 auto; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .tr { width: 44px; height: 26px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background var(--t); flex: 0 0 auto; }
.switch .tr::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform var(--t); }
.switch input:checked + .tr { background: var(--primary); }
.switch input:checked + .tr::after { transform: translateX(18px); }
.switch input:focus-visible + .tr { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.switch input:disabled + .tr { opacity: .45; cursor: not-allowed; }
.seg { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--bg-alt); border: 1px solid var(--line); gap: 4px; flex-wrap: wrap; }
.seg button { height: 34px; padding: 0 16px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--ink2); transition: background var(--t), color var(--t); }
.seg button:hover { background: var(--hover-surface); color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--primary-fg); box-shadow: var(--sh1); }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.meter span { height: 6px; border-radius: 99px; background: var(--line); transition: background var(--t); }
.meter[data-s="1"] span:nth-child(-n+1) { background: var(--danger); }
.meter[data-s="2"] span:nth-child(-n+2) { background: var(--warn); }
.meter[data-s="3"] span:nth-child(-n+3) { background: var(--primary); }
.meter[data-s="4"] span { background: var(--success); }
.color-in { display: flex; align-items: center; gap: 10px; }
.color-in input[type=color] { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); padding: 3px; background: var(--card); cursor: pointer; }

/* ---------- Tab pil ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600; color: var(--ink2); transition: background var(--t), color var(--t), border-color var(--t); text-decoration: none !important; }
.tab:hover { background: var(--soft); color: var(--soft-fg); border-color: transparent; }
.tab[aria-selected="true"], .tab[aria-current="page"] { background: var(--primary); color: var(--primary-fg); border-color: transparent; box-shadow: var(--sh1); }
.tab .n { font-size: 11px; padding: 0 7px; border-radius: 99px; background: var(--bg-tint); color: var(--muted); line-height: 18px; }
.tab[aria-selected="true"] .n, .tab[aria-current="page"] .n { background: rgba(255,255,255,.22); color: var(--primary-fg); }
.scroll-x { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > .tabs, .scroll-x > .chips { flex-wrap: nowrap; padding-bottom: 2px; }

/* ---------- Tabel ---------- */
.tbl-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 12px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background var(--t); }
.tbl tbody tr:hover { background: var(--hover-surface); }
.tbl tbody tr.sel { background: var(--soft); }
.tbl tbody tr.dragging { opacity: .5; }
.tbl tbody tr.drop-above td { box-shadow: inset 0 2px 0 var(--primary); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .act { text-align: right; white-space: nowrap; }
.tbl .cell-main { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.tbl .cell-main .t { font-weight: 600; color: var(--ink); }
.tbl .cell-main .s { font-size: 12px; color: var(--muted); }
.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--bg-tint); flex: 0 0 auto; }
.handle { cursor: grab; color: var(--muted); width: 28px; text-align: center; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 4px 0; font-size: 13px; color: var(--muted); }
.pager .row { gap: 6px; }

/* ---------- Pesan inline ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 14px; line-height: 1.5; background: var(--soft); color: var(--soft-fg); border: 1px solid transparent; }
.alert > .bi { font-size: 18px; flex: 0 0 auto; margin-top: 1px; }
.alert .grow > b { display: block; color: inherit; }
.alert.success { background: var(--success-bg); color: var(--success); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.danger { background: var(--danger-bg); color: var(--danger); }
.alert.neutral { background: var(--bg-tint); color: var(--ink2); }
.alert .btn { flex: 0 0 auto; }

/* Panel inline (pengganti modal untuk konfirmasi dan form sekunder) */
.ipanel { margin-top: 20px; padding: 20px; border-radius: var(--r-shell); background: var(--bg-alt); border: 1px solid var(--line); animation: drop .2s ease-out; }
.ipanel > .card { box-shadow: var(--sh1); }
.ipanel.danger { background: color-mix(in srgb, var(--danger-bg) 55%, var(--bg-alt)); border-color: color-mix(in srgb, var(--danger) 25%, var(--line)); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.confirm { display: flex; gap: 16px; align-items: flex-start; }
.confirm .grow p { color: var(--ink2); font-size: 14px; margin-top: 4px; }

/* ---------- Kosong, skeleton, progres ---------- */
.empty { text-align: center; padding: 40px 20px; display: grid; justify-items: center; gap: 10px; }
.empty .tile { margin-bottom: 6px; }
.empty h3 { font-size: 18px; }
.empty p { color: var(--muted); font-size: 14px; max-width: 420px; }
.skel { background: linear-gradient(90deg, var(--bg-tint) 0%, color-mix(in srgb, var(--bg-tint) 50%, var(--card)) 50%, var(--bg-tint) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.bar { height: 8px; border-radius: 99px; background: var(--bg-tint); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width .3s ease; }
.card.feat .bar { background: rgba(255,255,255,.22); }
.card.feat .bar > i { background: #fff; }

/* ---------- Toast & modal ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--solid); color: var(--solid-fg); box-shadow: var(--sh3); font-size: 14px; animation: drop .2s ease-out; }
.toast .bi { font-size: 18px; }
.toast.danger { background: var(--danger); color: #fff; }
[data-mode="dark"] .toast.danger { color: #2A0A04; }
.toast button { margin-left: auto; color: inherit; opacity: .8; }
dialog.modal { border: 0; padding: 0; border-radius: var(--r-shell); background: var(--card); color: var(--ink); width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: var(--sh3); }
dialog.modal::backdrop { background: rgba(6, 14, 34, .62); }
.modal-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.modal-bd { padding: 16px; overflow: auto; max-height: calc(100vh - 120px); }
.modal-bd iframe { width: 100%; height: min(72vh, 760px); border: 0; border-radius: 14px; background: var(--bg-alt); }
.modal-bd .zoom-img { max-height: 76vh; margin: 0 auto; border-radius: 14px; object-fit: contain; }

/* ---------- Layout autentikasi (login, daftar, ganti sandi) ---------- */
.auth { min-height: 100vh; padding: 32px 20px; display: grid; place-items: center; background: radial-gradient(70% 60% at 0% 0%, color-mix(in srgb, var(--accent) 55%, transparent) 0%, transparent 60%), linear-gradient(160deg, var(--grad-1) 0%, var(--grad-2) 55%, var(--grad-3) 100%); }
.auth-shell { width: min(1080px, 100%); display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border-radius: 28px; overflow: hidden; background: color-mix(in srgb, #fff 8%, transparent); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 30px 70px rgba(6, 14, 34, .28); }
.auth-hero { padding: 48px; color: #fff; display: flex; flex-direction: column; gap: 22px; }
.auth-hero .brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; }
.auth-hero .brand img { height: 40px; width: auto; }
.auth-hero h1 { color: #fff; font-size: 44px; line-height: 52px; font-weight: 800; }
.auth-hero h1 em { font-style: normal; color: color-mix(in srgb, #fff 78%, var(--accent)); }
.auth-hero p { font-size: 16px; line-height: 26px; color: #fff; opacity: .92; max-width: 460px; }
.auth-feats { display: grid; gap: 10px; margin-top: 6px; }
.auth-feats div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.12); font-weight: 600; font-size: 14px; }
.auth-panel { background: var(--card); padding: 44px 40px; display: flex; flex-direction: column; gap: 18px; }
.auth-panel h2 { font-size: 24px; }
.auth-foot { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 13px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
.auth-foot a { color: var(--ink2); font-weight: 600; }
.auth.single .auth-shell { grid-template-columns: 1fr; width: min(560px, 100%); }
.stepper { display: flex; gap: 8px; padding: 4px; border-radius: 99px; background: var(--bg-alt); border: 1px solid var(--line); }
.stepper span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 36px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); }
.stepper span.on { background: var(--primary); color: var(--primary-fg); }
.stepper span.done { color: var(--success); }

/* ---------- Shell aplikasi: rail melayang ---------- */
.rail { position: fixed; z-index: 40; left: var(--rail-gap); top: var(--rail-gap); bottom: var(--rail-gap); width: var(--rail-w); border-radius: 32px; background: linear-gradient(180deg, var(--grad-2), var(--grad-3)); box-shadow: var(--sh3); display: flex; flex-direction: column; align-items: center; padding: 16px 0; }
.rail-logo { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.16); color: #fff; font-size: 24px; flex: 0 0 auto; overflow: hidden; }
.rail-logo:hover { background: rgba(255,255,255,.24); color: #fff; text-decoration: none; }
.rail-logo img { width: 34px; height: 34px; object-fit: contain; }
.rail-nav { flex: 1 1 auto; min-height: 0; width: 100%; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 0; margin: 8px 0; }
.rail-nav::-webkit-scrollbar { display: none; }
.rail-i { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; font-size: 22px; opacity: .8; position: relative; transition: background var(--t), color var(--t), opacity var(--t), box-shadow var(--t), transform var(--t); text-decoration: none !important; }
.rail-i:hover { background: rgba(255,255,255,.16); opacity: 1; color: #fff; }
.rail-i:active, .rail-i.is-press { transform: scale(.94); background: rgba(255,255,255,.24); }
.rail-i[aria-current="page"] { background: #fff; color: var(--primary); opacity: 1; box-shadow: 0 10px 22px rgba(6, 14, 34, .22); }
[data-mode="dark"] .rail-i[aria-current="page"] { color: #234DB0; }
.rail-i:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rail-sep { width: 36px; height: 1px; background: rgba(255,255,255,.32); margin: 8px 0; flex: 0 0 auto; }
.rail-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 0 auto; }
.rail-av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #1F4DB0; font-weight: 800; font-size: 15px; border: 3px solid rgba(255,255,255,.35); background-clip: padding-box; text-decoration: none !important; transition: transform var(--t), box-shadow var(--t); }
.rail-av:hover { color: #1F4DB0; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.rail-av[aria-current="page"] { box-shadow: 0 0 0 3px #fff; }
.rail-badge { position: absolute; top: 8px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--grad-2); }
.tip { position: fixed; z-index: 95; pointer-events: none; padding: 7px 12px; border-radius: 10px; background: var(--solid); color: var(--solid-fg); font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: var(--sh2); opacity: 0; transform: translateX(-4px); transition: opacity 120ms, transform 120ms; }
.tip.on { opacity: 1; transform: none; }
.tip::before { content: ''; position: absolute; left: -5px; top: 50%; margin-top: -5px; border: 5px solid transparent; border-left: 0; border-right-color: var(--solid); }

.frame { margin-left: calc(var(--rail-w) + var(--rail-gap) * 2); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: 72px; display: flex; align-items: center; gap: 16px; padding: 0 32px; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid transparent; transition: border-color var(--t); }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar h1 { font-size: 20px; line-height: 28px; font-weight: 700; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar h1 em { font-style: normal; color: var(--primary); }
.tb-right { display: flex; align-items: center; gap: 10px; }
.tb-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--grad-2), var(--grad-3)); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none !important; }
.tb-av:hover { color: #fff; box-shadow: 0 0 0 3px var(--soft-hover); }
.tb-user { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.tb-user b { font-size: 13px; }
.tb-user span { font-size: 12px; color: var(--muted); }
main.page { width: 100%; max-width: 1248px; margin: 0 auto; padding: 8px 32px 56px; flex: 1 0 auto; }
body.is-admin-page main.page { max-width: 1488px; }
main.page:focus { outline: none; }
.foot { margin: 0 32px 24px; border-radius: var(--r-shell); background: var(--solid); color: var(--solid-fg); padding: 28px 32px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.foot .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.foot p { opacity: .82; font-size: 13px; margin-top: 8px; max-width: 460px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; align-content: flex-start; font-size: 13px; }
.foot a { color: var(--solid-fg); opacity: .9; font-weight: 600; }
.foot a:hover { color: var(--solid-fg); opacity: 1; }
.foot .copy { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--solid-fg) 18%, transparent); font-size: 12px; opacity: .75; }
.bnav { display: none; }

/* ---------- Member: dashboard ---------- */
.annc { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 16px; border-radius: var(--r-card); color: #fff; text-decoration: none !important; background: radial-gradient(60% 120% at 0% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%), linear-gradient(145deg, var(--grad-2), var(--grad-3)); box-shadow: var(--sh3); transition: transform var(--t), box-shadow var(--t); }
a.annc:hover { color: #fff; transform: translateY(-2px); }
.annc img { width: 200px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: rgba(255,255,255,.12); }
.annc .txt { font-size: 15px; line-height: 24px; white-space: pre-line; }
.annc .txt b { display: block; font-size: 12px; letter-spacing: .02em; opacity: .9; margin-bottom: 4px; }
.annc.noimg { grid-template-columns: minmax(0, 1fr) auto; padding: 20px 24px; }
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 28px 0 20px; }
.hello p { color: var(--muted); margin-top: 6px; }
.stat { display: flex; flex-direction: column; gap: 10px; min-height: 150px; }
.stat .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.stat .lbl { font-size: 13px; font-weight: 600; color: var(--ink2); }
.card.feat .stat .lbl, .card.feat.stat .lbl { color: #fff; }
.stat .val { font-size: 36px; line-height: 40px; font-weight: 800; letter-spacing: -0.02em; }
.stat .val small { font-size: 18px; font-weight: 700; opacity: .75; }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: auto; }
.card.feat .stat .sub, .card.feat.stat .sub { color: #fff; opacity: .9; }
.cont { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: center; }
.cont img, .cont .ph { width: 180px; aspect-ratio: 16 / 10; border-radius: 14px; object-fit: cover; background: var(--bg-tint); }
.evt-feat { display: flex; flex-direction: column; gap: 10px; }
.evt-mini { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; transition: background var(--t); text-decoration: none !important; color: inherit; }
.evt-mini:hover { background: var(--hover-surface); color: inherit; }
.datebox { width: 48px; height: 52px; border-radius: 12px; background: var(--soft); color: var(--soft-fg); display: grid; place-content: center; text-align: center; flex: 0 0 auto; line-height: 1.05; }
.datebox b { font-size: 18px; } .datebox span { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown div { background: rgba(255,255,255,.16); border-radius: 12px; padding: 8px 4px; text-align: center; }
.countdown b { display: block; font-size: 22px; line-height: 26px; font-weight: 800; }
.countdown span { font-size: 11px; opacity: .9; }
.card:not(.feat) .countdown div { background: var(--soft); color: var(--soft-fg); }
.cls-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; transition: background var(--t); }
.cls-row:hover { background: var(--hover-surface); }
.cls-row img, .cls-row .ph { width: 64px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--bg-tint); }

/* ---------- Kartu produk & etalase ---------- */
.pgrid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.pcard { position: relative; display: flex; flex-direction: column; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--card); box-shadow: var(--sh1); overflow: hidden; color: inherit; text-decoration: none !important; min-width: 0; }
.pcard:hover { color: inherit; }
.pcard.blue { background: var(--card-blue); } .pcard.lav { background: var(--card-lavender); }
.pcard.feat { background: linear-gradient(145deg, var(--grad-2), var(--grad-3)); color: #fff; border-color: transparent; box-shadow: var(--sh3); }
.pcard .cover { position: relative; margin: 10px 10px 0; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-tint); }
.pcard .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pcard:hover .cover img { transform: scale(1.03); }
.pcard .cover .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 34px; color: var(--icon); background: var(--tile); }
.pcard .cover .badge { position: absolute; top: 10px; left: 10px; }
.pcard .cover .badge.r { left: auto; right: 10px; }
.pcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard .meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pcard .meta .typ { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); }
.pcard .meta .typ .tile { width: 24px; height: 24px; font-size: 12px; border-radius: 8px; }
.pcard h3 { font-size: 16px; line-height: 22px; font-weight: 700; }
.pcard .sub { font-size: 13px; line-height: 19px; color: var(--muted); }
.pcard .foot-row { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.pcard.feat .meta, .pcard.feat .sub, .pcard.feat .foot-row, .pcard.feat .meta .typ { color: #fff; }
.pcard.feat .foot-row, .pcard.feat .sub { opacity: .92; }
.pcard.feat .cover .ph { background: rgba(255,255,255,.16); color: #fff; }
.pcard.locked .cover img { filter: grayscale(.85) brightness(.7); }
.pcard .lock { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: 13px; background: rgba(6,14,34,.35); }
.pcard .lock .bi { font-size: 26px; }
.pcard.soon .cover img { filter: saturate(.6); }
.pcard .prog { display: flex; align-items: center; gap: 8px; }
.pcard .prog .bar { flex: 1; height: 6px; }
.scard { display: flex; flex-direction: column; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh1); overflow: hidden; color: inherit; text-decoration: none !important; }
.scard:hover { color: inherit; }
.scard .img { position: relative; aspect-ratio: 16 / 10; background: var(--bg-tint); }
.scard .img img { width: 100%; height: 100%; object-fit: cover; }
.scard .img .badge { position: absolute; top: 12px; left: 12px; }
.scard .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.scard h3 { font-size: 16px; line-height: 22px; }
.scard .price { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 800; color: var(--ink); }
.scard .price .go { color: var(--primary); font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Halaman produk ---------- */
.crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 8px 0 18px; }
.crumb a { color: var(--ink2); font-weight: 600; }
.crumb .bi { font-size: 11px; }
.player { position: relative; border-radius: 16px; overflow: hidden; background: #060E22; aspect-ratio: 16 / 9; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .ext { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: #fff; text-align: center; padding: 20px; }
.ep-list { display: flex; flex-direction: column; gap: 4px; max-height: 560px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.ep { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; text-align: left; width: 100%; color: var(--ink2); font-size: 14px; border-left: 3px solid transparent; transition: background var(--t), color var(--t); }
.ep:hover { background: var(--hover-surface); color: var(--ink); }
.ep[aria-current="true"] { background: var(--soft); color: var(--soft-fg); border-left-color: var(--primary); font-weight: 600; }
.ep .no { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--card); color: var(--ink2); border: 1px solid var(--line); }
.ep[aria-current="true"] .no { background: var(--primary); color: var(--primary-fg); border-color: transparent; }
.ep .dur { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gallery { position: relative; border-radius: 16px; overflow: hidden; background: var(--bg-tint); aspect-ratio: 4 / 3; }
.gallery .slide { position: absolute; inset: 0; display: grid; place-items: center; }
.gallery .slide img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gallery .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); color: #1F4DB0; display: grid; place-items: center; box-shadow: var(--sh1); }
.gallery .nav:hover { background: #fff; }
.gallery .prev { left: 12px; } .gallery .next { right: 12px; }
.gallery .count { position: absolute; right: 12px; bottom: 12px; }
.gallery .zoom { position: absolute; left: 12px; bottom: 12px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.thumbs button { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; flex: 0 0 auto; background: var(--bg-tint); }
.thumbs button[aria-current="true"] { border-color: var(--primary); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.spec { display: grid; gap: 0; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line-strong); font-size: 14px; }
.spec div:last-child { border-bottom: 0; }
.spec dt { color: var(--muted); } .spec dd { margin: 0; font-weight: 600; text-align: right; color: var(--ink); }
.steps { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); counter-reset: st; }
.steps li { list-style: none; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--line); }
.steps li::before { counter-increment: st; content: counter(st); width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--tile); color: var(--icon); }
.steps b { display: block; font-size: 14px; } .steps p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.mat { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.mat + .mat { margin-top: 10px; }
.mat .t { font-weight: 600; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.mat .s { font-size: 12px; color: var(--muted); }
.group-ban { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-card); background: var(--cat-green-bg); color: var(--cat-green); border: 1px solid color-mix(in srgb, var(--cat-green) 18%, transparent); }
.group-ban b { color: var(--ink); display: block; } .group-ban p { font-size: 13px; color: var(--ink2); }
.done-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.btn-done { background: var(--soft); color: var(--soft-fg); }
.btn-done:hover { background: var(--soft-hover); color: var(--soft-fg); }
.btn-done[aria-pressed="true"] { background: var(--success); color: #fff; }
[data-mode="dark"] .btn-done[aria-pressed="true"] { color: #06291D; }
.lockbox { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 48px 24px; }
.lockbox .tile { width: 64px; height: 64px; font-size: 28px; border-radius: 18px; }
.prod-hd { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.prod-hd .chips { margin-top: 10px; }
.access-card .btn { width: 100%; }
.access-note { font-size: 13px; color: var(--ink2); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; gap: 8px; }

/* ---------- Event ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal .dn { font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 0; }
.cal .d { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-size: 14px; color: var(--ink2); position: relative; }
.cal .d.out { color: var(--faint); }
.cal .d.today { box-shadow: inset 0 0 0 1px var(--primary); color: var(--primary); font-weight: 700; }
.cal .d.has { background: var(--soft); color: var(--soft-fg); font-weight: 700; cursor: pointer; }
.cal .d.has:hover { background: var(--soft-hover); }
.cal .d.has::after { content: ''; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.cal .d.sel { background: var(--primary); color: var(--primary-fg); }
.cal .d.sel::after { background: var(--primary-fg); }
.ev-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: inherit; text-decoration: none !important; }
.ev-row:hover { color: inherit; }
.ev-row + .ev-row { margin-top: 10px; }
.lp { display: grid; gap: 20px; }
.lp-hero { position: relative; min-height: 360px; border-radius: var(--r-shell); overflow: hidden; color: #fff; display: flex; align-items: flex-end; background: linear-gradient(160deg, var(--grad-1), var(--grad-2) 55%, var(--grad-3)); }
.lp-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-hero .ov { position: relative; width: 100%; padding: 32px; background: linear-gradient(180deg, transparent 0%, rgba(6,14,34,.78) 62%); display: grid; gap: 12px; }
.lp-hero h2 { color: #fff; font-size: 36px; line-height: 44px; font-weight: 800; }
.lp-hero p { max-width: 640px; opacity: .95; }
.lp-sec h3 { margin-bottom: 12px; }
.tl { display: grid; gap: 10px; }
.tl div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--line); }
.tl .tm { font-weight: 800; font-size: 13px; color: var(--soft-fg); background: var(--soft); border-radius: 10px; padding: 6px 8px; text-align: center; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.faq details + details { margin-top: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '\F282'; font-family: 'bootstrap-icons'; transition: transform var(--t); color: var(--muted); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details > div { padding: 0 16px 14px; color: var(--ink2); font-size: 14px; }
.stars { color: var(--star); letter-spacing: 2px; }
.sticky-cta { position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 14px 22px; border-radius: 20px; background: var(--solid); color: var(--solid-fg); box-shadow: var(--sh3); }
.embed-box iframe { width: 100%; border: 0; border-radius: 14px; background: var(--bg-alt); }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.hscroll > * { scroll-snap-align: start; }

/* ---------- Profil ---------- */
.pf-side { position: sticky; top: 88px; display: grid; gap: 16px; }
.pf-av { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: #fff; background: linear-gradient(145deg, var(--grad-2), var(--grad-3)); margin: 0 auto 6px; box-shadow: var(--sh2); }
.pf-nav { display: grid; gap: 4px; }
.pf-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--ink2); font-weight: 600; font-size: 14px; }
.pf-nav a:hover { background: var(--hover-surface); color: var(--ink); text-decoration: none; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-stats div { padding: 12px; border-radius: 14px; background: var(--bg-alt); text-align: center; }
.mini-stats b { display: block; font-size: 18px; }
.mini-stats span { font-size: 12px; color: var(--muted); }

/* ---------- Admin: grafik & editor ---------- */
.kpi .val { font-size: 34px; line-height: 40px; font-weight: 800; letter-spacing: -0.02em; margin-top: 10px; }
.kpi .sub { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.card.feat.kpi .sub { color: #fff; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--font); font-size: 11px; fill: var(--muted); }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--ink2); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i.dash { height: 0; border-top: 2px dashed currentColor; width: 14px; border-radius: 0; }
.ctip { position: absolute; pointer-events: none; background: var(--solid); color: var(--solid-fg); font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -120%); box-shadow: var(--sh2); }
.part-row + .part-row { margin-top: 14px; }
.part-row .row { justify-content: space-between; font-size: 14px; }
.part-row .bar { margin-top: 8px; height: 10px; }
.act-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.act-row:last-child { border-bottom: 0; }
.act-row .t { font-size: 14px; color: var(--ink); } .act-row .s { font-size: 12px; color: var(--muted); }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
.editor .sticky { position: sticky; top: 88px; }
.typepick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.typepick button { text-align: left; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); display: grid; gap: 8px; transition: border-color var(--t), background var(--t), box-shadow var(--t); }
.typepick button:hover { border-color: var(--hover-line); background: var(--hover-surface); }
.typepick button[aria-pressed="true"] { border-color: var(--primary); background: var(--soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus-ring) 18%, transparent); }
.typepick b { font-size: 14px; } .typepick span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.rep { display: grid; gap: 12px; }
.rep-item { border: 1px solid var(--line); border-radius: 16px; background: var(--bg-alt); padding: 14px; }
.rep-item .rep-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.rep-item .rep-hd .badge { background: var(--primary); color: var(--primary-fg); }
.rep-item .rep-hd .grow { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-add { border: 1.5px dashed var(--line-strong); border-radius: 16px; height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--primary); font-weight: 600; font-size: 14px; width: 100%; transition: background var(--t), border-color var(--t); }
.rep-add:hover { background: var(--soft); border-color: var(--primary); }
.device { border-radius: 24px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; box-shadow: var(--sh1); }
.device .dv-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.device .dv-bd { padding: 14px; max-height: 70vh; overflow: auto; }
.device.mobile { width: 390px; max-width: 100%; margin: 0 auto; }
.device .scale { zoom: .8; }
.blk-pal { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.blk-pal button { text-align: left; display: flex; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); align-items: flex-start; transition: background var(--t), border-color var(--t); }
.blk-pal button:hover { background: var(--hover-surface); border-color: var(--hover-line); }
.blk-pal b { display: block; font-size: 13px; } .blk-pal span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.tok-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 96px auto; gap: 10px; align-items: center; padding: 6px 0; }
.tok-row input[type=color] { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-strong); padding: 2px; background: var(--card); cursor: pointer; }
.tok-row .input { min-height: 34px; height: 34px; padding: 0 10px; font-family: ui-monospace, monospace; font-size: 12px; }
.tok-row .nm { font-size: 13px; font-weight: 600; }
.acc details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.acc details + details { margin-top: 8px; }
.acc summary { list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '\F282'; font-family: 'bootstrap-icons'; color: var(--muted); }
.acc details[open] summary::after { transform: rotate(180deg); }
.acc details > div { padding: 0 14px 10px; }
.preview-theme { border-radius: 20px; padding: 18px; border: 1px solid var(--line); }
.wa-bubble { position: relative; max-width: 360px; background: #DCF8C6; color: #111B21; padding: 10px 12px 18px; border-radius: 12px 12px 12px 4px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(0,0,0,.12); }
.wa-bubble time { position: absolute; right: 10px; bottom: 4px; font-size: 11px; color: #5B6475; }
.wa-wrap { background: #EFE7DD; border-radius: 16px; padding: 16px; }
[data-mode="dark"] .wa-wrap { background: #0B141A; }
[data-mode="dark"] .wa-bubble { background: #005C4B; color: #E9EDEF; }
[data-mode="dark"] .wa-bubble time { color: #C3CCEB; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-chips button { height: 28px; padding: 0 10px; border-radius: 99px; background: var(--soft); color: var(--soft-fg); font-size: 12px; font-weight: 600; font-family: ui-monospace, monospace; }
.ph-chips button:hover { background: var(--soft-hover); }
.tier { display: flex; flex-direction: column; gap: 12px; min-height: 230px; }
.save-bar { position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh3); margin-top: 16px; }
.tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters .input-icon { flex: 1 1 260px; }
.filters .select { width: auto; min-width: 160px; }
.code-box { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line); font-family: ui-monospace, monospace; font-size: 13px; overflow-wrap: anywhere; }
.code-box .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Responsif ---------- */
@media (max-width: 1279px) {
  .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor { grid-template-columns: minmax(0, 1fr); }
  .editor .sticky { position: static; }
  .split, .split.wide, .split.s11, .split.s12, .split.s13, .split.s14, .split.s15, .split.s0911, .split.side, .editor.ev { grid-template-columns: minmax(0, 1fr); }
  .pf-side { position: static; }
}
@media (max-width: 1023px) {
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-hero { padding: 32px; }
  .auth-hero h1 { font-size: 34px; line-height: 42px; }
  .auth-feats { display: none; }
  .steps { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .foot .links { justify-content: flex-start; }
}
@media (max-width: 767px) {
  body { font-size: 14px; }
  .rail, .tip { display: none; }
  .frame { margin-left: 0; padding-bottom: 96px; }
  .topbar { height: 60px; padding: 0 16px; }
  .topbar h1 { font-size: 17px; }
  .tb-user { display: none; }
  main.page { padding: 4px 16px 40px; }
  .foot { margin: 0 16px 16px; padding: 22px; }
  .display { font-size: 32px; line-height: 40px; }
  .h1 { font-size: 26px; line-height: 34px; }
  .g2, .g3, .g4, .g5, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .grid.g-auto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-height: 0; }
  .card { padding: 18px; }
  .band { padding: 18px; margin-top: 28px; }
  .section { margin-top: 28px; }
  .annc, .annc.noimg { grid-template-columns: 1fr; padding: 14px; }
  .annc img { width: 100%; }
  .cont { grid-template-columns: 1fr; }
  .cont img, .cont .ph { width: 100%; }
  .cls-row { grid-template-columns: 52px minmax(0, 1fr); }
  .cls-row > :last-child { grid-column: 1 / -1; justify-self: start; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
  .auth { padding: 0; place-items: stretch; }
  .auth-shell { border-radius: 0; min-height: 100vh; border: 0; }
  .auth-hero { padding: 28px 22px 24px; }
  .auth-hero h1 { font-size: 28px; line-height: 36px; }
  .auth-panel { padding: 28px 22px; border-radius: 24px 24px 0 0; }
  .lp-hero h2 { font-size: 26px; line-height: 34px; }
  .lp-hero .ov { padding: 20px; }
  .modal-bd iframe { height: 64vh; }
  .tok-row { grid-template-columns: 28px minmax(0, 1fr) 84px; }
  .tok-row .badge { display: none; }
  .tbl { font-size: 13px; }
  .sticky-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .confirm { flex-direction: column; }
  .bnav { display: flex; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); height: 68px; padding: 8px; gap: 4px; border-radius: 26px; background: linear-gradient(135deg, var(--grad-2), var(--grad-3)); box-shadow: var(--sh3); overflow-x: auto; scrollbar-width: none; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%); }
  .bnav::-webkit-scrollbar { display: none; }
  .bnav .rail-i { width: 52px; height: 52px; }
  .bnav.fit { justify-content: space-around; -webkit-mask-image: none; mask-image: none; }
  .bnav .rail-sep { width: 1px; height: 28px; margin: 0 4px; }
  .bnav .rail-av { width: 44px; height: 44px; flex: 0 0 auto; font-size: 13px; }
  .toasts { bottom: 96px; }
  .save-bar { bottom: 92px; flex-direction: column; align-items: stretch; }
  .filters .select { flex: 1 1 140px; }
}

/* ---------- Pratinjau di editor admin (desktop diperkecil, mobile disimulasikan) ---------- */
.pv-wrap { overflow: auto; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); max-height: 72vh; }
.pv { padding: 16px; }
.pv.desk { width: 1120px; }
.pv.mob { width: 390px; margin: 0 auto; }
.pv.mob .split, .pv.mob .split.wide, .pv.mob .g2, .pv.mob .g3, .pv.mob .g4, .pv.mob .g5, .pv.mob .steps, .pv.mob .cont, .pv.mob .form-grid { grid-template-columns: minmax(0, 1fr); }
.pv.mob .annc { grid-template-columns: 1fr; }
.pv.mob .annc img { width: 100%; }
.pv.mob .lp-hero h2 { font-size: 26px; line-height: 34px; }
.pv.mob .h1 { font-size: 24px; line-height: 32px; }
.pv a, .pv button { pointer-events: none; }
.pv .gallery .nav, .pv [data-act="galPick"] { pointer-events: auto; }
.prev-theme .btn { pointer-events: none; }
.ed-warn { margin-top: 0; }

/* Placeholder gambar (cover/thumbnail kosong atau gagal dimuat) */
.ph { display: grid; place-items: center; color: var(--icon); background: var(--tile); font-size: 22px; }
.scard .img .ph, .annc .ph { width: 100%; height: 100%; font-size: 34px; }
.cont .ph { font-size: 34px; }
