/* UJIDIRIX — design system v2: pastel gamified (lavender · violet · coral · mint)
 * Semua nama kelas lama dipertahankan agar seluruh halaman tetap berfungsi. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800;900&display=swap');

:root {
  --bg: #F4F0FE; --card: #FFFFFF; --ink: #2A2342; --muted: #7A7396;
  --primary: #7C5CFC; --primary2: #9B7BFF; --primary-dark: #5B3DD8;
  --amber: #FFAB5E; --green: #2FBF8F; --red: #FF6B81; --blue: #6C8CFF;
  --lav: #C9B8FF; --lav2: #ECE5FF; --coral: #FF8A7A; --coral2: #FFE1D9;
  --mint: #5FD9AE; --mint2: #DFF8EE; --line: #ECE7F8; --radius: 22px;
  --accent: #FFAB5E; --danger: #FF6B81;
  --grad: linear-gradient(140deg, #9B7BFF 0%, #7C5CFC 48%, #6A48F0 100%);
  --grad-soft: linear-gradient(150deg, #EFE9FF 0%, #FFEFEA 55%, #E4F9F0 100%);
  --shadow: 0 4px 18px rgba(124, 92, 252, .10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(160deg, #F3EFFF 0%, #FDF1EC 52%, #E9FAF2 100%) fixed;
  color: var(--ink); font-size: 15px; line-height: 1.55;
}
.frame { max-width: 480px; margin: 0 auto; min-height: 100dvh; padding-bottom: 104px; position: relative; }
@media (min-width: 520px) { .frame { box-shadow: 0 0 0 1px #fff, 0 18px 50px rgba(91, 61, 216, .12); background: rgba(255,255,255,.35); } }

/* ---- topbar ---- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: rgba(255,255,255,.86); backdrop-filter: blur(12px) saturate(1.3); border-bottom: 1px solid rgba(236,231,248,.8); }
.topbar.grad { background: var(--grad); color: #fff; border-bottom: 0; }
.topbar h1 { font-size: 16.5px; font-weight: 900; flex: 1; letter-spacing: .2px; }
.topbar .sub { font-size: 11.5px; color: var(--muted); }
.topbar.grad .sub { color: rgba(255,255,255,.85); }
.iconbtn { width: 38px; height: 38px; border-radius: 13px; border: 0; background: var(--lav2); color: var(--primary-dark); font-size: 17px; cursor: pointer; display: grid; place-items: center; text-decoration: none; flex: none; transition: transform .18s; }
.iconbtn:hover { transform: translateY(-1px) rotate(-3deg); }
.topbar.grad .iconbtn { background: rgba(255,255,255,.18); color: #fff; }
.timer { font-weight: 900; font-size: 13.5px; color: #B45309; background: #FFF2E2; border: 0; padding: 7px 13px; border-radius: 999px; flex: none; font-variant-numeric: tabular-nums; }
.timer.low { color: #fff; background: var(--red); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .75; } }

/* ---- bottom tab bar (floating translucent) ---- */
.tabbar {
  position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 448px; z-index: 40; display: flex;
  background: rgba(255,255,255,.72); backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.6); border-radius: 26px;
  box-shadow: 0 12px 32px rgba(91,61,216,.16), 0 2px 8px rgba(42,35,66,.05);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom) * .4);
}
.tabbar a { flex: 1; text-align: center; text-decoration: none; color: #8F87AE; font-size: 10.5px; font-weight: 800; padding: 6px 0 4px; border-radius: 18px; transition: all .2s; }
.tabbar a .ic { display: block; font-size: 19px; line-height: 1.25; filter: grayscale(1) opacity(.55); transition: filter .2s, transform .2s; }
.tabbar a.on { color: #fff; background: var(--grad); box-shadow: 0 6px 14px rgba(124,92,252,.35); }
.tabbar a.on .ic { filter: none; transform: translateY(-1px) scale(1.06); }
.tabbar a:not(.on):active .ic { transform: scale(.92); }

/* ---- login ---- */
.login-hero { background: var(--grad); padding: 52px 22px 46px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.login-hero::before, .login-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); }
.login-hero::before { width: 150px; height: 150px; background: rgba(255,138,122,.35); top: -40px; right: -30px; }
.login-hero::after { width: 120px; height: 120px; background: rgba(95,217,174,.30); bottom: -46px; left: -20px; }
.login-hero .logobadge { width: 66px; height: 66px; margin: 0 auto 14px; background: #fff; color: var(--primary-dark); border-radius: 22px; display: grid; place-items: center; font-size: 30px; font-weight: 900; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.login-hero h1 { font-size: 26px; font-weight: 900; letter-spacing: .3px; }
.login-hero p { font-size: 13px; opacity: .92; margin-top: 6px; max-width: 300px; margin-left: auto; margin-right: auto; }
.authcard { background: #fff; border-radius: 24px; margin: -30px 18px 0; padding: 20px 18px 16px; box-shadow: 0 16px 38px rgba(91,61,216,.18); position: relative; z-index: 2; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11.5px; margin: 14px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.footnote { text-align: center; font-size: 11.5px; color: var(--muted); padding: 14px 26px 8px; }

/* ---- umum ---- */
.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin: 12px 16px 0; box-shadow: var(--shadow); border: 1px solid rgba(236,231,248,.7); }
@media (hover: hover) { .card { transition: transform .2s, box-shadow .2s; } .card:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(124,92,252,.14); } }
.card h2 { font-size: 15px; margin-bottom: 8px; }
.card.acc { border-left: 5px solid var(--acc, var(--lav)); border-radius: 18px; }
.section-title { margin: 22px 16px 0; font-size: 13.5px; font-weight: 900; color: var(--ink); display: flex; justify-content: space-between; align-items: baseline; letter-spacing: .2px; }
.section-title .more { font-size: 11.5px; color: var(--primary); font-weight: 800; text-decoration: none; }
.textlink { color: var(--primary); font-weight: 800; font-size: 12.5px; text-decoration: none; letter-spacing: .3px; background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0; }
.textlink.red { color: var(--danger); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 16px; padding: 13px 18px; font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .18s, box-shadow .18s, filter .18s; font-family: inherit; position: relative; overflow: hidden; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary.grad { background: var(--grad); box-shadow: 0 6px 16px rgba(124,92,252,.30); }
.btn.accent { background: linear-gradient(140deg, #FFC08A, #FF9E6E); color: #fff; box-shadow: 0 6px 16px rgba(255,138,122,.30); }
.btn.ghost { background: #fff; color: var(--primary-dark); border: 1.5px solid var(--lav); }
.btn.block { width: 100%; }
.btn.small { padding: 8px 14px; font-size: 13px; border-radius: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn.primary.grad:hover, .btn.accent:hover { box-shadow: 0 9px 22px rgba(124,92,252,.38); }
  .btn.primary.grad::after { content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .45s; }
  .btn.primary.grad:hover::after { left: 130%; }
}
.btn:active { transform: scale(.97); }
label.field { display: block; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: #585077; text-align: left; }
input.field, select.field { width: 100%; margin-top: 6px; padding: 13px 14px; font-size: 15px; border: 1.5px solid var(--line); border-radius: 15px; background: #fff; color: var(--ink); transition: border-color .18s, box-shadow .18s; }
input.field:focus, select.field:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,92,252,.15); }
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.badge.free { background: var(--mint2); color: #1E8A66; }
.badge.prem { background: #FFF2E2; color: #C26A18; }
.badge.done { background: var(--mint2); color: #1E8A66; }
.badge.st-published { background: var(--mint2); color: #1E8A66; }
.badge.st-auto_ok { background: #E4EBFF; color: #3D5BD9; }
.badge.st-perlu_review { background: #FFF2E2; color: #C26A18; }
.badge.st-reviewed { background: var(--lav2); color: #5B3DD8; }
.badge.st-rejected { background: #FFE5EA; color: #C73652; }
.badge.st-draft { background: #F1EFF7; color: #585077; }

/* ---- beranda ---- */
.hero { display: flex; align-items: center; gap: 12px; padding: 14px 16px 6px; }
.avatar { width: 46px; height: 46px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 18px; flex: none; box-shadow: 0 6px 14px rgba(124,92,252,.3); }
.avatar.sq-orange { background: linear-gradient(150deg, #FFC08A, #FF8A7A); box-shadow: 0 6px 14px rgba(255,138,122,.3); }
.hero .who { flex: 1; min-width: 0; }
.hero .who b { display: block; font-size: 16.5px; }
.hero .who span { color: var(--muted); font-size: 12.5px; }

/* kartu hero personal (dashboard gamified) */
.g-hero { background: var(--grad); color: #fff; border-radius: 26px; margin: 12px 16px 0; padding: 18px 18px 16px; position: relative; overflow: hidden; box-shadow: 0 14px 30px rgba(106,72,240,.32); }
.g-hero::before { content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,138,122,.28); top: -46px; right: -34px; }
.g-hero::after { content: ""; position: absolute; width: 110px; height: 110px; border-radius: 50%; background: rgba(95,217,174,.22); bottom: -52px; left: 30%; }
.g-hero .greet { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; opacity: .85; }
.g-hero .nm { font-size: 22px; font-weight: 900; margin: 3px 0 10px; line-height: 1.2; }
.g-hero .row2 { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.lvlring { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#FFD08A calc(var(--pct) * 1%), rgba(255,255,255,.22) 0); flex: none; }
.lvlring .in { width: 70%; height: 70%; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); border-radius: 50%; display: grid; place-items: center; text-align: center; }
.lvlring .in b { font-size: 23px; line-height: 1; }
.lvlring .in span { font-size: 8px; font-weight: 900; letter-spacing: 1px; opacity: .9; }
.g-hero .info { flex: 1; min-width: 0; }
.xpchip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 800; margin: 0 8px 8px 0; }
.xpchip .dot { width: 8px; height: 8px; border-radius: 50%; background: #FFD08A; }
.xpchip.streak .dot { background: #FF8A7A; }
.xpchip.mint .dot { background: var(--mint); }
.lvlbar { height: 9px; background: rgba(255,255,255,.22); border-radius: 999px; overflow: hidden; margin-top: 2px; }
.lvlbar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #FFD08A, #FFAB5E); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.lvlbar-cap { font-size: 10.5px; opacity: .88; margin-top: 5px; font-weight: 700; }

.utbk-card { background: var(--grad-soft); color: var(--ink); border: 1.5px solid rgba(201,184,255,.5); border-radius: var(--radius); margin: 12px 16px 0; padding: 16px; display: flex; align-items: center; gap: 12px; }
.utbk-card .t { flex: 1; }
.utbk-card .t b { display: block; font-size: 15.5px; }
.utbk-card .t span { font-size: 12px; color: var(--muted); }
.utbk-card .days { background: var(--grad); color: #fff; border-radius: 16px; padding: 8px 12px; text-align: center; font-weight: 900; font-size: 15px; flex: none; box-shadow: 0 6px 14px rgba(124,92,252,.3); }
.utbk-card .days span { display: block; font-size: 9.5px; font-weight: 700; opacity: .85; }
.ring { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ringcolor, var(--amber)) calc(var(--pct) * 1%), #EFEAFB 0); flex: none; }
.ring.big { width: 150px; height: 150px; }
.ring .in { width: 74%; height: 74%; background: #fff; border-radius: 50%; display: grid; place-items: center; text-align: center; }
.ring .in b { font-size: 21px; line-height: 1.05; }
.ring.big .in b { font-size: 34px; }
.ring .in span { font-size: 8.5px; color: var(--muted); font-weight: 800; letter-spacing: .4px; }
.scorecard { display: flex; gap: 14px; align-items: center; }
.scorecard .stats { flex: 1; min-width: 0; }
.scorecard .stats .lbl { font-size: 13px; font-weight: 800; }
.scorecard .stats .row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding: 3.5px 0; }
.scorecard .stats .row b { color: var(--ink); }
.bar { height: 9px; background: #EFEAFB; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 16px 0; }
.tile { background: #fff; border-radius: 18px; padding: 12px 4px 10px; text-align: center; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border: 1px solid rgba(236,231,248,.7); cursor: pointer; font-family: inherit; transition: transform .18s, box-shadow .18s; }
@media (hover: hover) { .tile:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(124,92,252,.16); } }
.tile:active { transform: scale(.95); }
.tile .ic { font-size: 21px; }
.tile span { display: block; font-size: 10.5px; font-weight: 800; margin-top: 4px; color: #585077; }

/* misi harian */
.mission-row { display: flex; gap: 11px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.mission-row:last-child { border-bottom: 0; }
.mission-row .mic { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-size: 18px; flex: none; background: var(--lav2); }
.mission-row.ok .mic { background: var(--mint2); }
.mission-row .mtxt { flex: 1; min-width: 0; }
.mission-row .mtxt b { font-size: 13.5px; display: block; }
.mission-row .mtxt span { font-size: 11px; color: var(--muted); }
.mission-row .bar { margin-top: 6px; }

/* lencana */
.badge-strip { display: flex; gap: 9px; overflow-x: auto; padding: 12px 16px 4px; scrollbar-width: none; }
.badge-strip::-webkit-scrollbar { display: none; }
.bchip { flex: none; width: 108px; background: #fff; border: 1.5px solid var(--lav); border-radius: 18px; padding: 11px 8px 9px; text-align: center; box-shadow: var(--shadow); }
.bchip .bic { font-size: 22px; }
.bchip b { display: block; font-size: 10.5px; margin-top: 5px; line-height: 1.25; }
.bchip span { font-size: 9px; color: var(--muted); line-height: 1.2; display: block; margin-top: 2px; }
.bchip.earned { background: linear-gradient(160deg, #FFF7EA, #fff); border-color: #FFD8A8; }
.bchip.locked { filter: grayscale(1) opacity(.5); border-style: dashed; box-shadow: none; }

/* ---- daftar tryout ---- */
.chips2 { display: flex; gap: 8px; margin: 12px 16px 0; overflow-x: auto; padding-bottom: 2px; }
.chips2 .c { flex: none; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-size: 12.5px; font-weight: 800; color: var(--muted); cursor: pointer; transition: all .18s; }
.chips2 .c.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 5px 12px rgba(124,92,252,.28); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: none; }
.titem { display: flex; gap: 12px; align-items: center; }
.titem .t { flex: 1; min-width: 0; }
.titem .t b { display: block; font-size: 15px; line-height: 1.35; }
.titem .t .meta { color: var(--muted); font-size: 12px; margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.titem .t .desc { color: var(--muted); font-size: 12px; margin-top: 3px; }

/* ---- kuis (fokus: bersih & minim distraksi) ---- */
.qpill { display: inline-block; background: var(--lav2); color: var(--primary-dark); border-radius: 999px; padding: 5px 13px; font-size: 11px; font-weight: 800; margin: 12px 16px 0; }
.qcard { margin: 10px 16px 0; border-radius: 24px; }
.qbody { font-size: 15.5px; line-height: 1.65; white-space: pre-wrap; font-weight: 600; }
.opts { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.opt { text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 16px; padding: 11px 13px; font-size: 14.5px; cursor: pointer; display: flex; gap: 11px; width: 100%; color: var(--ink); align-items: center; font-family: inherit; transition: border-color .15s, background .15s, transform .15s; }
.opt:active { transform: scale(.985); }
.opt .l { width: 30px; height: 30px; border-radius: 11px; background: #F2F0FA; color: #585077; font-weight: 800; display: grid; place-items: center; flex: none; font-size: 13px; transition: background .15s, color .15s; }
.opt.sel { border-color: var(--primary); background: #F5F1FF; }
.opt.sel .l { background: var(--grad); color: #fff; }
.opt.key { border-color: var(--green); background: #EAFBF4; }
.opt.key .l { background: var(--green); color: #fff; }
.opt.wrong { border-color: var(--red); background: #FFECEF; }
.opt.wrong .l { background: var(--red); color: #fff; }
.opt .m { margin-left: auto; font-size: 11px; font-weight: 800; flex: none; }
.opt .m.ok { color: var(--green); } .opt .m.no { color: var(--red); }
.runnerbar { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, #F4F0FE 72%, transparent); z-index: 25; }
.runnerbar .btn { flex: 1; }
.ragubtn { background: #fff; color: #C26A18; font-weight: 800; }
.ragubtn.on { background: #FFF2E2; }
.navgrid { display: none; grid-template-columns: repeat(8, 1fr); gap: 6px; padding: 12px 16px 0; }
.navgrid.show { display: grid; }
.gridtoggle { display: block; margin: 10px 16px 0; background: none; border: 0; color: var(--primary); font-weight: 800; font-size: 12.5px; cursor: pointer; font-family: inherit; padding: 0; }
.dot { aspect-ratio: 1; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 11.5px; font-weight: 800; color: var(--muted); cursor: pointer; transition: all .15s; }
.dot.cur { background: var(--grad); border-color: transparent; color: #fff; }
.dot.done { background: var(--lav2); border-color: var(--lav); color: var(--primary-dark); }
.dot.flag { background: #FFF2E2; border-color: #FFD8A8; color: #9A5B12; }

/* ---- hasil ---- */
.result-hero { background: var(--grad); color: #fff; margin: 12px 16px 0; border-radius: 26px; padding: 22px 16px 24px; text-align: center; position: relative; overflow: hidden; box-shadow: 0 14px 30px rgba(106,72,240,.32); }
.result-hero .kicker { font-size: 10.5px; font-weight: 800; letter-spacing: 1.5px; opacity: .85; }
.result-hero h2 { font-size: 16px; margin: 4px 0 14px; font-weight: 800; }
.result-hero .ring { margin: 0 auto; --ringcolor: #FFD08A; }
.result-hero .ring .in { background: rgba(255,255,255,.12); color: #fff; }
.result-hero .ring .in b { color: #fff; }
.result-hero .ring .in span { color: rgba(255,255,255,.85); font-size: 7.5px; }
.result-hero .conf { position: absolute; font-size: 22px; opacity: .9; animation: floaty 3s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-6px); } }
.pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.pills .p { background: rgba(255,255,255,.18); border-radius: 999px; padding: 6px 12px; font-size: 11.5px; font-weight: 800; }
.statrow { display: flex; gap: 10px; margin-top: 14px; }
.statrow .s { flex: 1; text-align: center; background: var(--lav2); border-radius: 14px; padding: 10px 6px; }
.statrow .s b { display: block; font-size: 18px; }
.statrow .s span { font-size: 11px; color: var(--muted); }
.subrow { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.subrow:last-child { border-bottom: 0; }
.subrow b.low { color: var(--danger); } .subrow b.mid { color: #C26A18; } .subrow b.high { color: #1E8A66; }
.weakchips { display: flex; gap: 8px; flex-wrap: wrap; }
.weakchips .w { background: #FFECEF; border: 1px solid #FFC9D4; color: #B03348; border-radius: 999px; padding: 7px 8px 7px 13px; font-size: 12.5px; font-weight: 700; display: inline-flex; gap: 7px; align-items: center; }
.weakchips .w a { background: #fff; color: var(--primary); text-decoration: none; font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 4px 10px; border: 1px solid var(--lav); }

/* ---- pembahasan ---- */
.revrow { border-top: 1px solid var(--line); padding: 12px 0 2px; margin-top: 4px; }
.revrow:first-of-type { border-top: 0; }
.revhead { display: flex; gap: 11px; align-items: center; cursor: pointer; }
.numchip { width: 34px; height: 34px; border-radius: 13px; background: var(--lav2); display: grid; place-items: center; font-weight: 800; color: var(--primary-dark); flex: none; }
.revhead .n { flex: 1; min-width: 0; }
.revhead .n b { display: block; font-size: 14px; }
.revhead .n span { font-size: 11.5px; color: var(--muted); }
.vpill { font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 5px 11px; flex: none; }
.vpill.ok { background: var(--mint2); color: #1E8A66; }
.vpill.no { background: #FFECEF; color: #C73652; }
.vpill.skip { background: #F1EFF7; color: #585077; }
.revdetail { display: none; padding: 10px 2px 8px; }
.revrow.open .revdetail { display: block; }
.card.open .revdetail { display: block; }  /* akordeon Materi (kartu .card) */
.steps { margin-top: 8px; padding-left: 20px; }
.steps li { margin: 4px 0; font-size: 13.5px; color: #453D63; }

/* ---- peringkat ---- */
.seg { display: flex; gap: 8px; margin: 12px 16px 0; }
.seg .c { padding: 8px 15px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-size: 12.5px; font-weight: 800; color: var(--muted); cursor: pointer; transition: all .18s; }
.seg .c.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 5px 12px rgba(124,92,252,.28); }
.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; margin: 14px 16px 0; }
.pcard { background: #fff; border-radius: 18px; padding: 12px 6px 10px; text-align: center; box-shadow: var(--shadow); border: 1px solid rgba(236,231,248,.7); }
.pcard.first { background: linear-gradient(170deg, #FFF7EA, #fff); border: 1.5px solid #FFD8A8; }
.pcard .medal { font-size: 17px; height: 20px; }
.pav { width: 40px; height: 40px; border-radius: 50%; margin: 6px auto 6px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 15px; }
.pcard .nm { font-size: 11.5px; font-weight: 800; line-height: 1.25; min-height: 28px; }
.pcard .sc { font-size: 8.5px; color: var(--muted); line-height: 1.2; margin-top: 1px; }
.pcard .pts { font-size: 14.5px; font-weight: 900; color: var(--primary-dark); margin-top: 3px; }
.lbrow { display: flex; align-items: center; gap: 11px; background: #fff; border-radius: 16px; padding: 9px 14px; margin: 8px 16px 0; box-shadow: var(--shadow); border: 1px solid rgba(236,231,248,.7); }
.lbrow.me { border: 1.5px solid var(--primary); background: #F5F1FF; }
.lbrow .rk { width: 24px; font-weight: 800; color: var(--muted); font-size: 13px; text-align: center; flex: none; }
.lbrow .pav { width: 34px; height: 34px; margin: 0; font-size: 13px; flex: none; }
.lbrow .nm { flex: 1; min-width: 0; }
.lbrow .nm b { display: block; font-size: 13.5px; }
.lbrow .nm span { font-size: 10.5px; color: var(--muted); }
.lbrow .sc { font-weight: 900; color: var(--primary-dark); font-size: 14.5px; }

/* ---- premium ---- */
.prem-hero { background: linear-gradient(165deg, #6A48F0 0%, #4A2FC0 55%, #37248E 100%); color: #fff; border-radius: 26px; margin: 12px 16px 0; padding: 24px 18px; text-align: center; box-shadow: 0 14px 30px rgba(55,36,142,.35); position: relative; overflow: hidden; }
.prem-hero::before { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,138,122,.18); top: -50px; right: -30px; }
.prem-hero .ic { font-size: 34px; }
.prem-hero h2 { font-size: 19px; margin: 6px 0 8px; }
.prem-hero p { font-size: 12.5px; opacity: .88; max-width: 320px; margin: 0 auto; }
.checklist { text-align: left; margin-top: 14px; }
.checklist li { list-style: none; font-size: 12.5px; padding: 5px 0 5px 24px; position: relative; opacity: .95; }
.checklist li::before { content: "✓"; position: absolute; left: 2px; color: var(--mint); font-weight: 900; }
.pricecard { position: relative; }
.pricecard .pr { font-size: 21px; font-weight: 900; color: var(--primary-dark); }
.pricecard .pr small { font-size: 12px; font-weight: 700; color: var(--muted); }
.pricecard .note { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.hembadge { position: absolute; top: -10px; right: 14px; background: linear-gradient(120deg, #FFC08A, #FF8A7A); color: #fff; font-size: 9.5px; font-weight: 900; border-radius: 999px; padding: 4px 11px; letter-spacing: .4px; box-shadow: 0 5px 12px rgba(255,138,122,.35); }

/* ---- admin (dipakai admin/kurasi.php & admin/pengguna.php) ---- */
.adminwrap { max-width: 1060px; margin: 0 auto; padding: 20px 16px 40px; }
.admintable { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; margin-top: 14px; box-shadow: var(--shadow); }
.admintable th, .admintable td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13.5px; }
.admintable th { background: var(--grad); color: #fff; font-size: 12.5px; position: sticky; top: 0; }
.admintable tr:hover td { background: #FAF8FF; }
.tablewrap { overflow-x: auto; border-radius: 16px; }
.qmini { max-width: 340px; }
.keycell { color: #1E8A66; font-weight: 800; }
.actrow { display: flex; gap: 6px; flex-wrap: wrap; }
.actrow .btn { padding: 6px 10px; font-size: 12px; border-radius: 10px; }

/* ---- bank soal & statistik ---- */
.qsnip { font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qmeta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--muted); }
.qactions { display: flex; justify-content: flex-end; align-items: center; margin-top: 10px; }
.qdetail { display: none; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.qcard.open .qdetail { display: block; }
.badge.d-mudah { background: var(--mint2); color: #1E8A66; }
.badge.d-sedang { background: #FFF2E2; color: #C26A18; }
.badge.d-sulit { background: #FFECEF; color: #C73652; }
.sparks { height: 72px; display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; }
.sparks > div { flex: 1; display: flex; align-items: flex-end; }
.sparks .b { width: 100%; background: var(--grad); border-radius: 7px 7px 2px 2px; min-height: 4px; transition: height .5s cubic-bezier(.2,.8,.2,1); }
.sparks .b.alt { background: linear-gradient(180deg, #FFB4A8, #FF8A7A); }
.sparks .b.mintb { background: linear-gradient(180deg, #8FE9C9, var(--mint)); }

/* ---- toast ---- */
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(16px); background: #2A2342; color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s; z-index: 99; max-width: 88vw; text-align: center; box-shadow: 0 10px 26px rgba(42,35,66,.3); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.bad { background: var(--danger); }

/* ---- balasan Tanya AI (diformat fmtAI) ---- */
.aireply b { color: var(--ink); }
.aireply code { background: var(--lav2); color: var(--primary-dark); border-radius: 7px; padding: 1px 6px; font-size: 12.5px; font-family: ui-monospace, Menlo, Consolas, monospace; }

/* Banner pasang PWA */
.pwabar { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%) translateY(24px); width: calc(100% - 28px); max-width: 420px; display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid #E3DDF7; border-radius: 20px; padding: 11px 12px; box-shadow: 0 14px 34px rgba(42,35,66,.22); opacity: 0; pointer-events: none; transition: all .3s; z-index: 98; }
.pwabar.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.pwabar img { border-radius: 12px; flex: none; }
.pwatx { flex: 1; min-width: 0; font-size: 11.5px; line-height: 1.35; color: #6B6389; }
.pwatx b { display: block; font-size: 13px; color: #2A2342; }
.pwatx span b { display: inline; font-size: inherit; }
.pwago { flex: none; border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 800; font-size: 13px; color: #fff; background: var(--grad); box-shadow: 0 6px 14px rgba(124,92,252,.35); cursor: pointer; }
.pwax { flex: none; border: 0; background: none; font-size: 22px; line-height: 1; color: #8F87AE; padding: 2px 4px; cursor: pointer; }
