/* =====================================================================
   KULIAHKU — design system
   Dua tema: clay (Claymorphism) & brutal (Neo-Brutalism)
   Dua mode: light & dark
   Diatur lewat atribut pada <html>: data-theme, data-mode
   ===================================================================== */

/* ------------------------------- TOKENS ------------------------------- */
:root {
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 26px;
  --radius-sm: 16px;
  --radius-xs: 11px;
  --border-w: 1.5px;
  --sidebar-w: 264px;
  --transition: 160ms cubic-bezier(.4, .1, .2, 1);
}

/* ---------- CLAY · LIGHT (default) ---------- */
html[data-theme='clay'][data-mode='light'], html:not([data-theme]) {
  --bg: #F2ECFF;
  --bg-2: #FFF3E6;
  --surface: #FFFFFF;
  --surface-2: #FBF7FF;
  --surface-3: #F4EEFF;
  --ink: #241B3D;
  --muted: #6E6589;
  --line: rgba(36, 27, 61, 0.08);
  --line-strong: rgba(36, 27, 61, 0.14);
  --primary: #6C4CF1;
  --primary-dark: #5233CE;
  --on-primary: #FFFFFF;
  --primary-soft: #EBE4FF;
  --coral: #FF6B4A; --coral-soft: #FFE7E0; --on-coral: #4A1509;
  --sun: #FFB800; --sun-soft: #FFF1C9; --on-sun: #4A3400;
  --mint: #12B886; --mint-soft: #DBF7EE; --on-mint: #043A2B;
  --sky: #2F7CF6; --sky-soft: #E3EDFF; --on-sky: #0E3579;
  --pink: #F0568C; --pink-soft: #FFE3ED;
  --shadow: 0 22px 48px -28px rgba(50, 30, 100, 0.4), 0 2px 6px -2px rgba(50, 30, 100, 0.08);
  --shadow-sm: 0 12px 24px -18px rgba(50, 30, 100, 0.45);
  --shadow-inset: inset 0 2px 0 rgba(255, 255, 255, 0.9);
  --btn-shadow: 0 10px 20px -14px rgba(50, 30, 100, 0.6);
  --blob-1: #FFD9A8;
  --blob-2: #D6C6FF;
  --blob-3: #B9F1E2;
}

/* ---------- CLAY · DARK ---------- */
html[data-theme='clay'][data-mode='dark'] {
  --bg: #15112A;
  --bg-2: #1E1838;
  --surface: #221B3B;
  --surface-2: #2A2247;
  --surface-3: #302752;
  --ink: #F2EEFF;
  --muted: #A79FC6;
  --line: rgba(242, 238, 255, 0.1);
  --line-strong: rgba(242, 238, 255, 0.2);
  --primary: #A78BFA;
  --primary-dark: #C4B0FF;
  --on-primary: #1B1136;
  --primary-soft: #35285C;
  --coral: #FF8E70; --coral-soft: #45271F; --on-coral: #FFE6DD;
  --sun: #FFCB45; --sun-soft: #42341A; --on-sun: #FFEFC4;
  --mint: #2DD4A7; --mint-soft: #123B31; --on-mint: #CFFBEB;
  --sky: #6AA6FF; --sky-soft: #1B2C4D; --on-sky: #D6E6FF;
  --pink: #FF86AF; --pink-soft: #431F2E;
  --shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.85), 0 2px 6px -2px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 14px 26px -20px rgba(0, 0, 0, 0.9);
  --shadow-inset: inset 0 2px 0 rgba(255, 255, 255, 0.06);
  --btn-shadow: 0 12px 22px -16px rgba(0, 0, 0, 0.9);
  --blob-1: #4A2C6B;
  --blob-2: #2B2A6B;
  --blob-3: #17494A;
}

/* ---------- NEO-BRUTALISM · LIGHT ---------- */
html[data-theme='brutal'][data-mode='light'] {
  --font-display: 'Archivo Black', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --radius: 6px; --radius-sm: 4px; --radius-xs: 3px;
  --border-w: 3px;
  --bg: #FFF6DE;
  --bg-2: #FFE9C7;
  --surface: #FFFFFF;
  --surface-2: #FFF9ED;
  --surface-3: #FFEBC2;
  --ink: #111111;
  --muted: #4A4A4A;
  --line: #111111;
  --line-strong: #111111;
  --primary: #FF3D68;
  --primary-dark: #C21241;
  --on-primary: #FFFFFF;
  --primary-soft: #FFD9E2;
  --coral: #FF5A1F; --coral-soft: #FFDCCB; --on-coral: #1A0A00;
  --sun: #FFD400; --sun-soft: #FFEF9E; --on-sun: #141400;
  --mint: #00C48C; --mint-soft: #B9F5DF; --on-mint: #00281D;
  --sky: #2F7CFF; --sky-soft: #CFE2FF; --on-sky: #001B4D;
  --pink: #FF6BB5; --pink-soft: #FFD3E8;
  --shadow: 7px 7px 0 0 #111111;
  --shadow-sm: 4px 4px 0 0 #111111;
  --shadow-inset: none;
  --btn-shadow: 4px 4px 0 0 #111111;
  --blob-1: #FFD400; --blob-2: #00C48C; --blob-3: #FF6BB5;
}

