/* =====================================================================
   NASHEEDUCATION v2 — Design System
   Jenama: Ink (#111525) + Emas (#CA9322) · Plus Jakarta Sans
   ===================================================================== */
:root {
  --ink: #111525; --ink-2: #1a1f33; --ink-3: #262c44; --ink-line: rgba(255,255,255,.08);
  --gold: #ca9322; --gold-600: #a8780f; --gold-700: #7f5a0a; --gold-200: #ecd49c; --gold-100: #f7ebd0; --gold-50: #fcf7ec;
  --bg: #f6f5f1; --surface: #fff; --surface-2: #faf9f6;
  --text: #171a26; --muted: #5e6475; --subtle: #8a8fa0; --line: #e7e4dc; --line-2: #efede7;
  --green: #0e8a5f; --green-50: #e6f5ee; --red: #c93434; --red-50: #fcebeb;
  --amber: #a86a12; --amber-50: #fdf3e1; --blue: #2563eb; --blue-50: #eaf1fe;
  --purple: #7c3aed; --purple-50: #f2ecfe; --gray: #5e6475; --gray-50: #f0f0f3;
  --radius-sm: 10px; --radius: 14px; --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(17,21,37,.06);
  --shadow: 0 1px 2px rgba(17,21,37,.05), 0 10px 30px -18px rgba(17,21,37,.25);
  --shadow-lg: 0 24px 60px -24px rgba(17,21,37,.35);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sidebar-w: 268px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--gold-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.015em; color: var(--text); }
h1 { font-size: 1.75rem; font-weight: 800; } h2 { font-size: 1.35rem; font-weight: 800; } h3 { font-size: 1.08rem; font-weight: 700; } h4 { font-size: .95rem; font-weight: 700; }
p { margin: 0 0 1em; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); } .subtle { color: var(--subtle); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
.ic { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }
:focus-visible { outline: 3px solid rgba(202,147,34,.55); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.text-right { text-align: right; } .text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: .5rem } .mt-2 { margin-top: 1rem } .mt-3 { margin-top: 1.5rem } .mt-4 { margin-top: 2rem }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: .5rem } .mb-2 { margin-bottom: 1rem } .mb-3 { margin-bottom: 1.5rem }
.flex { display: flex; gap: .75rem; align-items: center; } .flex-wrap { flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.75rem; }

