/* CSS Badminton CISFO — sporty court-green + lime shuttle accent.
   Token di :root, dark mode lewat [data-theme="dark"], tabel jadi kartu di mobile. */

:root {
  --ink: #0b1f17;
  --ink-soft: #14291f;
  --text: #12211a;
  --muted: #5b7367;
  --faint: #86998d;
  --line: #dee7dc;
  --line-strong: #c8d5c6;
  --bg: #f3f7f1;
  --bg-2: #eaf1e7;
  --surface: #ffffff;
  --surface-2: #f8fbf6;
  --green: #0e7a4f;
  --green-2: #12a06a;
  --green-3: #0a5c3c;
  --lime: #c9f24e;
  --lime-2: #a8e032;
  --lime-soft: #eefbd0;
  --danger: #cf2f2f;
  --danger-soft: #fdeceb;
  --warn: #c2760a;
  --warn-soft: #fdf3e0;
  --info: #2563eb;
  --info-soft: #eaf1fd;
  --violet: #7c3aed;
  --violet-soft: #f2ecfe;
  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(11, 31, 23, .05), 0 10px 26px -18px rgba(11, 31, 23, .35);
  --shadow-lg: 0 24px 60px -30px rgba(11, 31, 23, .55);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sidebar-w: 264px;
  --topbar-h: 74px;
  color-scheme: light;
}

[data-theme="dark"] {
  --ink: #05120c;
  --ink-soft: #0d2419;
  --text: #e8f2ea;
  --muted: #9db3a6;
  --faint: #7a9186;
  --line: #1f3529;
  --line-strong: #2a4736;
  --bg: #07130d;
  --bg-2: #0a1a12;
  --surface: #0e2018;
  --surface-2: #112619;
  --green: #35c98c;
  --green-2: #4ddda0;
  --green-3: #1a9c69;
  --lime: #cdf75f;
  --lime-2: #a8e032;
  --lime-soft: #1e3318;
  --danger: #f87171;
  --danger-soft: #33191a;
  --warn: #f0b451;
  --warn-soft: #2e2413;
  --info: #7aa8f8;
  --info-soft: #16243c;
  --violet: #b794f8;
  --violet-soft: #221a35;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 34px -22px rgba(0, 0, 0, .8);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.pub {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(201, 242, 78, .22), transparent 65%),
    radial-gradient(700px 480px at 0% 10%, rgba(18, 160, 106, .13), transparent 60%),
    var(--bg);
}

[data-theme="dark"] body.pub {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(201, 242, 78, .12), transparent 65%),
    radial-gradient(700px 480px at 0% 10%, rgba(18, 160, 106, .16), transparent 60%),
    var(--bg);
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.025em; font-weight: 800; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
button { font: inherit; }
code, .mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.02em; }

::selection { background: var(--lime); color: var(--ink); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.xs { font-size: 12px; }
.sm { font-size: 13.5px; }
.faint { color: var(--faint); }
.nowrap { white-space: nowrap; }
.ta-right { text-align: right; }
.text-danger { color: var(--danger); }
.text-success { color: var(--green); }
.ico { flex: 0 0 auto; vertical-align: -2px; }
.ico--inline { vertical-align: -3px; }

/* =====================================================================
   BUTTON / BADGE / CHIP
   ===================================================================== */
.btn {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 650; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -14px rgba(11, 31, 23, .7); }
.btn:active { transform: translateY(0); }
.btn__ico { width: 17px; height: 17px; }
.btn--primary { background-color: var(--green); background-image: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%); color: #fff; }
.btn--primary:hover { background-color: var(--green-3); background-image: linear-gradient(135deg, var(--green-3) 0%, var(--green) 100%); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--wa { background: #1faa54; color: #fff; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--lg { padding: 14px 24px; font-size: 15px; border-radius: 14px; }
.btn--sm { padding: 8px 13px; font-size: 13px; border-radius: 10px; gap: 6px; }
.btn--xs { padding: 6px 10px; font-size: 12.5px; border-radius: 9px; gap: 5px; }
.btn--xs .btn__ico { width: 14px; height: 14px; }
.btn--block { width: 100%; }
.btn--ghost.btn--on-dark { background: transparent; border-color: rgba(255, 255, 255, .28); color: #f2fbf3; }
.btn--ghost.btn--on-dark:hover { background: rgba(255, 255, 255, .08); border-color: var(--lime); color: var(--lime); }
.btn[disabled] { opacity: .55; pointer-events: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--bg-2); color: var(--text); border-color: var(--line); }
.icon-btn--wa { color: #1faa54; }
.icon-btn--wa:hover { background: rgba(31, 170, 84, .12); border-color: rgba(31, 170, 84, .3); }
.icon-btn--danger { color: var(--danger); }
.icon-btn--danger:hover { background: var(--danger-soft); border-color: rgba(207, 47, 47, .25); }

.link { color: var(--green); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 650;
  background: var(--bg-2); color: var(--muted); border: 1px solid var(--line);
  white-space: nowrap;
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--success { background: rgba(18, 160, 106, .12); color: var(--green); border-color: rgba(18, 160, 106, .25); }
.badge--warning { background: var(--warn-soft); color: var(--warn); border-color: rgba(194, 118, 10, .25); }
.badge--danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(207, 47, 47, .25); }
.badge--info { background: var(--info-soft); color: var(--info); border-color: rgba(37, 99, 235, .2); }
.badge--violet { background: var(--violet-soft); color: var(--violet); border-color: rgba(124, 58, 237, .2); }

.chip {
  --chip: var(--green);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: 650;
  color: var(--chip); background: color-mix(in srgb, var(--chip) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--chip) 26%, transparent);
}
.chip--soft { --chip: var(--muted); }
.chip--danger { --chip: var(--danger); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.avatar {
  --av-h: 140;
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--av-s, 38px); height: var(--av-s, 38px); flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(145deg, hsl(var(--av-h) 55% 88%), hsl(var(--av-h) 62% 74%));
  color: hsl(var(--av-h) 55% 22%);
  font-weight: 750; font-size: calc(var(--av-s, 38px) * .34);
  letter-spacing: .02em;
}
[data-theme="dark"] .avatar {
  background: linear-gradient(145deg, hsl(var(--av-h) 38% 30%), hsl(var(--av-h) 42% 20%));
  color: hsl(var(--av-h) 70% 86%);
}

/* =====================================================================
   SHELL / SIDEBAR / TOPBAR
   ===================================================================== */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 60;
  display: flex; flex-direction: column;
  background:
    radial-gradient(420px 260px at 20% 0%, rgba(201, 242, 78, .16), transparent 60%),
    linear-gradient(180deg, #0b2418 0%, #071a11 100%);
  color: #e9f4ea;
  border-right: 1px solid rgba(255, 255, 255, .06);
}
.sidebar__head { padding: 20px 18px 12px; display: flex; align-items: center; justify-content: space-between; }
.sidebar__close { display: none; color: #cfe0d2; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(150deg, #d9ff5f, #86df3d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 8px 20px -12px rgba(201, 242, 78, .9);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 17px; font-weight: 800; letter-spacing: -.03em; color: #f3fbf4; }
.brand__text em { font-style: normal; color: var(--lime); margin-left: 1px; }
.brand__text small { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: #9fbaa8; font-weight: 600; }
.brand--pub .brand__text strong { color: var(--ink); }
.brand--pub .brand__text small { color: var(--muted); }
[data-theme="dark"] .brand--pub .brand__text strong { color: #eef8ef; }

.nav { flex: 1; overflow-y: auto; padding: 6px 12px 16px; }
.nav__group { margin-bottom: 16px; }
.nav__group-title {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: #7e9a88; font-weight: 700; padding: 8px 12px 6px;
}
.nav__link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 11px; margin-bottom: 2px;
  color: #c9dbce; font-size: 14px; font-weight: 550;
  transition: background .15s, color .15s;
}
.nav__link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav__link.is-active {
  background: linear-gradient(100deg, rgba(201, 242, 78, .96), rgba(168, 224, 50, .8));
  color: #0b2418; font-weight: 750;
  box-shadow: 0 10px 24px -16px rgba(201, 242, 78, .9);
}
.nav__ico { width: 19px; height: 19px; opacity: .95; }
.nav__label { flex: 1; }
.nav__badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); color: inherit;
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.nav__link.is-active .nav__badge { background: rgba(11, 36, 24, .16); }

.sidebar__foot { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .07); }
.userbox {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05);
}
.userbox__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.userbox__meta strong { font-size: 13px; color: #f0f8f1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userbox__meta span { font-size: 11px; color: #93ae9c; }
.userbox .icon-btn { color: #a8c1b1; }
.userbox .icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: transparent; }

.shell__main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 28px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar__menu { display: none; }
.topbar__titles { flex: 1; min-width: 0; }
.topbar__title { font-size: 22px; letter-spacing: -.035em; }
.topbar__sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.crumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); margin-bottom: 2px; }
.crumb a:hover { color: var(--green); }
.crumb span[aria-current] { color: var(--muted); font-weight: 600; }

.wa-mode {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 650;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted);
}
.wa-mode--api { border-color: rgba(18, 160, 106, .32); color: var(--green); background: rgba(18, 160, 106, .09); }

.content { flex: 1; padding: 26px 28px 40px; max-width: 1440px; width: 100%; margin: 0 auto; }
.content--wide { max-width: 1560px; }
.appfoot { padding: 18px 28px 26px; font-size: 12px; color: var(--faint); border-top: 1px solid var(--line); }
.sidebar-scrim { display: none; }

/* =====================================================================
   KARTU, GRID, STATISTIK
   ===================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card--mt { margin-top: 20px; }
.card--inner { background: var(--surface-2); box-shadow: none; margin-top: 14px; }
.card--accent {
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(201, 242, 78, .2), transparent 65%),
    var(--surface);
}
.card--form { display: flex; flex-direction: column; gap: 12px; }
.card--tint { background: var(--surface-2); }
.card--muted { background: var(--surface-2); box-shadow: none; }
.card__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  margin-bottom: 16px;
}
.card__title { font-size: 16px; letter-spacing: -.02em; }
.card__sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.card__foot {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.card__foot--split { justify-content: space-between; }
.card h3 { font-size: 15px; }
.card h3 + p { margin-top: 6px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 20px; letter-spacing: -.03em; }
.section-head p { font-size: 13px; color: var(--muted); margin-top: 4px; max-width: 60ch; }
.section-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2-1 { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 20px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 16px; box-shadow: var(--shadow);
}
.stat::after {
  content: ''; position: absolute; right: -30px; top: -40px; width: 120px; height: 120px;
  border-radius: 50%; background: var(--stat-tint, rgba(18, 160, 106, .12));
}
.stat__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.stat__label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat__ico {
  width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--stat-tint, rgba(18, 160, 106, .14)); color: var(--stat-fg, var(--green));
}
.stat__value { font-size: 25px; font-weight: 800; letter-spacing: -.045em; margin: 10px 0 4px; position: relative; z-index: 1; }
.stat__foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.stat__trend { display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-weight: 650; }
.stat__trend.is-down { color: var(--danger); }
.stat--green { --stat-tint: rgba(18, 160, 106, .14); --stat-fg: var(--green); }
.stat--blue { --stat-tint: rgba(37, 99, 235, .13); --stat-fg: var(--info); }
.stat--amber { --stat-tint: rgba(194, 118, 10, .14); --stat-fg: var(--warn); }
.stat--violet { --stat-tint: rgba(124, 58, 237, .13); --stat-fg: var(--violet); }
.stat--red { --stat-tint: rgba(207, 47, 47, .14); --stat-fg: var(--danger); }

.hello {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 22px 24px; margin-bottom: 22px; border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 240px at 88% 10%, rgba(201, 242, 78, .26), transparent 62%),
    linear-gradient(120deg, #0b2418, #10402c 65%, #0d3324);
  color: #eaf6ec; border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow-lg);
}
.hello__eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #b6cbb9; letter-spacing: .01em; }
.hello__title { font-size: 26px; margin: 6px 0 4px; letter-spacing: -.04em; color: #fff; }
.hello__sub { font-size: 13.5px; color: #b9cfbd; max-width: 60ch; }
.hello__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hello .btn--ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #eaf6ec; }
.hello .btn--ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .3); }
.hello .btn--primary { background-color: var(--lime); background-image: none; color: var(--ink); }
.hello .btn--primary:hover { background-color: var(--lime-2); color: var(--ink); }

/* =====================================================================
   TABEL
   ===================================================================== */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint); font-weight: 700; padding: 0 12px 10px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table th:first-child { padding-left: 0; }