/* ---------- NEO-BRUTALISM · DARK ---------- */
html[data-theme='brutal'][data-mode='dark'] {
  --font-display: 'Archivo Black', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --radius: 6px; --radius-sm: 4px; --radius-xs: 3px;
  --border-w: 3px;
  --bg: #0E0E0E;
  --bg-2: #161616;
  --surface: #1A1A1A;
  --surface-2: #212121;
  --surface-3: #2A2A2A;
  --ink: #FAFAFA;
  --muted: #B4B4B4;
  --line: #FAFAFA;
  --line-strong: #FAFAFA;
  --primary: #FF4D7A;
  --primary-dark: #FF7E9E;
  --on-primary: #12000A;
  --primary-soft: #3A1120;
  --coral: #FF7A45; --coral-soft: #3A1B0E; --on-coral: #1A0A00;
  --sun: #FFE066; --sun-soft: #3A3410; --on-sun: #141400;
  --mint: #33E0AE; --mint-soft: #0C3529; --on-mint: #00281D;
  --sky: #6AA6FF; --sky-soft: #12294D; --on-sky: #EAF2FF;
  --pink: #FF8FCB; --pink-soft: #3A1430;
  --shadow: 7px 7px 0 0 #FAFAFA;
  --shadow-sm: 4px 4px 0 0 #FAFAFA;
  --shadow-inset: none;
  --btn-shadow: 4px 4px 0 0 #FAFAFA;
  --blob-1: #4A3C00; --blob-2: #003B2E; --blob-3: #3A1430;
}

/* ------------------------------- RESET ------------------------------- */
* { box-sizing: border-box; }
/* atribut hidden harus menang atas display pada komponen (alert/btn dsb.) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  transition: background var(--transition);
}
body::before { width: 420px; height: 420px; background: var(--blob-1); top: -150px; right: -110px; }
body::after { width: 460px; height: 460px; background: var(--blob-2); bottom: -210px; left: -150px; }
html[data-theme='brutal'] body::before, html[data-theme='brutal'] body::after { opacity: 0.25; filter: blur(60px); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.2px; }
html[data-theme='brutal'] h1, html[data-theme='brutal'] h2, html[data-theme='brutal'] h3, html[data-theme='brutal'] h4 { letter-spacing: -0.5px; }
h1 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 12px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
small, .small { font-size: 0.88rem; }
.tiny { font-size: 0.78rem; }
code, pre { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.86em; }
img, svg { max-width: 100%; }
hr { border: none; border-top: var(--border-w) solid var(--line); margin: 20px 0; }

.muted { color: var(--muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid-tight { gap: 14px; }
.section { margin-top: 38px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }

/* ------------------------------- SURFACES ------------------------------- */
.card {
  background: var(--surface);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
}
html[data-theme='clay'] .card { border-color: var(--line); }
.card-tight { padding: 16px; border-radius: var(--radius-sm); }
.card-flat { box-shadow: none; }
.card-tint-violet { background: var(--primary-soft); }
.card-tint-sun { background: var(--sun-soft); }
.card-tint-mint { background: var(--mint-soft); }
.card-tint-pink { background: var(--pink-soft); }
.card-tint-sky { background: var(--sky-soft); }
.card-tint-coral { background: var(--coral-soft); }
html[data-theme='brutal'] .card { border-color: var(--line-strong); }

/* ------------------------------- BUTTONS ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-xs);
  border: var(--border-w) solid var(--line);
  font-family: var(--font-body); font-weight: 700; font-size: 0.93rem;
  cursor: pointer; background: var(--surface); color: var(--ink);
  text-decoration: none; line-height: 1.2;
  box-shadow: var(--btn-shadow);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { text-decoration: none; transform: translate(-1px, -1px); box-shadow: var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--line); }
.btn-coral { background: var(--coral); color: var(--on-coral); }
.btn-mint { background: var(--mint); color: var(--on-mint); }
.btn-sun { background: var(--sun); color: var(--on-sun); }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-ghost:hover { box-shadow: none; background: var(--surface-2); }
html[data-theme='brutal'] .btn { border-color: var(--line-strong); box-shadow: var(--btn-shadow); }
html[data-theme='brutal'] .btn-ghost { box-shadow: var(--btn-shadow); background: var(--surface); }
.btn-sm { padding: 7px 12px; font-size: 0.81rem; border-radius: var(--radius-xs); }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none; }
.btn-danger { background: var(--coral-soft); color: var(--on-coral); }

/* ------------------------------- BADGES / CHIPS ------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px;
  border-radius: 999px; font-size: 0.73rem; font-weight: 800;
  background: var(--primary-soft); color: var(--primary-dark);
  text-transform: uppercase; letter-spacing: 0.5px;
  border: 1px solid transparent;
}
html[data-theme='brutal'] .badge { border-radius: var(--radius-xs); border: 2px solid var(--line-strong); text-transform: none; letter-spacing: 0; }
.badge.coral { background: var(--coral-soft); color: var(--on-coral); }
.badge.mint { background: var(--mint-soft); color: var(--on-mint); }
.badge.sun { background: var(--sun-soft); color: var(--on-sun); }
.badge.sky { background: var(--sky-soft); color: var(--on-sky); }
.badge.grey { background: var(--surface-3); color: var(--muted); }
.badge.lock { background: var(--surface-3); color: var(--muted); }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--primary-soft); color: var(--primary-dark);
  border-radius: 999px; padding: 3px 10px; font-size: 0.75rem; font-weight: 700;
}
html[data-theme='brutal'] .tag { border-radius: var(--radius-xs); border: 1.5px solid var(--line-strong); }
.tag.mint { background: var(--mint-soft); color: var(--on-mint); }
.tag.sun { background: var(--sun-soft); color: var(--on-sun); }
.tag.coral { background: var(--coral-soft); color: var(--on-coral); }
.tag.sky { background: var(--sky-soft); color: var(--on-sky); }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.quota-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); border: var(--border-w) solid var(--line);
  border-radius: 999px; padding: 4px 11px; font-size: 0.77rem; font-weight: 700; color: var(--muted);
}
html[data-theme='brutal'] .quota-chip { border-radius: var(--radius-xs); }

/* ------------------------------- SHELL / SIDEBAR ------------------------------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; position: relative; z-index: 1; }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px 14px 14px;
  background: var(--surface);
  border-right: var(--border-w) solid var(--line);
  overflow-y: auto;
  z-index: 30;
}
html[data-theme='brutal'] .sidebar { border-right-width: 3px; border-color: var(--line-strong); }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 10px; text-decoration: none; color: var(--ink); }
.sidebar-brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: var(--radius-xs); display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary);
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 800;
  border: var(--border-w) solid var(--line);
  box-shadow: var(--btn-shadow);
  flex: 0 0 auto;
}
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.brand-text small { display: block; font-family: var(--font-body); font-size: 0.63rem; letter-spacing: 0.7px; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.nav-group { margin-top: 6px; }
.nav-group-title {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); padding: 8px 10px 4px;
}
.sidebar nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: var(--radius-xs);
  color: var(--ink); font-weight: 600; font-size: 0.89rem;
  border: 2px solid transparent; text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.nav-item .ni { font-size: 1.02rem; width: 20px; text-align: center; flex: 0 0 20px; }
.nav-item:hover { background: var(--surface-2); text-decoration: none; }
.nav-item.active { background: var(--primary); color: var(--on-primary); border-color: var(--line); }
html[data-theme='clay'] .nav-item.active { box-shadow: var(--shadow-sm); }
html[data-theme='brutal'] .nav-item.active { border-color: var(--line-strong); box-shadow: var(--btn-shadow); }
.nav-item .lock-ico { margin-left: auto; font-size: 0.72rem; opacity: 0.7; }
.nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-grid; place-items: center;
  background: var(--coral); color: #fff; border-radius: 999px;
  font-size: 0.68rem; font-weight: 900; line-height: 1;
}
.nav-item.active .nav-badge { background: var(--on-primary); color: var(--primary); }
.nav-item.active .lock-ico { opacity: 0.95; }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }

/* pemilih tema */
.theme-switch { background: var(--surface-2); border: var(--border-w) solid var(--line); border-radius: var(--radius-sm); padding: 9px; }
html[data-theme='brutal'] .theme-switch { border-color: var(--line-strong); }
.theme-switch .ts-label { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); margin-bottom: 6px; }
.seg { display: flex; gap: 4px; background: var(--surface-3); padding: 3px; border-radius: 999px; }
html[data-theme='brutal'] .seg { border-radius: var(--radius-xs); border: 2px solid var(--line-strong); }
.seg button {
  flex: 1; border: none; background: transparent; color: var(--muted);
  padding: 6px 8px; border-radius: 999px; font-family: var(--font-body);
  font-size: 0.76rem; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  transition: all var(--transition);
}
html[data-theme='brutal'] .seg button { border-radius: var(--radius-xs); }
.seg button[aria-pressed='true'] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.side-user { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: var(--radius-sm); background: var(--surface-2); border: var(--border-w) solid var(--line); }
html[data-theme='brutal'] .side-user { border-color: var(--line-strong); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 0.82rem; flex: 0 0 auto;
  background: var(--sun); color: var(--on-sun);
  border: var(--border-w) solid var(--line);
}
html[data-theme='brutal'] .avatar { border-radius: var(--radius-xs); }
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }

