/* ===== Member Area — gaya dasar ===== */
:root {
  --primary: #4f46e5;
  --primary-soft: color-mix(in srgb, var(--primary) 12%, transparent);
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --green: #059669;
  --green-soft: #d1fae5;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --sidebar: 256px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1017;
    --surface: #161a23;
    --surface-2: #1d222d;
    --text: #e8eaf0;
    --muted: #9aa3b2;
    --border: #2a303c;
    --green-soft: #06372a;
    --red-soft: #44161a;
    --amber-soft: #3d2a0a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
img { max-width: 100%; display: block; }
code { font-size: .88em; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; border: 1px solid var(--border); }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.2rem 0; }
.ic { flex-shrink: 0; vertical-align: middle; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mt { margin-top: 1.25rem; }
.mt-s { margin-top: .6rem; }
.grow { flex: 1 1 auto; min-width: 0; }
.row { display: flex; align-items: center; }
.row.gap, .gap { gap: .6rem; }
.wrap { flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.stack { display: grid; gap: .8rem; }
.inline { display: inline; }
.self-end { align-self: end; }
.narrow { max-width: 560px; margin: 0 auto; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== Shell ===== */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  transition: transform .2s ease;
}
.sidebar-top { padding: 1.1rem 1.1rem .6rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 800; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; max-width: 140px; object-fit: contain; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.nav { padding: .4rem .7rem; flex: 1; overflow-y: auto; }
.nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .9rem .6rem .3rem; font-weight: 700; }
.nav-item { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 10px; color: var(--text); font-weight: 500; }
.nav-item:hover { background: var(--surface-2); text-decoration: none; }
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.sidebar-foot { border-top: 1px solid var(--border); padding: .7rem; }
.me { display: flex; align-items: center; gap: .6rem; padding: .3rem .4rem .6rem; }
.me-text { min-width: 0; }
.me-text b, .me-text small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-text small { color: var(--muted); font-size: .75rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: inline-grid; place-items: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.avatar.sm { width: 28px; height: 28px; font-size: .7rem; }

.main { flex: 1; margin-left: var(--sidebar); min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .7rem; padding: .85rem 1.5rem; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.page-title { font-size: 1.15rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-btn { display: none; }
.content { padding: 1.5rem; max-width: 1180px; width: 100%; margin: 0 auto; flex: 1; }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 1.5rem; }
.backdrop { display: none; }
.impersonate-bar { position: sticky; top: 0; z-index: 60; background: var(--amber-soft); color: var(--amber); text-align: center; padding: .45rem 1rem; font-size: .85rem; }
.impersonate-bar a { font-weight: 700; margin-left: .4rem; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .sidebar.open { transform: none; }
  .backdrop.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 30; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: .7rem 1rem; }
  .content { padding: 1rem; }
}

/* ===== Komponen ===== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad, .pad { padding: 1.25rem; }
@media (max-width: 600px) { .card.pad { padding: 1rem; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .6rem 1.05rem; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; line-height: 1.2;
  background: var(--surface-2); color: var(--text); white-space: nowrap;
  transition: filter .15s, background .15s;
}
.btn:hover { text-decoration: none; filter: brightness(.96); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); border-color: var(--border); }
.btn-success { background: var(--green); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: .4rem .75rem; font-size: .82rem; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-weight: 700; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.icon-btn.danger:hover { background: var(--red-soft); color: var(--red); }
.icon-btn:disabled { opacity: .3; cursor: default; }

.badge { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.badge-green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.badge-red { background: var(--red-soft); color: var(--red); border-color: transparent; }
.badge-amber { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.badge-dark { background: var(--text); color: var(--surface); border-color: transparent; }

.alert { padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .9rem; border: 1px solid transparent; }
.alert-success { background: var(--green-soft); color: var(--green); }
.alert-error { background: var(--red-soft); color: var(--red); }
.alert-info { background: var(--primary-soft); color: var(--primary); }
.notice { display: flex; gap: .8rem; align-items: flex-start; background: var(--amber-soft); color: var(--amber); padding: .9rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.notice p { margin: .2em 0 0; }

.progress { height: 7px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; margin: .5rem 0 .3rem; }
.progress span { display: block; height: 100%; background: var(--primary); border-radius: 99px; transition: width .4s; }

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.empty h3 { color: var(--text); margin-top: .6rem; }

/* ===== Form ===== */
.form { display: grid; gap: .9rem; }
.form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; }
input, select, textarea {
  font: inherit; font-size: .95rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: .6rem .75rem; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea { resize: vertical; min-height: 80px; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--primary); }
input[type="color"] { padding: .2rem; height: 42px; }
input[type="file"] { padding: .45rem; font-size: .85rem; }
.input-sm { padding: .35rem .55rem; font-size: .85rem; }
.input-strong { font-weight: 700; }
.form label.check, label.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .9rem; }
fieldset.checks { border: 1px solid var(--border); border-radius: 10px; padding: .6rem .9rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
fieldset.checks legend { font-size: .85rem; font-weight: 600; padding: 0 .3rem; }
.pass-wrap { position: relative; display: block; }
.pass-wrap input { padding-right: 2.6rem; }
.pass-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; padding: .4rem; }
.inline-form { display: flex; gap: .5rem; grid-template-columns: none; }
.inline-form input { flex: 1; }
.box { border: 1px dashed var(--border); border-radius: 12px; padding: 1rem; background: var(--surface-2); }
.summary-btn { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: .5rem; list-style: none; }
.summary-btn::-webkit-details-marker { display: none; }

.cols-2, .cols-3, .cols-main, .cols-lesson { display: grid; gap: 1rem; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.cols-main { grid-template-columns: minmax(0, 1fr) 340px; margin-top: 1rem; }
.cols-lesson { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 960px) {
  .cols-main, .cols-lesson { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
}

.searchbar { display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0 .75rem; color: var(--muted); margin-bottom: 1rem; }
.searchbar input { border: 0; box-shadow: none !important; padding-left: 0; background: transparent; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1rem 0 .5rem; }
.filters .searchbar { margin: 0; }
.filters select { width: auto; }

/* ===== Tabel ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: .7rem .9rem; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: .7rem .9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.dim td { opacity: .55; }
.table .actions, .actions { white-space: nowrap; text-align: right; display: flex; align-items: center; gap: .15rem; justify-content: flex-end; }
td.actions { display: table-cell; }
td.actions > * { vertical-align: middle; }
.code { cursor: pointer; font-weight: 700; letter-spacing: .03em; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.list li:last-child { border-bottom: 0; }
.list a { display: inline-flex; align-items: center; gap: .5rem; }

.pager { display: flex; gap: .3rem; justify-content: center; margin: 1rem 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); font-size: .85rem; color: var(--text); padding: 0 .5rem; }
.pager a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .85rem; font-weight: 500; }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip small { opacity: .7; margin-left: .2rem; }
.chip:hover { text-decoration: none; }

/* ===== Beranda member ===== */
.hero {
  display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 60%, #000));
  color: #fff; border-radius: calc(var(--radius) + 4px); padding: 1.6rem 1.8rem; margin-bottom: 1.25rem;
}
.hero h2 { font-size: 1.5rem; margin-bottom: .25rem; }
.hero p { margin: 0; opacity: .9; max-width: 560px; }
.continue { display: flex; align-items: center; gap: .8rem; background: rgba(255,255,255,.14); color: #fff; padding: .8rem 1rem; border-radius: 12px; max-width: 360px; border: 1px solid rgba(255,255,255,.2); }
.continue:hover { background: rgba(255,255,255,.22); text-decoration: none; }
.continue small { display: block; opacity: .8; font-size: .75rem; }
.continue b { display: block; line-height: 1.3; }

.section-head { display: flex; justify-content: space-between; align-items: center; margin: 1.6rem 0 .8rem; gap: .6rem; }
.section-head h2 { margin: 0; font-size: 1.15rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.product-card { display: flex; flex-direction: column; overflow: hidden; color: var(--text); transition: transform .15s, box-shadow .15s; }
.product-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 25px -10px rgba(16, 24, 40, .25); }
.product-card .card-body { padding: .95rem 1rem 1.05rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.product-card h3 { margin: 0; font-size: 1rem; }
.product-card p { margin: 0 0 .3rem; }
.product-card.locked .cover { filter: grayscale(.7); opacity: .75; }
.price { color: var(--primary); font-size: .9rem; }

.cover { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-fallback { display: grid; place-items: center; background: linear-gradient(135deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 40) 70% 40%)); }
.cover-fallback span { color: #fff; font-weight: 800; font-size: 2rem; opacity: .9; }
.thumb { width: 64px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.cover-fallback span { font-size: .8rem; }
.preview-img { max-height: 70px; border-radius: 8px; border: 1px solid var(--border); }

/* ===== Halaman produk ===== */
.back-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; color: var(--muted); margin-bottom: .9rem; }
.product-hero { display: grid; grid-template-columns: 360px 1fr; overflow: hidden; }
.product-hero .cover-lg { aspect-ratio: 16 / 9; height: 100%; }
.product-hero-body { padding: 1.4rem 1.6rem; display: flex; flex-direction: column; justify-content: center; }
.locked-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; margin-top: .6rem; }
@media (max-width: 760px) {
  .product-hero { grid-template-columns: 1fr; }
  .product-hero-body { padding: 1.1rem; }
}

.curriculum details.module { border: 1px solid var(--border); border-radius: 12px; margin-bottom: .6rem; overflow: hidden; background: var(--surface); }
.curriculum summary { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .75rem 1rem; cursor: pointer; font-weight: 700; background: var(--surface-2); list-style: none; }
.curriculum summary::-webkit-details-marker { display: none; }
.curriculum summary::after { content: "▾"; color: var(--muted); margin-left: .4rem; transition: transform .2s; }
.curriculum details:not([open]) summary::after { transform: rotate(-90deg); }
.curriculum summary span { flex: 1; }
.curriculum ul { list-style: none; margin: 0; padding: .3rem; }
.curriculum li a, .curriculum li .disabled { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 9px; color: var(--text); font-size: .9rem; }
.curriculum li a:hover { background: var(--surface-2); text-decoration: none; }
.curriculum li .disabled { color: var(--muted); }
.curriculum li.current a { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.curriculum li.done .ic { color: var(--green); }
.curriculum li a .ic { color: var(--muted); }
.curriculum li.current a .ic { color: var(--primary); }

.files { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.files li { display: flex; align-items: center; gap: .75rem; padding: .65rem .7rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.file-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.file-text { flex: 1; min-width: 0; }
.file-text b { display: block; font-size: .9rem; word-break: break-word; }
.file-text small { font-size: .75rem; }
@media (max-width: 480px) { .files .btn span { display: none; } }

/* ===== Materi ===== */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-preview:empty { display: none; }
.video-preview .video { max-width: 520px; }
.lesson-title { font-size: 1.4rem; margin-top: .2rem; }
.lesson-actions { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.lesson-side { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; }
@media (max-width: 960px) { .lesson-side { position: static; max-height: none; } }
@media (max-width: 520px) { .hide-sm { display: none; } }

.prose { font-size: .97rem; line-height: 1.7; }
.prose img { border-radius: 10px; margin: .8rem 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose blockquote { border-left: 3px solid var(--primary); margin: 1rem 0; padding: .3rem 1rem; color: var(--muted); }
.prose pre { background: var(--surface-2); padding: .8rem; border-radius: 10px; overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--border); padding: .4rem .6rem; }

/* ===== Admin ===== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.stat { display: flex; align-items: center; gap: .9rem; padding: 1.1rem; color: var(--text); }
.stat:hover { text-decoration: none; border-color: var(--primary); }
.stat-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.stat small { color: var(--muted); display: block; font-size: .8rem; }
.stat b { font-size: 1.5rem; line-height: 1.1; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; margin-top: .8rem; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bar span { width: 100%; min-height: 3px; background: var(--primary); border-radius: 5px 5px 2px 2px; opacity: .85; }
.bar small { font-size: .65rem; color: var(--muted); }

.tabs-nav { display: flex; gap: .3rem; margin: .2rem 0 1rem; overflow-x: auto; position: sticky; top: 60px; z-index: 10; background: var(--bg); padding: .4rem 0; }
.tabs-nav a { padding: .45rem .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.tabs-nav a:hover { text-decoration: none; border-color: var(--primary); }
section[id] { scroll-margin-top: 120px; }

.module-admin { border: 1px solid var(--border); border-radius: 12px; padding: .8rem; margin-bottom: .8rem; background: var(--surface-2); }
.module-head { display: flex; align-items: center; gap: .3rem; }
.lesson-admin { list-style: none; margin: .5rem 0; padding: 0; display: grid; gap: .3rem; }
.lesson-admin li { display: flex; align-items: center; gap: .2rem; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: .3rem .3rem .3rem .7rem; font-size: .9rem; }
.lesson-admin li .grow { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.add-lesson input { padding: .45rem .7rem; font-size: .88rem; }
@media (max-width: 600px) { .add-lesson { flex-wrap: wrap; } .add-lesson input { flex-basis: 100%; } }

.cred-box { border: 2px dashed var(--green); background: var(--green-soft); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; display: grid; gap: .6rem; }
.cred-box pre { margin: 0; white-space: pre-wrap; font-size: .85rem; background: var(--surface); padding: .7rem; border-radius: 10px; color: var(--text); }
.copy-row { display: flex; gap: .5rem; }
.copy-row input { font-family: ui-monospace, monospace; font-size: .82rem; }
.code-block { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: .8rem; font-size: .8rem; overflow-x: auto; white-space: pre; }
.checklist { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .3rem; font-size: .9rem; }
.checklist .ok { color: var(--green); }
.checklist .bad { color: var(--red); font-weight: 700; }

/* ===== Halaman login ===== */
.auth-body { background: radial-gradient(1200px 500px at 50% -10%, var(--primary-soft), transparent), var(--bg); }
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 1rem; }
.auth-card { width: 100%; max-width: 410px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 2rem 1.75rem; box-shadow: 0 20px 50px -20px rgba(16, 24, 40, .25); }
.auth-card.wide { max-width: 520px; }
.auth-card h2 { font-size: 1.2rem; margin: 1rem 0 1.1rem; }
.auth-brand { display: flex; justify-content: center; }
.auth-brand .brand { font-size: 1.15rem; }
.auth-brand .brand img { height: 46px; max-width: 200px; }
.auth-foot { color: var(--muted); font-size: .8rem; margin-top: 1.2rem; text-align: center; }

.toast { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--surface); padding: .55rem 1rem; border-radius: 10px; font-size: .85rem; z-index: 100; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