.table th:last-child { padding-right: 0; }
.table td {
  padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle;
}
.table td:first-child { padding-left: 0; }
.table td:last-child { padding-right: 0; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .14s; }
.table tbody tr:hover { background: var(--surface-2); }
.table strong { font-weight: 650; }
.cell-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-user > div { min-width: 0; }
.cell-user strong { display: block; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.row-actions { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
.row-actions form { display: inline-flex; margin: 0; }

/* =====================================================================
   TOOLBAR / FIELD / FORM
   ===================================================================== */
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px; margin-bottom: 18px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.toolbar__fields { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.toolbar__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-field {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 0 10px; height: 38px; min-width: 170px;
  transition: border-color .15s, background .15s;
}
.mini-field:focus-within { border-color: var(--green); background: var(--surface); }
.mini-field input, .mini-field select {
  border: 0; background: transparent; outline: none; color: var(--text);
  font: inherit; font-size: 13px; width: 100%; height: 100%; padding: 0;
  appearance: none;
}
.mini-field input[type="date"], .mini-field input[type="month"] { min-width: 130px; }
.mini-field__ico { color: var(--faint); }
.mini-field--select select { padding-right: 18px; }
.mini-field--select .mini-field__ico { position: absolute; right: 8px; pointer-events: none; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field__label { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.field__label em { color: var(--danger); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 14px;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: 11px; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 66px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green); background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 16%, transparent);
}
.field input[type="file"] { padding: 8px; background: var(--surface); font-size: 13px; }
.field__hint { font-size: 11.5px; color: var(--faint); }
.field__password { position: relative; display: block; }
.field__password input { padding-right: 42px; }
.field__password .icon-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.field--span-1 { grid-column: span 1; }
.form-row .field:only-child, .field--span-2 { grid-column: 1 / -1; }
.modal__form { display: flex; flex-direction: column; gap: 4px; }
.modal__form .form-row { gap: 0 14px; }
.modal__form .modal__foot { margin-top: 16px; }

.inline-form {
  display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
  flex-wrap: wrap;
}
.inline-form input {
  flex: 1 1 120px; min-width: 0; padding: 9px 11px; font: inherit; font-size: 13px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-2); color: var(--text);
}
.inline-form input:focus { outline: none; border-color: var(--green); background: var(--surface); }

.checkgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface-2); cursor: pointer; font-size: 13px;
  transition: border-color .15s, background .15s;
}
.check:hover { border-color: var(--green); }
.check input { margin: 3px 0 0; accent-color: var(--green); }
.check span { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.check small { color: var(--faint); font-size: 11.5px; }
.check--block { margin: 10px 0 14px; }
.check--block span { font-size: 12.5px; color: var(--muted); }

.segmented { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.segmented__opt { position: relative; cursor: pointer; }
.segmented__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented__opt span {
  display: inline-block; padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
  color: var(--muted); transition: background .15s, color .15s;
}
.segmented__opt input:checked + span { background: var(--green); color: #fff; }
.segmented--sm .segmented__opt span { padding: 4px 9px; font-size: 11.5px; }
.segmented__opt input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 1px; }

.switch { position: relative; display: inline-flex; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span {
  width: 42px; height: 24px; border-radius: 999px; background: var(--line-strong);
  position: relative; transition: background .18s;
}
.switch span::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform .18s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(18px); }

.hint-box {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 10px 12px; border-radius: 11px; font-size: 12.5px; color: var(--muted);
  background: var(--lime-soft); border: 1px solid color-mix(in srgb, var(--green) 18%, transparent);
  margin: 8px 0;
}
.hint-box svg { color: var(--green); flex: 0 0 auto; }
.pill-note {
  padding: 9px 12px; border-radius: 10px; background: var(--surface-2);
  border: 1px dashed var(--line-strong); font-size: 12.5px; color: var(--muted);
  min-height: 40px; display: flex; align-items: center;
}
.alert {
  display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; border-radius: 11px;
  font-size: 13px; margin-bottom: 14px; border: 1px solid transparent;
}
.alert--danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(207, 47, 47, .22); }
.alert--info { background: var(--info-soft); color: var(--info); border-color: rgba(37, 99, 235, .2); }
.alert--success { background: rgba(18, 160, 106, .1); color: var(--green); border-color: rgba(18, 160, 106, .22); }

/* =====================================================================
   MODAL
   ===================================================================== */
.modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__scrim { position: absolute; inset: 0; background: rgba(6, 20, 13, .55); backdrop-filter: blur(4px); animation: fade .18s ease; }
.modal__panel {
  position: relative; z-index: 1; width: 100%; max-width: 560px; max-height: calc(100vh - 40px);
  overflow-y: auto; background: var(--surface); border-radius: 20px;
  border: 1px solid var(--line); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6);
  padding: 22px; animation: pop .2s cubic-bezier(.2, .8, .3, 1);
}
.modal__panel--lg { max-width: 860px; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.modal__title { font-size: 18px; letter-spacing: -.03em; }
.modal__sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 8px; flex-wrap: wrap; }
body.modal-open { overflow: hidden; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* =====================================================================
   TOAST
   ===================================================================== */
.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 36px)); }
.toast {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: 13px; padding: 12px 14px; box-shadow: var(--shadow-lg);
  animation: slideIn .24s ease;
}
.toast--error { border-left-color: var(--danger); }
.toast--info { border-left-color: var(--info); }
.toast--warning { border-left-color: var(--warn); }
.toast__title { font-weight: 700; font-size: 13.5px; }
.toast__msg { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.toast__close { margin-left: auto; }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } }

/* =====================================================================
   KOMPONEN KHAS
   ===================================================================== */
.legend { display: flex; gap: 12px; font-size: 11.5px; color: var(--muted); }
.legend__item { display: inline-flex; align-items: center; gap: 5px; }
.legend__dot { width: 8px; height: 8px; border-radius: 3px; }
.legend__dot--hadir, .legend__dot--in { background: var(--green); }
.legend__dot--other { background: var(--line-strong); }
.legend__dot--out { background: var(--danger); }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding-top: 8px; }
.bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.bars__stack {
  flex: 1; width: 100%; max-width: 34px; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 2px; background: linear-gradient(to top, var(--surface-2), transparent); border-radius: 8px 8px 4px 4px;
}
.bars__seg { width: 100%; border-radius: 4px; transition: height .4s ease; }
.bars__seg--hadir { background: linear-gradient(to top, var(--green-3), var(--green-2)); }
.bars__seg--other { background: var(--line-strong); }
.bars__label { font-size: 10.5px; color: var(--faint); }

.mini-stat { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--muted); }
.mini-stat strong { font-size: 15px; color: var(--text); letter-spacing: -.02em; }