/* area utama */
.main { display: flex; flex-direction: column; min-width: 0; }
.appbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 22px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: var(--border-w) solid var(--line);
}
html[data-theme='brutal'] .appbar { background: var(--bg); backdrop-filter: none; border-bottom-color: var(--line-strong); }
.appbar .crumb { font-size: 0.84rem; font-weight: 700; color: var(--muted); }
.appbar .spacer { flex: 1; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--radius-xs);
  background: var(--surface); border: var(--border-w) solid var(--line); color: var(--ink);
  cursor: pointer; font-size: 1rem; box-shadow: var(--btn-shadow);
}
html[data-theme='brutal'] .icon-btn { border-color: var(--line-strong); }
.icon-btn:hover { transform: translate(-1px, -1px); }
.hamburger { display: none; }
.content { padding: 24px 22px 60px; max-width: 1280px; width: 100%; margin: 0 auto; min-width: 0; }

.sidebar-overlay { display: none; }

/* ------------------------------- PUBLIC TOPBAR ------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: var(--border-w) solid var(--line);
}
html[data-theme='brutal'] .topbar { background: var(--bg); backdrop-filter: none; border-bottom-color: var(--line-strong); }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 11px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav-links { display: flex; gap: 4px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  padding: 7px 12px; border-radius: var(--radius-xs); color: var(--ink);
  font-weight: 700; font-size: 0.87rem; text-decoration: none; border: 2px solid transparent;
}
.nav-links a:hover { background: var(--surface-2); text-decoration: none; }
.public-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* ------------------------------- FORMS ------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.field > label, .label { font-weight: 700; font-size: 0.85rem; }
.field .hint { font-size: 0.76rem; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-xs);
  border: var(--border-w) solid var(--line-strong);
  background: var(--surface-2); color: var(--ink);
  font-family: var(--font-body); font-size: 0.93rem;
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent);
  background: var(--surface);
}
.textarea { resize: vertical; min-height: 130px; line-height: 1.65; }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E6589' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 16px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 0.87rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--primary); }
.range { width: 100%; accent-color: var(--primary); }
fieldset { border: var(--border-w) dashed var(--line-strong); border-radius: var(--radius-sm); padding: 14px; margin: 0 0 15px; }
legend { font-weight: 800; font-size: 0.8rem; padding: 0 6px; text-transform: uppercase; letter-spacing: 0.5px; }

.dropzone {
  border: var(--border-w) dashed var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); padding: 22px 16px; text-align: center; cursor: pointer;
  transition: all var(--transition);
}
.dropzone:hover, .dropzone.drag { background: var(--primary-soft); border-color: var(--primary); }
.dropzone strong { display: block; font-size: 0.95rem; }
.dropzone .dz-icon { font-size: 1.7rem; }
.file-meta { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; background: var(--mint-soft); color: var(--on-mint); padding: 8px 12px; border-radius: var(--radius-xs); margin-top: 10px; }
.source-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.source-tabs button {
  padding: 7px 13px; border-radius: 999px; border: var(--border-w) solid var(--line-strong);
  background: var(--surface-2); color: var(--ink); font-weight: 800; font-size: 0.79rem; cursor: pointer;
  font-family: var(--font-body);
}
html[data-theme='brutal'] .source-tabs button { border-radius: var(--radius-xs); }
.source-tabs button[aria-selected='true'] { background: var(--primary); color: var(--on-primary); }
.source-pane { display: none; }
.source-pane.active { display: block; animation: fade 0.18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ------------------------------- ALERTS ------------------------------- */
.alert {
  border-radius: var(--radius-sm); padding: 12px 15px; font-size: 0.89rem;
  border: var(--border-w) solid var(--line-strong); display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 16px; background: var(--surface);
}
.alert .ico { font-size: 1.05rem; line-height: 1.4; }
.alert-ok { background: var(--mint-soft); color: var(--on-mint); }
.alert-err { background: var(--coral-soft); color: var(--on-coral); }
.alert-info { background: var(--sky-soft); color: var(--on-sky); }
.alert-warn { background: var(--sun-soft); color: var(--on-sun); }
html[data-theme='brutal'] .alert { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }

