@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/pjs-400.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --navy: #0B2A5B;
  --navy-900: #071E42;
  --navy-700: #123B78;
  --blue: #1D6FF2;
  --blue-600: #155BD8;
  --blue-soft: #EAF2FF;
  --bg: #F4F7FC;
  --card: #ffffff;
  --text: #0F1E36;
  --muted: #6B7C96;
  --line: #E7EEF8;
  --green: #16A34A;
  --green-soft: #E7F8EE;
  --orange: #F59E0B;
  --orange-soft: #FFF4DE;
  --red: #EF4444;
  --red-soft: #FDECEC;
  --violet: #7C3AED;
  --shadow: 0 6px 22px rgba(15, 42, 90, .06);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body.mobile-body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #DDE7F4;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}
button, input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
#app {
  width: 100%; max-width: 440px; margin: 0 auto; min-height: 100vh;
  background: var(--bg); position: relative; display: flex; flex-direction: column;
  box-shadow: 0 0 70px rgba(11, 42, 91, .16);
}
@media (max-width: 520px) { #app { max-width: none; box-shadow: none; } body.mobile-body { background: var(--bg); } }
main.screen { flex: 1; padding-bottom: 12px; animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }
.boot img { animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- generic ---------- */
.hidden { display: none !important; }
.wrap { padding: 0 18px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.tiny { font-size: 10.5px; }
.bold { font-weight: 700; }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt28 { margin-top: 28px; }
.mb0 { margin-bottom: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
svg.ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; padding: 4px 8px; border-radius: 99px; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.orange { background: var(--orange-soft); color: #B7791F; }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.gray { background: #EEF3FA; color: #64748B; }
.btn {
  width: 100%; border: 0; border-radius: 13px; padding: 14px 18px; font-size: 14px; font-weight: 700;
  background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s;
  box-shadow: 0 8px 18px rgba(29, 111, 242, .24);
}
.btn:active { transform: scale(.985); }
.btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid #D8E4F4; box-shadow: none; }
.btn.soft { background: var(--blue-soft); color: var(--blue); box-shadow: none; }
.btn.dark { background: var(--navy); box-shadow: 0 8px 18px rgba(11, 42, 91, .22); }
.btn.sm { padding: 10px 14px; width: auto; font-size: 12.5px; border-radius: 10px; }
.btn:disabled { opacity: .55; pointer-events: none; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; border: 0; background: #F2F6FC; color: var(--navy);
  display: grid; place-items: center; cursor: pointer; position: relative; flex: none;
}
.icon-btn.dark { background: rgba(255, 255, 255, .12); color: #fff; }
.dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 99px; background: #FF9F43; border: 1.5px solid #fff; }

.card { background: var(--card); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.card.pad { padding: 16px; }
.sec-title { font-size: 15px; font-weight: 800; color: var(--navy); letter-spacing: -.2px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 18px 10px; }
.sec-head .link { color: var(--blue); font-size: 12px; font-weight: 700; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.login-visual { position: relative; height: 296px; overflow: hidden; background: #0B2A5B; }
.login-visual .bg { position: absolute; inset: 0; background: url('/img/campus.jpg') center/cover no-repeat; opacity: .55; }
.login-visual .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 30, 66, .42) 0%, rgba(7, 30, 66, .74) 62%, #0B2A5B 100%); }
.login-visual .content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 0 24px; text-align: center; color: #fff; }
.login-visual .cap { width: 54px; height: 54px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .25)); }
.login-visual h1 { margin: 4px 0 0; font-size: 27px; line-height: 1.12; font-weight: 800; letter-spacing: -.7px; }
.login-visual h1 span { color: #6FB0FF; }
.login-visual .lms { font-size: 9.5px; letter-spacing: 2.6px; font-weight: 700; color: #B9D3F7; margin-top: 2px; }
.login-photo { margin: -46px 20px 0; position: relative; z-index: 3; border-radius: 20px; overflow: hidden; height: 214px; box-shadow: 0 16px 34px rgba(11, 42, 91, .22); background: #0B2A5B; }
.login-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; display: block; }
.login-photo .tag { position: absolute; inset: auto 0 0 0; padding: 44px 16px 14px; background: linear-gradient(180deg, transparent, rgba(7, 30, 66, .82)); color: #fff; font-size: 12px; font-weight: 700; }
.login-body { padding: 18px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.login-body h2 { font-size: 20px; line-height: 1.32; font-weight: 800; color: var(--navy); margin: 6px 0 4px; letter-spacing: -.4px; }
.login-body p.sub { color: var(--muted); font-size: 12.5px; margin: 0 0 18px; line-height: 1.5; }
.login-form { display: flex; flex-direction: column; gap: 11px; }
.field label { font-size: 11.5px; font-weight: 700; color: var(--navy); display: block; margin-bottom: 6px; }
.input, .field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid #E1EAF6; background: #fff; border-radius: 12px; padding: 12px 13px;
  font-size: 13.5px; color: var(--text); outline: none; transition: border .15s, box-shadow .15s;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 111, 242, .1); }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #93A5BF; stroke: currentColor; fill: none; stroke-width: 1.8; }
.input-icon input { padding-left: 38px; }
.cta-stack { display: flex; flex-direction: column; gap: 9px; }
.admin-link { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 14px; }
.admin-link a { color: var(--blue); font-weight: 700; }
.tabs-auth { display: flex; background: #F1F5FB; border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.tabs-auth button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 9px; font-size: 12.5px; font-weight: 700; color: #8296B2; cursor: pointer; }
.tabs-auth button.on { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(15, 42, 90, .1); }
.err-box { background: var(--red-soft); color: #B42318; font-size: 12px; padding: 10px 12px; border-radius: 10px; display: none; }
.err-box.show { display: block; }

/* ---------- dashboard ---------- */
.dash-head { background: linear-gradient(160deg, #071E42 0%, #0B2A5B 55%, #123B78 100%); padding: 18px 18px 30px; color: #fff; border-radius: 0 0 26px 26px; position: relative; overflow: hidden; }
.dash-head:after { content: ''; position: absolute; width: 210px; height: 210px; border-radius: 50%; right: -70px; top: -90px; background: rgba(64, 138, 255, .16); }
.dash-head .top { display: flex; align-items: center; gap: 11px; position: relative; z-index: 2; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #6FB0FF, #1D6FF2); display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; border: 2px solid rgba(255, 255, 255, .35); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-head .hello { font-size: 11px; color: #A9C6EE; }
.dash-head .name { font-size: 15.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.dash-head .meta { font-size: 10.5px; color: #9DBBEA; margin-top: 1px; }
.banner { position: relative; margin: -18px 18px 0; z-index: 3; border-radius: 18px; padding: 16px 16px 18px; color: #fff; background: linear-gradient(118deg, #2A7BFF 0%, #0F55D6 62%, #0B3FA8 100%); box-shadow: 0 12px 26px rgba(15, 85, 214, .28); overflow: hidden; }
.banner .spark { position: absolute; inset: 0; background: radial-gradient(circle at 88% 20%, rgba(255, 255, 255, .22), transparent 45%); }
.banner .txt { position: relative; z-index: 2; max-width: 74%; }
.banner .kicker { font-size: 12.5px; font-weight: 800; letter-spacing: -.2px; }
.banner .desc { font-size: 10px; line-height: 1.45; color: #D6E7FF; margin-top: 5px; }
.banner .period { display: inline-block; margin-top: 9px; font-size: 9.5px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); }
.banner .rocket { position: absolute; right: 6px; bottom: 2px; width: 86px; height: 86px; transform: rotate(-8deg); opacity: .96; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px 18px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px 9px; text-align: center; box-shadow: 0 3px 10px rgba(15, 42, 90, .03); }
.stat .sic { width: 30px; height: 30px; margin: 0 auto 6px; border-radius: 9px; display: grid; place-items: center; }
.stat .sic svg { width: 16px; height: 16px; }
.stat b { display: block; font-size: 17px; color: var(--navy); letter-spacing: -.5px; line-height: 1.1; }
.stat span { display: block; font-size: 9px; font-weight: 600; color: var(--muted); margin-top: 3px; line-height: 1.2; }
.stat .badge { padding: 3px 7px; font-size: 9px; }
.stat .paid { display: block; font-size: 11px; font-weight: 800; color: var(--green); background: var(--green-soft); border-radius: 6px; padding: 3px 4px; margin-top: 2px; }
.progress-card { margin-top: 14px; }
.progress-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.progress-head .pct { font-size: 19px; font-weight: 800; color: var(--navy); }
.bar { height: 8px; border-radius: 99px; background: #E9F0FA; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1D6FF2, #6FB0FF); transition: width .5s ease; }
.progress-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.progress-foot b { color: var(--navy); font-weight: 700; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 0 18px; }
.quick a { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px 6px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; font-size: 9.5px; font-weight: 700; color: #44546A; }
.quick .qi { width: 32px; height: 32px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.quick .qi svg { width: 17px; height: 17px; }

/* ---------- tabbar ---------- */
.tabbar { position: sticky; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .97); backdrop-filter: blur(14px); border-top: 1px solid #E8EFF9; display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px 6px 9px; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 700; color: #93A3B9; padding: 4px 0 0; }
.tab svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { color: var(--blue); }
.tab.on svg { stroke: var(--blue); }
.tab.on:before { content: ''; width: 18px; height: 2px; border-radius: 9px; background: var(--blue); margin-top: -5px; }

/* ---------- appbar/list ---------- */
.appbar { background: #fff; padding: 15px 16px; display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; border-bottom: 1px solid #EEF3FA; }
.appbar h1 { font-size: 17.5px; font-weight: 800; color: var(--navy); margin: 0; letter-spacing: -.4px; }
.appbar .spacer { flex: 1; }
.filter-tabs { display: flex; gap: 8px; padding: 14px 18px 4px; overflow-x: auto; }
.filter-tabs button { border: 1.5px solid #E1EAF6; background: #fff; color: #6B7C96; padding: 8px 15px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.filter-tabs button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.module-list { padding: 12px 18px 4px; display: flex; flex-direction: column; gap: 11px; }
.module { display: flex; align-items: center; gap: 12px; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 3px 12px rgba(15, 42, 90, .035); cursor: pointer; }
.module .mic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.module .mic svg { width: 23px; height: 23px; }
.module h3 { margin: 0 0 3px; font-size: 13px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.module .meta { font-size: 10.5px; color: var(--muted); }
.module .chev { color: #B4C3D8; }
.module .mb { margin-top: 7px; display: flex; align-items: center; gap: 8px; }
.module .mb .bar { flex: 1; height: 5px; }
.module .mb b { font-size: 10.5px; font-weight: 800; color: #3F5573; }
.module .right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.module-card-highlight { border-color: #CFE1FB; }
.empty { text-align: center; padding: 40px 22px; color: var(--muted); font-size: 12.5px; }
.empty svg { width: 42px; height: 42px; margin-bottom: 10px; color: #C3D2E6; }

/* ---------- module detail ---------- */
.hero-module { background: linear-gradient(140deg, #0B2A5B, #164C9B); color: #fff; padding: 20px 18px 22px; border-radius: 0 0 24px 24px; }
.hero-module .chip { display: inline-flex; font-size: 9.5px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: rgba(255, 255, 255, .16); margin-bottom: 10px; }
.hero-module h1 { font-size: 20px; margin: 0 0 6px; letter-spacing: -.5px; line-height: 1.25; }
.hero-module p { font-size: 11.5px; color: #C7DBF8; margin: 0; line-height: 1.5; }
.hero-module .pbar { margin-top: 14px; }
.hero-module .bar { background: rgba(255, 255, 255, .2); }
.hero-module .bar > i { background: linear-gradient(90deg, #8CC2FF, #fff); }
.hero-module .plabel { display: flex; justify-content: space-between; font-size: 10.5px; color: #C7DBF8; margin-top: 7px; }
.lesson { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #EFF4FA; }
.lesson:last-child { border-bottom: 0; }
.lesson .num { width: 34px; height: 34px; border-radius: 11px; background: #F2F6FC; color: #5B7292; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.lesson.done .num { background: var(--green-soft); color: var(--green); }
.lesson h4 { margin: 0 0 2px; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.lesson .lm { font-size: 10px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.lesson .lact { margin-left: auto; }
.lesson .lact .icon-btn { width: 30px; height: 30px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); }
.lesson .lact .icon-btn.done { background: var(--green-soft); color: var(--green); }
.quiz-box { background: #F7FAFF; border: 1px dashed #C9DDF8; border-radius: 14px; padding: 14px; }
.quiz-q { font-size: 12.5px; font-weight: 700; color: var(--navy); margin: 14px 0 8px; line-height: 1.45; }
.quiz-q:first-child { margin-top: 0; }
.opt { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1.5px solid #E1EAF6; border-radius: 10px; margin-bottom: 6px; font-size: 12px; cursor: pointer; background: #fff; }
.opt input { accent-color: var(--blue); width: 15px; height: 15px; margin: 0; }
.opt.sel { border-color: var(--blue); background: #F3F8FF; }
.score-box { text-align: center; padding: 14px; }
.score-box b { font-size: 30px; color: var(--blue); display: block; }

/* ---------- targets ---------- */
.week-card { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin: 12px 18px 14px; box-shadow: var(--shadow); }
.week-card .mid { text-align: center; }
.week-card .mid b { display: block; font-size: 14px; color: var(--navy); }
.week-card .mid span { font-size: 10.5px; color: var(--muted); }
.week-card .icon-btn { width: 34px; height: 34px; border-radius: 10px; }
.week-dots { display: flex; justify-content: center; gap: 6px; margin-top: 5px; }
.week-dots i { width: 5px; height: 5px; border-radius: 99px; background: #D5E2F3; }
.week-dots i.on { background: var(--blue); width: 14px; }
.target-item { display: flex; gap: 11px; padding: 14px 0; border-bottom: 1px solid #EFF4FA; }
.target-item:last-child { border-bottom: 0; }
.tstate { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; margin-top: 1px; }
.tstate.done { background: var(--green); color: #fff; }
.tstate.proses { background: var(--orange-soft); color: var(--orange); }
.tstate.belum { background: #F1F5FB; color: #93A3B9; }
.tstate svg { width: 15px; height: 15px; }
.target-item h4 { margin: 0 0 3px; font-size: 12.5px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.target-item p { margin: 0 0 6px; font-size: 10.5px; color: var(--muted); line-height: 1.45; }
.report-note { background: #F3F8FF; border: 1px solid #DBE9FD; border-radius: 12px; padding: 11px 12px; font-size: 11px; color: #3E5B82; line-height: 1.5; margin: 0 18px 12px; }
.sticky-cta { position: sticky; bottom: 62px; padding: 10px 18px 12px; background: linear-gradient(180deg, rgba(244, 247, 252, 0), var(--bg) 30%); z-index: 25; }

/* ---------- payment ---------- */
.total-card { margin: 14px 18px 0; border-radius: 18px; background: linear-gradient(120deg, #155BD8, #0B3FA8); color: #fff; padding: 16px; box-shadow: 0 12px 26px rgba(12, 69, 172, .24); }
.total-card .lbl { font-size: 11px; color: #C9DEFF; }
.total-card .amt { font-size: 26px; font-weight: 800; letter-spacing: -.8px; margin-top: 3px; }
.total-card .st { float: right; background: #B9F5CE; color: #0C7A35; font-size: 10px; font-weight: 800; padding: 5px 10px; border-radius: 99px; margin-top: -46px; }
.inv-row { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid #EFF4FA; }
.inv-row:last-child { border-bottom: 0; }
.inv-ic { width: 36px; height: 36px; border-radius: 11px; background: #F2F6FC; color: #4C6B95; display: grid; place-items: center; flex: none; }
.inv-row h4 { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.inv-row .sub { font-size: 10px; color: var(--muted); margin-top: 2px; }
.inv-row .amt2 { font-weight: 800; font-size: 12.5px; color: var(--navy); text-align: right; }
.hist { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid #EFF4FA; }
.hist:last-child { border-bottom: 0; }
.hist .hic { width: 34px; height: 34px; border-radius: 99px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex: none; }
.hist h4 { margin: 0 0 2px; font-size: 12px; font-weight: 700; color: var(--navy); }
.hist .hs { font-size: 10px; color: var(--muted); }
.hist .ha { margin-left: auto; text-align: right; }
.hist .ha b { font-size: 12px; color: var(--navy); display: block; }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.method { border: 1.5px solid #E1EAF6; border-radius: 12px; padding: 11px; font-size: 12px; font-weight: 700; color: var(--navy); cursor: pointer; display: flex; align-items: center; gap: 7px; }
.method.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.method svg { width: 17px; height: 17px; }
.bank-info { background: #F7FAFF; border: 1px dashed #C9DDF8; border-radius: 12px; padding: 12px; font-size: 11.5px; color: #3E5B82; line-height: 1.6; }
.upload-box { border: 1.5px dashed #C9DDF8; border-radius: 12px; padding: 18px 12px; text-align: center; font-size: 11.5px; color: var(--muted); cursor: pointer; background: #FAFCFF; }
.upload-box img { max-height: 90px; border-radius: 8px; display: block; margin: 0 auto 6px; }

/* ---------- certificate ---------- */
.cert-preview { position: relative; margin: 14px 18px 0; border-radius: 14px; padding: 10px; background: #FFFDF6; border: 1px solid #E8D8B0; box-shadow: 0 8px 22px rgba(120, 90, 20, .1); }
.cert-preview .inner { border: 2px solid #D9B863; border-radius: 8px; padding: 16px 14px 12px; text-align: center; position: relative; background: linear-gradient(180deg, #FFFEF9, #FDF6E4); overflow: hidden; }
.cert-preview .inner:before { content: ''; position: absolute; inset: 4px; border: 1px solid #EFDCAF; border-radius: 5px; pointer-events: none; }
.cert-preview .cap2 { width: 34px; height: 34px; }
.cert-preview .org { font-size: 11.5px; font-weight: 800; color: #0B2A5B; line-height: 1.25; margin-top: 4px; }
.cert-preview .org span { display: block; font-size: 6.5px; letter-spacing: 1.2px; color: #8A7A50; font-weight: 700; margin-top: 2px; }
.cert-preview h3 { font-size: 10px; letter-spacing: 1.5px; color: #8A6D2B; margin: 14px 0 3px; font-weight: 800; }
.cert-preview .nm { font-size: 15px; font-weight: 800; color: #0B2A5B; letter-spacing: -.3px; }
.cert-preview .pg { font-size: 7.5px; color: #8A7A50; margin-top: 2px; }
.cert-preview .seal { position: absolute; right: 10px; top: 52px; width: 34px; height: 34px; opacity: .9; }
.cert-preview .qr { position: absolute; right: 10px; bottom: 10px; width: 26px; height: 26px; background: repeating-conic-gradient(#0B2A5B 0 25%, #fff 0 50%) 0 0/6px 6px; border: 2px solid #fff; }
.cert-status { display: flex; align-items: center; gap: 8px; padding: 12px 18px 0; }
.cert-status .badge { font-size: 11px; padding: 5px 10px; }
.verify-card { margin: 0 18px 16px; }
.verify-card h3 { font-size: 13px; margin: 0 0 5px; color: var(--navy); }
.verify-card p { font-size: 11px; color: var(--muted); margin: 0 0 10px; line-height: 1.5; }

/* ---------- profile ---------- */
.profile-head { background: linear-gradient(150deg, #0B2A5B, #164C9B); padding: 26px 18px 46px; color: #fff; border-radius: 0 0 26px 26px; text-align: center; }
.profile-head .avatar { width: 72px; height: 72px; font-size: 24px; margin: 0 auto 10px; }
.profile-head h2 { margin: 0; font-size: 17px; }
.profile-head p { margin: 3px 0 0; font-size: 11px; color: #A9C6EE; }
.profile-card { margin: -28px 18px 0; background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: 6px 14px; box-shadow: var(--shadow); }
.prow { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #EFF4FA; cursor: pointer; }
.prow:last-child { border-bottom: 0; }
.prow .pic { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.prow .pic.red { background: var(--red-soft); color: var(--red); }
.prow h4 { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.prow p { margin: 1px 0 0; font-size: 10px; color: var(--muted); }
.prow .chev { margin-left: auto; color: #B4C3D8; }

/* ---------- sheets & modal ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(7, 20, 40, .48); animation: fade .18s ease; }
.sheet { width: 100%; max-width: 440px; background: #fff; border-radius: 22px 22px 0 0; padding: 8px 18px 22px; max-height: 92vh; overflow-y: auto; animation: up .24s cubic-bezier(.2, .9, .3, 1); }
@keyframes up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet .grab { width: 40px; height: 4px; border-radius: 99px; background: #E1E9F4; margin: 4px auto 14px; }
.sheet h2 { font-size: 16.5px; margin: 0 0 4px; color: var(--navy); }
.sheet .sub { font-size: 11.5px; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
.sheet .close { position: absolute; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.form-grid { display: flex; flex-direction: column; gap: 11px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.toast-root { position: fixed; left: 0; right: 0; bottom: 86px; z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { background: #0B2A5B; color: #fff; font-size: 12px; font-weight: 600; padding: 11px 16px; border-radius: 12px; box-shadow: 0 12px 28px rgba(7, 30, 66, .3); display: flex; align-items: center; gap: 8px; max-width: 88%; animation: up .2s ease; }
.toast.ok { background: #0E7A3C; }
.toast.err { background: #B42318; }
.toast svg { width: 16px; height: 16px; }


.pc-wave { position: relative; flex: 1 0 104px; margin-top: 10px; overflow: hidden; background: #FFC93C; }
.pc-wave b { display: none; }
.pc-wave i {
  position: absolute; left: -4%; right: -14%; top: 0; height: calc(100% + 90px);
  border-radius: 50% 50% 0 0 / 64px 64px 0 0; background: linear-gradient(180deg, #2E86FF 0%, #0B47C4 100%);
}

@media (min-width: 700px) {
  body.mobile-body { padding: 22px 0; }
  #app { min-height: calc(100vh - 44px); border-radius: 26px; overflow: hidden; }
}

/* ---------- login (tampilan mengikuti Yapeni) ---------- */
.lg-page {
  min-height: 100vh; position: relative; overflow: hidden;
  background:
    radial-gradient(120% 62% at 50% -6%, #D9ECFA 0%, rgba(217, 236, 250, 0) 60%),
    radial-gradient(95% 52% at 88% 4%, rgba(94, 166, 240, .42) 0%, rgba(94, 166, 240, 0) 58%),
    radial-gradient(85% 48% at 6% 2%, rgba(33, 110, 190, .26) 0%, rgba(33, 110, 190, 0) 55%),
    linear-gradient(180deg, #F2F8FD 0%, #FBFFFD 44%, #ffffff 100%);
}
.lg-page::before, .lg-page::after { content: ''; position: absolute; border-radius: 50%; filter: blur(40px); pointer-events: none; }
.lg-page::before { width: 250px; height: 250px; top: -118px; left: -74px; background: rgba(52, 160, 196, .30); }
.lg-page::after { width: 215px; height: 215px; top: -70px; right: -84px; background: rgba(24, 120, 160, .24); }
.lg-wrap { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; padding: 18px 22px 20px; }
.lg-hero { display: flex; justify-content: center; }
.lg-hero svg { width: 100%; max-width: 232px; height: auto; display: block; }
.lg-brand { text-align: center; margin: 0 0 12px; }
.lg-brand .lg-mark {
  width: 56px; height: 56px; padding: 6px; border-radius: 50%; background: #fff; object-fit: contain;
  box-shadow: 0 8px 20px rgba(11, 42, 91, .18), 0 0 0 1.5px rgba(94, 166, 240, .45);
}
.lg-brand h2 {
  margin: 8px 0 0; font-size: 17.5px; font-weight: 800; letter-spacing: .5px;
  background: linear-gradient(120deg, #0B4A8C 0%, #2B83D6 55%, #5FB0F2 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lg-brand p { margin: 4px 0 0; color: #5F748C; font-size: 12.5px; }
.lg-tab {
  display: flex; gap: 4px; padding: 5px; margin-bottom: 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 10px 26px rgba(11, 42, 91, .12), inset 0 1px 0 #fff;
}
.lg-tab button { flex: 1; padding: 12px 10px; border: 0; background: none; border-radius: 999px; font-size: 14px; font-weight: 700; color: #5F748C; transition: .2s; cursor: pointer; }
.lg-tab button.on {
  color: #fff; background: linear-gradient(135deg, #5FB0F2 0%, #2B83D6 45%, #0B4A8C 100%);
  box-shadow: 0 8px 20px rgba(13, 78, 140, .30);
}
.lg-form { display: flex; flex-direction: column; }
.lg-field { margin-bottom: 12px; }
.lg-field label { display: block; font-size: 13px; font-weight: 700; color: #12365F; margin-bottom: 7px; }
.lg-inp { position: relative; display: flex; align-items: center; }
.lg-inp > .ic { position: absolute; left: 15px; width: 18px; height: 18px; color: #8AA0B8; pointer-events: none; }
.lg-inp input {
  width: 100%; height: 52px; padding: 0 46px 0 42px; border: 1.5px solid #DCEBF6; border-radius: 16px;
  background: #fff; font-size: 14.5px; color: #12365F; box-shadow: 0 4px 14px rgba(22, 79, 140, .06); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.lg-inp input::placeholder { color: #A9BDD2; }
.lg-inp input:focus { border-color: #2B83D6; box-shadow: 0 0 0 4px rgba(43, 131, 214, .14), 0 6px 16px rgba(22, 79, 140, .08); }
.lg-eye {
  position: absolute; right: 8px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 0; background: none; border-radius: 50%; color: #8AA0B8; cursor: pointer;
}
.lg-eye .ic { width: 19px; height: 19px; }
.lg-eye.on { color: #2B83D6; background: #EAF3FD; }
.lg-row { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; font-size: 12.5px; }
.lg-check { display: flex; align-items: center; gap: 8px; color: #5F748C; font-weight: 600; }
.lg-check input { width: 17px; height: 17px; accent-color: #2B83D6; }
.lg-link { border: 0; background: none; padding: 0; color: #1D6FF2; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.lg-btn {
  width: 100%; padding: 15px; border: 0; border-radius: 999px; color: #fff; font-size: 15px; font-weight: 800;
  background: linear-gradient(135deg, #5FB0F2 0%, #2B83D6 45%, #0B4A8C 100%);
  box-shadow: 0 12px 26px rgba(13, 78, 140, .30); cursor: pointer; transition: filter .15s, transform .1s;
}
.lg-btn:hover { filter: brightness(.95); }
.lg-btn:active { transform: scale(.99); }
.lg-btn:disabled { opacity: .65; cursor: default; }
.lg-or { position: relative; text-align: center; margin: 13px 0; color: #93A6BC; font-size: 12px; }
.lg-or::before, .lg-or::after { content: ''; position: absolute; top: 50%; width: 38%; height: 1px; background: #D3E3F2; }
.lg-or::before { left: 0; }
.lg-or::after { right: 0; }
.lg-or span { background: transparent; padding: 0 10px; }
.lg-outline {
  display: flex; align-items: center; justify-content: center; gap: 9px; height: 50px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); border: 1.5px solid #DCEBF6; color: #2D4A6A; font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 14px rgba(22, 79, 140, .07);
}
.lg-outline .ic { width: 18px; height: 18px; color: #2B83D6; }
.lg-legal { margin: 12px 2px 0; text-align: center; color: #6B7F95; font-size: 11.5px; line-height: 1.7; }
.lg-foot { margin-top: auto; padding-top: 12px; text-align: center; color: #8FA3B8; font-size: 11px; line-height: 1.7; }
/* galeri media modul (foto & video) */
.media-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 128px; gap: 9px; overflow-x: auto; padding: 0 18px 4px; margin-top: 2px; scrollbar-width: none; }
.media-gallery::-webkit-scrollbar { display: none; }
.mg-item { position: relative; padding: 0; border: 0; border-radius: 13px; overflow: hidden; background: #0B2A5B; height: 92px; cursor: pointer; box-shadow: 0 4px 14px rgba(11, 42, 91, .1); }
.mg-item img, .mg-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-item .mg-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(7, 30, 66, .05), rgba(7, 30, 66, .55)); color: #fff; }
.mg-item .mg-play svg { width: 30px; height: 30px; fill: #fff; stroke: none; }
.media-view { border-radius: 14px; overflow: hidden; background: #071E42; margin-bottom: 10px; }
.media-view img, .media-view video { width: 100%; max-height: 62vh; object-fit: contain; display: block; }
.media-thumbs { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.media-thumbs::-webkit-scrollbar { display: none; }
.mt2 { flex: none; width: 54px; height: 46px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #EAF2FF; opacity: .62; }
.mt2.on { border-color: var(--blue); opacity: 1; }
.mt2 img, .mt2 video { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 360px) {
  .lg-wrap { padding: 14px 16px 16px; }
  .lg-hero svg { max-width: 220px; }
  .lg-brand h2 { font-size: 16.5px; }
}

/* ---------- LOGIN PESERTA (mengikuti desain referensi) ---------- */
#app.login-mode { max-width: none; background: #E9F3FF; box-shadow: none; }
.pc-page {
  position: relative; overflow-x: hidden; min-height: 100dvh; display: flex; justify-content: center;
  background: linear-gradient(180deg, #DDEBFF 0%, #F3F9FF 44%, #E4F0FF 100%);
}
.pc-wrap { position: relative; z-index: 2; width: 100%; max-width: 486px; display: flex; flex-direction: column; min-height: 100dvh; }
.pc-hero { display: block; width: 100%; height: auto; }
.pc-card {
  position: relative; margin: 2px 24px 0; background: #fff; border-radius: 26px;
  padding: 13px 13px 15px; box-shadow: 0 20px 46px rgba(10, 52, 120, .16);
}
.pc-tabs { display: flex; gap: 4px; padding: 5px; background: #F1F6FD; border-radius: 13px; margin-bottom: 13px; }
.pc-tabs button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px;
  border: 0; background: none; border-radius: 10px; cursor: pointer;
  font-size: 15px; font-weight: 700; color: #12233D; transition: .18s;
}
.pc-tabs button .ic { width: 20px; height: 20px; }
.pc-tabs button.on {
  background: linear-gradient(135deg, #2E86FF 0%, #0F5BE0 55%, #0B47C4 100%);
  color: #fff; box-shadow: 0 8px 18px rgba(16, 86, 214, .30);
}
.pc-form { display: flex; flex-direction: column; }
.pc-form label { display: block; margin: 4px 0 7px; font-size: 14px; font-weight: 700; color: #0B1730; }
.pc-inp { position: relative; display: flex; align-items: center; margin-bottom: 12px; }
.pc-inp > .ic { position: absolute; left: 13px; width: 19px; height: 19px; color: #33445C; pointer-events: none; }
.pc-inp input, .pc-inp select {
  width: 100%; height: 49px; border-radius: 10px; border: 1px solid #DCE4F0; background: #fff;
  padding: 0 44px 0 42px; font-size: 14px; color: #14233B; outline: none; transition: .18s;
}
.pc-inp select {
  appearance: none; padding-right: 14px;
  background-image: linear-gradient(45deg, transparent 50%, #7C8DA6 50%), linear-gradient(135deg, #7C8DA6 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.pc-inp input::placeholder { color: #8B99AC; }
.pc-inp input:focus, .pc-inp select:focus { border-color: #2E86FF; box-shadow: 0 0 0 4px rgba(46, 134, 255, .13); }
.pc-eye { position: absolute; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: #33445C; cursor: pointer; }
.pc-eye .ic { width: 19px; height: 19px; }
.pc-eye.on { color: #0F5BE0; background: #EAF2FF; }
.pc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 13px; }
.pc-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #16233A; cursor: pointer; margin: 0 !important; }
.pc-check input { width: 18px; height: 18px; accent-color: #1E6BFF; border-radius: 4px; }
.pc-terms { margin: 0 0 12px !important; font-size: 11.5px; line-height: 1.5; align-items: flex-start; color: #4B5C74; }
.pc-terms input { width: 16px; height: 16px; margin-top: 1px; }
.pc-link { border: 0; background: none; padding: 0; color: #1568E8; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.pc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 54px;
  border: 0; border-radius: 12px; cursor: pointer; color: #fff; font-size: 16px; font-weight: 700;
  background: linear-gradient(135deg, #2E86FF 0%, #0F5BE0 52%, #0B47C4 100%);
  box-shadow: 0 12px 24px rgba(16, 86, 214, .30); transition: .18s;
}
.pc-btn .ic { width: 21px; height: 21px; }
.pc-btn:active { transform: scale(.995); }
.pc-btn:disabled { opacity: .7; cursor: default; }
.pc-btn.ghost { background: #EFF5FF; color: #0F5BE0; box-shadow: none; border: 1px solid #D8E7FA; min-height: 46px; font-size: 14px; margin-top: 2px; }
.pc-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pc-duo > div { min-width: 0; }
.pc-feats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; padding-top: 13px;
  border-top: 1px solid #EDF2F9;
}
.pc-feats > div { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.pc-feats .ft { width: 45px; height: 45px; border-radius: 13px; display: grid; place-items: center; }
.pc-feats .ft .ic { width: 23px; height: 23px; }
.ft.blue { background: #E8F0FF; color: #2F6BFF; }
.ft.green { background: #E3F7EB; color: #2FA968; }
.ft.purple { background: #EEE9FF; color: #7C5CFA; }
.ft.orange { background: #FFF1E0; color: #F0932B; }
.pc-feats b { font-size: 11px; font-weight: 700; line-height: 1.35; color: #14233B; }
.pc-foot { margin: 10px 24px 0; text-align: center; font-size: 10px; color: #7D93AB; position: relative; z-index: 3; }
.pc-foot a { color: #5E7893; font-weight: 700; }
.pc-pending { text-align: center; padding: 8px 2px 2px; }
.pc-pending-ic { width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: #FFF6E2; color: #C98A00; border: 1px solid #FBE5B4; }
.pc-pending-ic .ic { width: 28px; height: 28px; }
.pc-pending h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: #0B2A5B; }
.pc-pending p { margin: 0 0 12px; font-size: 12px; line-height: 1.65; color: #5E7793; }
.pc-pending p b { color: #12365F; }
@media (min-width: 700px) {
  .pc-wrap { max-width: 500px; }
  .pc-card { margin: 2px 34px 0; padding: 17px 17px 19px; }
}
@media (max-width: 400px) {
  .pc-card { margin: 2px 10px 0; padding: 11px 11px 13px; }
  .pc-tabs button { font-size: 13.5px; gap: 6px; }
  .pc-duo { grid-template-columns: 1fr; gap: 0; }
  .pc-feats .ft { width: 40px; height: 40px; }
  .pc-feats b { font-size: 10px; }
}