.msg-list { display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.msg__body { flex: 1; min-width: 0; }
.msg__top { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.msg__top strong { font-weight: 650; }
.msg__text { font-size: 12px; color: var(--muted); margin-top: 3px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.msg__meta { font-size: 11px; color: var(--faint); margin-top: 4px; }
.msg-cell { display: inline-block; max-width: 34ch; }

.progress { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 4px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--green-2)); border-radius: 999px; }
.progress--danger span { background: linear-gradient(90deg, #e05a3a, var(--danger)); }

.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 34px 20px; }
.empty__art {
  width: 68px; height: 68px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px dashed var(--line-strong); color: var(--green); margin-bottom: 4px;
}
.empty__title { font-weight: 700; font-size: 14.5px; }
.empty__text { font-size: 12.5px; color: var(--muted); max-width: 44ch; }
.empty .btn { margin-top: 8px; }

.pager { display: flex; align-items: center; gap: 4px; }
.pager__item {
  min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; border: 1px solid var(--line); font-size: 12.5px; color: var(--muted);
  padding: 0 8px; transition: all .15s;
}
.pager__item:hover { border-color: var(--green); color: var(--green); }
.pager__item.is-active { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.pager__gap { padding: 0 4px; color: var(--faint); }

.coach-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.coach-card__head { display: flex; align-items: center; gap: 12px; }
.coach-card__head > div { flex: 1; min-width: 0; }
.coach-card__head h3 { font-size: 15px; }
.coach-card__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.coach-card__meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 650; }
.coach-card__meta dd { font-size: 13px; margin-top: 2px; }
.coach-card__foot { display: flex; gap: 8px; align-items: center; }
.coach-card__foot form { margin-left: auto; }

.week { display: grid; grid-template-columns: repeat(7, minmax(180px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.day-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.day-col__head { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.day-col__head span { font-weight: 750; font-size: 13px; }
.day-col__head small { font-size: 11px; color: var(--faint); }
.day-col__empty { font-size: 11.5px; color: var(--faint); text-align: center; padding: 18px 6px; border: 1px dashed var(--line); border-radius: 10px; }
.slot { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 5px; }
.slot--off { opacity: .55; }
.slot__time { font-size: 11.5px; font-weight: 750; color: var(--green); letter-spacing: -.01em; }
.slot__title { font-size: 13px; line-height: 1.3; }
.slot__meta { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.slot__foot { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.slot__count { font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.slot__foot .progress { flex: 1; margin: 0; }
.slot__actions { display: flex; gap: 6px; margin-top: 6px; }
.slot__actions .btn { flex: 1; }
.slot__actions .btn--ghost { flex: 0 0 auto; }

.tabs { display: flex; gap: 6px; padding: 5px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; overflow-x: auto; box-shadow: var(--shadow); }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tab:hover { background: var(--surface-2); color: var(--text); }
.tab.is-active { background: var(--green); color: #fff; }

.var-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.var { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); }
.var code { color: var(--green); font-weight: 650; font-size: 12px; }
.var span { font-size: 11.5px; color: var(--muted); }

.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.kv div { display: flex; flex-direction: column; gap: 2px; }
.kv dt { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 650; }
.kv dd { font-size: 16px; font-weight: 750; letter-spacing: -.02em; }

.steps { display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.steps li { display: flex; gap: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.5; counter-increment: step; }
.steps li::before {
  content: counter(step); flex: 0 0 22px; height: 22px; border-radius: 7px;
  background: var(--lime-soft); color: var(--green); font-weight: 750; font-size: 11.5px;
  display: inline-flex; align-items: center; justify-content: center;
}
.steps strong { color: var(--text); }

.plain-list { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.plain-list li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.plain-list svg { color: var(--green); margin-top: 2px; }

.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.detail-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; border: 1px solid var(--line); }
.detail-item span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 650; }
.detail-item strong { font-size: 13.5px; font-weight: 650; }
.rates { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.rates__main { display: flex; flex-direction: column; }
.rates__main strong { font-size: 30px; letter-spacing: -.05em; color: var(--green); line-height: 1; }
.rates__main span { font-size: 11.5px; color: var(--faint); }
.rates__list { display: flex; gap: 8px; flex-wrap: wrap; }

.flows { display: flex; flex-direction: column; gap: 12px; }
.flow { display: grid; grid-template-columns: 42px 1fr 96px; gap: 10px; align-items: center; }
.flow__label { font-size: 11.5px; color: var(--faint); font-weight: 650; }
.flow__bars { display: flex; flex-direction: column; gap: 3px; }
.flow__bar { height: 9px; border-radius: 999px; min-width: 2px; }
.flow__bar--in { background: linear-gradient(90deg, var(--green), var(--green-2)); }
.flow__bar--out { background: linear-gradient(90deg, #e57373, #d84343); }
.flow__val { font-size: 12px; font-weight: 700; text-align: right; letter-spacing: -.02em; }

.pick-list { display: flex; flex-direction: column; gap: 8px; }
.pick {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  cursor: pointer; color: var(--text); transition: border-color .15s, background .15s;
}
.pick:hover { border-color: var(--green); background: var(--surface); }
.pick__time { display: flex; flex-direction: column; font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; min-width: 74px; }
.pick__time strong { font-size: 12.5px; color: var(--green); text-transform: none; letter-spacing: 0; }
.pick__body { flex: 1; display: flex; flex-direction: column; }
.pick__body strong { font-size: 13.5px; }
.pick__body small { color: var(--faint); font-size: 11.5px; }

/* =====================================================================
   HALAMAN PUBLIK
   ===================================================================== */
.pnav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.pnav__inner { max-width: 1200px; margin: 0 auto; padding: 12px 22px; display: flex; align-items: center; gap: 24px; }
.pnav__links { display: flex; gap: 20px; flex: 1; justify-content: center; }
.pnav__link { font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.pnav__link:hover { color: var(--text); border-bottom-color: var(--lime-2); }
.pnav__actions { display: flex; align-items: center; gap: 8px; }
.pnav__menu { display: none; }
.pnav__mobile { display: none; }

.hero { position: relative; overflow: hidden; padding: 60px 22px 0; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.hero__glow--1 { width: 420px; height: 420px; background: rgba(201, 242, 78, .5); top: -160px; right: 4%; }
.hero__glow--2 { width: 360px; height: 360px; background: rgba(18, 160, 106, .3); bottom: -120px; left: -80px; }
.hero__inner { position: relative; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-bottom: 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green); background: var(--lime-soft); border: 1px solid color-mix(in srgb, var(--green) 18%, transparent);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.eyebrow--light { color: var(--lime); background: rgba(201, 242, 78, .12); border-color: rgba(201, 242, 78, .3); }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -.045em; }
.hero h1 .hl { position: relative; isolation: isolate; color: var(--green); white-space: nowrap; }
.hero h1 .hl::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .3em;
  background: var(--lime); z-index: -1; border-radius: 3px; opacity: .8;
}
.hero__lead { font-size: 16px; color: var(--muted); margin: 18px 0 24px; max-width: 54ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 30px; margin-top: 32px; flex-wrap: wrap; }
.hero__stats dt { font-size: 26px; font-weight: 800; letter-spacing: -.05em; color: var(--text); }
.hero__stats dd { font-size: 12px; color: var(--muted); }

.hero__art { position: relative; min-height: 420px; }
.court {
  position: absolute; inset: 0;
  border-radius: 26px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 44px),
    linear-gradient(150deg, #0e7a4f, #0a5c3c 60%, #093a27);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .12);
  overflow: hidden;
}
.court::before {
  content: ''; position: absolute; inset: 18px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 6px;
}
.court__lines { position: absolute; inset: 18px; }
.court__net { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(255, 255, 255, .45); }
.court__service { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, .35); }
.court__badge {
  position: absolute; left: 28px; bottom: 24px; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px; font-size: 12px; font-weight: 650;
  background: rgba(11, 31, 23, .55); color: #eaf6ec; border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
}
.float-card {
  position: absolute; background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid var(--line); border-radius: 15px; padding: 13px;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(10px);
}
.float-card--wa { left: -8px; top: 28px; width: 268px; }
.float-card--stat { right: -10px; bottom: 22px; width: 226px; }
.float-card__head { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.float-card__head strong { color: var(--text); font-size: 12.5px; }
.float-card__head svg { color: #1faa54; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; margin-left: auto; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.float-card__foot { font-size: 10.5px; color: var(--faint); margin-top: 9px; }
.bubble { border-radius: 12px; padding: 9px 11px; font-size: 11.5px; line-height: 1.45; margin-bottom: 6px; }
.bubble--in { background: var(--surface-2); border: 1px solid var(--line); border-top-left-radius: 4px; color: var(--text); }
.bubble--out { background: var(--lime-soft); border: 1px solid color-mix(in srgb, var(--green) 20%, transparent); border-top-right-radius: 4px; color: var(--text); margin-left: 34px; }
.bubble strong { font-weight: 700; }
.bubble__link { color: var(--info); font-size: 10.5px; }
.spark { display: flex; align-items: flex-end; gap: 5px; height: 54px; }
.spark span { flex: 1; border-radius: 3px 3px 2px 2px; background: linear-gradient(to top, var(--green-3), var(--green-2)); opacity: .85; }

.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.marquee__track { display: flex; gap: 34px; padding: 11px 0; width: max-content; animation: marquee 26s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.marquee__track svg { color: var(--green); }
@keyframes marquee { to { transform: translateX(-50%); } }

.psection { max-width: 1200px; margin: 0 auto; padding: 64px 22px; }
.psection--tight { padding-top: 34px; }
.psection--tint { max-width: none; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.psection--tint > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.psection--dark { max-width: none; background: linear-gradient(140deg, #0b2418, #0a2d1d 60%, #071a11); color: #e8f3ea; }
.psection--dark > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.psection__head { max-width: 720px; margin-bottom: 32px; }
.psection__head h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.04em; line-height: 1.15; }
.psection__head p { color: var(--muted); margin-top: 12px; font-size: 15px; }
.psection--dark .psection__head p { color: #b3c9b8; }
.psection__cta { margin-top: 26px; }
.psection--dark h2 { color: #fff; }

.pub-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.pub-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 650; box-shadow: var(--shadow); }
.pub-chip small { color: var(--faint); font-weight: 500; font-size: 11.5px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.feature__ico { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--lime-soft); color: var(--green); margin-bottom: 12px; }
.feature h3 { font-size: 15px; margin-bottom: 6px; }
.feature p { font-size: 13px; color: var(--muted); }

.pub-schedule { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pub-slot { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pub-slot__day { flex: 0 0 58px; height: 58px; border-radius: 12px; background: linear-gradient(150deg, var(--green), var(--green-3)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 750; font-size: 12.5px; text-align: center; }
.pub-slot__body { flex: 1; min-width: 0; }
.pub-slot__body h3 { font-size: 14px; margin-bottom: 4px; }
.pub-slot__body p { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.pub-slot__seats { font-size: 10.5px; color: var(--green); background: var(--lime-soft); padding: 4px 8px; border-radius: 999px; font-weight: 650; white-space: nowrap; }

.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.price { position: relative; padding: 26px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.price--featured { border-color: var(--green); box-shadow: 0 24px 50px -30px rgba(14, 122, 79, .8); transform: translateY(-6px); }
.price__tag { position: absolute; top: -12px; left: 22px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.price h3 { font-size: 17px; }
.price__amount { display: flex; align-items: baseline; gap: 5px; }
.price__amount span { font-size: 30px; font-weight: 800; letter-spacing: -.05em; }
.price__amount small { font-size: 12.5px; color: var(--faint); }
.price__desc { font-size: 13px; color: var(--muted); min-height: 38px; }
.price__list { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 12px; font-size: 13px; color: var(--muted); }
.price__list li { display: flex; gap: 8px; align-items: flex-start; }
.price__list svg { color: var(--green); margin-top: 2px; }
.price .btn { margin-top: auto; }
.fineprint { font-size: 12px; color: var(--faint); margin-top: 18px; }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.split h2 { font-size: clamp(24px, 3vw, 34px); color: #fff; letter-spacing: -.04em; line-height: 1.15; margin-bottom: 14px; }
.split__lead { color: #b9cfbd; font-size: 15px; margin-bottom: 20px; }
.tick-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; }
.tick-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: #d7e6da; }
.tick-list svg { color: var(--lime); margin-top: 2px; flex: 0 0 auto; }
.split__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.phone { position: relative; max-width: 320px; margin: 0 auto; }
.phone__notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 20px; background: #05120c; border-radius: 999px; z-index: 2; }
.phone__screen { background: #0a1710; border: 9px solid #06110c; border-radius: 34px; padding: 30px 12px 12px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.phone__top { display: flex; align-items: center; gap: 9px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); color: #eaf6ec; }
.phone__avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.phone__top div { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.phone__top strong { font-size: 12px; }
.phone__top small { font-size: 10px; color: #8fb49a; }
.phone__top svg { color: #a9c9b2; }
.phone__chat { padding: 12px 0; display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow: hidden; }
.phone__chat .bubble { font-size: 11px; background: #12261a; border-color: rgba(255, 255, 255, .08); color: #dfeee3; }
.phone__chat .bubble--out { background: #1c3a24; border-color: rgba(201, 242, 78, .2); }
.chat-day { text-align: center; font-size: 9.5px; color: #7f9c88; background: rgba(255, 255, 255, .05); padding: 3px 9px; border-radius: 999px; align-self: center; }
.phone__input { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 999px; background: #12261a; color: #7f9c88; font-size: 11px; }
.phone__input svg { color: var(--lime); }

.steps-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: n; }
.steps-list li { position: relative; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; gap: 14px; }
.steps-list__num { flex: 0 0 36px; height: 36px; border-radius: 11px; background: var(--ink); color: var(--lime); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.steps-list h3 { font-size: 15px; margin-bottom: 4px; }
.steps-list p { font-size: 13px; color: var(--muted); }

.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; }
.faq summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 650; font-size: 14px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq__plus { color: var(--green); transition: transform .2s; }
.faq[open] .faq__plus { transform: rotate(45deg); }
.faq p { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

.cta-band {
  max-width: 1200px; margin: 0 auto 64px; padding: 36px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 260px at 90% 0%, rgba(201, 242, 78, .35), transparent 60%),
    linear-gradient(120deg, #0b2418, #113f2a);
  color: #eaf6ec; box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(22px, 2.6vw, 30px); color: #fff; letter-spacing: -.04em; }
.cta-band p { color: #b9cfbd; margin-top: 8px; font-size: 14px; max-width: 52ch; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn--primary { background: var(--lime); color: var(--ink); }

.pfoot { background: var(--ink); color: #c9dbce; }
.pfoot__inner { max-width: 1200px; margin: 0 auto; padding: 48px 22px 30px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr); gap: 42px; }
.pfoot__brand strong { display: block; color: #fff; font-size: 17px; letter-spacing: -.03em; margin-bottom: 8px; }
.pfoot__brand p { font-size: 13px; color: #9ab3a2; max-width: 42ch; }
.pfoot__contacts { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; font-size: 12.5px; }
.pfoot__contacts span { display: flex; gap: 8px; align-items: flex-start; color: #a9c4b1; }
.pfoot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pfoot__cols h4 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); margin-bottom: 10px; }
.pfoot__cols a, .pfoot__cols span { display: block; font-size: 12.5px; color: #a9c4b1; margin-bottom: 7px; }
.pfoot__cols a:hover { color: #fff; }
.pfoot__bottom { border-top: 1px solid rgba(255, 255, 255, .1); max-width: 1200px; margin: 0 auto; padding: 16px 22px 28px; display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; color: #7f9c88; flex-wrap: wrap; }

.page-hero { padding: 46px 22px 10px; }
.page-hero__inner { max-width: 900px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.045em; }
.page-hero p { color: var(--muted); margin-top: 12px; font-size: 15px; max-width: 62ch; }
.page-hero--compact { padding-top: 34px; }

.pub-form { display: flex; flex-direction: column; gap: 20px; }
.pub-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.pub-form legend { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--green); margin-bottom: 12px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr); gap: 26px; align-items: start; max-width: 1080px; margin: 0 auto; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.form-aside { display: flex; flex-direction: column; gap: 16px; }
.form-aside .card h3 { font-size: 14px; margin-bottom: 10px; }
.cat-list { display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; }
.cat-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.contact-mini { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.contact-mini span { display: flex; gap: 7px; align-items: flex-start; }
.success-panel { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 8px; }
.success-panel svg { color: var(--green); }
.success-panel h2 { font-size: 22px; }
.success-panel p { color: var(--muted); max-width: 46ch; }
.success-panel__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

.pay-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 24px; align-items: start; max-width: 1040px; margin: 0 auto; }
.card--pay { padding: 26px; }
.pay-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pay-head strong { display: block; font-size: 17px; margin-top: 2px; }
.pay-summary { display: flex; flex-direction: column; gap: 0; margin-top: 6px; }
.pay-summary div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.pay-summary dt { color: var(--muted); }
.pay-summary dd { font-weight: 600; text-align: right; }
.pay-summary__total { border-bottom: 0 !important; padding-top: 16px !important; }
.pay-summary__total dt { font-weight: 750; color: var(--text); font-size: 15px; }
.pay-summary__total dd { font-size: 22px; letter-spacing: -.04em; color: var(--green); }
.paid-note { display: flex; gap: 11px; align-items: flex-start; margin-top: 14px; padding: 13px; border-radius: 12px; background: var(--lime-soft); border: 1px solid color-mix(in srgb, var(--green) 22%, transparent); color: var(--green); }
.paid-note strong { display: block; font-size: 13.5px; }
.paid-note p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.paid-note--wait { background: var(--warn-soft); border-color: rgba(194, 118, 10, .24); color: var(--warn); }
.pay-banks { margin-top: 20px; }
.pay-banks h3 { font-size: 14px; margin-bottom: 10px; }
.bank { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--surface-2); }
.bank__name { font-weight: 750; font-size: 13px; min-width: 62px; }
.bank__number { font-size: 14px; font-weight: 650; }
.bank__holder { font-size: 11.5px; color: var(--faint); flex: 1; text-align: right; }
.pay-aside { display: flex; flex-direction: column; gap: 16px; }
.pay-aside .card h3 { font-size: 14px; margin-bottom: 6px; }
.pay-aside form { margin-top: 12px; }
.proof-preview { margin-top: 8px; border-radius: 10px; border: 1px dashed var(--line-strong); padding: 6px; max-width: 200px; }
.proof-preview img { border-radius: 7px; display: block; }

.notfound { max-width: 560px; margin: 0 auto; padding: 100px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.notfound__art { width: 88px; height: 88px; border-radius: 26px; background: var(--surface); border: 1px dashed var(--line-strong); color: var(--green); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.notfound h1 { font-size: 26px; }
.notfound p { color: var(--muted); }
.notfound__actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }

/* =====================================================================
   LOGIN
   ===================================================================== */
.auth-page { background: var(--bg); }
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 100vh; }
.auth__aside {
  position: relative; overflow: hidden; padding: 34px;
  display: flex; flex-direction: column; gap: 32px;
  background:
    radial-gradient(600px 380px at 80% 0%, rgba(201, 242, 78, .22), transparent 60%),
    linear-gradient(160deg, #0b2418, #071a11);
  color: #eaf6ec;
}
.auth__aside .brand__text strong { color: #fff; }
.auth__aside .brand__text small { color: #9fbca8; }
.auth__quote { margin-top: auto; }
.auth__quote h2 { font-size: clamp(24px, 3vw, 34px); color: #fff; letter-spacing: -.04em; margin-bottom: 22px; max-width: 22ch; }
.auth__points { display: flex; flex-direction: column; gap: 12px; }
.auth__points li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #c6dccb; }
.auth__points svg { color: var(--lime); margin-top: 1px; }
.auth__court { position: absolute; right: -60px; bottom: 80px; width: 260px; height: 200px; border: 2px solid rgba(201, 242, 78, .2); border-radius: 14px; transform: rotate(-8deg); pointer-events: none; }
.auth__court span { position: absolute; background: rgba(201, 242, 78, .18); }
.auth__court span:nth-child(1) { left: 0; right: 0; top: 50%; height: 1px; }
.auth__court span:nth-child(2) { top: 0; bottom: 0; left: 50%; width: 1px; }
.auth__court span:nth-child(3) { left: 14px; right: 14px; top: 14px; bottom: 14px; background: transparent; border: 1px solid rgba(201, 242, 78, .16); }
.auth__foot { font-size: 11.5px; color: #7f9c88; }
.auth__panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth__form { width: 100%; max-width: 380px; }
.auth__form h1 { font-size: 26px; letter-spacing: -.04em; }
.auth__sub { color: var(--muted); font-size: 13.5px; margin: 6px 0 22px; }
.auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 18px; }
.auth__row .check { padding: 0; border: 0; background: transparent; font-size: 12.5px; }
.auth__hint { margin-top: 20px; font-size: 11.5px; color: var(--faint); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.auth__hint code { background: var(--surface-2); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); }

/* =====================================================================
   RESPONSIF
   ===================================================================== */
@media (max-width: 1180px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__inner { gap: 30px; }
  .float-card--wa { left: 0; }
  .float-card--stat { right: 0; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .grid--2-1, .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .form-layout, .pay-layout { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__art { min-height: 360px; order: 2; }
  .price--featured { transform: none; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-list { grid-template-columns: minmax(0, 1fr); }
  .pfoot__inner { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__aside { display: none; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .24s ease; box-shadow: 0 0 60px rgba(0, 0, 0, .5); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar__close { display: inline-flex; }
  .shell__main { margin-left: 0; }
  .topbar { padding: 12px 16px; }
  .topbar__menu { display: inline-flex; }
  .topbar__title { font-size: 18px; }
  .topbar__sub { display: none; }
  .content { padding: 18px 16px 32px; }
  .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(5, 15, 10, .5); backdrop-filter: blur(2px); }
  .sidebar-scrim[hidden] { display: none; }
  .wa-mode span { display: none; }
  .wa-mode { padding: 8px; }
  .pnav__links { display: none; }
  .pnav__menu { display: inline-flex; }
  .pnav__mobile { display: flex; flex-direction: column; gap: 4px; padding: 8px 16px 16px; border-top: 1px solid var(--line); background: var(--surface); }
  .pnav__mobile a { padding: 10px 8px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .pnav__mobile .btn { margin-top: 8px; border-bottom: 0; }
  .pnav__inner { gap: 12px; padding: 10px 16px; }
  .pnav__actions .btn--ghost { display: none; }
  .psection { padding: 46px 18px; }
  .hero { padding: 34px 18px 0; }
  .cta-band { margin: 0 18px 46px; padding: 26px 22px; }
  .week { grid-template-columns: repeat(7, 210px); }
}

@media (max-width: 720px) {
  .stat-grid { gap: 12px; }
  .stat { padding: 14px; }
  .stat__value { font-size: 21px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .checkgrid { grid-template-columns: minmax(0, 1fr); }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar__fields, .toolbar__actions { width: 100%; }
  .mini-field { flex: 1 1 100%; }
  .mini-field input[type="date"], .mini-field input[type="month"] { min-width: 0; }
  .toolbar__actions .btn { flex: 1; }
  .section-head { align-items: flex-start; }
  .section-head__actions { width: 100%; }
  .section-head__actions .btn { flex: 1; }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .pfoot__cols { grid-template-columns: repeat(2, 1fr); }
  .hello { padding: 18px; border-radius: 20px; }
  .hello__title { font-size: 21px; }
  .hello__cta { width: 100%; }
  .hello__cta .btn { flex: 1; }
  .cards, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .flows .flow { grid-template-columns: 34px 1fr 74px; }
  .flow__val { font-size: 11px; }
  .form-card { padding: 18px; border-radius: 18px; }
  .pay-head { flex-direction: column; }
  .pay-summary__total dd { font-size: 19px; }
  .pub-slot { flex-wrap: wrap; }
  .pub-slot__seats { width: 100%; text-align: center; }
  .tabs { gap: 4px; }
  .tab span { display: none; }
  .tab { padding: 10px 13px; }
  .tab svg { width: 18px; height: 18px; }
  .coach-card__meta { grid-template-columns: 1fr; }
  .modal { padding: 10px; }
  .modal__panel { max-height: calc(100vh - 20px); padding: 16px; border-radius: 16px; }
  .modal__foot .btn { flex: 1; }
  .msg-cell { max-width: none; }
  .empty { padding: 26px 12px; }
  .pfoot__bottom { flex-direction: column; gap: 6px; }
  .notfound { padding: 70px 18px; }
  .auth__panel { padding: 28px 18px; }
}

/* tabel → kartu di layar kecil */
@media (max-width: 860px) {
  .table--cards thead { display: none; }
  .table--cards, .table--cards tbody, .table--cards tr, .table--cards td { display: block; width: 100%; }
  .table--cards tr {
    border: 1px solid var(--line); border-radius: 13px; padding: 12px;
    margin-bottom: 10px; background: var(--surface-2);
  }
  .table--cards tr:last-child { margin-bottom: 0; }
  .table--cards td { border: 0; padding: 6px 0 !important; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; text-align: right; }
  .table--cards td::before {
    content: attr(data-label);
    flex: 0 0 40%; text-align: left;
    font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
    color: var(--faint); font-weight: 700; padding-top: 2px;
  }
  .table--cards td:first-child { padding-top: 0 !important; }
  .table--cards td > .cell-user { justify-content: flex-end; text-align: right; }
  .table--cards td.ta-right { justify-content: flex-end; }
  .table--cards td .row-actions { flex-wrap: wrap; justify-content: flex-end; }
  .table--cards td .segmented { flex-wrap: wrap; }
  .table--cards td[data-label=""]::before { display: none; }
}

/* =====================================================================
   PRINT (halaman bayar)
   ===================================================================== */
@media print {
  .pnav, .pfoot, .cta-band, .pay-aside, .skip-link, .toast-stack { display: none !important; }
  body { background: #fff; }
  .psection { padding: 0; }
  .card { box-shadow: none; border-color: #ddd; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* Layar sangat kecil: CTA di navbar sudah ada di panel menu mobile */
@media (max-width: 430px) {
  .pnav__actions .btn--primary { display: none; }
  .pnav__inner { padding: 10px 14px; gap: 10px; }
  .brand--pub .brand__text small { display: none; }
  .hero h1 .hl { white-space: normal; }
}

/* =====================================================================
   RAPOR ATLET & BROADCAST
   ===================================================================== */
.stars { display: inline-flex; gap: 3px; }
.star {
  width: 12px; height: 12px; border-radius: 3px; display: inline-block;
  background: var(--line-strong); transform: rotate(45deg) scale(.82);
}
.star.is-on { background: linear-gradient(135deg, var(--green-2), var(--green)); }

.score {
  display: inline-flex; align-items: baseline; gap: 1px;
  font-size: 17px; font-weight: 800; letter-spacing: -.04em; padding: 2px 9px; border-radius: 9px;
}
.score small { font-size: 10.5px; font-weight: 600; opacity: .7; }
.score--success { background: rgba(18, 160, 106, .12); color: var(--green); }
.score--info { background: var(--info-soft); color: var(--info); }
.score--warning { background: var(--warn-soft); color: var(--warn); }
.score--danger { background: var(--danger-soft); color: var(--danger); }

.att-cell { display: flex; flex-direction: column; gap: 3px; min-width: 96px; }
.att-cell strong { font-size: 13px; }

.segmented--rate { gap: 3px; }
.segmented--rate .segmented__opt span { min-width: 27px; text-align: center; padding: 5px 0; }
.rate-label { min-width: 96px; }

.rapor-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.rapor-actions__right { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rapor-actions__right form { display: inline-flex; margin: 0; }

.rapor {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 30px; max-width: 900px; margin: 0 auto;
}
.rapor--pub { margin-top: 6px; }
.rapor__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); flex-wrap: wrap; }
.rapor__brand { display: flex; align-items: center; gap: 12px; }
.rapor__mark {
  width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--green), var(--green-3)); color: var(--lime);
}
.rapor__brand strong { display: block; font-size: 16px; letter-spacing: -.03em; }
.rapor__brand span { font-size: 11.5px; color: var(--faint); }
.rapor__meta { text-align: right; }
.rapor__meta span { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.rapor__meta strong { font-size: 17px; letter-spacing: -.03em; }
.rapor__id { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.rapor__id dl { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 10px 22px; flex: 1; }
.rapor__id dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 700; }
.rapor__id dd { font-size: 13.5px; font-weight: 650; margin-top: 1px; }
.rapor__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.rapor__block { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.rapor__block h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.rapor__block h3.rapor__sub { margin-top: 16px; }
.rapor__block .table th { padding-bottom: 8px; }
.rapor__block .table td { padding: 9px 10px; }
.rapor__block .table td:first-child { padding-left: 0; }
.rapor__rate { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.rapor__rate strong { font-size: 30px; letter-spacing: -.05em; color: var(--green); line-height: 1; }
.rapor__rate span { font-size: 11.5px; color: var(--muted); }
.rapor__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.rapor__score { display: flex; align-items: baseline; gap: 8px; }
.rapor__score strong { font-size: 34px; letter-spacing: -.05em; line-height: 1; }
.rapor__score span { font-size: 11.5px; color: var(--muted); }
.rapor__note { font-size: 11.5px; color: var(--faint); margin-top: 10px; }
.rapor__prose { font-size: 13px; line-height: 1.6; color: var(--text); }
.rapor__sched { display: flex; flex-direction: column; gap: 7px; }
.rapor__sched li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.rapor__sched span { color: var(--muted); white-space: nowrap; }
.rapor__verdict { margin-top: 20px; border-left: 4px solid var(--green); }
.rapor__verdict h3 { text-transform: none; letter-spacing: -.02em; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.rapor__verdict p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.rapor__verdict--success { border-left-color: var(--green); background: rgba(18, 160, 106, .07); }
.rapor__verdict--warning { border-left-color: var(--warn); background: var(--warn-soft); }
.rapor__verdict--danger { border-left-color: var(--danger); background: var(--danger-soft); }
.rapor__verdict--neutral { border-left-color: var(--line-strong); }
.rapor__foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--faint); flex-wrap: wrap; }

.trend { display: flex; align-items: flex-end; gap: 7px; height: 74px; margin-top: 12px; }
.trend__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; height: 100%; }
.trend__bar { width: 100%; max-width: 26px; border-radius: 4px 4px 2px 2px; background: linear-gradient(to top, var(--green-3), var(--green-2)); min-height: 3px; }
.trend__label { font-size: 9.5px; color: var(--faint); }
.trend__val { font-size: 9.5px; font-weight: 700; color: var(--muted); }

.broadcast-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.wa-preview { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.wa-preview__head { display: flex; align-items: center; gap: 7px; padding: 9px 12px; background: #0b2418; color: #e9f4ea; font-size: 11.5px; }
.wa-preview__head svg { color: var(--lime); }
.wa-preview__bubble {
  margin: 12px; padding: 11px 13px; border-radius: 12px 12px 12px 4px;
  background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.55;
  max-height: 260px; overflow-y: auto; white-space: normal;
}
.wa-preview__foot { padding: 0 12px 12px; font-size: 11px; color: var(--faint); }
.mt-8 { margin-top: 8px; }

@media (max-width: 860px) {
  .rapor { padding: 18px; border-radius: 18px; }
  .rapor__grid { grid-template-columns: minmax(0, 1fr); }
  .rapor__id dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rapor__meta { text-align: left; }
  .rapor__foot { flex-direction: column; }
  .rapor-actions { flex-direction: column; align-items: stretch; }
  .rapor-actions__right { width: 100%; }
  .rapor-actions__right .btn, .rapor-actions__right form { flex: 1; }
  .rapor-actions__right .btn { width: 100%; }
  .segmented--rate .segmented__opt span { min-width: 22px; }
}

@media print {
  .sidebar, .topbar, .appfoot, .no-print, .crumb, .skip-link, .sidebar-scrim,
  .toast-stack, .rapor-actions, .pnav, .pfoot { display: none !important; }
  body { background: #fff; color: #111; }
  .shell__main { margin-left: 0 !important; }
  .content { padding: 0 !important; max-width: none !important; }
  .rapor { box-shadow: none; border: 0; border-radius: 0; padding: 0; max-width: none; }
  .rapor__block { break-inside: avoid; background: #fff; border-color: #d8d8d8; }
  .rapor__verdict { background: #fff !important; }
  .rapor__head { border-bottom-color: #111; }
  .badge { border: 1px solid #ccc; }
  .psection { padding: 0 !important; }
}

/* =====================================================================
   v1.2 — transisi halaman, footer lengkap, tentang, akun, perangkat
   ===================================================================== */

/* ---------------------------------------------- animasi transisi halaman */
@keyframes pageIn {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes pageOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translate3d(0, -10px, 0); }
}
.page-anim { animation: pageIn .34s cubic-bezier(.22, .8, .3, 1) both; will-change: opacity, transform; }
body.is-leaving .page-anim { animation: pageOut .18s ease-in both; }
body.is-leaving { cursor: progress; }
[data-transition="0"] .page-anim,
[data-transition="0"] body.is-leaving .page-anim { animation: none !important; }

::view-transition-old(root) { animation: pageOut .18s ease-in both; }
::view-transition-new(root) { animation: pageIn .3s cubic-bezier(.22,.8,.3,1) both; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s cubic-bezier(.22,.8,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------ topbar: tz & user menu */
.tz-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 650; color: var(--muted); background: var(--surface); border: 1px solid var(--line);
}
.umenu { position: relative; }
.umenu__btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px 4px 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer; color: var(--text);
}
.umenu__btn:hover { border-color: var(--green); }
.umenu__name { font-size: 12.5px; font-weight: 650; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.umenu__caret { color: var(--faint); }
.umenu__panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 258px; z-index: 70;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; animation: pop .16s ease;
}
.umenu__panel[hidden] { display: none; }
.umenu__head { display: flex; gap: 10px; align-items: center; padding: 8px; }
.umenu__head div { min-width: 0; display: flex; flex-direction: column; }
.umenu__head strong { font-size: 13px; }
.umenu__head span { font-size: 11.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; }
.umenu__role { padding: 2px 8px 8px; }
.umenu__item {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px;
  font-size: 13px; color: var(--text); font-weight: 550;
}
.umenu__item:hover { background: var(--surface-2); }
.umenu__item--danger { color: var(--danger); }
.umenu__item svg { color: var(--muted); }
.umenu__panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

/* avatar dengan foto */
.avatar--img { object-fit: cover; border-radius: 50%; background: var(--surface-2); }

/* ---------------------------------------------------------- hero video */
.hero-video { position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: #0b1f17; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12); }
.hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #0b1f17; }
.hero-video__cap {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #eaf6ec;
  background: rgba(7, 24, 16, .62); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px);
}
.hero-video__sound {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 650;
  color: #eaf6ec; background: rgba(7, 24, 16, .62); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(6px); transition: background .16s, border-color .16s, transform .16s;
}
.hero-video__sound:hover { background: rgba(201, 242, 78, .92); border-color: transparent; color: #0b1f17; transform: translateY(-1px); }
.hero-video__sound .ico--unmuted { display: none; }
.hero-video__sound.is-on { background: rgba(201, 242, 78, .92); color: #0b1f17; border-color: transparent; }
.hero-video__sound.is-on .ico--muted { display: none; }
.hero-video__sound.is-on .ico--unmuted { display: block; }
.hero .float-card--wa { left: -14px; top: auto; bottom: 66px; }
.hero .float-card--stat { right: -16px; top: 18px; bottom: auto; }

/* --------------------------------------------------------- halaman tentang */
.about-hero { position: relative; overflow: hidden; padding: 56px 22px 34px; }
.about-hero__glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(80px); background: rgba(201,242,78,.32); top: -220px; right: -60px; pointer-events: none; }
.about-hero__inner { position: relative; max-width: 980px; margin: 0 auto; }
.about-hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.045em; }
.about-hero h1 .hl { color: var(--green); position: relative; isolation: isolate; }
.about-hero h1 .hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .3em; background: var(--lime); z-index: -1; border-radius: 3px; opacity: .8; }
.about-hero__lead { font-size: 16.5px; color: var(--muted); margin-top: 18px; max-width: 62ch; }
.about-hero__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.about-hero__stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.about-hero__stats strong { display: block; font-size: 26px; letter-spacing: -.05em; }
.about-hero__stats span { font-size: 11.5px; color: var(--muted); }
.split-copy { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.split-copy h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.04em; line-height: 1.12; }
.split-copy__text { display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: var(--muted); }
.vision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 1200px; margin: 0 auto; }
.vision-card { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.vision-card h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.04em; margin-bottom: 12px; }
.vision-card p { color: var(--muted); font-size: 14.5px; }
.vision-card--dark { background: linear-gradient(140deg, #0b2418, #0f3a26); color: #eaf6ec; border-color: rgba(255,255,255,.1); }
.vision-card--dark .tick-list li { color: #d7e6da; }

/* timeline */
.tl { position: relative; display: flex; flex-direction: column; gap: 18px; max-width: 900px; margin: 0 auto; padding-left: 8px; }
.tl::before { content: ''; position: absolute; left: 58px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(to bottom, var(--green), color-mix(in srgb, var(--green) 10%, transparent)); }
.tl__item { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 18px; align-items: start; position: relative; }
.tl__marker { display: flex; justify-content: flex-end; padding-top: 14px; }
.tl__marker span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 30px;
  border-radius: 999px; background: var(--ink); color: var(--lime); font-size: 12px; font-weight: 800;
  letter-spacing: -.02em; position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--bg-2);
}
.psection--tint .tl__marker span { box-shadow: 0 0 0 4px var(--surface-2); }
.tl__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.tl__tag { display: inline-block; font-size: 10.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--green); background: var(--lime-soft); padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
.tl__card h3 { font-size: 15.5px; margin-bottom: 6px; }
.tl__card p { font-size: 13.5px; color: var(--muted); }
.about-coaches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.about-coach { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.about-coach strong { display: block; font-size: 14.5px; }
.about-coach span { font-size: 11.5px; color: var(--green); font-weight: 650; }
.about-coach p { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* terima kasih */
.thanks-hero { text-align: center; }
.thanks-hero .page-hero__inner { max-width: 760px; }
.thanks-badge {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 20px; display: inline-flex;
  align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(145deg, var(--green), var(--green-3)); box-shadow: 0 16px 34px -18px rgba(14,122,79,.9);
}
.thanks-hero h1 { font-size: clamp(28px, 4vw, 44px); }
.thanks-meta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.thanks-meta__item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; }
.thanks-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 22px; max-width: 1040px; margin: 0 auto; align-items: start; }
.thanks__steps { display: flex; flex-direction: column; gap: 0; }
.thanks__steps li { display: flex; gap: 14px; align-items: flex-start; padding: 15px 0; border-bottom: 1px dashed var(--line); }
.thanks__steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.thanks__ico { flex: 0 0 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--lime-soft); color: var(--green); }
.thanks__steps h3 { font-size: 14px; margin-bottom: 3px; }
.thanks__steps p { font-size: 12.5px; color: var(--muted); }
.thanks__tag { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.thanks__links { display: flex; flex-direction: column; gap: 8px; }

/* ------------------------------------------------------------- footer */
.pf-socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pf-social { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: #cfe2d4; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: background .16s, color .16s, border-color .16s; }
.pf-social:hover { background: rgba(201,242,78,.16); color: #fff; border-color: rgba(201,242,78,.4); }
.pf-trust { max-width: 1200px; margin: 0 auto; padding: 0 22px 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.pf-trust__item { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: #b6cdbd; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); }
.pf-trust__item svg { color: var(--lime); }
.pf-trust__item--soft { color: #8fae9a; }
.pfoot__legal { display: flex; gap: 14px; flex-wrap: wrap; }
.pfoot__legal a:hover { color: #fff; }

/* --------------------------------------------------- akun: profil & dst */
.auth__tabs { display: flex; gap: 6px; padding: 5px; margin-bottom: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.auth-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 12px; border-radius: 9px; font-size: 13px; font-weight: 650; color: var(--muted); }
.auth-tab:hover { background: var(--surface-2); color: var(--text); }
.auth-tab.is-active { background: var(--green); color: #fff; }
.otp-input { font-family: var(--mono); font-size: 24px !important; letter-spacing: .34em; text-align: center; padding: 14px 12px !important; }
.auth__row--center { justify-content: space-between; }

.avatar-row { display: flex; gap: 16px; align-items: flex-start; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--surface-2); margin-bottom: 8px; }
.avatar-row__preview .avatar, .avatar-row__preview img { width: 88px; height: 88px; font-size: 30px; }
.avatar-row__body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.avatar-row__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.avatar-row__actions .btn { position: relative; }
.kv--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.kv--wide dd { font-size: 13.5px; font-weight: 650; }
.strength { display: flex; flex-direction: column; gap: 4px; margin: -4px 0 10px; }
.strength[hidden] { display: none; }
.strength span { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; position: relative; }
.strength span::after { content: ''; position: absolute; inset: 0; width: var(--w, 0%); background: var(--c, var(--danger)); transition: width .2s, background .2s; }
.strength em { font-size: 11.5px; color: var(--muted); font-style: normal; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.sessions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.sessions__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); padding: 7px 0; border-bottom: 1px dashed var(--line); }
.sessions__row strong { color: var(--text); }
.export-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.card--danger-zone { border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.row--flag { background: color-mix(in srgb, var(--danger) 7%, transparent); }
.row--muted { opacity: .62; }
.inline-form--tight { display: inline-flex; margin: 8px 0 0; padding: 0; border: 0; }

/* hierarki tim */
.hierarchy { display: flex; flex-direction: column; gap: 8px; }
.hierarchy__item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.hierarchy__item strong { display: block; font-size: 13px; }
.hierarchy__item span { font-size: 11.5px; color: var(--muted); }
.hierarchy__item--d0 { margin-left: 0; }
.hierarchy__item--d1 { margin-left: 14px; }
.hierarchy__item--d2 { margin-left: 28px; }
.role-form { display: inline-flex; gap: 6px; align-items: center; }
.role-form select { padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: 12px; }

/* matriks peran */
.table--perm th, .table--perm td { font-size: 12.5px; }
.table--perm .perm-group__head td { background: var(--surface-2); font-weight: 750; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 8px 10px !important; }
.table--perm .ta-center { text-align: center; }
.check--switch { display: inline-flex; padding: 0; border: 0; background: transparent; }
.check--switch > input { position: absolute; opacity: 0; }
.check--switch .switch span { width: 38px; height: 22px; }
.check--switch .switch span::after { width: 16px; height: 16px; }
.check--switch input:checked + .switch span::after { transform: translateX(16px); }
.role-legend { display: flex; gap: 12px; flex-wrap: wrap; }
.role-legend__item { display: inline-flex; flex-direction: column; gap: 3px; }
.role-legend__item small { font-size: 10.5px; color: var(--faint); }
.empty--page { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 20px; box-shadow: var(--shadow); }

/* ----------------------------------------------------------- responsif */
@media (max-width: 1024px) {
  .about-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-copy { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .vision-grid, .about-coaches, .thanks-layout { grid-template-columns: minmax(0, 1fr); }
  .hero .float-card { display: none; }
}
@media (max-width: 900px) {
  .umenu__name, .tz-pill { display: none; }
  .hero-video__cap { display: none; }
  .tl::before { left: 22px; }
  .tl__item { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-left: 44px; }
  .tl__marker { position: absolute; left: 0; top: 0; padding-top: 10px; }
  .tl__marker span { min-width: 44px; height: 26px; font-size: 11px; box-shadow: 0 0 0 3px var(--bg-2); }
  .psection--tint .tl__marker span { box-shadow: 0 0 0 3px var(--surface-2); }
}
@media (max-width: 720px) {
  .avatar-row { flex-direction: column; align-items: center; text-align: center; }
  .avatar-row__actions { justify-content: center; width: 100%; }
  .kv--wide { grid-template-columns: minmax(0, 1fr); }
  .about-hero { padding: 34px 18px 20px; }
  .about-hero__stats { gap: 10px; }
  .about-hero__stats strong { font-size: 21px; }
  .vision-card { padding: 20px; }
  .pf-trust { padding: 0 18px 18px; }
  .pf-trust__item { font-size: 11px; }
  .auth__tabs { flex-direction: column; }
  .thanks__steps li { flex-wrap: wrap; }
  .thanks__tag { margin-left: 54px; }
  .hero-video__sound span { display: none; }
  .hero-video__sound { padding: 9px; }
  /* Cegah tabel lebar "bocor" ke lebar halaman; scroll tetap di .table-wrap */
  .content { overflow-x: clip; }
  /* matriks izin: geser horizontal (jangan pakai sticky — membuat halaman ikut melebar) */
  .table--perm { min-width: 420px; }
  .table--perm td:first-child, .table--perm th:first-child { background: var(--surface); }
  .table--perm td:first-child strong { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-anim, body.is-leaving .page-anim, .reveal { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =====================================================================
   v1.4 — dashboard widget, filter rentang, sort, bulk, notifikasi
   ===================================================================== */

/* ------------------------------------------------ filter rentang global */
.filterbar {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.filterbar__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filterbar__row--inputs { padding-top: 10px; border-top: 1px dashed var(--line); }
.filterbar__label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.filterbar__meta { margin-left: auto; font-size: 11.5px; color: var(--faint); }
.range-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.range-chip {
  padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 650;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
  transition: all .15s;
}
.range-chip:hover { border-color: var(--green); color: var(--green); }
.range-chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.filterbar .mini-field { height: 36px; gap: 8px; }
.filterbar .mini-field .xs.faint { text-transform: uppercase; letter-spacing: .04em; font-size: 10px; }

/* ------------------------------------------------------------- trend chip */
.trend { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 750; padding: 2px 7px; border-radius: 999px; }
.trend--up { color: var(--green); background: rgba(18, 160, 106, .12); }
.trend--down { color: var(--danger); background: var(--danger-soft); }
.trend--flat { color: var(--faint); background: var(--surface-2); }

.stat-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1280px) { .stat-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .stat-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ----------------------------------------------------------- widget grid */
.widget-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.widget {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 12px;
  min-width: 0; transition: box-shadow .16s, transform .16s, opacity .16s;
}
.widget--full { grid-column: 1 / -1; }
.widget[draggable="true"] { cursor: grab; }
.widget.is-dragging { opacity: .55; transform: scale(.99); }
.widget.is-drop-target { box-shadow: 0 0 0 2px var(--green); }
.widget__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.widget__title { display: flex; gap: 9px; align-items: flex-start; min-width: 0; }
.widget__title h3 { font-size: 15px; letter-spacing: -.02em; }
.widget__desc { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.widget__grip { color: var(--faint); margin-top: 2px; display: inline-flex; }
.widget__actions { display: flex; gap: 2px; opacity: .55; transition: opacity .15s; }
.widget:hover .widget__actions, .widget:focus-within .widget__actions { opacity: 1; }
.widget__actions .icon-btn { width: 28px; height: 28px; border-radius: 8px; }
.rotate-up { transform: rotate(90deg); }
.rotate-down { transform: rotate(-90deg); }
.widget__body { min-width: 0; }
.widget .chart-head { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.widget .bars { height: 150px; }

.mini-list { display: flex; flex-direction: column; gap: 0; }
.mini-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mini-list__main strong { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-list__main span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-list__side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; font-size: 12px; }
.mini-list__side strong { font-size: 13px; }

.rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-list li { display: flex; align-items: center; gap: 9px; }
.rank-list__no { flex: 0 0 20px; height: 20px; border-radius: 7px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; }
.rank-list li:first-child .rank-list__no { background: var(--lime-soft); color: var(--green); }
.rank-list__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rank-list__main strong { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-list__main .progress { margin: 0; }
.rank-list__val { font-size: 12px; font-weight: 750; white-space: nowrap; }

.cat-bars { display: flex; flex-direction: column; gap: 9px; }
.cat-bars li { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 2fr) auto; gap: 10px; align-items: center; font-size: 12px; }
.cat-bars__label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.cat-bars__dot { width: 8px; height: 8px; border-radius: 3px; }
.cat-bars__track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.cat-bars__track i { display: block; height: 100%; border-radius: 999px; }

.feed { display: flex; flex-direction: column; gap: 10px; }
.feed li { display: flex; gap: 9px; font-size: 12.5px; }
.feed__dot { flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: 5px; }
.feed strong { font-weight: 700; }

/* --------------------------------------------------- perbandingan periode */
.cmp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cmp-vs { font-size: 11px; color: var(--faint); font-weight: 700; text-transform: uppercase; }
.cmp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cmp { padding: 11px 12px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); }
.cmp__label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 700; }
.cmp__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 4px 0 2px; }
.cmp__row strong { font-size: 16px; letter-spacing: -.03em; }
.cmp__prev { font-size: 10.5px; color: var(--faint); }
@media (max-width: 1100px) { .cmp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cmp-grid { grid-template-columns: minmax(0, 1fr); } }

/* ----------------------------------------------------- widget manager */
.widget-manager__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.widget-manager__title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.widget-manager__list { display: flex; flex-direction: column; gap: 8px; }
.widget-manager__item { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.widget-manager__item > div:first-of-type { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.widget-manager__item strong { font-size: 12.5px; }
.widget-manager__item .row-actions .icon-btn { width: 26px; height: 26px; }
.widget-manager__drag { color: var(--faint); }
@media (max-width: 860px) { .widget-manager__cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------- tabel: sort + bulk action */
.th-sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
.th-sort:hover { color: var(--green); }
.th-sort.is-active { color: var(--green); }
.th-sort__arrow { font-size: 10px; opacity: .7; }
.bulk-col { width: 38px; }
.table .bulk-col input[type="checkbox"], .bulkbar input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--green); cursor: pointer; }
.bulkbar {
  position: sticky; top: calc(var(--topbar-h) + 6px); z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 14px; border-radius: 12px;
  background: var(--ink); color: #eaf6ec; border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-lg); animation: pageIn .2s ease;
}
.bulkbar[hidden] { display: none; }
.bulkbar__count { font-size: 12.5px; }
.bulkbar__count strong { color: var(--lime); font-size: 15px; }
.bulkbar__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bulkbar select { padding: 7px 10px; border-radius: 9px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #f2fbf3; font: inherit; font-size: 12.5px; }
.bulkbar .btn--ghost { background: transparent; border-color: rgba(255,255,255,.24); color: #eaf6ec; }
.bulkbar .btn--primary { background: var(--lime); color: var(--ink); }
.bulkbar .xs.faint { color: #9fb8a7; }

/* ------------------------------------------------------------ notifikasi */
.notif { position: relative; }
.notif__btn { position: relative; }
.notif__dot {
  position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 750;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--bg);
}
.notif__dot[hidden] { display: none; }
.notif__panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(380px, calc(100vw - 32px)); z-index: 90;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .18s ease;
}
.notif__panel[hidden] { display: none; }
.notif__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.notif__head-actions { display: flex; gap: 10px; }
.notif__list { max-height: 340px; overflow-y: auto; }
.notif__item { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.notif__item:last-child { border-bottom: 0; }
.notif__item.is-unread { background: color-mix(in srgb, var(--green) 6%, transparent); }
.notif__ico { flex: 0 0 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); }
.notif__ico--success { background: rgba(18,160,106,.14); color: var(--green); }
.notif__ico--warning { background: var(--warn-soft); color: var(--warn); }
.notif__ico--danger { background: var(--danger-soft); color: var(--danger); }
.notif__body { flex: 1; min-width: 0; }
.notif__body strong { display: block; font-size: 12.5px; }
.notif__body p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.notif__meta { font-size: 10.5px; color: var(--faint); margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; }
.notif__empty { padding: 26px 14px; text-align: center; font-size: 12px; color: var(--faint); }
.notif__foot { padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12px; }
.notif__foot a { color: var(--green); font-weight: 600; }

/* ------------------------------------------------- brand preview & logo */
.brand__img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; }
.brand-preview { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.brand-preview__side { background: linear-gradient(180deg, #0b2418, #071a11); padding: 16px; }
.brand-preview__brand { display: flex; align-items: center; gap: 10px; }
.brand-preview__brand .brand__mark { width: 34px; height: 34px; border-radius: 10px; }
.brand-preview__logo { width: 34px; height: 34px; object-fit: contain; border-radius: 9px; background: rgba(255,255,255,.08); }
.brand-preview__brand strong { display: block; color: #f3fbf4; font-size: 14px; letter-spacing: -.02em; }
.brand-preview__brand small { color: #9fbaa8; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.brand-preview__nav { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.brand-preview__nav span { padding: 7px 10px; border-radius: 9px; font-size: 12px; color: #c9dbce; }
.brand-preview__nav span.is-active { background: var(--lime); color: #0b2418; font-weight: 700; }
.avatar-row--logo .avatar-row__preview { display: inline-flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 16px; background: var(--surface); border: 1px dashed var(--line-strong); overflow: hidden; }
.avatar-row--logo .avatar-row__preview img { width: 72px; height: 72px; object-fit: contain; }
.avatar-row--logo .brand__mark { width: 56px; height: 56px; border-radius: 16px; }
.field input[type="color"] { padding: 4px; height: 42px; cursor: pointer; }

@media (max-width: 900px) {
  .widget-grid { grid-template-columns: minmax(0, 1fr); }
  .widget__actions { opacity: 1; }
  .notif__panel { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; }
  .filterbar__meta { margin-left: 0; }
}
@media (max-width: 720px) {
  .filterbar__row--inputs .btn { flex: 1; }
  .cmp-grid { gap: 10px; }
  .bulkbar { position: static; }
}

/* =========================================================================
   v1.5 — console admin: command center, kanban, funnel, cohort, kalender,
   CMS, approval, integrasi, kuota, backup, pencarian global, real-time.
   ========================================================================= */

/* --- pencarian global & command palette --- */
.search-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; transition: .18s;
}
.search-pill:hover { border-color: var(--green); color: var(--text); }
.search-pill kbd { font: 600 10px/1 var(--mono); padding: 3px 5px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--faint); }
@media (max-width: 860px) { .search-pill span, .search-pill kbd { display: none; } .search-pill { width: 36px; justify-content: center; padding: 0; } }

.cmdk[hidden] { display: none; }
.cmdk { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; }
.cmdk__scrim { position: absolute; inset: 0; background: rgba(6, 20, 14, .55); backdrop-filter: blur(2px); }
.cmdk__panel { position: relative; width: min(640px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.cmdk__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cmdk__head input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--text); outline: none; }
.cmdk__body { max-height: 54vh; overflow: auto; padding: 8px; }
.cmdk__hint { margin: 12px; color: var(--faint); font-size: 13px; }
.cmdk__group { padding: 6px 8px 2px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.cmdk__item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: inherit; text-decoration: none; }
.cmdk__item:hover, .cmdk__item.is-active { background: var(--surface-2); }
.cmdk__item strong { display: block; font-size: 14px; color: var(--text); }
.cmdk__item span { font-size: 12px; color: var(--muted); }
.cmdk__foot { padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 12px; }
.cmdk__foot a { color: var(--green); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

.search-hero { display: flex; gap: 10px; margin-bottom: 12px; }
.search-hero__field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); }
.search-hero__field input { flex: 1; height: 46px; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--text); outline: none; }
.search-meta { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.search-list { list-style: none; margin: 0; padding: 0; }
.search-list li { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.search-list li:first-child { border-top: 0; }
.search-list a { flex: 1; display: block; padding: 11px 14px; text-decoration: none; color: inherit; }
.search-list a strong { display: block; font-size: 14px; color: var(--text); }
.search-list a span { font-size: 12px; color: var(--muted); }
.search-list__go { color: var(--faint); padding-right: 12px; }

/* --- bar pratinjau peran & banner onboarding --- */
.preview-bar {
  position: sticky; top: 0; z-index: 90; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 8px 18px; background: #fdf3e0; color: #7a4a04; border-bottom: 1px solid #f3d9a8; font-size: 13px;
}
.preview-bar form { margin-left: auto; }
[data-theme="dark"] .preview-bar { background: #2e2413; color: #f0b451; border-color: #4a3a1c; }
.onboard-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.onboard-banner form { margin-left: 0; }
.onboard-banner > span { flex: 1 1 200px; min-width: 0; }
.onboard-banner .btn { flex: 0 0 auto; }

/* --- stat sebagai tautan (drill-down) --- */
.stat--link { text-decoration: none; color: inherit; display: block; transition: transform .18s, box-shadow .18s, border-color .18s; }
.stat--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--green); }
.stat--link:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* --- command center --- */
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; padding: 16px; }
.task-card {
  display: grid; gap: 4px; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface-2); color: inherit; text-decoration: none; position: relative; transition: .18s;
}
.task-card:hover { border-color: var(--green); transform: translateY(-1px); }
.task-card__ico { color: var(--muted); }
.task-card__count { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.task-card strong { font-size: 13px; }
.task-card small { color: var(--faint); font-size: 11.5px; }
.task-card--red { border-left: 4px solid var(--danger); }
.task-card--amber { border-left: 4px solid var(--warn); }
.task-card--blue { border-left: 4px solid var(--info); }
.task-card--green { border-left: 4px solid var(--green); }
.task-card--violet { border-left: 4px solid var(--violet); }

.alert-feed { list-style: none; margin: 0; padding: 0; }
.alert-feed__item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-top: 1px solid var(--line); }
.alert-feed__item:first-child { border-top: 0; }
.alert-feed__item > div { flex: 1; min-width: 0; }
.alert-feed__item strong { display: block; font-size: 14px; }
.alert-feed__item p { margin: 2px 0 4px; font-size: 12.5px; color: var(--muted); }
.alert-feed__dot { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--warn); flex: 0 0 auto; }
.alert-feed__item--danger .alert-feed__dot { background: var(--danger); }
.alert-feed__item--info .alert-feed__dot { background: var(--info); }

.health-mini { padding: 14px 16px; display: grid; gap: 8px; }
.health-mini__row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.health-mini__row strong { color: var(--text); }
.health-list { list-style: none; margin: 0; padding: 0; }
.health-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13px; }
.health-list li:first-child { border-top: 0; }
.health-list span { color: var(--muted); }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 16px; }
.quick { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); text-decoration: none; font-size: 12px; text-align: center; }
.quick:hover { border-color: var(--green); color: var(--green); }

/* --- funnel --- */
.funnel { list-style: none; margin: 0; padding: 8px 16px 16px; display: grid; gap: 14px; }
.funnel__bar-wrap { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.funnel__bar {
  display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 14px; min-width: 150px;
  background: linear-gradient(90deg, var(--green), var(--green-2)); color: #fff; text-decoration: none; border-radius: 9px;
}
.funnel__bar:hover { filter: brightness(1.06); }
.funnel__count { font-weight: 800; font-size: 16px; }
.funnel__label { font-size: 13px; font-weight: 600; }
.funnel__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 6px 4px 0; }

/* --- cohort --- */
.cohort th { font-size: 11.5px; white-space: nowrap; }
.cohort__cell { text-align: center; padding: 8px 6px; font-size: 12px; border-radius: 4px; }
.cohort__cell.is-strong { background: rgba(14, 122, 79, .82); color: #fff; font-weight: 700; }
.cohort__cell.is-mid { background: rgba(14, 122, 79, .45); color: var(--text); font-weight: 600; }
.cohort__cell.is-low { background: #fdeceb; color: #99231f; }
.cohort__cell.is-zero { background: var(--surface-2); color: var(--faint); }
.cohort__cell.is-empty { background: transparent; }
[data-theme="dark"] .cohort__cell.is-low { background: #33191a; color: #fca5a5; }
.meter { height: 7px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; margin: 4px 0; }
.meter i { display: block; height: 100%; background: var(--green); }
.meter--lg { height: 10px; margin: 10px 0 0; }

/* --- grafik --- */
.bars--tight .bars__label { font-size: 9.5px; }
.chart-2row { padding: 6px 16px 16px; }
.chart-divider { height: 1px; background: var(--line); margin: 8px 0 12px; }

/* --- peringkat --- */
.rank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding: 16px; }
.rank-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: var(--surface-2); }
.rank-card__head { display: flex; align-items: center; gap: 10px; }
.rank-card__no { font-size: 20px; }
.rank-card__head strong { display: block; font-size: 14px; }
.rank-card__score { margin-left: auto; font-weight: 800; font-size: 18px; color: var(--green); }
.rank-card__metrics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.rank-card__metrics strong { color: var(--text); }

/* --- kalender --- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 0 16px 12px; }
.cal__head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); text-align: center; padding: 6px 0; }
.cal__cell { min-height: 96px; border: 1px solid var(--line); border-radius: 9px; padding: 6px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.cal__cell--empty { background: transparent; border-style: dashed; border-color: var(--line); }
.cal__cell.is-today { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.cal__day { font-size: 11px; font-weight: 700; color: var(--muted); }
.cal__events { display: grid; gap: 3px; }
.cal__event { display: flex; gap: 4px; align-items: flex-start; font-size: 10.5px; line-height: 1.25; color: var(--text); text-decoration: none; padding: 3px 4px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.cal__event span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal__event:hover { background: var(--bg-2); }
.cal__dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; margin-top: 3px; background: var(--green); }
.cal__dot--green, .cal__event--green .cal__dot { background: var(--green); }
.cal__dot--amber, .cal__event--amber .cal__dot { background: var(--warn); }
.cal__dot--blue, .cal__event--blue .cal__dot { background: var(--info); }
.cal__dot--violet, .cal__event--violet .cal__dot { background: var(--violet); }
.cal__more { font-size: 10px; color: var(--faint); padding-left: 4px; }
.cal__nav { display: flex; gap: 6px; flex-wrap: wrap; }
.cal__legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 0 16px 16px; font-size: 11.5px; color: var(--muted); }
.cal__legend-item { display: inline-flex; align-items: center; gap: 5px; }
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); }
.agenda li:first-child { border-top: 0; }
.agenda__date { font-size: 11px; font-weight: 700; color: var(--muted); min-width: 58px; }
.agenda__body { flex: 1; }
.agenda__body strong { display: block; font-size: 13px; }
@media (max-width: 780px) {
  .cal { gap: 3px; padding: 0 10px 10px; }
  .cal__cell { min-height: 62px; padding: 4px; }
  .cal__event span:last-child { display: none; }
  .cal__event { padding: 3px; }
}

/* --- mode seluler --- */
.mobile-dash { max-width: 720px; margin: 0 auto; display: grid; gap: 16px; }
.mobile-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mobile-kpi { display: grid; gap: 2px; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none; }
.mobile-kpi span { font-size: 11.5px; color: var(--muted); }
.mobile-kpi strong { font-size: 20px; letter-spacing: -.02em; }
.mobile-kpi small { font-size: 10.5px; color: var(--faint); }
.mobile-kpi--green { border-left: 4px solid var(--green); }
.mobile-kpi--amber { border-left: 4px solid var(--warn); }
.mobile-kpi--blue { border-left: 4px solid var(--info); }
.mobile-kpi--violet { border-left: 4px solid var(--violet); }
.mobile-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mobile-quick__item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-size: 11.5px; font-weight: 600; }

/* --- onboarding --- */
.card--onb { overflow: hidden; }
.onb__hero { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; padding: 22px; background: linear-gradient(120deg, var(--lime-soft), transparent); border-bottom: 1px solid var(--line); }
.onb__hero > div:first-child { flex: 1; min-width: 240px; }
.onb__hero h2 { margin: 4px 0 8px; font-size: 22px; }
.onb__progress { position: relative; display: grid; place-items: center; width: 120px; height: 120px; }
.onb__progress svg { position: absolute; inset: 0; }
.onb__progress strong { font-size: 20px; }
.onb__progress span { font-size: 10.5px; color: var(--muted); }
.onb__list { list-style: none; margin: 0; padding: 8px 16px 16px; display: grid; gap: 10px; }
.onb__step { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.onb__step.is-done { background: var(--surface-2); }
.onb__num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: 12px; flex: 0 0 auto; }
.onb__step.is-done .onb__num { background: var(--green); border-color: var(--green); color: #fff; }
.onb__body { flex: 1; min-width: 0; }
.onb__body strong { display: block; font-size: 14px; }
.onb__body p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }

/* --- kanban --- */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kcol { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); display: flex; flex-direction: column; min-height: 180px; }
.kcol__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--line); }
.kcol__count { font-size: 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 1px 7px; color: var(--muted); }
.kcol__body { display: grid; gap: 8px; padding: 10px; min-height: 120px; }
.kcol__body.is-over { outline: 2px dashed var(--green); outline-offset: -4px; border-radius: 8px; }
.kcol__empty { font-size: 11.5px; color: var(--faint); text-align: center; padding: 12px 4px; }
.kcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; cursor: grab; box-shadow: var(--shadow); }
.kcard.is-dragging { opacity: .5; }
.kcard--mendesak { border-left: 3px solid var(--danger); }
.kcard--tinggi { border-left: 3px solid var(--warn); }
.kcard--normal { border-left: 3px solid var(--info); }
.kcard__top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.kcard__prio { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.kcard__prio--mendesak { color: var(--danger); }
.kcard__prio--tinggi { color: var(--warn); }
.kcard__title { margin: 6px 0 4px; font-size: 13px; line-height: 1.35; }
.kcard__body { margin: 0 0 8px; font-size: 11.5px; color: var(--muted); }
.kcard__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); }
.kcard__who { display: inline-flex; align-items: center; gap: 5px; }
.kcard__due { display: inline-flex; align-items: center; gap: 3px; }
.kcard__due.is-late { color: var(--danger); font-weight: 600; }
.kcard__actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 2px; opacity: 0; transition: .15s; background: var(--surface); border-radius: 6px; }
.kcard:hover .kcard__actions, .kcard:focus-within .kcard__actions { opacity: 1; }
@media (max-width: 1100px) { .kanban { grid-template-columns: repeat(5, 240px); } }

/* --- label & urutan drag --- */
.sort-list { list-style: none; margin: 0; padding: 8px 16px 0; display: grid; gap: 8px; }
.sort-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.sort-item.is-dragging { opacity: .45; }
.sort-item__grip { color: var(--faint); cursor: grab; }
.sort-item .row-actions { margin-left: auto; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: color-mix(in srgb, var(--chip, #0e7a4f) 14%, transparent); color: var(--chip, #0e7a4f); border: 1px solid color-mix(in srgb, var(--chip, #0e7a4f) 35%, transparent); }
.chip--toggle { cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 600; opacity: .55; }
.chip--toggle.is-on { opacity: 1; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 16px; }
.tag-toggle { display: inline; }

/* --- CMS --- */
.cms-list { list-style: none; margin: 0; padding: 0; }
.cms-list__item { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-top: 1px solid var(--line); }
.cms-list__item:first-child { border-top: 0; }
.cms-list__main { flex: 1; min-width: 0; }
.cms-list__main strong { display: block; font-size: 14px; }
.cms-list__preview { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.cms-list__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cms-editor { width: 100%; font: inherit; font-size: 13px; line-height: 1.6; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); resize: vertical; }
.cms-image { display: flex; gap: 8px; align-items: center; }
.cms-image input[type="url"] { flex: 1; height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; font: inherit; background: var(--surface); color: var(--text); }
.cms-image__preview { max-width: 100%; max-height: 220px; border-radius: 10px; border: 1px solid var(--line); margin-top: 10px; object-fit: cover; }
.cms-published { padding: 14px 16px; font-size: 12.5px; color: var(--muted); white-space: pre-wrap; }
.rev-list { list-style: none; margin: 0; padding: 0; }
.rev-list li { padding: 10px 16px; border-top: 1px solid var(--line); }
.rev-list li:first-child { border-top: 0; }
.rev-list p { margin: 2px 0 0; color: var(--text); }

/* --- banner publik --- */
.promo-strip { display: grid; gap: 12px; max-width: 1120px; margin: 18px auto; padding: 0 20px; }
.promo-strip__item { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.promo-strip__item--amber { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.promo-strip__item--violet { background: var(--violet-soft); border-color: color-mix(in srgb, var(--violet) 30%, transparent); }
.promo-strip__img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.promo-strip__body { flex: 1; min-width: 200px; }
.promo-strip__body strong { display: block; font-size: 15px; }
.promo-strip__body p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }

/* --- catatan internal --- */
.note-panel { border-top: 1px solid var(--line); padding: 14px 16px; background: var(--surface-2); }
.note-panel__title { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 13px; }
.note-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; max-height: 220px; overflow: auto; }
.note-list li { padding: 9px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.note-list__head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.note-list p { margin: 0; font-size: 12.5px; white-space: pre-wrap; }
.note-form { display: flex; gap: 8px; align-items: flex-end; }
.note-form textarea { flex: 1; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 13px; background: var(--surface); color: var(--text); resize: vertical; }

/* --- integrasi / flag / approval --- */
.flag-list { list-style: none; margin: 0; padding: 0; }
.flag-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.flag-item:first-child { border-top: 0; }
.flag-item__body { flex: 1; min-width: 0; }
.flag-item__body strong { display: block; font-size: 14px; }
.flag-toggle { display: flex; align-items: center; gap: 10px; }
.switch { width: 38px; height: 21px; border-radius: 99px; background: var(--line-strong); position: relative; display: inline-block; }
.switch i { position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: .18s; }
.switch.is-on { background: var(--green); }
.switch.is-on i { left: 19px; }

.approval { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 16px; }
.approval__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.approval__head strong { text-transform: capitalize; }
.approval__head span { display: block; }
.approval__foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.approval__people { display: flex; gap: 6px; flex-wrap: wrap; }
.code-block { margin: 6px 0; padding: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; font: 11.5px/1.5 var(--mono); color: var(--muted); white-space: pre-wrap; overflow: auto; max-height: 160px; }

.kv-list { display: grid; gap: 0; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13px; }
.kv:first-child { border-top: 0; }
.kv span { color: var(--muted); }
.kv strong { text-align: right; }
.kv small { grid-column: 1 / -1; color: var(--faint); font-size: 11px; text-align: right; }
.user-head { display: flex; gap: 14px; align-items: center; padding: 16px; }
.user-head strong { display: block; font-size: 16px; }
.user-head span { font-size: 12.5px; color: var(--muted); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form input[type="text"], .inline-form input[type="number"], .inline-form input[type="email"] { height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 12.5px; background: var(--surface); color: var(--text); }
.input--xs { width: 78px; height: 30px !important; padding: 0 7px !important; font-size: 12px !important; }
.mini-field--color input[type="color"] { width: 36px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.row-actions form { display: inline-flex; gap: 6px; align-items: center; }
.feed__item { display: flex; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); }
.feed__item:first-child { border-top: 0; }
.feed__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: 6px; flex: 0 0 auto; }

/* --- halaman publik nonaktif --- */
.pub-message { min-height: 62vh; display: grid; place-items: center; padding: 40px 20px; }
.pub-message__card { max-width: 520px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 28px; box-shadow: var(--shadow); }
.pub-message__ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--lime-soft); color: var(--green); margin-bottom: 12px; }
.pub-message__card h1 { font-size: 22px; margin: 0 0 8px; }
.pub-message__card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.pub-message__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* --- realtime indicator --- */
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.live-pill.is-live i { background: var(--green); box-shadow: 0 0 0 3px rgba(14, 122, 79, .18); animation: pulse-live 2s infinite; }
.live-pill.is-fallback i { background: var(--warn); }
@keyframes pulse-live { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

@media print {
  .preview-bar, .cmdk, .search-pill, .onboard-banner { display: none !important; }
}


/* Penyesuaian v1.5: jaga topbar tetap muat di layar kecil. */
@media (max-width: 900px) {
  .search-pill { display: none; }
  .topbar__actions { gap: 6px; }
  .wa-mode span, .tz-pill span { display: none; }
}

/* Grafik batang bisa digeser di dalam kartu (bukan melebarkan halaman). */
.bars { overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
.bars__col { min-width: 14px; }

@media (max-width: 560px) {
  .topbar { gap: 6px; }
  .topbar__actions { min-width: 0; }
  .topbar__actions .wa-mode, .topbar__actions .tz-pill { display: none; }
  .umenu__name { display: none; }
  .hello__cta { flex-wrap: wrap; }
}

/* Aturan persetujuan */
.switch-list { display: grid; gap: 10px; padding: 16px; }
.switch-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.switch-row span:last-child { display: grid; gap: 2px; }
.switch-row strong { font-size: 13.5px; }
.switch-row small { color: var(--muted); font-size: 11.5px; }

/* =========================================================================
   v1.6 — pembayaran, katalog/pencarian, pustaka media
   ========================================================================= */

/* --- pembayaran: rincian & metode --- */
.charge-total { display: grid; gap: 6px; padding: 16px; border-top: 1px solid var(--line); background: var(--surface-2); }
.charge-total > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.charge-total > div strong { color: var(--text); }
.charge-total__grand { padding-top: 8px; border-top: 1px dashed var(--line-strong); font-size: 15px !important; }
.charge-total__grand strong { font-size: 19px; color: var(--green) !important; }
.charge-items { display: grid; gap: 8px; }
.charge-item { display: grid; grid-template-columns: 2fr 72px 1fr 34px; gap: 8px; align-items: center; }
.charge-item input { height: 38px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 13px; background: var(--surface); color: var(--text); }
.action-stack { display: grid; gap: 8px; padding: 14px 16px; }
.action-stack form.inline-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; }
.qr-box { padding: 14px 16px; text-align: center; }
.qr-box svg { max-width: 100%; height: auto; }
.pay-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.pay-main, .pay-side { display: grid; gap: 18px; }
.pay-methods { display: grid; gap: 8px; padding: 16px; }
.pay-method { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.pay-method:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.pay-method input { margin-top: 3px; }
.pay-method__body { display: grid; gap: 2px; }
.pay-method__body strong { font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.pay-method__body small { color: var(--muted); font-size: 11.5px; }
.pay-card-fields, .pay-installment { padding: 0 16px 14px; }
.page-hero--tight .page-hero__inner { padding: 26px 22px; }
.dun { list-style: none; margin: 0; padding: 8px 16px 16px; display: grid; gap: 10px; }
.dun__stage { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.dun__code { font: 700 11px/1 var(--mono); padding: 5px 7px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.dun__stage p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); }
.dun__stage .badge { margin-left: auto; }
.rev-bars { list-style: none; margin: 0; padding: 12px 16px 16px; display: grid; gap: 10px; }
.rev-bar { display: grid; grid-template-columns: minmax(90px, 1.2fr) minmax(80px, 2fr) auto auto; gap: 10px; align-items: center; font-size: 12px; }
.rev-bar__track { height: 9px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.rev-bar__track i { display: block; height: 100%; background: var(--green); }
.qr-test { display: flex; gap: 18px; padding: 16px; flex-wrap: wrap; }
.qr-test__body { flex: 1; min-width: 240px; }
.plan-picks { display: grid; gap: 8px; padding: 4px 16px 0; }
.plan-pick { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.plan-pick.is-current { opacity: .72; }
.plan-pick__body { display: grid; gap: 2px; }
.plan-pick__body small { color: var(--muted); }
.invoice-print { max-width: 820px; margin: 24px auto; background: var(--surface); padding: 32px; border: 1px solid var(--line); border-radius: 12px; }
.invoice-print__head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.invoice-print__head h1 { margin: 0; font-size: 22px; letter-spacing: .04em; }
.invoice-print__meta { text-align: right; display: grid; gap: 4px; font-size: 12px; }
.invoice-print__parties { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0; font-size: 13px; }
.invoice-print__parties h3 { margin: 0 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.invoice-print__totals { margin-top: 14px; display: grid; gap: 6px; justify-content: end; }
.invoice-print__totals > div { display: grid; grid-template-columns: 120px 140px; gap: 10px; font-size: 13px; }
.invoice-print__totals .grand { font-size: 16px; font-weight: 700; border-top: 1px solid var(--line-strong); padding-top: 6px; }
.invoice-print__foot { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* --- katalog & pencarian --- */
.search-bar { position: relative; display: flex; gap: 10px; margin-bottom: 14px; }
.search-bar__field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.search-bar__field input { flex: 1; height: 48px; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--text); outline: none; }
.icon-btn.is-listening { color: #fff; background: var(--danger); }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 40; max-height: 60vh; overflow: auto; }
.suggest__group { padding: 6px 4px; border-top: 1px solid var(--line); }
.suggest__group:first-child { border-top: 0; }
.suggest__label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 2px 6px 4px; }
.suggest__item { display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left; padding: 7px 8px; border: 0; background: transparent; border-radius: 7px; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; }
.suggest__item:hover { background: var(--surface-2); }
.suggest__item small { color: var(--faint); }
.suggest__clear { margin: 4px 6px 0; border: 0; background: transparent; color: var(--danger); font-size: 11.5px; cursor: pointer; }
.suggest__empty { margin: 8px; font-size: 12px; color: var(--muted); }
.search-meta-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin: 6px 0 10px; }
.search-meta-bar__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.view-toggle__btn { display: grid; place-items: center; width: 34px; height: 32px; color: var(--muted); background: var(--surface); }
.view-toggle__btn.is-on { background: var(--green); color: #fff; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip--active { background: var(--green-soft, #eaf6ef); color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 35%, transparent); text-decoration: none; }
.chip--clear { background: var(--surface-2); color: var(--danger); border: 1px dashed var(--line-strong); }
.quick-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.catalogue { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.catalogue__filters { display: grid; gap: 12px; position: sticky; top: 12px; }
.facet { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px; }
.facet__title { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.facet__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.facet__item { display: flex; align-items: center; gap: 8px; padding: 6px 6px; border-radius: 7px; font-size: 12.5px; color: var(--text); text-decoration: none; }
.facet__item:hover { background: var(--surface-2); }
.facet__item.is-on { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green); font-weight: 600; }
.facet__check { width: 14px; text-align: center; font-size: 11px; color: var(--green); }
.facet__label { flex: 1; }
.facet__count { font-size: 11px; color: var(--faint); }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.prod-grid--list { grid-template-columns: minmax(0, 1fr); }
.prod-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; transition: transform .16s, box-shadow .16s; }
.prod-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.prod-card__art { display: block; text-decoration: none; }
.prod-grid--list .prod-card { flex-direction: row; }
.prod-grid--list .prod-card__art { width: 150px; flex: 0 0 150px; }
.prod-art { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: linear-gradient(135deg, color-mix(in srgb, var(--art) 88%, #000 12%), color-mix(in srgb, var(--art) 60%, #fff 40%)); color: #fff; }
.prod-art span { font-size: 30px; font-weight: 800; letter-spacing: .04em; opacity: .92; }
.prod-art--sm span { font-size: 20px; }
.prod-art--lg { aspect-ratio: 1 / 1; border-radius: 16px; }
.prod-art--lg span { font-size: 64px; }
.prod-art__badge { position: absolute; top: 8px; left: 8px; font-size: 10px; font-style: normal; background: rgba(255,255,255,.92); color: #333; padding: 2px 6px; border-radius: 99px; }
.prod-grid--list .prod-art { aspect-ratio: auto; height: 100%; }
.prod-card__body { display: grid; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.prod-card__top { display: flex; flex-wrap: wrap; gap: 5px; }
.prod-card__title { margin: 0; font-size: 14.5px; line-height: 1.35; }
.prod-card__title a { color: var(--text); text-decoration: none; }
.prod-card__desc { margin: 0; font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-card__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stars { color: #d97706; font-size: 12px; letter-spacing: 1px; }
.stars small { color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.prod-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.prod-price strong { font-size: 16px; }
.prod-price s { font-size: 11.5px; color: var(--faint); }
.prod-card__actions { display: flex; gap: 6px; align-items: center; margin-top: auto; }
.icon-btn.is-on { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.badge--soft { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.hl-match { background: #fde68a; color: inherit; padding: 0 1px; border-radius: 3px; }
[data-theme="dark"] .hl-match { background: #a16207; color: #fff; }
.results-count { font-size: 12.5px; color: var(--muted); }
.load-more { padding: 18px 0; text-align: center; }
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-bottom: 14px; }
.skeleton-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; background: var(--surface); }
.skeleton-card span { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--bg-2), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
.skeleton-card span:first-child { height: 110px; }
@keyframes sk { 0% { background-position: 0 0; } 100% { background-position: -200% 0; } }
.empty-results { text-align: center; padding: 28px 16px; border: 1px dashed var(--line-strong); border-radius: 16px; background: var(--surface); }
.empty-results__art { font-size: 34px; margin-bottom: 8px; }
.empty-results h3 { margin: 0 0 6px; }
.empty-results__cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
.quick-card { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); text-decoration: none; text-align: left; }
.result-side { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 16px; }
.result-side__title { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.result-side__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.result-side__item a { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); background: var(--surface); }
.result-side__item span { font-size: 12px; color: var(--muted); }
.trend-note { margin: 0 0 10px; }
.dual-range { position: relative; height: 34px; }
.dual-range input[type="range"] { position: absolute; left: 0; right: 0; width: 100%; pointer-events: none; -webkit-appearance: none; appearance: none; background: transparent; height: 34px; margin: 0; }
.dual-range input[type="range"]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--green); border: 2px solid #fff; box-shadow: var(--shadow); cursor: pointer; }
.dual-range input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 2px solid #fff; cursor: pointer; }
.dual-range__track { position: absolute; top: 15px; left: 0; right: 0; height: 4px; background: var(--line-strong); border-radius: 99px; }
.dual-range__track i { position: absolute; top: 0; bottom: 0; background: var(--green); border-radius: 99px; }
.dual-range__labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.prod-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 26px; align-items: start; }
.prod-detail__art { display: grid; gap: 10px; }
.prod-detail__thumbs { display: flex; gap: 8px; }
.thumb { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 10px; background: var(--art, var(--green)); color: #fff; font-weight: 700; font-size: 13px; opacity: .85; }
.prod-detail__info h1 { margin: 6px 0 8px; font-size: 26px; line-height: 1.2; }
.prod-detail__meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.prod-detail__desc { color: var(--muted); font-size: 14px; line-height: 1.65; }
.kv-list--inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 12px; }
.kv-list--inline .kv { border-top: 0; border-left: 1px solid var(--line); display: grid; gap: 2px; }
.kv-list--inline .kv:first-child { border-left: 0; }
.kv-list--inline .kv strong { text-align: left; }
.field--inline { max-width: 110px; }
.field--inline input { height: 38px; }
.compare-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--surface); }
.compare-table th, .compare-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--surface-2); min-width: 170px; }
.compare-table thead a { display: grid; gap: 6px; text-decoration: none; color: var(--text); }
.compare-table tbody th { background: var(--surface-2); font-weight: 600; white-space: nowrap; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.help-card { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--text); }
.help-card:hover { border-color: var(--green); }
.help-card h3 { margin: 0; font-size: 15px; }
.help-card p { margin: 0; font-size: 12.5px; color: var(--muted); }
.article { max-width: 760px; }
.article__body p { font-size: 15px; line-height: 1.75; color: var(--text); }
.crumb--pub { max-width: 1120px; margin: 14px auto 0; padding: 0 20px; font-size: 12px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumb--pub a { color: var(--green); text-decoration: none; }
.calc__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; padding: 16px; }
.calc__result { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; padding: 16px; background: var(--surface-2); border-top: 1px solid var(--line); }
.calc__result div { display: grid; gap: 3px; }
.calc__result span { font-size: 11.5px; color: var(--muted); }
.calc__result strong { font-size: 18px; }
.calc > .xs { padding: 0 16px 16px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.price-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--surface); display: grid; gap: 10px; align-content: start; }
.price-card--featured { border-color: var(--green); box-shadow: 0 18px 40px -30px rgba(14,122,79,.6); }
.price-card h3 { margin: 0; }
.price-card__amount { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.price-card__amount span { font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.price-card__amount small { color: var(--muted); font-size: 12px; }
.price-card__desc { margin: 0; font-size: 13px; color: var(--muted); }
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.tick-list li { display: flex; gap: 7px; align-items: flex-start; }

/* --- pustaka media --- */
.media-quota { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 16px; margin-bottom: 14px; }
.media-quota__bar { height: 9px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.media-quota__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--lime-2)); }
.media-quota__text { margin-top: 7px; font-size: 12.5px; color: var(--muted); }
.upload-zone { border: 2px dashed var(--line-strong); border-radius: 16px; background: var(--surface); padding: 18px; margin-bottom: 18px; transition: border-color .16s, background .16s; }
.upload-zone.is-over { border-color: var(--green); background: color-mix(in srgb, var(--green) 7%, var(--surface)); }
.upload-zone__inner { display: grid; gap: 8px; justify-items: center; text-align: center; color: var(--muted); }
.upload-zone__inner strong { color: var(--text); }
.upload-list { display: grid; gap: 8px; margin-top: 12px; }
.upload-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(70px, 1fr) auto; gap: 10px; align-items: center; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.upload-row__meta { display: grid; min-width: 0; }
.upload-row__meta strong { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-row__bar { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.upload-row__bar i { display: block; height: 100%; width: 8%; background: var(--green); transition: width .3s; }
.upload-row__state.ok { color: var(--green); }
.upload-row__state.error { color: var(--danger); }
.media-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.media-side { display: grid; gap: 14px; }
.folders { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; }
.folder { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 13px; }
.folder:hover { background: var(--surface-2); }
.folder.is-active { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green); font-weight: 600; }
.folder__children { list-style: none; margin: 0 0 0 14px; padding: 0; }
.media-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 0; }
.toolbar--stack { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 16px 16px; }
.media-toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.media-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.media-card.is-dragging { opacity: .5; }
.media-card__thumb { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; }
.media-card__thumb img, .media-card__thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-card__doc { display: grid; place-items: center; gap: 4px; color: var(--muted); font-size: 11px; }
.media-card__flag { position: absolute; top: 6px; left: 6px; }
.media-card__wm { position: absolute; bottom: 6px; left: 6px; font-size: 10px; }
.media-card__check { position: absolute; top: 6px; right: 6px; background: rgba(255,255,255,.9); border-radius: 6px; padding: 2px 4px; }
.media-card__body { padding: 10px 12px; display: grid; gap: 3px; }
.media-card__body strong { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-preview { padding: 14px 16px; }
.media-preview img, .media-preview video { max-width: 100%; border-radius: 10px; display: block; margin: 0 auto; }
.doc-preview { width: 100%; min-height: 320px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.doc-preview--text { padding: 14px; font: 12.5px/1.6 var(--mono); white-space: pre-wrap; overflow: auto; max-height: 460px; color: var(--text); }

@media (max-width: 1000px) {
  .catalogue { grid-template-columns: minmax(0, 1fr); }
  .catalogue__filters { position: static; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .media-layout { grid-template-columns: minmax(0, 1fr); }
  .pay-layout, .prod-detail { grid-template-columns: minmax(0, 1fr); }
  .invoice-print__parties { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .charge-item { grid-template-columns: minmax(0, 1fr) 60px; }
  .charge-item .icon-btn { grid-column: 2; }
  .upload-row { grid-template-columns: minmax(0, 1fr); }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .prod-grid--list { grid-template-columns: minmax(0, 1fr); }
  .prod-card__desc { display: none; }
  .search-meta-bar { flex-direction: column; align-items: flex-start; }
}

/* v1.6 perbaikan mobile: kolom pencarian tidak boleh melebarkan halaman */
.search-bar { flex-wrap: wrap; }
.search-bar__field { min-width: 0; }
.search-bar__field input { min-width: 0; }
@media (max-width: 560px) {
  .search-bar__field { flex: 1 1 100%; }
  .search-bar > .btn { width: 100%; }
  .search-bar__field input { font-size: 14px; }
}