/* ------------------------------- STATS / PROGRESS ------------------------------- */
.stat {
  background: var(--surface); border: var(--border-w) solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
html[data-theme='brutal'] .stat { border-color: var(--line-strong); }
.stat .k { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.stat .v { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; line-height: 1.15; margin-top: 2px; }
.progress { height: 9px; border-radius: 999px; background: var(--surface-3); overflow: hidden; border: 1px solid var(--line); }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--primary); transition: width 0.4s ease; }
.progress.mint > span { background: var(--mint); }
.progress.coral > span { background: var(--coral); }
.progress.sun > span { background: var(--sun); }
.progress.sky > span { background: var(--sky); }

/* ------------------------------- RESULT BLOCKS ------------------------------- */
.result {
  background: var(--surface); border: var(--border-w) solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}
html[data-theme='brutal'] .result { border-color: var(--line-strong); }
.result h3 { display: flex; align-items: center; gap: 8px; }
.point-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.point-list li { position: relative; padding-left: 24px; font-size: 0.93rem; }
.point-list li::before { content: '◆'; position: absolute; left: 2px; top: 0; color: var(--primary); font-size: 0.72rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.check-list li { position: relative; padding-left: 24px; font-size: 0.9rem; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--mint); font-weight: 900; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 5px 14px; font-size: 0.89rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }

/* blok penanda jawaban (Tanya Materi) */
.answer-hero {
  background: var(--primary-soft); border-left: 6px solid var(--primary);
  border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 18px;
}
html[data-theme='brutal'] .answer-hero { border: 3px solid var(--line-strong); border-left-width: 8px; }
.answer-hero .q { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }
.answer-hero .a { font-size: 1.02rem; font-weight: 700; }
.point-card {
  border: var(--border-w) solid var(--line-strong); border-left-width: 6px; border-radius: var(--radius-sm);
  padding: 12px 15px; background: var(--surface-2);
}
.point-card.detail { margin-left: 18px; border-left-style: dashed; background: var(--surface); }
.point-card .pc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.point-card .pc-label {
  font-size: 0.68rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.7px;
  background: var(--ink); color: var(--bg); padding: 2px 8px; border-radius: 999px;
}
.point-card .pc-text { font-size: 0.94rem; }
.point-card .pc-src { font-size: 0.71rem; color: var(--muted); }
mark.kk, .hl { background: color-mix(in srgb, var(--sun) 55%, transparent); color: inherit; padding: 0 3px; border-radius: 3px; font-weight: 700; }
.kk-underline { text-decoration: underline; text-decoration-thickness: 2.5px; text-underline-offset: 3px; text-decoration-color: var(--primary); font-weight: 700; }
.kk-key { color: var(--primary-dark); font-weight: 800; }
.kk-def { background: var(--mint-soft); border-bottom: 2px solid var(--mint); font-weight: 700; padding: 0 2px; }
.term-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.74rem; color: var(--muted); margin-top: 10px; }
.term-legend span { display: inline-flex; align-items: center; gap: 5px; }

/* ------------------------------- TABLES ------------------------------- */
/* anak grid/flex wajib boleh menyusut, kalau tidak tabel lebar mendorong layout (overflow di HP) */
.grid > *, .stack > * { min-width: 0; }
.table-wrap { overflow-x: auto; max-width: 100%; border-radius: var(--radius-sm); border: var(--border-w) solid var(--line-strong); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); background: var(--surface-2); font-weight: 800; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: var(--surface-2); }
.cmp-table td, .cmp-table th { border: 1px solid var(--line); }
.cmp-table .yes { color: var(--mint); font-weight: 900; }
.cmp-table .no { color: var(--coral); font-weight: 900; }