/* ---------- Butang ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.15rem; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .92rem; line-height: 1.2; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--ink); color: #fff; } .btn-primary:hover { background: var(--ink-3); }
.btn-gold { background: var(--gold); color: #1b1405; } .btn-gold:hover { background: #d9a32f; box-shadow: 0 8px 20px -10px rgba(202,147,34,.8); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--line); } .btn-outline:hover { border-color: var(--subtle); background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--muted); } .btn-ghost:hover { background: var(--gray-50); color: var(--text); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.22); } .btn-ghost-light:hover { background: rgba(255,255,255,.08); }
.btn-danger { background: var(--red-50); color: var(--red); border-color: #f3caca; } .btn-danger:hover { background: var(--red); color: #fff; }
.btn-success { background: var(--green); color: #fff; } .btn-success:hover { background: #0b7550; }
.btn-sm { padding: .45rem .75rem; font-size: .83rem; border-radius: 10px; } .btn-sm .ic { width: 16px; height: 16px; }
.btn-lg { padding: .95rem 1.5rem; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; position: relative; transition: background .15s, color .15s; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.icon-btn-dark { background: transparent; border-color: var(--ink-line); color: #aab0c3; } .icon-btn-dark:hover { background: var(--ink-3); color: #fff; }
.btn-group { display: flex; flex-wrap: wrap; gap: .5rem; }
form.inline { display: inline; }

/* ---------- Lencana ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.badge-green { background: var(--green-50); color: var(--green); } .badge-red { background: var(--red-50); color: var(--red); }
.badge-amber { background: var(--amber-50); color: var(--amber); } .badge-blue { background: var(--blue-50); color: var(--blue); }
.badge-purple { background: var(--purple-50); color: var(--purple); } .badge-gray { background: var(--gray-50); color: var(--gray); }
.badge-gold { background: var(--gold-100); color: var(--gold-700); } .badge-ink { background: var(--ink); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); }

/* ---------- Kad ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-body { padding: 1.35rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.35rem; border-bottom: 1px solid var(--line-2); }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.02rem; }
.card-head p { margin: .15rem 0 0; font-size: .85rem; color: var(--muted); }
.card-foot { padding: .9rem 1.35rem; border-top: 1px solid var(--line-2); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card-link { display: block; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold-200); }
.card-highlight { border-color: var(--gold-200); background: linear-gradient(180deg, var(--gold-50), #fff 60%); }

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-main { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Statistik ---------- */
.stat { display: flex; gap: .9rem; align-items: center; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); color: inherit; }
a.stat:hover { text-decoration: none; border-color: var(--gold-200); }
.stat-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.stat-icon .ic { width: 22px; height: 22px; }
.stat-value { font-size: 1.55rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.stat-label { font-size: .84rem; color: var(--muted); font-weight: 600; }
.stat-hint { font-size: .78rem; color: var(--subtle); }
.stat-gold .stat-icon { background: var(--gold-100); color: var(--gold-700); }
.stat-green .stat-icon { background: var(--green-50); color: var(--green); }
.stat-blue .stat-icon { background: var(--blue-50); color: var(--blue); }
.stat-purple .stat-icon { background: var(--purple-50); color: var(--purple); }
.stat-red .stat-icon { background: var(--red-50); color: var(--red); }
.stat-amber .stat-icon { background: var(--amber-50); color: var(--amber); }

/* ---------- Borang ---------- */
.field { display: block; margin-bottom: 1rem; }
.field > label, .label { display: block; font-weight: 700; font-size: .87rem; margin-bottom: .35rem; color: var(--text); }
.field .req { color: var(--red); }
.input, select.input, textarea.input { width: 100%; padding: .7rem .85rem; font: inherit; font-size: .95rem; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(202,147,34,.16); }
textarea.input { min-height: 110px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235e6475' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.3rem; }
.input[type=file] { padding: .55rem; background: var(--surface-2); }
.help { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.input-icon { position: relative; } .input-icon .ic { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; } .input-icon .input { padding-left: 2.5rem; }
.input-action { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--subtle); padding: .4rem; cursor: pointer; border-radius: 8px; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; cursor: pointer; margin-bottom: .5rem; }
.check input { margin-top: .3rem; accent-color: var(--gold); width: 16px; height: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 620px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.chip-group { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .86rem; font-weight: 600; cursor: pointer; }
.chip:hover { text-decoration: none; color: var(--text); border-color: var(--subtle); }
.chip.active, .chip:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.1rem; }
.filter-bar .input { width: auto; min-width: 160px; }

/* ---------- Makluman ---------- */
.flash-stack { display: grid; gap: .6rem; margin-bottom: 1.2rem; }
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px; border: 1px solid; font-size: .92rem; }
.alert > div { flex: 1; }
.alert .ic { margin-top: 2px; }
.alert-success { background: var(--green-50); border-color: #bfe6d4; color: #0a6546; }
.alert-error { background: var(--red-50); border-color: #f1c4c4; color: #9f2323; }
.alert-warning { background: var(--amber-50); border-color: #f0d7a8; color: #7c4d0b; }
.alert-info { background: var(--blue-50); border-color: #c9dafb; color: #1d4ed8; }
.alert-close { border: 0; background: transparent; color: inherit; opacity: .6; cursor: pointer; padding: 0; }
.callout { padding: 1rem 1.15rem; border-radius: 14px; background: var(--gold-50); border: 1px dashed var(--gold-200); font-size: .92rem; }

/* ---------- Jadual ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--subtle); font-weight: 700; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fcfbf8; }
.cell-user { display: flex; gap: .7rem; align-items: center; min-width: 180px; }
.cell-user strong { display: block; font-weight: 700; }
.cell-user span { display: block; font-size: .8rem; color: var(--muted); }

/* ---------- Avatar ---------- */
.avatar { width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; flex-shrink: 0; background: linear-gradient(135deg, var(--gold-100), var(--gold-200)); color: var(--gold-700); font-weight: 800; font-size: .85rem; object-fit: cover; }
.avatar.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 1.2rem; }
.avatar.xl { width: 96px; height: 96px; border-radius: 24px; font-size: 1.6rem; }

/* ---------- Senarai ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; gap: .85rem; align-items: center; padding: .9rem 1.35rem; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow strong { display: block; }
.list-item .meta { font-size: .82rem; color: var(--muted); }
.list-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gray-50); color: var(--muted); flex-shrink: 0; }
.date-box { width: 52px; text-align: center; border-radius: 12px; background: var(--ink); color: #fff; padding: .35rem 0; flex-shrink: 0; }
.date-box b { display: block; font-size: 1.2rem; line-height: 1.1; }
.date-box span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-200); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: .45rem 1rem; font-size: .9rem; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }

/* ---------- Kemajuan ---------- */
.progress { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #e2b347); transition: width .4s; }
.progress-label { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: .35rem; font-weight: 600; }

/* ---------- Kosong ---------- */
.empty { text-align: center; padding: 2.5rem 1.25rem; color: var(--muted); }
.empty-icon { width: 56px; height: 56px; margin: 0 auto .9rem; display: grid; place-items: center; border-radius: 18px; background: var(--gray-50); color: var(--subtle); }
.empty-icon .ic { width: 26px; height: 26px; }
.empty h3 { color: var(--text); margin-bottom: .3rem; }
.empty p { max-width: 420px; margin: 0 auto 1rem; font-size: .92rem; }

/* ---------- Tab ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tab { padding: .7rem 1rem; font-weight: 700; font-size: .9rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: .45rem; align-items: center; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--text); border-bottom-color: var(--gold); }
.tab .count { background: var(--gray-50); border-radius: 99px; padding: 0 .45rem; font-size: .75rem; }

/* ---------- Dialog / Modal ---------- */
dialog.modal { border: 0; padding: 0; border-radius: var(--radius-lg); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: var(--shadow-lg); color: var(--text); }
dialog.modal-lg { width: min(820px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: rgba(17,21,37,.55); backdrop-filter: blur(3px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.35rem; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-head h3 { margin: 0; }
.modal-body { padding: 1.35rem; }
.modal-foot { padding: 1rem 1.35rem; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: .6rem; background: var(--surface-2); }

/* =====================================================================
   PORTAL (sidebar + topbar)
   ===================================================================== */
body.portal { background: var(--bg); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--ink); color: #c7cbd8; display: flex; flex-direction: column; z-index: 40; transition: transform .25s ease; }
.sidebar-brand { display: block; padding: 1.3rem 1.3rem .9rem; }
.sidebar-brand img { height: 36px; width: auto; }
.sidebar-role { margin: 0 1.3rem .6rem; display: inline-flex; align-items: center; gap: .45rem; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-200); }
.dot { width: 8px; height: 8px; border-radius: 99px; background: var(--gold); display: inline-block; }
.dot-coach { background: #60a5fa; } .dot-school { background: #34d399; } .dot-admin { background: #f87171; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: .25rem .75rem 1rem; scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; }
.nav-section { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6f7690; padding: 1rem .6rem .4rem; }
.nav-link { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 11px; color: #c7cbd8; font-weight: 600; font-size: .92rem; margin-bottom: 2px; }
.nav-link:hover { background: var(--ink-2); color: #fff; text-decoration: none; }
.nav-link.active { background: linear-gradient(90deg, rgba(202,147,34,.2), rgba(202,147,34,.05)); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav-link.active .ic { color: var(--gold); }
.nav-link span:first-of-type { flex: 1; }
.nav-badge { background: var(--gold); color: var(--ink); font-size: .72rem; font-weight: 800; border-radius: 99px; padding: 0 .45rem; min-width: 20px; text-align: center; }
.sidebar-foot { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; border-top: 1px solid var(--ink-line); }
.sidebar-foot .avatar { background: var(--ink-3); color: var(--gold-200); }
.sidebar-user { flex: 1; min-width: 0; line-height: 1.3; }
.sidebar-user strong { display: block; color: #fff; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user span { display: block; font-size: .75rem; color: #8a90a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-backdrop { display: none; }
.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1rem; padding: 1rem 2rem; background: rgba(246,245,241,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 { font-size: 1.35rem; margin: 0; }
.topbar-title p { margin: .1rem 0 0; color: var(--muted); font-size: .88rem; }
.back-link { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: .15rem; }
.back-link .ic { width: 15px; height: 15px; }
.topbar-actions { display: flex; align-items: center; gap: .5rem; }
.bell-count { position: absolute; top: -5px; right: -5px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 800; border-radius: 99px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--bg); }
.menu-btn { display: none; }
.content { flex: 1; padding: 1.75rem 2rem 2.5rem; width: 100%; max-width: 1280px; }
.portal-foot { padding: 1.2rem 2rem; font-size: .8rem; color: var(--subtle); border-top: 1px solid var(--line); }
.portal-foot a { color: var(--muted); }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 0 0 .9rem; }
.section-title h2 { margin: 0; font-size: 1.12rem; }
.section-title p { margin: .15rem 0 0; font-size: .87rem; color: var(--muted); }
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(17,21,37,.5); z-index: 35; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: .8rem 1rem; }
  .content { padding: 1.25rem 1rem 2rem; }
  .portal-foot { padding: 1rem; }
  .topbar-title h1 { font-size: 1.12rem; }
  .topbar-title p { display: none; }
}

/* ---------- Hero dashboard ---------- */
.welcome { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 1.6rem 1.75rem; background: var(--ink); color: #fff; margin-bottom: 1.4rem; }
.welcome::after { content: ""; position: absolute; inset: 0; background-image: var(--pattern); opacity: .6; pointer-events: none; }
.welcome > * { position: relative; z-index: 1; }
.welcome h2 { color: #fff; font-size: 1.45rem; margin-bottom: .3rem; }
.welcome p { color: #b9bfd1; margin: 0; }
.welcome .eyebrow { color: var(--gold-200); }
.welcome-row { display: flex; gap: 1.5rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); margin-bottom: .45rem; display: block; }

/* ---------- Langkah (onboarding) ---------- */
.steps { display: grid; gap: .75rem; counter-reset: step; }
.step { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.step-num { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--gray-50); color: var(--muted); flex-shrink: 0; font-size: .9rem; }
.step.done .step-num { background: var(--green); color: #fff; }
.step.current { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(202,147,34,.12); }
.step.current .step-num { background: var(--gold); color: var(--ink); }
.step h4 { margin: 0 0 .15rem; } .step p { margin: 0; font-size: .87rem; color: var(--muted); }

/* ---------- Garis masa sesi ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 25px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; display: flex; gap: 1rem; padding: 0 0 1.25rem; }
.tl-dot { width: 52px; flex-shrink: 0; display: flex; justify-content: center; }
.tl-dot span { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); color: var(--muted); font-weight: 800; font-size: .82rem; z-index: 1; }
.tl-item.completed .tl-dot span { background: var(--green); border-color: var(--green); color: #fff; }
.tl-item.cancelled .tl-dot span { background: var(--gray-50); color: var(--subtle); }
.tl-body { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.15rem; }
.tl-body .report { margin-top: .7rem; padding: .8rem .9rem; background: var(--surface-2); border-radius: 12px; font-size: .9rem; border-left: 3px solid var(--gold); }
.stars { color: var(--gold); letter-spacing: 1px; }

/* ---------- Modul ---------- */
.cat-tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1.25rem; scrollbar-width: none; }
.cat-tab { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.cat-tab:hover { text-decoration: none; color: var(--text); }
.cat-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-tab .count { font-size: .75rem; opacity: .7; }
.cat-swatch { width: 10px; height: 10px; border-radius: 4px; display: inline-block; }
.module-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.module-cover { position: relative; height: 128px; display: grid; place-items: center; color: #fff; background: var(--c, var(--gold)); overflow: hidden; }
.module-cover::after { content: ""; position: absolute; inset: 0; background-image: var(--pattern); opacity: .35; }
.module-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.module-cover .ic { width: 44px; height: 44px; opacity: .9; position: relative; z-index: 1; }
.module-cover .lock { position: absolute; top: .7rem; right: .7rem; z-index: 2; background: rgba(17,21,37,.7); border-radius: 10px; padding: .3rem .5rem; display: inline-flex; gap: .3rem; align-items: center; font-size: .75rem; font-weight: 700; }
.module-cover .lock .ic { width: 14px; height: 14px; }
.module-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.module-body h3 { margin: 0; font-size: 1.02rem; }
.module-body p { margin: 0; font-size: .87rem; color: var(--muted); flex: 1; }
.module-meta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; font-size: .8rem; color: var(--muted); align-items: center; }
.lesson-list { list-style: none; padding: 0; margin: 0; }
.lesson-link { display: flex; gap: .75rem; align-items: center; padding: .75rem 1.1rem; color: var(--text); border-bottom: 1px solid var(--line-2); font-size: .92rem; }
.lesson-link:hover { background: var(--surface-2); text-decoration: none; }
.lesson-link.active { background: var(--gold-50); box-shadow: inset 3px 0 0 var(--gold); font-weight: 700; }
.lesson-check { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; border: 2px solid var(--line); flex-shrink: 0; font-size: .75rem; font-weight: 800; color: var(--subtle); }
.lesson-link.done .lesson-check { background: var(--green); border-color: var(--green); color: #fff; }
.lesson-check .ic { width: 14px; height: 14px; }
.video-frame { position: relative; padding-top: 56.25%; border-radius: 16px; overflow: hidden; background: var(--ink); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose { font-size: 1rem; line-height: 1.75; }
.prose p { margin-bottom: 1rem; }

/* ---------- Jurulatih ---------- */
.coach-card { padding: 1.3rem; display: flex; flex-direction: column; gap: .8rem; height: 100%; }
.coach-top { display: flex; gap: .9rem; align-items: center; }
.coach-top h3 { margin: 0; font-size: 1.02rem; }
.coach-top .headline { font-size: .84rem; color: var(--muted); margin: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { font-size: .76rem; font-weight: 700; padding: .2rem .55rem; border-radius: 8px; background: var(--gray-50); color: var(--muted); display: inline-flex; gap: .3rem; align-items: center; }
.coach-facts { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .82rem; color: var(--muted); }
.coach-facts span { display: inline-flex; align-items: center; gap: .3rem; }
.coach-facts .ic { width: 15px; height: 15px; }
.slot { font-size: .8rem; font-weight: 700; }
.slot-ok { color: var(--green); } .slot-full { color: var(--red); }

/* =====================================================================
   LAMAN AWAM
   ===================================================================== */
:root { --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ca9322' stroke-opacity='.14' stroke-width='1'%3E%3Cpath d='M32 8 38 26 56 32 38 38 32 56 26 38 8 32 26 26Z'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3C/g%3E%3C/svg%3E"); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: background .2s, border-color .2s; }
.site-header-dark { background: rgba(17,21,37,.72); border-bottom-color: var(--ink-line); }
.site-header-dark.scrolled { background: rgba(17,21,37,.96); }
.site-header-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.site-brand img { height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; font-weight: 600; font-size: .92rem; }
.site-nav > a { color: var(--muted); }
.site-header-dark .site-nav > a { color: #c7cbd8; }
.site-nav > a:hover, .site-nav > a.active { color: var(--gold); text-decoration: none; }
.site-nav-cta { display: flex; gap: .6rem; margin-left: .5rem; }
.site-header:not(.site-header-dark) .btn-ghost-light { color: var(--text); border-color: var(--line); }
.nav-toggle { display: none; margin-left: auto; }
.site-header-dark .nav-toggle { background: transparent; border-color: var(--ink-line); color: #fff; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .75rem 20px 1.25rem; background: var(--ink); border-bottom: 1px solid var(--ink-line); }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: .8rem 0; color: #c7cbd8 !important; border-bottom: 1px solid var(--ink-line); }
  .site-nav-cta { margin: 1rem 0 0; flex-direction: column; }
  .site-nav-cta .btn-ghost-light { color: #fff !important; border-color: rgba(255,255,255,.22) !important; }
}

.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; margin-top: -72px; padding: 150px 0 90px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); opacity: .9; }
.hero::after { content: ""; position: absolute; width: 780px; height: 780px; right: -260px; top: -260px; background: radial-gradient(circle, rgba(202,147,34,.28), transparent 62%); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.15rem); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: 1.1rem; color: #b9bfd1; max-width: 560px; margin-bottom: 1.8rem; }
.hero .eyebrow { color: var(--gold-200); display: inline-flex; gap: .5rem; align-items: center; padding: .4rem .8rem; border: 1px solid rgba(202,147,34,.35); border-radius: 99px; background: rgba(202,147,34,.08); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2rem; color: #b9bfd1; font-size: .9rem; }
.hero-points span { display: inline-flex; gap: .45rem; align-items: center; } .hero-points .ic { color: var(--gold); }
.hero-card { background: #fff; color: var(--text); border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); overflow: hidden; }
.hero-card-head { padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.hero-card-body { padding: 1.1rem 1.3rem; display: grid; gap: .8rem; }
.mini-session { display: flex; gap: .8rem; align-items: center; padding: .7rem .8rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: .88rem; }
.mini-session .date-box { width: 46px; }
.float-badge { position: absolute; background: #fff; color: var(--text); border-radius: 16px; padding: .7rem .9rem; display: flex; gap: .6rem; align-items: center; font-size: .84rem; font-weight: 700; box-shadow: var(--shadow-lg); }
.hero-visual { position: relative; }
.hero-visual .float-badge.b1 { left: -36px; bottom: -48px; }
.hero-visual .float-badge.b2 { right: -22px; top: -58px; }
@media (max-width: 960px) {
  .hero { padding: 120px 0 64px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual .float-badge { display: none; }
}

.section { padding: 84px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.section-dark::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); }
.section-dark > .container { position: relative; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.025em; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-head p { color: #b9bfd1; }
.muted-light { color: #9aa1b8; }

.audience-card { padding: 1.6rem; height: 100%; display: flex; flex-direction: column; gap: .8rem; }
.audience-card .ai { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; }
.audience-card .ai .ic { width: 26px; height: 26px; }
.audience-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .92rem; color: var(--muted); flex: 1; }
.audience-card li { display: flex; gap: .5rem; } .audience-card li .ic { color: var(--green); margin-top: 3px; width: 16px; height: 16px; }

.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: flow; }
.flow-step { position: relative; padding: 1.4rem 1.2rem; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid var(--ink-line); }
.flow-step .n { font-size: .78rem; font-weight: 800; color: var(--gold); letter-spacing: .1em; }
.flow-step .fi { width: 44px; height: 44px; border-radius: 14px; background: rgba(202,147,34,.14); color: var(--gold); display: grid; place-items: center; margin: .6rem 0 .8rem; }
.flow-step h3 { font-size: 1rem; margin-bottom: .35rem; }
.flow-step p { font-size: .87rem; color: #9aa1b8; margin: 0; }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

.cat-card { padding: 1.4rem; display: flex; gap: 1rem; align-items: flex-start; height: 100%; }
.cat-card .ci { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.cat-card h3 { margin: 0 0 .25rem; }
.cat-card p { margin: 0 0 .5rem; font-size: .9rem; color: var(--muted); }

.pkg-card { padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; height: 100%; position: relative; }
.pkg-card.featured { border: 2px solid var(--gold); box-shadow: 0 30px 60px -30px rgba(202,147,34,.55); }
.pkg-card .ribbon { position: absolute; top: -13px; left: 1.6rem; }
.pkg-price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.pkg-price small { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pkg-features { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .92rem; flex: 1; }
.pkg-features li { display: flex; gap: .55rem; } .pkg-features .ic { color: var(--green); width: 17px; height: 17px; margin-top: 3px; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 1.25rem; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 1.1rem 0; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { color: var(--muted); padding-bottom: 1.1rem; margin: 0; }

.cta-band { border-radius: 28px; padding: 3rem; background: linear-gradient(135deg, var(--gold) 0%, #e2b347 100%); color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background-image: var(--pattern); opacity: .6; filter: brightness(.2); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--ink); margin: 0 0 .35rem; font-size: 1.8rem; }
.cta-band p { margin: 0; color: #3b2c07; }

.site-footer { background: var(--ink); color: #c7cbd8; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.footer-grid a { display: flex; gap: .45rem; align-items: center; color: #c7cbd8; margin-bottom: .55rem; font-size: .92rem; }
.footer-grid a:hover { color: var(--gold); text-decoration: none; }
.footer-logo { height: 34px; width: auto; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid var(--ink-line); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .82rem; color: #7c839b; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .cta-band { padding: 2rem 1.5rem; } }

/* ---------- Halaman auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; background: var(--ink); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); }
.auth-side::after { content: ""; position: absolute; width: 600px; height: 600px; left: -200px; bottom: -260px; background: radial-gradient(circle, rgba(202,147,34,.3), transparent 62%); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side img { height: 38px; width: auto; }
.auth-side h2 { color: #fff; font-size: 2rem; letter-spacing: -.03em; max-width: 440px; }
.auth-side p { color: #b9bfd1; max-width: 420px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.25rem; background: var(--bg); }
.auth-box { width: 100%; max-width: 440px; }
.auth-box h1 { font-size: 1.6rem; margin-bottom: .3rem; }
.auth-box .lead { color: var(--muted); margin-bottom: 1.6rem; }
.auth-mobile-logo { display: none; margin-bottom: 1.5rem; } .auth-mobile-logo img { height: 34px; width: auto; }
.type-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1.4rem; }
.type-option { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: .75rem .5rem; text-align: center; font-weight: 700; font-size: .85rem; color: var(--muted); display: grid; gap: .3rem; justify-items: center; }
.type-option:hover { text-decoration: none; color: var(--text); border-color: var(--subtle); }
.type-option.active { border-color: var(--gold); background: var(--gold-50); color: var(--text); box-shadow: 0 0 0 3px rgba(202,147,34,.14); }
.type-option .ic { width: 22px; height: 22px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-mobile-logo { display: block; } }

/* ---------- Cetak ---------- */
@media print {
  .sidebar, .topbar, .portal-foot, .no-print, .site-header, .site-footer { display: none !important; }
  .main { margin: 0; } .content { padding: 0; } body { background: #fff; }
}

/* ---------- Tambahan ---------- */
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.text-gold { color: var(--gold); }
.subtle .ic, .ic.subtle { color: var(--subtle); }
.join-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.6rem; font-weight: 800; letter-spacing: .18em; color: var(--ink); background: var(--gold-50); border: 1px dashed var(--gold); border-radius: 14px; padding: .5rem 1rem; display: inline-block; }
.cat-check { display: flex; flex-wrap: wrap; gap: .5rem; }
.receipt-preview { max-height: 60vh; width: 100%; object-fit: contain; background: var(--surface-2); border-radius: 12px; }
.table .actions { display: flex; gap: .35rem; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 620px) {
  .grid-4:has(> .stat), .grid-3:has(> .stat) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .stat { flex-direction: column; align-items: flex-start; gap: .6rem; padding: .9rem; }
  .stat-icon { width: 38px; height: 38px; border-radius: 12px; }
  .stat-value { font-size: 1.3rem; }
  .welcome { padding: 1.25rem; }
  .kv { grid-template-columns: 110px 1fr; }
}
.kv dd { overflow-wrap: anywhere; min-width: 0; }
