/* =========================================================
   OE Forum 2026 – Panel & shared styles
   ========================================================= */
:root {
    --navy: #061a40;
    --navy-2: #0a2a66;
    --primary: #1554e0;
    --primary-2: #0b3fb3;
    --cyan: #38bdf8;
    --yellow: #fbbf24;
    --red: #ef4444;
    --green: #22c55e;
    --purple: #7c3aed;
    --bg: #f3f6fc;
    --surface: #ffffff;
    --surface-2: #f8fafe;
    --text: #0f1b33;
    --muted: #64748b;
    --border: #e3e9f4;
    --shadow: 0 1px 2px rgba(15, 27, 51, .04), 0 8px 24px rgba(15, 27, 51, .06);
    --shadow-lg: 0 20px 50px rgba(6, 26, 64, .18);
    --radius: 16px;
    --radius-sm: 10px;
    --sidebar: 268px;
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4, h5 { margin: 0 0 .5rem; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.1rem; } h4 { font-size: 1rem; }
p { margin: 0 0 1rem; }
small, .small { font-size: .82rem; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; gap: .75rem; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.w-100 { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .62rem 1.1rem; border-radius: 11px; border: 1px solid transparent;
    font: 600 .9rem var(--font); cursor: pointer; text-decoration: none !important;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s;
    white-space: nowrap; color: var(--text); background: var(--surface);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 6px 18px rgba(21, 84, 224, .3); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(21, 84, 224, .4); transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: #1b1300; box-shadow: 0 6px 18px rgba(251, 191, 36, .35); }
.btn-yellow:hover { transform: translateY(-1px); }
.btn-success { background: var(--green); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-outline { border-color: var(--border); background: var(--surface); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: rgba(21, 84, 224, .08); }
.btn-sm { padding: .4rem .75rem; font-size: .8rem; border-radius: 9px; }
.btn-lg { padding: .9rem 1.5rem; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center;
    border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--text);
    position: relative; font-size: 1.1rem;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1rem; }
label, .label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: .35rem; }
.req { color: var(--red); }
.input, select.input, textarea.input {
    width: 100%; padding: .7rem .9rem; border-radius: 11px; border: 1.5px solid var(--border);
    background: var(--surface); font: 500 .93rem var(--font); color: var(--text); transition: border .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(21, 84, 224, .12); }
textarea.input { min-height: 110px; resize: vertical; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .input { padding-left: 2.6rem; }
.hint { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.check { display: flex; gap: .5rem; align-items: center; font-weight: 500; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(20px); }

/* ---------- Alerts ---------- */
.alert { padding: .85rem 1rem; border-radius: 12px; margin-bottom: 1rem; display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; border: 1px solid; }
.alert i { font-size: 1.1rem; line-height: 1.3; }
.alert-success { background: #ecfdf3; border-color: #bbf7d0; color: #166534; }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 99px; font-size: .74rem; font-weight: 700; background: #eef2ff; color: #3730a3; white-space: nowrap; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-purple { background: #ede9fe; color: #5b21b6; }
.stream-badge { display: inline-flex; gap: .35rem; align-items: center; font-size: .74rem; font-weight: 600; padding: .25rem .6rem; border-radius: 8px; line-height: 1.3; }
.stream-badge.s1 { background: #e0f2fe; color: #075985; }
.stream-badge.s2 { background: #fee2e2; color: #9f1239; }
.stream-badge.s3 { background: #fef3c7; color: #854d0e; }
.stream-badge.s4 { background: #dcfce7; color: #166534; }

.avatar {
    --av: #2563eb;
    width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; flex-shrink: 0;
    background: linear-gradient(135deg, var(--av), color-mix(in srgb, var(--av) 60%, #000));
    color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .02em;
}
.avatar.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 1.3rem; }
.avatar.sm { width: 30px; height: 30px; border-radius: 9px; font-size: .72rem; }

/* ---------- Panel layout ---------- */
.panel-wrap { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar); flex-shrink: 0; background: var(--navy); color: #cfe0ff;
    position: fixed; inset: 0 auto 0 0; z-index: 60; display: flex; flex-direction: column;
    background-image: radial-gradient(circle at 0 0, rgba(56, 189, 248, .18), transparent 45%), radial-gradient(circle at 100% 100%, rgba(21, 84, 224, .35), transparent 50%);
    transition: transform .3s ease;
}
.brand-row { display: flex; align-items: center; padding-right: .9rem; }
.brand-row .brand { flex: 1; }
.side-close { display: none; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); color: #fff; }
.sidebar .brand { display: flex; align-items: center; gap: .7rem; padding: 1.3rem 1.3rem 1rem; color: #fff; text-decoration: none; }
.brand-logo {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; padding: 4px;
    background: #fff; box-shadow: 0 8px 22px rgba(56, 189, 248, .35), 0 0 0 1px rgba(255, 255, 255, .25);
    position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.brand-logo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, .55), transparent 55%); pointer-events: none; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
a:hover > .brand-logo, .brand:hover .brand-logo { transform: translateY(-1px) scale(1.04); box-shadow: 0 12px 28px rgba(56, 189, 248, .5), 0 0 0 1px rgba(255, 255, 255, .35); }
.logo-full { display: block; max-width: 100%; height: auto; }
.logo-full.sm { width: 150px; }
.logo-full.md { width: 220px; }
.logo-full.lg { width: 300px; }
.logo-glow { filter: drop-shadow(0 12px 28px rgba(56, 189, 248, .35)) drop-shadow(0 0 2px rgba(255, 255, 255, .15)); }
.brand-text b { display: block; font-size: 1rem; line-height: 1.1; }
.brand-text span { font-size: .72rem; color: #8fb3ff; letter-spacing: .08em; text-transform: uppercase; }
.side-nav { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: .25rem .8rem 1rem; scrollbar-width: thin; scrollbar-color: transparent transparent; transition: scrollbar-color .3s; }
.side-nav { -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); }
.side-nav:hover { scrollbar-color: rgba(255, 255, 255, .22) transparent; }
.side-nav::-webkit-scrollbar { width: 6px; }
.side-nav::-webkit-scrollbar-track { background: transparent; }
.side-nav::-webkit-scrollbar-thumb { background: transparent; border-radius: 6px; }
.side-nav:hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); }
.side-nav::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .38); }
.side-nav::-webkit-scrollbar-button { display: none; height: 0; }
.side-nav .sect { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #6b8bc9; margin: .95rem .7rem .3rem; font-weight: 700; }
.side-nav a {
    display: flex; align-items: center; gap: .75rem; padding: .55rem .8rem; border-radius: 11px; color: #cfe0ff;
    font-weight: 500; font-size: .9rem; margin-bottom: 2px; text-decoration: none; transition: background .2s, color .2s;
}
.side-nav a i { font-size: 1.05rem; width: 20px; text-align: center; }
.side-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-nav a.active { background: linear-gradient(135deg, rgba(56, 189, 248, .25), rgba(21, 84, 224, .45)); color: #fff; box-shadow: inset 3px 0 0 var(--cyan); }
.side-nav .count { margin-left: auto; background: var(--red); color: #fff; font-size: .7rem; padding: .05rem .45rem; border-radius: 99px; font-weight: 700; }
.side-foot { padding: 1rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.side-user { display: flex; align-items: center; gap: .65rem; }
.side-user b { color: #fff; font-size: .88rem; display: block; line-height: 1.2; }
.side-user span { font-size: .74rem; color: #8fb3ff; }

.main { flex: 1; margin-left: var(--sidebar); min-width: 0; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: .8rem;
    padding: .85rem 1.6rem; background: rgba(243, 246, 252, .85); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.topbar h1 { font-size: 1.15rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .crumb { font-size: .78rem; color: var(--muted); }
.topbar .menu-toggle { display: none; }
.topbar .points-pill {
    display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 99px;
    background: linear-gradient(135deg, #fff7d6, #fde68a); color: #7c5300; font-weight: 800; font-size: .88rem;
    border: 1px solid #fcd34d;
}
.dot-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--red); color: #fff; font-size: .66rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.content { padding: 1.6rem; flex: 1; width: 100%; max-width: 1400px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.page-head p { margin: 0; color: var(--muted); }
.backdrop { display: none; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem; }
.card + .card { margin-top: 1.2rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h3 { margin: 0; display: flex; align-items: center; gap: .5rem; }
.card-head h3 i { color: var(--primary); }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-head { padding: 1.1rem 1.3rem 0; }
.grid { display: grid; gap: 1.2rem; }
.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-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

.stat {
    position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.15rem 1.2rem; box-shadow: var(--shadow);
}
.stat .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 1.25rem; margin-bottom: .8rem; color: #fff; }
.stat .val { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat .lbl { color: var(--muted); font-size: .84rem; font-weight: 500; }
.stat .trend { position: absolute; right: 1rem; top: 1rem; font-size: .75rem; }
.ic-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.ic-cyan { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.ic-yellow { background: linear-gradient(135deg, #fbbf24, #d97706); }
.ic-green { background: linear-gradient(135deg, #4ade80, #16a34a); }
.ic-red { background: linear-gradient(135deg, #f87171, #dc2626); }
.ic-purple { background: linear-gradient(135deg, #a78bfa, #6d28d9); }

/* hero card for participant */
.hero-card {
    position: relative; overflow: hidden; border-radius: 22px; padding: 1.6rem; color: #fff;
    background: linear-gradient(135deg, #061a40 0%, #0b3fb3 55%, #0ea5e9 120%);
    box-shadow: var(--shadow-lg);
}
.hero-card::before, .hero-card::after { content: ''; position: absolute; border-radius: 50%; filter: blur(2px); }
.hero-card::before { width: 280px; height: 280px; right: -80px; top: -120px; background: radial-gradient(circle, rgba(56, 189, 248, .55), transparent 70%); }
.hero-card::after { width: 220px; height: 220px; left: 30%; bottom: -140px; background: radial-gradient(circle, rgba(251, 191, 36, .35), transparent 70%); }
.hero-card > * { position: relative; z-index: 1; }
.hero-card .big-points { font-size: 3.2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.hero-card .chip { display: inline-flex; align-items: center; gap: .35rem; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); padding: .3rem .7rem; border-radius: 99px; font-size: .78rem; font-weight: 600; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.2rem; align-items: center; }
.hero-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.hero-mini div { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); border-radius: 14px; padding: .75rem; text-align: center; }
.hero-mini b { display: block; font-size: 1.35rem; }
.hero-mini span { font-size: .72rem; opacity: .8; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); } 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.bump { animation: bump .6s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.15); color: var(--yellow); } 100% { transform: scale(1); } }

/* ---------- Journey stepper ---------- */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; position: relative; }
.journey .step { position: relative; text-align: center; padding: .9rem .4rem; }
.journey .step::before { content: ''; position: absolute; top: 2.15rem; left: calc(50% + 28px); right: calc(-50% + 28px); height: 3px; background: var(--border); border-radius: 3px; }
.journey .step:last-child::before { display: none; }
.journey .step.done::before { background: linear-gradient(90deg, var(--green), var(--cyan)); }
.journey .bubble { width: 52px; height: 52px; margin: 0 auto .6rem; border-radius: 16px; display: grid; place-items: center; font-size: 1.35rem; background: var(--surface-2); color: var(--muted); border: 2px solid var(--border); transition: .3s; }
.journey .step.done .bubble { background: linear-gradient(135deg, var(--green), #15803d); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(34, 197, 94, .35); }
.journey .step.current .bubble { background: linear-gradient(135deg, var(--primary), var(--cyan)); color: #fff; border-color: transparent; animation: glow 2s infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 8px rgba(56, 189, 248, .18); } }
.journey .step b { display: block; font-size: .86rem; }
.journey .step span { font-size: .74rem; color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: .75rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #f8fbff; }
.user-cell { display: flex; align-items: center; gap: .65rem; min-width: 180px; }
.user-cell b { display: block; font-size: .88rem; line-height: 1.25; }
.user-cell span { font-size: .76rem; color: var(--muted); }

/* Tabel lebar -> kartu di layar kecil (JS menambahkan .cards + data-label) */
.table-wrap { position: relative; }
.table-wrap.scrollable::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 28px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(15, 27, 51, .10)); opacity: 0; transition: opacity .2s; }
.table-wrap.scrollable.has-more::after { opacity: 1; }
.scroll-hint { display: none; font-size: .74rem; color: var(--muted); padding: .4rem 1rem 0; }
.table-wrap.scrollable.has-more + .scroll-hint, .scroll-hint.show { display: block; }

/* ---------- Bottom navigation (mobile) ---------- */
.bottom-nav { display: none; }
.lbl-sm { display: none; }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: .8rem; align-items: center; padding: .75rem 0; border-bottom: 1px dashed var(--border); }
.list li:last-child { border-bottom: 0; }
.list .ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; font-size: 1rem; }
.pts-plus { font-weight: 800; color: var(--green); white-space: nowrap; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty i { font-size: 2.4rem; display: block; margin-bottom: .5rem; opacity: .5; }

/* ---------- Leaderboard ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 1rem; align-items: end; margin-bottom: 1.4rem; }
.podium .p { text-align: center; border-radius: 20px; padding: 1.2rem .8rem; color: #fff; position: relative; overflow: hidden; }
.podium .p .avatar { margin: 0 auto .5rem; width: 58px; height: 58px; font-size: 1.1rem; border: 3px solid rgba(255, 255, 255, .7); }
.podium .p b { display: block; font-size: .95rem; line-height: 1.2; }
.podium .p small { opacity: .85; }
.podium .p .pv { font-size: 1.6rem; font-weight: 800; margin-top: .3rem; }
.podium .medal { font-size: 1.8rem; display: block; margin-bottom: .2rem; }
.podium .p1 { background: linear-gradient(160deg, #f59e0b, #b45309); padding-top: 1.8rem; padding-bottom: 1.8rem; box-shadow: 0 18px 40px rgba(245, 158, 11, .4); }
.podium .p2 { background: linear-gradient(160deg, #94a3b8, #475569); }
.podium .p3 { background: linear-gradient(160deg, #fb923c, #9a3412); }
.rank-num { width: 32px; height: 32px; border-radius: 10px; display: inline-grid; place-items: center; font-weight: 800; background: var(--surface-2); border: 1px solid var(--border); font-size: .85rem; }
tr.me td { background: #fffbea !important; }
.lb-row-anim { animation: fadeUp .4s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Quiz ---------- */
.quiz-card { display: flex; flex-direction: column; gap: .7rem; transition: transform .2s, box-shadow .2s; }
.quiz-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.quiz-card h4 { font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.quiz-meta { display: flex; gap: .8rem; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.quiz-meta i { color: var(--primary); }
.score-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--border) 0); flex-shrink: 0; }
.score-ring span { width: 50px; height: 50px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.q-wrap { max-width: 780px; margin: 0 auto; }
.q-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.q-timer { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; padding: .5rem .9rem; border-radius: 99px; background: #eef4ff; color: var(--primary); font-variant-numeric: tabular-nums; }
.q-timer.warn { background: #fee2e2; color: var(--red); animation: bump 1s infinite; }
.progress { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--primary), var(--cyan)); border-radius: 99px; transition: width .4s ease; }
.q-item { display: none; animation: fadeUp .35s ease; }
.q-item.active { display: block; }
.q-item h3 { font-size: 1.15rem; margin-bottom: 1.1rem; }
.opt { display: flex; gap: .8rem; align-items: center; padding: .95rem 1rem; border: 2px solid var(--border); border-radius: 14px; margin-bottom: .65rem; cursor: pointer; transition: .15s; background: var(--surface); font-weight: 500; }
.opt:hover { border-color: #93b4ff; background: #f6f9ff; }
.opt input { display: none; }
.opt .key { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); font-weight: 800; flex-shrink: 0; }
.opt.sel { border-color: var(--primary); background: #eef4ff; }
.opt.sel .key { background: var(--primary); color: #fff; border-color: var(--primary); }
.opt.right { border-color: var(--green); background: #ecfdf3; }
.opt.right .key { background: var(--green); color: #fff; }
.opt.wrong { border-color: var(--red); background: #fef2f2; }
.opt.wrong .key { background: var(--red); color: #fff; }
.q-nav { display: flex; justify-content: space-between; gap: .6rem; margin-top: 1.2rem; }
.q-dots { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }
.q-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.q-dots span.ans { background: var(--cyan); }
.q-dots span.cur { background: var(--primary); transform: scale(1.3); }
.result-hero { text-align: center; padding: 2rem 1rem; }
.result-hero .big { font-size: 3.6rem; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* ---------- Poster vote ---------- */
.poster-card { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 0; transition: transform .2s, box-shadow .2s; }
.poster-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.poster-thumb { height: 150px; position: relative; display: grid; place-items: center; color: #fff; overflow: hidden; }
.poster-thumb i { font-size: 3rem; opacity: .9; position: relative; z-index: 1; }
.poster-thumb::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 18px 18px; }
.poster-thumb .code { position: absolute; left: .8rem; top: .7rem; font-size: .72rem; font-weight: 700; background: rgba(0, 0, 0, .25); padding: .2rem .5rem; border-radius: 6px; z-index: 1; }
.pt1 { background: linear-gradient(135deg, #0369a1, #38bdf8); }
.pt2 { background: linear-gradient(135deg, #9f1239, #fb7185); }
.pt3 { background: linear-gradient(135deg, #a16207, #fbbf24); }
.pt4 { background: linear-gradient(135deg, #166534, #4ade80); }
.poster-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.poster-body h4 { font-size: .92rem; margin: 0; }
.voted-ribbon { position: absolute; top: .7rem; right: .7rem; z-index: 2; background: var(--yellow); color: #1b1300; font-weight: 800; font-size: .72rem; padding: .25rem .6rem; border-radius: 99px; }
.vote-bar { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; }
.vote-bar div { height: 100%; background: linear-gradient(90deg, var(--yellow), #f97316); }

/* ---------- QR ---------- */
.qr-box { background: #fff; padding: 1rem; border-radius: 18px; display: inline-block; box-shadow: var(--shadow); border: 1px solid var(--border); }
.qr-box canvas, .qr-box img { display: block; }
.ticket { max-width: 380px; margin: 0 auto; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.ticket-top { padding: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--navy), var(--primary) 70%, var(--cyan)); position: relative; }
.ticket-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 20px; background: radial-gradient(circle at 10px 10px, transparent 9px, #fff 10px) repeat-x; background-size: 20px 20px; }
.ticket-body { padding: 1.6rem 1.4rem 1.4rem; text-align: center; }
#reader { width: 100%; max-width: 480px; margin: 0 auto; border-radius: 16px; overflow: hidden; border: 0 !important; }
#reader video { border-radius: 16px; }
.scan-result { border-radius: 16px; padding: 1.1rem; text-align: center; font-weight: 600; animation: fadeUp .3s ease; }
.scan-result.ok { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.scan-result.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- Notifications ---------- */
.notif { display: flex; gap: .9rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); transition: background .2s; }
.notif.unread { background: #f3f8ff; }
.notif .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.notif b { display: block; }
.notif p { margin: .15rem 0 .25rem; font-size: .88rem; color: #334155; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.tabs a { padding: .5rem 1rem; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: .85rem; color: var(--text); text-decoration: none; }
.tabs a.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Toast ---------- */
#toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 999; display: flex; flex-direction: column; gap: .6rem; max-width: min(380px, calc(100vw - 2rem)); }
.toast { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 14px; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); animation: toastIn .35s ease; font-size: .88rem; }
.toast i { font-size: 1.2rem; color: var(--cyan); }
.toast.success i { color: var(--green); }
.toast.reward i { color: var(--yellow); }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(6, 26, 64, .55); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 200; padding: 1rem; }
.modal.open { display: flex; }
.modal-box { background: var(--surface); border-radius: 20px; padding: 1.5rem; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; animation: fadeUp .25s ease; box-shadow: var(--shadow-lg); }
.modal-box.lg { max-width: 820px; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--surface); }
.auth-art {
    position: relative; overflow: hidden; color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between;
    background: linear-gradient(150deg, #061a40 0%, #0b3fb3 60%, #0284c7 100%);
}
.auth-art .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(circle at 30% 40%, #000, transparent 75%); }
.auth-art .orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .6; animation: float 10s ease-in-out infinite; }
.auth-art .orb.o1 { width: 320px; height: 320px; background: #38bdf8; right: -80px; top: 10%; }
.auth-art .orb.o2 { width: 260px; height: 260px; background: #fbbf24; left: -60px; bottom: 5%; animation-delay: -4s; opacity: .35; }
@keyframes float { 50% { transform: translate(20px, -30px) scale(1.08); } }
.auth-art > * { position: relative; z-index: 1; }
.auth-art h2 { font-size: 2.4rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.auth-art h2 em { font-style: normal; color: var(--cyan); }
.auth-feats { display: grid; gap: .8rem; }
.auth-feats div { display: flex; gap: .8rem; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: .8rem 1rem; backdrop-filter: blur(6px); }
.auth-feats i { font-size: 1.3rem; color: var(--yellow); }
.auth-form {
    display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2.5rem 1.5rem;
    background: radial-gradient(circle at 85% 10%, rgba(56, 189, 248, .18), transparent 40%), radial-gradient(circle at 10% 90%, rgba(251, 191, 36, .14), transparent 40%), var(--bg);
}
.auth-form .box {
    width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
    padding: 2rem 1.8rem; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.auth-form .box::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--red), var(--primary), var(--cyan), var(--green)); }
.auth-mhead { display: none; }
.auth-form h1 { font-size: 1.7rem; }
.stripes { display: flex; gap: 6px; margin: .8rem 0 1.4rem; }
.stripes span { height: 5px; width: 34px; border-radius: 3px; }
.stripes span:nth-child(1) { background: var(--red); } .stripes span:nth-child(2) { background: var(--primary); } .stripes span:nth-child(3) { background: var(--green); }
.cred-box { margin-top: 1.4rem; padding: 1rem; border-radius: 14px; border: 1px dashed #c7d6f5; background: #f6f9ff; font-size: .8rem; }
.cred-box code { background: #fff; padding: .1rem .35rem; border-radius: 5px; border: 1px solid var(--border); font-size: .78rem; white-space: nowrap; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.cred-val { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.cred-row { display: flex; justify-content: space-between; gap: .5rem; padding: .3rem 0; align-items: center; flex-wrap: wrap; }
.cred-row button { font-size: .72rem; }

/* ---------- Certificate ---------- */
.cert-stage { overflow-x: auto; padding-bottom: 1rem; }
.certificate {
    width: 1000px; aspect-ratio: 1.414; margin: 0 auto; position: relative; background: #fff; color: #0f1b33;
    padding: 56px 70px; border-radius: 6px; box-shadow: var(--shadow-lg); overflow: hidden; font-family: var(--font);
}
.certificate::before { content: ''; position: absolute; inset: 18px; border: 2px solid #c9a227; border-radius: 4px; pointer-events: none; }
.certificate::after { content: ''; position: absolute; inset: 26px; border: 1px solid #e6d28a; border-radius: 2px; pointer-events: none; }
.cert-corner { position: absolute; width: 380px; height: 380px; border-radius: 50%; }
.cert-corner.c1 { left: -190px; top: -190px; background: radial-gradient(circle, #1554e0 0 55%, #38bdf8 56% 62%, transparent 63%); opacity: .95; }
.cert-corner.c2 { right: -200px; bottom: -200px; background: radial-gradient(circle, #061a40 0 55%, #fbbf24 56% 60%, transparent 61%); }
.cert-inner { position: relative; z-index: 2; text-align: center; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.cert-inner .logo-full { width: 190px; margin: 0 auto 10px; }
.cert-inner .tt { font-size: 52px; font-weight: 800; letter-spacing: .25em; color: var(--navy); margin: 0; }
.cert-inner .sub { letter-spacing: .4em; font-weight: 700; color: #c9a227; font-size: 15px; }
.cert-inner .name { font-size: 44px; font-weight: 800; color: var(--primary-2); border-bottom: 2px solid #e6d28a; display: inline-block; padding: 0 30px 6px; margin: 6px 0 10px; font-family: Georgia, 'Times New Roman', serif; font-style: italic; }
.cert-sign { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 30px; }
.cert-sign .sg { text-align: center; min-width: 220px; }
.cert-sign .sg .line { border-top: 1.5px solid #0f1b33; margin-top: 48px; padding-top: 6px; font-weight: 700; font-size: 14px; }

/* ---------- Charts ---------- */
.chart-box { position: relative; height: 280px; }
.chart-box.sm { height: 220px; }

/* ---------- Footer ---------- */
.panel-foot { padding: 1rem 1.6rem 1.6rem; color: var(--muted); font-size: .78rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* logo besar di panel kiri halaman auth */
.auth-art .auth-logo { width: min(100%, 320px); margin-bottom: 1.6rem; animation: logoFloat 7s ease-in-out infinite; }
@keyframes logoFloat { 50% { transform: translateY(-8px); } }
.auth-art .brand-text b { font-size: 1.05rem; }
@media (max-width: 1024px) {
    .g-main, .g-3 { grid-template-columns: minmax(0, 1fr); }
    .hero-grid { grid-template-columns: 1fr; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .auth-form { padding: 0 0 2.5rem; justify-content: flex-start; background: linear-gradient(180deg, #061a40 0, #0b3fb3 240px, var(--bg) 241px); min-height: 100vh; }
    .auth-mhead {
        display: block; width: 100%; position: relative; overflow: hidden; color: #fff; padding: 1.4rem 1.3rem 4.2rem;
        background: linear-gradient(150deg, #061a40 0%, #0b3fb3 60%, #0284c7 100%);
    }
    .auth-mhead .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(circle at 30% 30%, #000, transparent 80%); }
    .auth-mhead .orb { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .55; animation: float 10s ease-in-out infinite; }
    .auth-mhead .orb.o1 { width: 220px; height: 220px; background: #38bdf8; right: -70px; top: -60px; }
    .auth-mhead .orb.o2 { width: 160px; height: 160px; background: #fbbf24; left: -50px; bottom: -40px; opacity: .3; animation-delay: -4s; }
    .auth-mhead .mh-in { position: relative; z-index: 1; }
    .auth-mhead h2 { font-size: 1.7rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin: 1.1rem 0 .7rem; color: #fff; }
    .auth-mhead h2 em { font-style: normal; color: var(--cyan); }
    .mh-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
    .mh-chips span { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 600; padding: .3rem .65rem; border-radius: 99px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); }
    .mh-chips i { color: var(--yellow); }
    .auth-form .box { margin: -2.6rem 1rem 0; width: auto; max-width: 520px; padding: 1.6rem 1.3rem; border-radius: 22px; }
}
@media (max-width: 900px) {
    :root { --bn-h: 64px; }
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); width: min(300px, 86vw); }
    body.nav-open .sidebar { transform: none; }
    body.nav-open { overflow: hidden; }
    body.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(6, 26, 64, .5); z-index: 55; backdrop-filter: blur(2px); }
    .side-close { display: inline-grid; }
    .side-nav a { padding: .8rem .9rem; font-size: .95rem; }
    .main { margin-left: 0; }
    .topbar { padding: .6rem .9rem; gap: .6rem; }
    .topbar .menu-toggle { display: inline-grid; }
    .topbar .crumb { display: none; }
    .topbar h1 { font-size: 1.05rem; }
    .topbar .points-pill { padding: .4rem .7rem; font-size: .82rem; }
    .content { padding: .9rem .9rem calc(var(--bn-h) + 1.6rem + env(safe-area-inset-bottom)); }
    .panel-foot { padding-bottom: calc(var(--bn-h) + 1rem + env(safe-area-inset-bottom)); text-align: center; }
    .g-2 { grid-template-columns: minmax(0, 1fr); }

    /* bottom nav */
    .bottom-nav {
        display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
        height: calc(var(--bn-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
        background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); border-top: 1px solid var(--border);
        box-shadow: 0 -8px 24px rgba(15, 27, 51, .06);
    }
    .bottom-nav a, .bottom-nav button {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; position: relative;
        color: var(--muted); font: 600 .68rem var(--font); text-decoration: none !important; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
    }
    .bottom-nav i { font-size: 1.35rem; line-height: 1; transition: transform .2s; }
    .bottom-nav .active { color: var(--primary); }
    .bottom-nav .active i { transform: translateY(-2px); }
    .bottom-nav .active::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--primary); }
    .bottom-nav .bn-dot { position: absolute; top: 9px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
    #toasts { bottom: calc(var(--bn-h) + .8rem + env(safe-area-inset-bottom)); right: .8rem; left: .8rem; max-width: none; }

    /* touch targets & inputs */
    .btn { min-height: 44px; }
    .btn-sm { min-height: 38px; }
    .icon-btn { width: 42px; height: 42px; }
    .input, select.input, textarea.input { font-size: 16px; min-height: 46px; }
    .switch { width: 50px; height: 28px; } .switch span::before { width: 22px; height: 22px; } .switch input:checked + span::before { transform: translateX(22px); }

    /* page head: tombol memenuhi lebar */
    .page-head { gap: .7rem; }
    .page-head > .flex { width: 100%; }
    .page-head > .flex > .btn, .page-head > .flex > form, .page-head > .flex > .input, .page-head > .flex > select { flex: 1 1 140px; }
    .page-head > .flex > form > .btn { width: 100%; }
    .card-head > .input { width: 100%; max-width: none !important; }

    /* tabs: geser horizontal */
    .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -.9rem; margin-right: -.9rem; padding: 0 .9rem .3rem; }
    .tabs::-webkit-scrollbar { display: none; }
    .tabs a { flex-shrink: 0; min-height: 38px; display: inline-flex; align-items: center; }

    /* modal -> bottom sheet */
    .modal { align-items: flex-end; padding: 0; }
    .modal-box { max-width: none !important; border-radius: 24px 24px 0 0; max-height: 92vh; padding: 1.2rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom)); animation: sheetUp .3s ease; }
    .modal-box::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--border); margin: -.3rem auto .9rem; }
    @keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

    /* tabel lebar menjadi kartu */
    .table.cards, .table.cards tbody { display: block; width: 100%; }
    .table.cards thead { display: none; }
    .table.cards tr { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; padding: .85rem 1rem; border-bottom: 1px solid var(--border); }
    .table.cards tr:hover { background: transparent; }
    .table.cards td { border: 0; padding: 0; font-size: .86rem; }
    .table.cards td.hide-sm { display: inline-flex !important; }
    .table.cards td[data-label] { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .35rem; padding: .3rem .6rem; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); max-width: 100%; white-space: normal; }
    .table.cards td[data-label]::before { content: attr(data-label); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; white-space: nowrap; }
    .table.cards td.td-actions .btn-ghost { border-color: var(--border); }
    .table.cards .lbl-sm { display: inline; }
    .table.cards td[data-label] .input { min-height: 34px; font-size: 14px; padding: .25rem .5rem; }
    .table.cards td.td-main { flex: 1 1 100%; display: block; padding-bottom: .25rem; order: -1; }
    .table.cards td.td-main b { font-size: .95rem; }
    .table.cards td.td-actions { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .4rem; white-space: normal; }
    .table.cards td.td-actions .btn { flex: 1 1 auto; justify-content: center; }
    .table.cards td.td-actions form { display: inline-flex; flex: 1 1 auto; }
    .table.cards td.td-actions form .btn { width: 100%; }
    .table.cards .user-cell { min-width: 0; }

    /* scanner: tombol kamera penuh */
    #camStart, #camStop { width: 100%; }
}
@media (max-width: 640px) {
    body { font-size: 14.5px; }
    .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .stat { padding: .9rem; border-radius: 14px; }
    .stat .val { font-size: 1.4rem; }
    .stat .lbl { font-size: .78rem; line-height: 1.3; }
    .stat .ic { width: 36px; height: 36px; font-size: 1rem; margin-bottom: .55rem; border-radius: 11px; }
    .stat .trend { top: .8rem; right: .8rem; }
    .form-row { grid-template-columns: 1fr; }
    .hero-card { padding: 1.2rem; border-radius: 18px; }
    .hero-card .big-points { font-size: 2.6rem; }
    .hero-mini div { padding: .6rem .3rem; } .hero-mini b { font-size: 1.15rem; }
    .journey { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; }
    .journey .step:nth-child(2)::before { display: none; }
    .journey .bubble { width: 46px; height: 46px; font-size: 1.15rem; }
    .podium { gap: .5rem; }
    .podium .p { padding: .9rem .4rem; border-radius: 14px; }
    .podium .p .avatar { width: 44px; height: 44px; }
    .podium .p b { font-size: .8rem; }
    .podium .p .pv { font-size: 1.2rem; }
    .podium .medal { font-size: 1.4rem; }
    .topbar .hide-sm { display: none; }
    .card { padding: 1rem; border-radius: 14px; }
    .card + .card { margin-top: .9rem; }
    .grid { gap: .9rem; }
    .table th, .table td { padding: .6rem .7rem; }
    .page-head h1 { font-size: 1.3rem; }
    .hide-sm { display: none !important; }
    .alert { font-size: .86rem; padding: .75rem .85rem; }
    .list li { padding: .65rem 0; }

    /* quiz */
    .quiz-card { gap: .5rem; }
    .quiz-card h4 { -webkit-line-clamp: 2; font-size: .9rem; }
    .q-top { position: sticky; top: 60px; z-index: 5; background: var(--surface); margin: -1rem -1rem .6rem; padding: .7rem 1rem; border-bottom: 1px solid var(--border); border-radius: 14px 14px 0 0; }
    .q-item h3 { font-size: 1.05rem; }
    .opt { padding: .8rem .85rem; }
    .q-nav { display: grid; grid-template-columns: 1fr 1fr; }
    .q-nav .btn { width: 100%; }
    .q-nav .hidden { display: none !important; }
    .result-hero .big { font-size: 3rem; }

    /* poster */
    .poster-thumb { height: 86px; }
    .poster-thumb i { font-size: 2.2rem; }
    .poster-body { padding: .85rem .95rem 1rem; }

    /* checkpoint & lists */
    .ticket-top h2 { font-size: 1.3rem; }
    .cert-stage { overflow: hidden; }

    /* auth */
    .auth-form h1 { font-size: 1.5rem; }
    .cred-row { flex-direction: column; align-items: stretch; gap: .35rem; padding: .55rem 0; border-bottom: 1px dashed #c7d6f5; }
    .cred-row:last-child { border-bottom: 0; }
    .cred-row .cred-val { display: flex; }
    .cred-row button { width: 100%; min-height: 36px; }
}
@media (hover: none) {
    .quiz-card:hover, .poster-card:hover, .btn-primary:hover { transform: none; }
}

/* =========================================================
   v7 · PIN, modul peserta, sertifikat & polish mobile
   ========================================================= */

/* kartu muncul berurutan */
.appear { opacity: 0; transform: translateY(14px); transition: opacity .5s ease var(--d, 0ms), transform .55s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }
.appear.in { opacity: 1; transform: none; }

/* PIN 6 kotak */
.pin-field { position: relative; }
.pin-field.pin-ready .pin-raw { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; z-index: 2; font-size: 16px; cursor: text; caret-color: transparent; padding: 0; border: 0; min-height: 0; }
.pin-cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; padding-right: 3rem; }
.pin-cells span {
    height: 54px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface-2);
    display: grid; place-items: center; font-size: 1.45rem; font-weight: 800; color: var(--navy);
    transition: border-color .2s, background .2s, transform .18s, box-shadow .2s;
}
.pin-cells span.filled { background: #fff; border-color: #bcd0f7; animation: pinPop .22s ease; }
.pin-cells span.cur { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(21, 84, 224, .14); background: #fff; }
.pin-cells span.cur:empty::after { content: ""; width: 2px; height: 22px; background: var(--primary); border-radius: 2px; animation: pinCaret 1s steps(1) infinite; }
.pin-field.full .pin-cells span { border-color: #86efac; background: #f0fdf4; }
.pin-field.mismatch .pin-cells span { border-color: #fca5a5; background: #fef2f2; animation: pinShake .35s ease; }
.pin-eye { position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
@keyframes pinPop { 50% { transform: scale(1.08); } }
@keyframes pinCaret { 50% { opacity: 0; } }
@keyframes pinShake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.pin-pair { background: linear-gradient(180deg, #f5f8ff, #fff); border: 1px dashed #c7d6f5; border-radius: 16px; padding: 1rem 1rem .4rem; margin-bottom: 1rem; }
.pin-hint { font-size: .8rem; color: var(--muted); display: flex; gap: .4rem; align-items: flex-start; margin: 0 0 .6rem; }
.pin-hint i { color: var(--primary); }

/* segmented control (login) */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: #eef2fa; border: 1px solid var(--border); margin: 0 0 1.1rem; }
.seg button { border: 0; background: transparent; border-radius: 11px; padding: .6rem .5rem; font: 700 .86rem var(--font); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; transition: background .2s, color .2s, box-shadow .2s; min-height: 42px; }
.seg button.on { background: #fff; color: var(--primary); box-shadow: 0 4px 12px rgba(15, 27, 51, .08); }
[hidden] { display: none !important; }

/* tombol kaca di hero panel */
.btn-glass-w { background: rgba(255, 255, 255, .15); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-glass-w:hover { background: rgba(255, 255, 255, .25); color: #fff; }

/* kartu "segera dibuka" */
.soon-card { background: linear-gradient(135deg, #fffbeb, #fff 60%); border-color: #fde68a; }
.soon-head { display: flex; gap: .8rem; align-items: center; margin-bottom: .8rem; }
.soon-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: #92400e; background: #fef3c7; flex-shrink: 0; animation: soonTilt 2.4s ease-in-out infinite; }
@keyframes soonTilt { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(180deg); } }
.soon-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.soon-list span { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .7rem; border-radius: 99px; background: #fff; border: 1px solid var(--border); font-size: .8rem; font-weight: 600; color: #334155; }
.soon-list span > i:first-child { color: var(--primary); }
.soon-list .lk { color: #b45309; font-size: .7rem; }

/* sertifikat terkunci */
.cert-lock { text-align: center; padding: 2.2rem 1.4rem; max-width: 640px; margin: 0 auto; }
.cl-ic { position: relative; width: 84px; height: 84px; margin: 0 auto 1rem; border-radius: 26px; display: grid; place-items: center; font-size: 2.4rem; color: #b45309; background: linear-gradient(135deg, #fef3c7, #fde68a); box-shadow: 0 14px 30px rgba(251, 191, 36, .3); }
.cl-ic span { position: absolute; right: -8px; bottom: -8px; width: 34px; height: 34px; border-radius: 12px; background: var(--navy); color: #fff; font-size: .95rem; display: grid; place-items: center; border: 3px solid #fff; }
.req-list { list-style: none; padding: 0; margin: 1.2rem 0 1.4rem; text-align: left; display: grid; gap: .7rem; }
.req-list li { display: flex; gap: .8rem; align-items: center; padding: .85rem 1rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.req-list li .progress { margin-top: .45rem; }
.req-list .rq-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #e8efff; color: var(--primary); flex-shrink: 0; font-size: 1.1rem; }
.req-list .rq-val { font-weight: 800; color: var(--navy); }
.req-list li.ok { background: #f0fdf4; border-color: #bbf7d0; }
.req-list li.ok .rq-ic { background: var(--green); color: #fff; }
.req-list li.ok .rq-val { color: #15803d; }

/* pengaturan modul peserta */
.mod-row { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px dashed var(--border); }
.mod-row:last-of-type { border-bottom: 0; }
.mod-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #f1f5f9; color: #94a3b8; flex-shrink: 0; transition: .2s; }
.mod-ic.on { background: #e8efff; color: var(--primary); }

@media (max-width: 900px) {
    .bottom-nav { grid-template-columns: repeat(var(--bn-n, 5), 1fr); }
    /* menu bawah: indikator aktif berbentuk kapsul */
    .bottom-nav a.active i, .bottom-nav button.active i { background: #e8efff; border-radius: 99px; padding: .28rem .95rem; transform: none; }
    .bottom-nav .active::before { display: none; }
    .bottom-nav a:active i, .bottom-nav button:active i { transform: scale(.9); }
    .topbar { background: rgba(255, 255, 255, .9); }
    .side-nav a { border-radius: 12px; }
}
@media (max-width: 640px) {
    .content { padding-left: .8rem; padding-right: .8rem; }
    .tabs { margin-left: -.8rem; margin-right: -.8rem; padding-left: .8rem; padding-right: .8rem; }

    /* hero dashboard lebih ringkas */
    .hero-card .flex-wrap .btn { flex: 1 1 0; justify-content: center; }
    .hero-mini { gap: .5rem; }

    /* perjalanan peserta: stepper horizontal 4 langkah */
    .journey { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 0; gap: .2rem; }
    .journey .step { padding: .4rem .1rem; }
    .journey .step::before { display: block !important; top: 1.55rem; left: calc(50% + 22px); right: calc(-50% + 22px); height: 2px; }
    .journey .step:last-child::before { display: none !important; }
    .journey .bubble { width: 42px; height: 42px; border-radius: 13px; font-size: 1.05rem; margin-bottom: .45rem; }
    .journey .step b { font-size: .74rem; line-height: 1.2; }
    .journey .step span { font-size: .66rem; line-height: 1.25; display: block; margin-top: .15rem; }

    /* quiz di dashboard: geser horizontal */
    .snap-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .7rem; margin: 0 -1rem; padding: .2rem 1rem .6rem; scrollbar-width: none; }
    .snap-row::-webkit-scrollbar { display: none; }
    .snap-row > .card { flex: 0 0 82%; scroll-snap-align: start; }

    /* halaman quiz: statistik jadi strip ringkas */
    .content > .grid.g-4 { display: flex; overflow-x: auto; scrollbar-width: none; gap: .6rem; margin-left: -.8rem; margin-right: -.8rem; padding: 0 .8rem .2rem; scroll-snap-type: x proximity; }
    .content > .grid.g-4::-webkit-scrollbar { display: none; }
    .content > .grid.g-4 > .stat { flex: 0 0 42%; scroll-snap-align: start; display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: center; padding: .75rem .8rem; }
    .content > .grid.g-4 > .stat .ic { grid-row: span 2; margin: 0; }
    .content > .grid.g-4 > .stat .val { font-size: 1.2rem; }
    .content > .grid.g-4 > .stat .lbl { font-size: .72rem; }

    /* kartu quiz lebih padat */
    .grid.g-3 > .quiz-card { padding: .9rem; }
    .quiz-card .stream-badge { font-size: .68rem; }
    .quiz-card .quiz-meta { font-size: .74rem; gap: .25rem .7rem; }
    .quiz-card > .btn { min-height: 42px; }

    /* auth */
    .auth-form .box { padding: 1.4rem 1.1rem; }
    .pin-cells { gap: .35rem; padding-right: 2.9rem; }
    .pin-cells span { height: 48px; border-radius: 12px; font-size: 1.25rem; }
    .pin-pair { padding: .85rem .8rem .3rem; }
    .seg button { font-size: .8rem; }

    .cert-lock { padding: 1.6rem 1rem; }
    .soon-list span { font-size: .76rem; }
}
@media (max-width: 360px) {
    .pin-cells span { height: 42px; font-size: 1.1rem; }
    .journey .step span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .appear { opacity: 1; transform: none; transition: none; }
    .soon-ic, .pin-cells span { animation: none !important; }
}

/* ---------- Print (certificate) ---------- */
/* =========================================================
   v8 · Form lebih hidup: ikon per field, satuan, select kustom, seksi
   ========================================================= */
.form-group > label { color: #334155; font-weight: 700; font-size: .82rem; letter-spacing: .01em; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; transition: color .2s; }
.form-group:focus-within > label { color: var(--primary); }
.input, select.input, textarea.input { background: #f8fafd; }
.input:hover:not(:focus):not(:disabled) { border-color: #c9d6ee; }
.input:focus { background: #fff; }
.input:disabled { background: repeating-linear-gradient(135deg, #f4f6fa 0 8px, #eef1f6 8px 16px); color: #64748b; cursor: not-allowed; }
.input::placeholder { color: #9aa8bd; }
.form-group select.input, .fx select.input {
    appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M1.6 5.2a.75.75 0 0 1 1.06 0L8 10.5l5.34-5.3a.75.75 0 1 1 1.06 1.06l-5.87 5.83a.75.75 0 0 1-1.06 0L1.6 6.26a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .85rem center; background-size: 14px;
}
.form-group textarea.input { line-height: 1.55; }

/* field dengan ikon & satuan */
.fx { position: relative; display: block; }
.fx > .input { padding-left: 3.05rem; }
.fx-ic {
    position: absolute; left: .45rem; top: 50%; transform: translateY(-50%); z-index: 1; pointer-events: none;
    width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
    background: #eaf0ff; color: var(--primary); font-size: .95rem; font-weight: 800; font-style: normal;
    transition: background .2s, color .2s, transform .2s;
}
.fx:focus-within .fx-ic { background: var(--primary); color: #fff; transform: translateY(-50%) scale(1.04); }
.fx.is-ta .fx-ic { top: .45rem; transform: none; }
.fx.is-ta:focus-within .fx-ic { transform: scale(1.04); }
.fx.has-sfx > .input { padding-right: 5.2rem; }
.fx-sfx { position: absolute; right: .45rem; top: 50%; transform: translateY(-50%); pointer-events: none; padding: .25rem .6rem; border-radius: 8px; background: #fff; border: 1px solid var(--border); font-size: .74rem; font-weight: 700; color: var(--muted); }
.fx.has-sfx input[type=number]::-webkit-inner-spin-button { margin-right: .2rem; }
.fx-ic.c-red, .fs-ic.c-red { background: #fee2e2; color: #dc2626; }

/* halaman pengaturan: seksi */
.set-top { display: flex; gap: .85rem; align-items: center; padding-bottom: 1rem; margin-bottom: .4rem; border-bottom: 1px solid var(--border); }
.set-top-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem; color: #fff; background: linear-gradient(135deg, var(--primary), var(--purple)); box-shadow: 0 10px 22px rgba(21, 84, 224, .25); flex-shrink: 0; }
.fs { border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1rem .1rem; margin-top: 1rem; background: linear-gradient(180deg, var(--surface-2), #fff 70%); }
.fs-head { display: flex; gap: .7rem; align-items: center; margin-bottom: .9rem; }
.fs-head b { display: block; font-size: .95rem; color: var(--navy); }
.fs-head small { display: block; color: var(--muted); font-size: .76rem; }
.fs-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; font-size: 1rem; }
.c-blue { background: #e0ebff; color: var(--primary); }
.c-purple { background: #ede9fe; color: var(--purple); }
.c-amber { background: #fef3c7; color: #b45309; }
.c-green { background: #dcfce7; color: #15803d; }
.c-teal { background: #ccfbf1; color: #0f766e; }
.span-2 { grid-column: 1 / -1; }
.form-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tag-secret { display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .5rem; border-radius: 99px; background: #f1f5f9; color: #64748b; font-size: .68rem; font-weight: 700; }
.tg-row { display: flex !important; align-items: center; gap: .8rem; padding: .75rem 0; margin: 0 !important; border-top: 1px dashed var(--border); cursor: pointer; font-weight: 500 !important; }
.tg-row:first-of-type { border-top: 0; padding-top: 0; }
.tg-row b { display: block; font-size: .9rem; color: var(--navy); }
.tg-row small { display: block; font-size: .76rem; color: var(--muted); font-weight: 500; }
.set-actions { display: flex; justify-content: flex-end; margin-top: 1.1rem; }

@media (max-width: 900px) {
    .form-row.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .form-row.cols-3 { grid-template-columns: 1fr; }
    .fs { padding: .85rem .8rem .05rem; }
    .fx-ic { width: 30px; height: 30px; }
    .set-actions { position: sticky; bottom: calc(env(safe-area-inset-bottom, 0px) + 72px); z-index: 5; margin: 1rem -.2rem 0; }
    .set-actions .btn { width: 100%; justify-content: center; box-shadow: 0 10px 24px rgba(21, 84, 224, .3); }
}
@media (prefers-reduced-motion: reduce) {
    .fx-ic { transition: none; }
}

/* =========================================================
   v9 · Dashboard admin/panitia modern
   ========================================================= */
.ell { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-ic { display: flex; align-items: center; gap: .6rem; }
.h-ic .fs-ic { width: 32px; height: 32px; border-radius: 10px; font-size: .9rem; }

/* hero */
.adm-hero {
    position: relative; overflow: hidden; color: #fff; border-radius: 22px; padding: 1.4rem 1.5rem 1.1rem;
    background: radial-gradient(120% 140% at 100% 0%, #2563eb 0%, transparent 55%), linear-gradient(135deg, #061a40 0%, #0b3fb3 60%, #1554e0 100%);
    box-shadow: 0 18px 40px rgba(6, 26, 64, .25);
}
.adm-hero::before { content: ''; position: absolute; width: 260px; height: 260px; right: -70px; bottom: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, .45), transparent 70%); pointer-events: none; }
.adm-hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); pointer-events: none; }
.adm-hero > * { position: relative; z-index: 1; }
.adm-hero-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.adm-hero h1 { color: #fff; font-size: 1.55rem; margin: .55rem 0 .2rem; letter-spacing: -.02em; }
.adm-hero p { margin: 0; color: rgba(255, 255, 255, .75); font-size: .9rem; }
.adm-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .75rem; border-radius: 99px; font-size: .74rem; font-weight: 700; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }
.adm-count { flex-shrink: 0; text-align: center; min-width: 78px; padding: .6rem .7rem; border-radius: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.adm-count b { display: block; font-size: 1.7rem; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.adm-count span { font-size: .68rem; opacity: .8; font-weight: 600; }
.adm-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.1rem 0 1rem; }
.adm-btn-main { background: #fff; color: var(--primary); border-color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.adm-btn-main:hover { background: #eef4ff; color: var(--primary-2); }
.adm-quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; padding-top: .9rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.adm-quick a { display: flex; flex-direction: column; align-items: center; gap: .35rem; color: #fff; text-decoration: none; font-size: .72rem; font-weight: 600; padding: .55rem .2rem; border-radius: 14px; transition: background .2s, transform .2s; }
.adm-quick a i { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 1.05rem; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .18); }
.adm-quick a:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.adm-quick a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.kpi { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1rem 1.05rem; box-shadow: var(--shadow); --k: var(--primary); --kb: #e8efff; }
.kpi::after { content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--kb); opacity: .55; pointer-events: none; }
.kpi > * { position: relative; z-index: 1; }
.kpi.k-green { --k: #16a34a; --kb: #dcfce7; }
.kpi.k-cyan { --k: #0891b2; --kb: #cffafe; }
.kpi.k-amber { --k: #d97706; --kb: #fef3c7; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; }
.kpi-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--kb); color: var(--k); font-size: 1.05rem; }
.kpi-tag { font-size: .7rem; font-weight: 800; color: var(--k); background: #fff; border: 1px solid var(--kb); padding: .18rem .5rem; border-radius: 99px; }
.kpi-val { font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--navy); }
.kpi-lbl { font-size: .8rem; color: var(--muted); font-weight: 600; margin-top: .3rem; }
.kpi-bar { height: 5px; border-radius: 99px; background: #eef2f8; margin-top: .7rem; overflow: hidden; }
.kpi-bar i { display: block; height: 100%; border-radius: inherit; background: var(--k); transition: width .6s ease; }

/* checkpoint & entitas */
.cp-list, .ent-list, .lb-list { list-style: none; margin: 0; padding: 0; }
.cp-list li { display: flex; gap: .85rem; align-items: center; padding: .8rem 0; border-bottom: 1px dashed var(--border); }
.cp-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cp-date { width: 48px; flex-shrink: 0; text-align: center; border-radius: 14px; padding: .4rem 0; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.cp-date b { display: block; font-size: 1.15rem; line-height: 1.1; font-weight: 800; }
.cp-date span { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.cp-row { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.cp-name { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cp-num { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.cp-num b { font-size: 1rem; color: var(--navy); }
.cp-bar { height: 8px; border-radius: 99px; background: #eef2f8; overflow: hidden; margin: .45rem 0 .4rem; }
.cp-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c, var(--primary)), color-mix(in srgb, var(--c, var(--primary)) 60%, #fff)); }
.cp-bar.thin { height: 6px; margin: .35rem 0 0; }
.cp-meta { display: flex; gap: .6rem; align-items: center; font-size: .74rem; color: var(--muted); }
.cp-meta b { margin-left: auto; color: var(--navy); }
.cp-st { padding: .05rem .45rem; border-radius: 99px; background: #f1f5f9; font-weight: 700; font-size: .68rem; }
.cp-st.on { background: #dcfce7; color: #15803d; }
.ent-list li { padding: .5rem 0; --c: #7c3aed; }
.ent-name { font-size: .82rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* donut */
.donut-box { position: relative; }
.donut-center { position: absolute; left: 0; right: 0; top: calc(50% - 30px); transform: translateY(-50%); text-align: center; pointer-events: none; }
.donut-center b { display: block; font-size: 1.3rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.donut-center span { font-size: .7rem; color: var(--muted); font-weight: 600; }

/* leaderboard */
.lb-list li { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 14px; margin-bottom: .35rem; background: var(--surface-2); border: 1px solid transparent; }
.lb-list li.r1 { background: linear-gradient(90deg, #fef9c3, #fff); border-color: #fde68a; }
.lb-list li.r2 { background: linear-gradient(90deg, #f1f5f9, #fff); border-color: #e2e8f0; }
.lb-list li.r3 { background: linear-gradient(90deg, #ffedd5, #fff); border-color: #fed7aa; }
.lb-list b.ell { font-size: .88rem; }
.lb-list span.ell { font-size: .72rem; color: var(--muted); }
.lb-rank { width: 28px; text-align: center; font-weight: 800; color: var(--muted); font-size: .85rem; flex-shrink: 0; }
.lb-list li.r1 .lb-rank, .lb-list li.r2 .lb-rank, .lb-list li.r3 .lb-rank { font-size: 1.2rem; }
.lb-pts { font-weight: 800; color: var(--navy); text-align: right; line-height: 1; white-space: nowrap; }
.lb-pts small { display: block; font-size: .62rem; color: var(--muted); font-weight: 600; }

/* ringkasan */
.sum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.sum-grid > div { padding: .8rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.sum-grid .fs-ic { width: 32px; height: 32px; border-radius: 10px; font-size: .9rem; margin-bottom: .5rem; }
.sum-grid b { display: block; font-size: 1.15rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.sum-grid small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.3; margin-top: .2rem; }
.feed-list li { gap: .65rem; }

@media (max-width: 1100px) {
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .adm-hero { border-radius: 20px; padding: 1.1rem 1rem .8rem; margin-left: -.1rem; margin-right: -.1rem; }
    .adm-hero h1 { font-size: 1.25rem; }
    .adm-hero p { font-size: .82rem; }
    .adm-count { min-width: 64px; padding: .5rem; }
    .adm-count b { font-size: 1.35rem; }
    .adm-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .adm-actions .btn { justify-content: center; padding-left: .5rem; padding-right: .5rem; font-size: .84rem; }
    .adm-quick { gap: .2rem; }
    .adm-quick a { font-size: .66rem; padding: .4rem 0; }
    .adm-quick a i { width: 38px; height: 38px; border-radius: 12px; }
    .kpi-grid { gap: .6rem; }
    .kpi { padding: .85rem .85rem .8rem; border-radius: 16px; }
    .kpi-ic { width: 34px; height: 34px; font-size: .95rem; }
    .kpi-val { font-size: 1.5rem; }
    .kpi-lbl { font-size: .74rem; }
    .cp-date { width: 44px; }
    .sum-grid > div { padding: .7rem; }
}

@media print {
    @page { size: A4 landscape; margin: 0; }
    body { background: #fff; }
    .sidebar, .topbar, .no-print, .panel-foot, #toasts, .bottom-nav { display: none !important; }
    .appear { opacity: 1 !important; transform: none !important; }
    .certificate { transform: none !important; margin: 0 !important; }
    .cert-stage { height: auto !important; }
    .main { margin: 0; }
    .content { padding: 0; max-width: none; }
    .cert-stage { overflow: visible; padding: 0; }
    .certificate { box-shadow: none; width: 297mm; height: 210mm; aspect-ratio: auto; border-radius: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