/* ------------------------------- TABS / ACCORDION ------------------------------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a, .tabs button {
  padding: 7px 14px; border-radius: 999px; border: var(--border-w) solid var(--line-strong);
  background: var(--surface); font-weight: 700; font-size: 0.84rem; cursor: pointer; color: var(--ink);
  font-family: var(--font-body);
}
html[data-theme='brutal'] .tabs a, html[data-theme='brutal'] .tabs button { border-radius: var(--radius-xs); }
.tabs a.active, .tabs button.active { background: var(--ink); color: var(--bg); }
details.faq {
  border: var(--border-w) solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); padding: 4px 16px; margin-bottom: 10px;
}
details.faq summary { cursor: pointer; font-weight: 800; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-size: 1.2rem; color: var(--primary); font-weight: 900; }
details.faq[open] summary::after { content: '–'; }
details.faq p { font-size: 0.9rem; color: var(--muted); margin: 0 0 14px; }
details > summary { cursor: pointer; font-weight: 700; }
details[open] > summary { margin-bottom: 8px; }

/* ------------------------------- CALENDAR ------------------------------- */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { font-size: 0.7rem; font-weight: 900; text-transform: uppercase; color: var(--muted); text-align: center; padding: 4px 0; }
.cal-cell { min-height: 82px; border-radius: var(--radius-xs); background: var(--surface-2); border: var(--border-w) solid var(--line); padding: 6px; font-size: 0.76rem; }
.cal-cell.out { opacity: 0.35; }
.cal-cell.today { border-color: var(--primary); background: var(--primary-soft); }
.cal-cell .d { font-weight: 900; font-size: 0.78rem; }
.cal-task { display: block; background: var(--coral-soft); color: var(--on-coral); border-radius: 5px; padding: 2px 5px; margin-top: 3px; font-size: 0.67rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-task.done { background: var(--mint-soft); color: var(--on-mint); text-decoration: line-through; }
.cal-task.tinggi { background: var(--coral); color: var(--on-coral); }

/* ------------------------------- OUTLINE / RESULT TREES ------------------------------- */
.outline-tree { display: flex; flex-direction: column; gap: 10px; }
.outline-node { border-left: 4px solid var(--line-strong); padding: 10px 0 10px 14px; }
.outline-node.level-1 { border-left: 6px solid var(--primary); }
.outline-node.level-2 { border-left: 4px solid var(--sun); margin-left: 12px; }
.outline-node.level-3 { margin-left: 22px; }
.outline-node h4 { margin: 0 0 6px; font-size: 0.98rem; }
.outline-node.level-1 > h4 { font-size: 1.08rem; }
.outline-word { font-size: 0.7rem; background: var(--sun-soft); color: var(--on-sun); border-radius: 999px; padding: 2px 8px; font-weight: 800; }

/* ------------------------------- SLIDES ------------------------------- */
.slide-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.slide-frame {
  aspect-ratio: 16 / 9; border-radius: var(--radius-sm);
  padding: 20px; display: flex; flex-direction: column;
  background: var(--surface-3); border: var(--border-w) solid var(--line-strong);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.slide-frame::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--primary);
}
.slide-frame.title { background: var(--primary); color: var(--on-primary); }
.slide-frame.title::before { background: var(--sun); }
.slide-frame.agenda::before, .slide-frame.section::before { background: var(--sun); }
.slide-frame.closing { background: var(--mint-soft); }
.slide-frame.closing::before { background: var(--mint); }
.slide-frame .sk-kicker { font-size: 0.65rem; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; opacity: 0.75; }
.slide-frame h4 { font-size: 1.02rem; margin: 4px 0 6px; color: inherit; }
.slide-frame .sk-headline { font-size: 0.95rem; font-weight: 800; line-height: 1.3; }
.slide-frame ul { margin: 8px 0 0; padding-left: 16px; font-size: 0.79rem; }
.slide-frame li { margin-bottom: 4px; }
.slide-frame .sk-num { position: absolute; right: 10px; bottom: 8px; font-size: 0.66rem; opacity: 0.6; font-weight: 800; }
.slide-frame.title h4, .slide-frame.title .sk-kicker { color: var(--on-primary); }
.slide-note { font-size: 0.76rem; color: var(--muted); margin-top: 7px; font-style: italic; }

/* ------------------------------- MIND MAP ------------------------------- */
.mindmap-box { overflow-x: auto; background: var(--surface); border: var(--border-w) solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px; }
.mindmap-box svg { display: block; margin: 0 auto; min-width: 680px; }

.mm-toolbar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 14px 0 10px; }
.mm-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mm-zoom-label { font-size: 0.72rem; font-weight: 800; color: var(--muted); min-width: 44px; text-align: center; }
.mm-canvas {
  position: relative; overflow: hidden; height: min(72vh, 780px); min-height: 420px;
  background: #FBFAFF; border: var(--border-w) solid var(--line-strong);
  border-radius: var(--radius-sm); cursor: grab; touch-action: none;
}
html[data-mode='dark'] .mm-canvas { background: #171130; }
.mm-canvas.dragging { cursor: grabbing; }
.mm-canvas:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.mm-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.mm-stage svg { display: block; max-width: none; height: auto; }
.mm-hint {
  position: absolute; right: 10px; bottom: 8px; background: rgba(255, 255, 255, 0.9);
  color: #6E6589; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(36, 27, 61, 0.1);
  pointer-events: none;
}
html[data-mode='dark'] .mm-hint { background: rgba(30, 24, 56, 0.9); color: #C9C2E4; border-color: rgba(255, 255, 255, 0.12); }
.mm-canvas:fullscreen { height: 100vh; width: 100vw; border-radius: 0; background: #FBFAFF; }
.mm-edit-block { border-top: 1px dashed var(--line-strong); padding-top: 12px; margin-top: 12px; }
.mm-dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; flex: none; }
.mm-head h2 { overflow-wrap: anywhere; }

@media print {
  .mm-canvas { height: auto !important; min-height: 0 !important; overflow: visible !important; border: 0 !important; background: #fff !important; }
  .mm-stage { position: static !important; transform: none !important; }
  .mm-stage svg { width: 100% !important; height: auto !important; }
  .mm-hint { display: none !important; }
  .mindmap-result .alert, .mindmap-result .tag-row { display: none !important; }
}

/* ------------------------------- PRICING ------------------------------- */
.plan {
  display: flex; flex-direction: column; gap: 8px; padding: 22px;
  border-radius: var(--radius); background: var(--surface);
  border: var(--border-w) solid var(--line); box-shadow: var(--shadow); position: relative;
}
html[data-theme='brutal'] .plan { border-color: var(--line-strong); }
.plan.current { border-color: var(--primary); border-width: 3px; }
.plan .price { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; line-height: 1.05; }
.plan .price span { font-size: 0.8rem; font-weight: 600; color: var(--muted); font-family: var(--font-body); }
.plan ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 7px; font-size: 0.85rem; }
.plan ul li { padding-left: 20px; position: relative; }
.plan ul li::before { content: '✓'; position: absolute; left: 0; color: var(--mint); font-weight: 900; }
.plan.premium { background: linear-gradient(150deg, var(--primary-soft), var(--surface)); }

/* ------------------------------- AUTH ------------------------------- */
.auth-wrap { max-width: 460px; margin: 42px auto 70px; padding: 0 18px; position: relative; z-index: 1; }
.auth-card { background: var(--surface); border-radius: var(--radius); padding: 28px; border: var(--border-w) solid var(--line); box-shadow: var(--shadow); }
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 16px; border-radius: var(--radius-xs);
  background: var(--surface); color: var(--ink); border: var(--border-w) solid var(--line-strong);
  font-weight: 700; font-size: 0.92rem; cursor: pointer; text-decoration: none; box-shadow: var(--btn-shadow);
  font-family: var(--font-body);
}
.google-btn:hover { text-decoration: none; transform: translate(-1px, -1px); }
.divider-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.76rem; margin: 14px 0; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }

/* ------------------------------- FOOTER ------------------------------- */
.footer { border-top: var(--border-w) solid var(--line); margin-top: 50px; padding: 26px 0 40px; font-size: 0.85rem; color: var(--muted); position: relative; z-index: 1; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.footer a { color: var(--muted); }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }

/* ------------------------------- LANDING ------------------------------- */
.hero { padding: 46px 0 18px; }
.hero-grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px; margin-bottom: 14px;
  border: var(--border-w) solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1px;
  box-shadow: var(--shadow-sm); max-width: 100%;
}
html[data-theme='brutal'] .hero-badge { border-radius: var(--radius-xs); }
.hero-badge .hb-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto;
  background: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 25%, transparent);
  animation: hbPulse 2.4s ease-in-out infinite;
}
@keyframes hbPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@media (max-width: 520px) { .hero-badge { font-size: 0.72rem; padding: 7px 12px; line-height: 1.35; align-items: flex-start; } .hero-badge .hb-dot { margin-top: 4px; } }

.hero .lead { font-size: 1.03rem; color: var(--muted); max-width: 560px; }
.hero-note { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 0.8rem; color: var(--muted); }
.hero-art { position: relative; }
.mock {
  border: var(--border-w) solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); padding: 14px; transform: rotate(-1.2deg);
}
html[data-theme='brutal'] .mock { transform: rotate(-1.6deg); }
.mock-bar { display: flex; gap: 5px; margin-bottom: 10px; }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock-row { display: flex; gap: 8px; align-items: center; padding: 7px 0; }
.mock-line { height: 8px; border-radius: 4px; background: var(--surface-3); }
.mock-card { background: var(--primary-soft); border-radius: var(--radius-xs); padding: 10px; margin-bottom: 8px; border: 1px solid var(--line); }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 22px; }
.stat-strip .s { background: var(--surface); border: var(--border-w) solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
html[data-theme='brutal'] .stat-strip .s { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.stat-strip .s b { font-family: var(--font-display); font-size: 1.25rem; display: block; }
.feature-card {
  display: flex; flex-direction: column; gap: 4px; padding: 18px;
  background: var(--surface); border: var(--border-w) solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
html[data-theme='brutal'] .feature-card { border-color: var(--line-strong); }
.feature-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); text-decoration: none; }
.feature-icon { width: 42px; height: 42px; border-radius: var(--radius-xs); display: grid; place-items: center; font-size: 1.2rem; background: var(--surface-3); border: 1px solid var(--line); margin-bottom: 6px; }
.testi { background: var(--surface); border: var(--border-w) solid var(--line); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; }
html[data-theme='brutal'] .testi { border-color: var(--line-strong); }
.testi .stars { color: var(--sun); font-size: 0.85rem; letter-spacing: 2px; }
.testi .who { display: flex; align-items: center; gap: 8px; }
.testi .who b { font-size: 0.85rem; }
.testi .who span { font-size: 0.74rem; color: var(--muted); }
.countdown { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.cd-box { min-width: 62px; padding: 8px 6px; text-align: center; background: var(--surface); border: var(--border-w) solid var(--line-strong); border-radius: var(--radius-xs); }
.cd-box b { display: block; font-family: var(--font-display); font-size: 1.3rem; line-height: 1; }
.cd-box span { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); font-weight: 800; }

/* notifikasi social proof */
#social-proof { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 300px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.sp-toast {
  pointer-events: auto; display: flex; gap: 10px; align-items: flex-start;
  background: var(--surface); border: var(--border-w) solid var(--line-strong);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 10px 12px;
  font-size: 0.8rem; transform: translateY(14px); opacity: 0; transition: all 0.35s ease;
}
.sp-toast.show { transform: none; opacity: 1; }
.sp-toast .sp-ico { font-size: 1.1rem; }
.sp-toast b { display: block; font-size: 0.82rem; }
.sp-toast small { color: var(--muted); font-size: 0.71rem; }
#wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  background: #1FA855; color: #fff; border: var(--border-w) solid var(--line-strong);
  border-radius: 999px; padding: 11px 16px; font-weight: 800; font-size: 0.86rem;
  box-shadow: var(--shadow); text-decoration: none;
}
#wa-float:hover { text-decoration: none; transform: translateY(-2px); }

/* ------------------------- password + modal + action page ------------------------- */
.pass-wrap { position: relative; display: block; }
.pass-wrap .input { padding-right: 46px; }
.pass-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  border: none; background: transparent; color: var(--muted); cursor: pointer;
  border-radius: var(--radius-xs); transition: color var(--transition), background var(--transition);
}
.pass-eye:hover { color: var(--ink); background: var(--surface-3); }
.pass-eye.on { color: var(--primary); }

.kk-modal {
  position: fixed; inset: 0; z-index: 120; display: none;
  align-items: center; justify-content: center; padding: 16px;
  background: rgba(12, 8, 24, 0.55); backdrop-filter: blur(3px);
}
.kk-modal.open { display: flex; }

/* halaman aksi email (verifikasi / reset sandi) */
.action-wrap { max-width: 520px; margin: 40px auto 70px; padding: 0 18px; position: relative; z-index: 1; }
.action-card {
  background: linear-gradient(170deg, #2A1B52, #170F31);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px; padding: 30px 26px; text-align: center; color: #F4F0FF;
  box-shadow: 0 40px 80px -40px rgba(60, 20, 130, 0.9);
  position: relative; overflow: hidden;
}
.action-card::before {
  content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 90, 255, 0.55), transparent 65%);
  top: -150px; right: -120px;
}
.action-card::after {
  content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.35), transparent 65%);
  bottom: -160px; left: -120px;
}
.action-card > * { position: relative; }
.action-logo {
  width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.08); display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.action-logo img { width: 68px; height: 68px; object-fit: contain; border-radius: 16px; }
.action-card h1 { color: #fff; font-size: 1.45rem; margin: 0 0 6px; }
.action-card p { color: #C9BEE8; font-size: 0.92rem; }
.action-emoji { font-size: 2.4rem; display: block; margin-bottom: 4px; }
.action-card .btn-primary { background: linear-gradient(135deg, #8B5CF6, #6C4CF1); color: #fff; border-color: transparent; }
.action-card .btn-ghost { background: rgba(255, 255, 255, 0.08); color: #EDE7FF; border-color: rgba(255, 255, 255, 0.2); box-shadow: none; }
.action-note { font-size: 0.76rem; color: #A79FC6; margin-top: 14px; }
.action-field { text-align: left; margin-top: 14px; }
.action-field label { color: #EDE7FF; font-size: 0.82rem; font-weight: 700; display: block; margin-bottom: 5px; }
.action-field .input { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.action-field .input:focus { background: rgba(255, 255, 255, 0.16); border-color: #A78BFA; }
.action-field .input::placeholder { color: #A79FC6; }

/* ------------------------------- MISC ------------------------------- */
.empty { text-align: center; padding: 32px 18px; color: var(--muted); }
.empty .emoji { font-size: 2.2rem; display: block; margin-bottom: 6px; }
.spinner { width: 15px; height: 15px; border: 2.5px solid color-mix(in srgb, var(--on-primary) 45%, transparent); border-top-color: var(--on-primary); border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-loading .label { opacity: 0.75; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: var(--radius-xs);
  font-size: 0.86rem; font-weight: 700; z-index: 100; box-shadow: var(--shadow); max-width: 92vw;
}
.meter-row { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.meter-row .m-label { min-width: 96px; font-weight: 700; }
.meter-row .m-val { min-width: 62px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.locked-box {
  border: var(--border-w) dashed var(--line-strong); border-radius: var(--radius-sm);
  padding: 22px; text-align: center; background: var(--surface-2);
}
.print-only { display: none; }

.theme-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-opt {
  display: flex; flex-direction: column; gap: 2px; cursor: pointer;
  border: var(--border-w) solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 10px; background: var(--surface-2); position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.theme-opt input { position: absolute; opacity: 0; pointer-events: none; }
.theme-opt.sel { outline: 3px solid var(--primary); outline-offset: 1px; background: var(--surface); }
.theme-opt strong { font-size: .86rem; }
.tp-prev { display: block; height: 34px; border-radius: 8px; margin-bottom: 6px; border: 1px solid var(--line); }
.tp-prev.clay { background: linear-gradient(135deg, #EDE7FF, #FFF3E6); border-radius: 14px; }
.tp-prev.brutal { background: linear-gradient(135deg, #FFD400, #FF3D68); border-radius: 3px; box-shadow: 3px 3px 0 #111; }
.tp-prev.light { background: linear-gradient(135deg, #FFFFFF, #EFE9FF); }
.tp-prev.dark { background: linear-gradient(135deg, #221B3B, #15112A); }

/* ------------------------------- RESPONSIVE ------------------------------- */
@media (max-width: 1080px) {
  :root { --sidebar-w: 236px; }
  .hero-grid { gap: 26px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero-art { order: -1; max-width: 440px; margin: 0 auto; }
  .hero { padding-top: 28px; }
  .grid-2, .grid-3, .grid-4 { gap: 14px; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(84vw, 300px); height: 100dvh;
    transform: translateX(-102%); transition: transform 0.24s ease;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0);
    z-index: 80;
  }
  .sidebar.open { transform: none; box-shadow: 24px 0 60px -30px rgba(0, 0, 0, 0.5); }
  .sidebar-overlay.open { display: block; position: fixed; inset: 0; background: rgba(12, 8, 24, 0.45); z-index: 70; }
  .hamburger { display: grid; }
  .content { padding: 18px 14px 90px; }
  .appbar { padding: 9px 14px; }
  .appbar .crumb { display: none; }
  .cal-cell { min-height: 62px; padding: 4px; font-size: 0.7rem; }
  .kv { grid-template-columns: 1fr; gap: 1px; }
  .kv dt { margin-top: 6px; }
  .card { padding: 16px; }
  .result { padding: 16px; }
  .slide-grid { grid-template-columns: 1fr; }
  .plan { padding: 18px; }
  #social-proof { left: 10px; right: 10px; bottom: 74px; max-width: none; }
  #wa-float { bottom: 12px; right: 12px; padding: 10px 14px; font-size: 0.8rem; }
}
@media (max-width: 520px) {
  h1 { font-size: 1.6rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .btn { padding: 10px 14px; font-size: 0.88rem; }
  .topbar-inner { padding: 9px 12px; gap: 8px; }
  .nav-links a { font-size: 0.8rem; padding: 6px 9px; }
  .card { border-radius: var(--radius-sm); }
}

/* ------------------------------- PRINT ------------------------------- */
@media print {
  body { background: #fff !important; color: #000 !important; }
  body::before, body::after { display: none !important; }
  .sidebar, .appbar, .topbar, .footer, .no-print, .btn, #wa-float, #social-proof, .theme-switch, .nav-links { display: none !important; }
  .shell { display: block; }
  .content { padding: 0 !important; max-width: 100% !important; }
  .card, .result { border: none !important; box-shadow: none !important; padding: 0 !important; background: #fff !important; }
  .print-only { display: block; }
  a { color: #000 !important; text-decoration: none !important; }
  h1, h2, h3 { page-break-after: avoid; }
  .slide-frame { page-break-inside: avoid; border: 1px solid #999 !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --------------------------- RESEARCH STUDIO (skripsi) --------------------------- */
.studio { display: grid; grid-template-columns: 246px minmax(0, 1fr); gap: 20px; align-items: start; }
.studio-rail {
  position: sticky; top: 12px; display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); border: var(--border-w) solid var(--line);
  border-radius: var(--radius-sm); padding: 8px; box-shadow: var(--shadow-sm);
}
.studio-step {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px;
  border-radius: var(--radius-xs); color: var(--ink); text-decoration: none;
  font-size: 0.8rem; font-weight: 700; transition: background var(--transition);
}
.studio-step:hover { background: var(--surface-2); }
.studio-step.active { background: var(--primary-soft); color: var(--primary-dark); }
.ss-ico { font-size: 0.95rem; }
.ss-dot {
  margin-left: auto; width: 17px; height: 17px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); font-size: 0.6rem;
  display: grid; place-items: center; color: transparent; flex: none;
}
.ss-dot.ok { background: var(--mint); border-color: var(--mint); color: #fff; }
.studio-main { min-width: 0; }
.studio-main table.data { min-width: 640px; }
@media (max-width: 960px) {
  .studio { grid-template-columns: 1fr; gap: 12px; }
  .studio-rail { position: static; flex-direction: row; overflow-x: auto; padding: 6px; gap: 2px; }
  .studio-step { white-space: nowrap; padding: 8px 10px; font-size: 0.75rem; }
  .ss-dot { display: none; }
  .studio-main table.data { min-width: 560px; }
}

/* --------------------------- DEEP-DIVE WORKSPACE --------------------------- */
.dd-workspace { display: grid; grid-template-columns: 306px minmax(0, 1fr); gap: 18px; align-items: start; }
.dd-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 12px; }
.dd-main { min-width: 0; }
.dd-doc { padding: 9px 10px; border-radius: var(--radius-xs); background: var(--surface-2); border: 1px solid var(--line); }
.dd-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
.dd-action {
  display: flex; align-items: center; gap: 6px; width: 100%; padding: 8px 9px;
  border-radius: var(--radius-xs); border: 1.5px solid var(--line); background: var(--surface);
  font-family: inherit; font-size: 0.71rem; font-weight: 700; color: var(--ink);
  cursor: pointer; text-align: left; line-height: 1.25; transition: var(--transition);
}
.dd-action:hover { border-color: var(--primary); background: var(--primary-soft); }
.dd-chat { max-height: none; display: flex; flex-direction: column; gap: 14px; }
.dd-q { align-self: flex-end; max-width: 88%; background: var(--primary-soft); border-radius: 16px 16px 4px 16px; padding: 10px 13px; }
.dd-a { background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 12px 14px; }
.dd-answer-title { font-weight: 800; font-size: 0.9rem; margin-bottom: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dd-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 10px 12px; }
.dd-section-head { font-size: 0.74rem; font-weight: 800; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; }
.dd-section.critical, .dd-section.risk, .dd-section.contradiction { border-color: rgba(255, 107, 74, 0.4); background: var(--coral-soft); }
.dd-section.interpretation, .dd-section.external { border-style: dashed; border-color: var(--line-strong); }
.dd-body { font-size: 0.85rem; line-height: 1.55; }
.dd-list { margin: 4px 0 0; padding-left: 18px; font-size: 0.83rem; line-height: 1.5; }
.dd-list li { margin-bottom: 4px; }
.dd-flag { margin-top: 6px; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.dd-refs { margin-top: 10px; }
.dd-refs summary { font-size: 0.74rem; font-weight: 800; cursor: pointer; color: var(--primary-dark); }
.dd-ref { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 8px 10px; }
.dd-msg-tools { gap: 6px; margin-top: 8px; }
.btn-xs { padding: 4px 9px; font-size: 0.68rem; border-radius: 999px; }
.dd-followups { margin-top: 10px; border-top: 1px dashed var(--line-strong); padding-top: 8px; }
.dd-chip {
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 5px 11px; font-family: inherit; font-size: 0.7rem; font-weight: 700;
  cursor: pointer; text-align: left;
}
.dd-chip:hover { border-color: var(--primary); color: var(--primary-dark); }
.dd-composer { margin-top: 14px; }
.dd-composer-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.dd-session {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-xs); background: var(--surface-2);
  border: 1px solid var(--line); color: inherit; text-decoration: none;
}
.dd-session:hover { border-color: var(--primary); }
.dd-head { margin-bottom: 14px; }
.dd-answer-plain { white-space: pre-wrap; font-size: 0.86rem; line-height: 1.55; }
@media (max-width: 1080px) {
  .dd-workspace { grid-template-columns: 1fr; }
  .dd-side { position: static; }
  .dd-quick { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 620px) {
  .dd-quick { grid-template-columns: 1fr 1fr; }
  .dd-q { max-width: 100%; }
}

/* --------------------------- PROMO · TESTIMONI · POPUP --------------------------- */
.promo-banner { background: linear-gradient(135deg, var(--primary-soft), var(--sun-soft)); text-align: center; }
.testimonial { display: flex; flex-direction: column; }
.testimonial .stars { color: #FFB800; letter-spacing: 2px; font-size: 1rem; }
.testimonial p { flex: 1; }
.testimonial .avatar { width: 34px; height: 34px; font-size: 0.8rem; }
.popup-close { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; font-size: 0.8rem; }
.kk-modal-card { position: relative; }
