@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* =========================================================
   1. ROOT, THEME, DAN RESET
========================================================= */

:root {
  color-scheme: light;

  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-2: #f1f3fa;

  --text: #24213a;
  --muted: #77758b;
  --line: #e9e8f1;

  --primary: #7435e8;
  --primary-2: #4d55ee;
  --primary-soft: #f0eaff;

  --blue-soft: #e9f3ff;
  --pink-soft: #fff0f7;
  --green-soft: #e8f8ef;

  --danger: #d94f68;
  --warning: #d99a35;
  --success: #279b69;

  --shadow: 0 12px 36px rgba(45, 35, 90, .07);

  --radius: 18px;
  --topbar-height: 72px;
  --sidebar-width: 238px;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #11111a;
  --surface: #1b1b28;
  --surface-2: #252536;

  --text: #f4f2ff;
  --muted: #aaa7c0;
  --line: #333346;

  --primary: #a77aff;
  --primary-2: #7484ff;
  --primary-soft: #302346;

  --blue-soft: #202f47;
  --pink-soft: #3b263b;
  --green-soft: #1d3a32;

  --danger: #ff8296;
  --warning: #f1bd68;
  --success: #56c995;

  --shadow: 0 14px 35px rgba(0, 0, 0, .22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  transition: background .2s, color .2s;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary-soft);
  outline-offset: 3px;
}

/* =========================================================
   2. HEADER DAN NAVIGASI ATAS
========================================================= */

.topbar {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 5.2%;

  background: var(--surface);
  border-bottom: 1px solid var(--line);

  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;

  flex-shrink: 0;

  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.7px;
}

.brand-mark {
  width: 32px;
  height: 32px;

  flex-shrink: 0;

  border-radius: 11px;

  display: inline-grid;
  place-items: center;

  background: linear-gradient(135deg, #a13cf2, #5348ea);
  color: #ffffff;

  box-shadow: 0 7px 18px #783ee544;
}

.brand-accent {
  color: var(--primary);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.topbar-actions a {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s;
}

.topbar-actions a:hover,
.topbar-actions a[aria-current="page"] {
  color: var(--primary);
}

.user-chip {
  font-weight: 600;
  color: var(--muted);
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  width: 38px;
  height: 38px;

  flex-shrink: 0;

  border: 1px solid var(--line);
  border-radius: 12px;

  background: var(--surface-2);
  color: var(--primary);

  font-size: 19px;
  transition: .2s;
}

.icon-btn:hover {
  background: var(--primary-soft);
  transform: translateY(-1px);
}

/* =========================================================
   3. BUTTON DAN LINK
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 40px;

  border: 0;
  border-radius: 12px;

  padding: 11px 18px;

  font-weight: 700;
  text-align: center;

  background: var(--surface-2);
  color: var(--text);

  transition:
    transform .15s,
    box-shadow .15s,
    background .15s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(110deg, #a12df1, #5058ed);
  color: #ffffff;
  box-shadow: 0 8px 18px #6d3de42b;
}

.btn-primary:hover {
  box-shadow: 0 11px 24px #6d3de444;
}

.btn-outline {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.btn-soft {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-small {
  min-height: 34px;
  padding: 8px 13px;
  font-size: 12px;
}

.btn-large {
  min-height: 48px;
  padding: 14px 22px;
}

.btn-block {
  width: 100%;
  margin-top: 17px;
}

.text-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
}

.text-link:hover {
  text-decoration: underline;
}

.muted {
  color: var(--muted);
}

/* =========================================================
   4. PUBLIC PAGE DAN HERO SECTION
========================================================= */

.public-main {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 5.2%;
}

.hero-section {
  min-height: 590px;

  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 50px;

  padding: 70px 0 65px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-block;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.55px;

  color: var(--primary);
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 690px;

  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -2.7px;

  margin: 19px 0 22px;
}

.hero-copy h1 span {
  display: block;
  color: var(--primary);
}

.hero-copy > p {
  max-width: 580px;

  font-size: 16px;
  line-height: 1.8;

  color: var(--muted);
}

.hero-copy h2 {
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -1.2px;
  margin: 12px 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 31px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-top: 31px;

  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  display: inline-block;

  width: 8px;
  height: 8px;

  flex-shrink: 0;

  border-radius: 50%;
  background: #3acb87;

  box-shadow: 0 0 0 4px #3acb871c;
}

/* =========================================================
   5. MOCK DASHBOARD
========================================================= */

.hero-visual {
  position: relative;

  min-width: 0;
  min-height: 430px;

  display: flex;
  justify-content: center;
  align-items: center;

  background: radial-gradient(
    circle at 50% 48%,
    #dbc9ff 0,
    transparent 58%
  );
}

.mock-dashboard {
  position: relative;

  width: min(100%, 430px);

  border: 9px solid #211f30;
  border-radius: 29px;

  padding: 20px;

  background: var(--surface);

  box-shadow: 0 30px 75px #4c3c7950;

  transform: rotate(2deg);
}

.mock-head {
  display: flex;
  align-items: center;
  gap: 9px;

  font-weight: 800;
}

.mock-pill {
  display: inline-block;

  margin-left: auto;

  border-radius: 9px;
  padding: 5px 8px;

  background: var(--primary-soft);
  color: var(--primary);

  font-size: 9px;
  font-weight: 700;
}

.mock-welcome {
  font-size: 22px;
  font-weight: 800;
  margin: 28px 0 4px;
}

.mock-welcome small {
  display: block;

  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.mock-stats div {
  min-width: 0;

  background: var(--surface-2);
  padding: 16px;
  border-radius: 13px;
}

.mock-stats b {
  display: block;
  font-size: 20px;
  color: var(--primary);
}

.mock-stats small {
  color: var(--muted);
  font-size: 10px;
}

.mock-progress {
  height: 8px;

  border-radius: 10px;
  background: var(--surface-2);

  margin: 18px 0;
  overflow: hidden;
}

.mock-progress span {
  display: block;
  width: 78%;
  height: 100%;

  background: linear-gradient(90deg, #a12df1, #5058ed);
}

.mock-item {
  padding: 12px;

  border-radius: 11px;
  background: var(--surface-2);

  font-size: 10px;
  margin-top: 8px;
}

.floating-card {
  position: absolute;
  z-index: 2;

  display: flex;
  align-items: center;
  gap: 11px;

  padding: 14px 17px;

  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;

  box-shadow: var(--shadow);
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card strong {
  font-size: 12px;
}

.floating-card small {
  font-size: 10px;
  color: var(--muted);
}

.mini-icon {
  width: 32px;
  height: 32px;

  border-radius: 10px;

  display: grid;
  place-items: center;

  background: var(--primary-soft);
  color: var(--primary);

  font-size: 17px;
}

.floating-top {
  top: 30px;
  right: 0;
}

.floating-bottom {
  bottom: 35px;
  left: -15px;
}

/* =========================================================
   6. FEATURE SECTION DAN FEATURE CARD
========================================================= */

.feature-section {
  padding: 54px 0 75px;
}

.section-heading {
  max-width: 670px;
  margin: 0 auto 32px;

  text-align: center;
}

.section-heading h2,
.role-section h2 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 10px 0;
}

.section-heading p,
.role-section p {
  color: var(--muted);
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.feature-card {
  min-width: 0;

  padding: 24px;

  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;

  box-shadow: var(--shadow);

  transition:
    transform .2s,
    border-color .2s,
    box-shadow .2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.feature-icon {
  width: 42px;
  height: 42px;

  border-radius: 13px;

  display: grid;
  place-items: center;

  background: var(--primary-soft);
  color: var(--primary);

  font-size: 20px;
  font-weight: 700;
}

.feature-card h3 {
  margin: 15px 0 7px;
  font-size: 16px;
}

.feature-card p {
  margin: 0 0 12px;

  color: var(--muted);
  line-height: 1.7;
  font-size: 12px;
}

.feature-card .text-link {
  margin-top: 9px;
}

.feature-card .mock-pill {
  margin-top: 12px;
  margin-left: 0;
}

/* =========================================================
   7. ROLE SECTION
========================================================= */

.role-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;

  padding: 35px;
  margin: 25px 0 70px;

  background: linear-gradient(
    110deg,
    var(--primary-soft),
    var(--blue-soft)
  );

  border-radius: 22px;
}

.role-section > div:first-child {
  max-width: 650px;
}

.role-section p {
  margin-bottom: 0;
}

.role-actions {
  min-width: 175px;
  display: grid;
  gap: 13px;
}

/* =========================================================
   8. FOOTER
========================================================= */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  border-top: 1px solid var(--line);

  padding: 24px 5.2%;

  color: var(--muted);
  font-size: 11px;

  background: var(--surface);
}

/* =========================================================
   9. APP SHELL DAN SIDEBAR
========================================================= */

.app-shell {
  display: flex;
  min-height: calc(100vh - var(--topbar-height));
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;

  display: flex;
  flex-direction: column;
  gap: 6px;

  padding: 25px 15px;

  background: var(--surface);
  border-right: 1px solid var(--line);
}

.sidebar-label {
  padding: 12px 12px 6px;

  color: var(--muted);

  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 11px 13px;

  border-radius: 11px;

  color: var(--muted);

  font-size: 12px;
  font-weight: 600;

  transition:
    background .15s,
    color .15s,
    box-shadow .15s;
}

.nav-link span {
  width: 18px;
  flex-shrink: 0;

  text-align: center;
  font-size: 15px;
}

.nav-link:hover,
.nav-link:focus {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Hanya menu dengan class active yang disorot */
.nav-link.active {
  background: linear-gradient(110deg, #9b32ee, #5157ed);
  color: #ffffff;

  box-shadow: 0 8px 18px #7642e42b;
}

.nav-link.active:hover,
.nav-link.active:focus {
  color: #ffffff;
  filter: brightness(1.05);
}

.sidebar-bottom {
  margin-top: auto;

  padding: 14px 10px;

  color: var(--muted);
  font-size: 10px;

  border-top: 1px solid var(--line);
}

.sidebar-bottom .status-dot {
  margin-right: 8px;
}

.main-content {
  width: calc(100% - var(--sidebar-width));
  max-width: 1500px;

  min-width: 0;

  margin: 0 auto;
  padding: 36px clamp(22px, 4vw, 58px) 60px;
}

/* =========================================================
   10. PAGE HEADING
========================================================= */

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 26px;
}

.page-heading h1 {
  font-size: 29px;
  letter-spacing: -.8px;
  margin: 6px 0 3px;
}

.page-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}

.wave {
  color: var(--primary);
}

.role-pill,
.status-label {
  display: inline-flex;
  align-items: center;

  background: var(--primary-soft);
  color: var(--primary);

  padding: 8px 12px;
  border-radius: 99px;

  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.status-label .status-dot {
  margin-right: 6px;
}

/* =========================================================
   11. ALERT DAN STATUS
========================================================= */

.alert {
  padding: 13px 16px;
  border-radius: 12px;
  margin: 0 0 18px;
  font-size: 12px;
}

.alert-success {
  background: var(--green-soft);
  color: var(--success);
}

.alert-error {
  background: #fff0f1;
  color: #bb3c50;
}

.alert-warning {
  background: #fff5de;
  color: #90641a;
}

.alert-info {
  background: var(--blue-soft);
  color: #4774a5;
}

html[data-theme="dark"] .alert-error {
  background: #45242e;
  color: #ff9aaa;
}

html[data-theme="dark"] .alert-warning {
  background: #44371f;
  color: #ffd18a;
}

html[data-theme="dark"] .alert-info {
  background: #20334b;
  color: #a8ceff;
}

/* =========================================================
   12. STATISTICS
========================================================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 13px;

  padding: 19px;

  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;

  box-shadow: var(--shadow);
}

.stat-icon {
  width: 42px;
  height: 42px;

  flex-shrink: 0;

  display: grid;
  place-items: center;

  border-radius: 13px;
  font-size: 19px;
}

.stat-icon.violet {
  background: var(--primary-soft);
  color: var(--primary);
}

.stat-icon.blue {
  background: var(--blue-soft);
  color: #548dd9;
}

.stat-icon.pink {
  background: var(--pink-soft);
  color: #d66aab;
}

.stat-icon.green {
  background: var(--green-soft);
  color: #35a978;
}

.stat-card small,
.stat-card strong {
  display: block;
}

.stat-card small {
  color: var(--muted);
  font-size: 10px;
}

.stat-card strong {
  margin-top: 2px;
  font-size: 19px;
  letter-spacing: -.3px;
}

/* =========================================================
   13. PANEL, ACTIVITY, DAN EVENT
========================================================= */

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 17px;
}

.panel {
  min-width: 0;

  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);

  padding: 22px;
  margin-bottom: 18px;

  box-shadow: var(--shadow);
}

.panel h2 {
  font-size: 17px;
  margin: 0 0 15px;
  letter-spacing: -.3px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  margin-bottom: 17px;
}

.panel-heading h2 {
  margin: 4px 0;
}

.panel-heading p {
  font-size: 11px;
  margin: 0;
}

.activity-row,
.event-row {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 13px 0;

  border-bottom: 1px solid var(--line);
}

.activity-row:last-child,
.event-row:last-child {
  border: 0;
}

.activity-bullet {
  font-size: 10px;
  color: var(--primary);
}

.activity-row b,
.activity-row small,
.event-row b,
.event-row small {
  display: block;
}

.activity-row b,
.event-row b {
  font-size: 12px;
}

.activity-row small,
.event-row small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}

.event-date {
  width: 42px;
  height: 46px;

  flex-shrink: 0;

  display: grid;
  place-content: center;
  text-align: center;

  background: var(--primary-soft);
  color: var(--primary);

  border-radius: 10px;
  font-weight: 800;
}

.event-date small {
  color: var(--primary);
  font-size: 9px;
  margin: 0;
}

.empty-state {
  padding: 25px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* =========================================================
   14. RECOMMENDATION
========================================================= */

.recommendation-panel {
  margin-top: 0;
}

.recommendation-spark {
  font-size: 27px;
  color: var(--primary);
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.recommendation-card {
  display: flex;
  flex-direction: column;
  gap: 5px;

  padding: 15px;

  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.recommendation-card span {
  align-self: flex-end;

  background: var(--primary-soft);
  color: var(--primary);

  font-size: 8px;
  border-radius: 7px;
  padding: 4px 6px;
}

.recommendation-card b {
  font-size: 12px;
}

.recommendation-card small {
  color: var(--muted);
  font-size: 10px;
}

/* =========================================================
   15. AUTHENTICATION DAN FORM REGISTER
========================================================= */

/* Layout umum halaman autentikasi */
.auth-wrap {
  width: 100%;
  max-width: 1060px;

  margin: 55px auto 80px;
  padding: 0 18px;
}

/* Layout dua kolom pada halaman Register */
.auth-wrap .login-layout {
  width: 100%;
  max-width: none;
  min-height: auto;

  margin: 0;

  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: 32px;
}

/* Bagian pengenalan Register */
.auth-wrap .hero-copy {
  padding: 25px 8px;
}

.auth-wrap .hero-copy h1 {
  font-size: clamp(30px, 3.5vw, 43px);
  line-height: 1.17;
  letter-spacing: -1.5px;
  margin: 14px 0;
}

.auth-wrap .hero-copy > p {
  font-size: 14px;
  line-height: 1.8;
}

/* Kartu fitur pada sisi pengenalan Register */
.auth-wrap .hero-copy .feature-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 22px;
}

.auth-wrap .hero-copy .feature-card {
  padding: 17px;
}

.auth-wrap .hero-copy .feature-icon {
  width: 35px;
  height: 35px;
  font-size: 17px;
}

.auth-wrap .hero-copy .feature-card h3 {
  font-size: 13px;
  margin: 9px 0 4px;
}

.auth-wrap .hero-copy .feature-card p {
  font-size: 11px;
}

/* Kartu formulir */
.form-card {
  width: 100%;
  min-width: 0;

  padding: 29px;

  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 21px;

  box-shadow: var(--shadow);
}

.form-card h2 {
  font-size: 22px;
  margin: 7px 0;
}

.form-card > p {
  font-size: 12px;
}

/* Judul formulir Register */
.form-card .section-heading {
  text-align: left;
  margin: 0 0 23px;
}

.form-card .section-heading h2 {
  font-size: 25px;
  letter-spacing: -.6px;
}

.form-card .section-heading p {
  margin: 5px 0 0;
  font-size: 11px;
}

/* Struktur form */
#registerForm {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}

.form-group {
  min-width: 0;

  display: grid;
  gap: 7px;
}

.form-group > label {
  display: block;

  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

/* Input dan select Register */
#registerForm .form-group input:not([type="checkbox"]),
#registerForm .form-group select {
  display: block;

  width: 100%;
  min-width: 0;
  min-height: 44px;

  padding: 11px 13px;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: var(--bg);
  color: var(--text);

  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

#registerForm .form-group input::placeholder {
  color: var(--muted);
  opacity: .8;
}

#registerForm .form-group input:focus,
#registerForm .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Checkbox persetujuan */
#registerForm .form-group:last-of-type {
  display: block;
}

#registerForm .form-group:last-of-type label {
  display: flex;
  align-items: flex-start;
  gap: 9px;

  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
}

#registerForm input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;

  margin: 2px 0 0;

  accent-color: var(--primary);
}

/* Tombol Register */
#registerForm > .btn {
  width: 100%;
  margin-top: 3px;
}

/* Catatan dan footer form */
.form-note {
  margin: 0;
  padding: 11px 12px;

  border-radius: 10px;

  background: var(--surface-2);
  color: var(--muted);

  font-size: 10px;
  line-height: 1.7;
}

.auth-footer {
  margin-top: 21px;
  padding-top: 15px;

  border-top: 1px solid var(--line);

  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

.auth-footer p {
  margin: 0;
}

.auth-footer a {
  color: var(--primary);
  font-weight: 800;
}

/* =========================================================
   16. FORM AUTHENTIKASI UMUM
========================================================= */

.auth-intro {
  padding: 32px 10px;
}

.auth-intro h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin: 13px 0;
}

.auth-intro p {
  color: var(--muted);
  line-height: 1.8;
}

.requirement-list {
  display: grid;
  gap: 12px;
  margin-top: 25px;
}

.requirement-list div {
  padding: 13px;

  border-left: 3px solid var(--primary);
  border-radius: 0 12px 12px 0;

  background: var(--surface);
}

.requirement-list b,
.requirement-list span {
  display: block;
}

.requirement-list b {
  font-size: 12px;
}

.requirement-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

/* Form vertikal */
.form-stack {
  display: grid;
  gap: 15px;
}

.form-stack label,
.panel label {
  display: grid;
  gap: 7px;

  font-size: 11px;
  font-weight: 700;
}

.form-stack input,
.form-stack select,
.form-stack textarea,
.panel input:not([type=radio]):not([type=checkbox]):not([type=file]),
.panel select,
.panel textarea,
.search-form input,
.chat-form input {
  width: 100%;
  min-width: 0;

  padding: 11px 12px;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: var(--bg);
  color: var(--text);

  outline: none;
}

.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus,
.panel input:focus,
.panel select:focus,
.panel textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

input[type=file] {
  max-width: 100%;
  font-size: 11px;
  color: var(--muted);
}

.form-bottom {
  margin: 18px 0 0;

  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

.form-bottom a {
  color: var(--primary);
  font-weight: 800;
}

.hidden {
  display: none !important;
}

.required-note {
  color: #d66a6a;
  font-size: 9px;
  font-weight: 500;
}

/* =========================================================
   17. LOGIN PAGE
========================================================= */

.login-layout {
  width: 100%;
  max-width: 990px;
  min-height: 570px;

  margin: 65px auto 80px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 30px;
}

.login-art {
  min-width: 0;
  min-height: 400px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 45px;

  border-radius: 25px;

  background: linear-gradient(145deg, #5e4be7, #9b39ed);
  color: #ffffff;
}

.big-mark {
  width: 60px;
  height: 60px;

  display: grid;
  place-items: center;

  background: #ffffff24;
  border-radius: 16px;

  box-shadow: none;
  font-size: 30px;
}

.login-art h1 {
  font-size: 37px;
  line-height: 1.15;
  letter-spacing: -1px;
}

.login-art h1 span {
  color: #e7caff;
}

.login-art p {
  color: #eee5ff;
  line-height: 1.8;
}

.login-card {
  padding: 35px;
}

.compact-form {
  margin-top: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.full-field {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.form-actions .btn {
  min-width: 140px;
}

/* =========================================================
   18. CONTENT MODULES: SEARCH DAN REPOSITORI
========================================================= */

.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.material-grid,
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.material-card,
.quiz-card {
  position: relative;
  min-width: 0;

  padding: 18px;

  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.material-file-icon,
.quiz-symbol {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  background: var(--primary-soft);
  color: var(--primary);

  border-radius: 12px;
  font-size: 21px;
}

.file-tag {
  position: absolute;
  top: 17px;
  right: 16px;

  padding: 4px 7px;

  background: var(--primary-soft);
  color: var(--primary);

  border-radius: 7px;

  font-size: 8px;
  font-weight: 800;
}

.material-card h3,
.quiz-card h3 {
  font-size: 14px;
  margin: 14px 0 5px;
}

.material-card p,
.quiz-card p {
  margin: 0 0 8px;

  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.material-card > small,
.quiz-card > small {
  color: var(--muted);
  font-size: 9px;
}

.quiz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 15px 0;
}

.quiz-meta span {
  padding: 5px 7px;

  background: var(--surface-2);
  color: var(--muted);

  border-radius: 7px;
  font-size: 9px;
}

/* =========================================================
   19. FORUM DISKUSI
========================================================= */

.new-discussion summary {
  display: inline-flex;
  list-style: none;
  cursor: pointer;
}

.new-discussion summary::-webkit-details-marker {
  display: none;
}

.discussion-list {
  margin-top: 20px;
}

.discussion-card {
  display: flex;
  gap: 13px;

  padding: 17px 0;

  border-top: 1px solid var(--line);
}

.avatar-circle {
  width: 38px;
  height: 38px;

  flex-shrink: 0;

  display: grid;
  place-items: center;

  background: var(--primary-soft);
  color: var(--primary);

  border-radius: 50%;
  font-weight: 800;
}

.discussion-content {
  flex: 1;
  min-width: 0;
}

.discussion-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.discussion-meta b {
  font-size: 11px;
}

.discussion-meta small {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
}

.category-tag {
  padding: 4px 7px;

  background: var(--green-soft);
  color: #269765;

  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
}

.discussion-content h3 {
  font-size: 14px;
  margin: 8px 0 4px;
}

.discussion-content p {
  margin: 0 0 5px;

  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.discussion-content > small {
  color: var(--muted);
  font-size: 9px;
}

/* =========================================================
   20. AI ASSISTANT / CHAT
========================================================= */

.chat-panel {
  width: 100%;
  max-width: 900px;

  margin: auto;
  padding: 20px;

  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;

  box-shadow: var(--shadow);
}

.chat-messages {
  min-height: 330px;
  max-height: 480px;

  display: flex;
  flex-direction: column;
  gap: 15px;

  padding: 10px 4px;

  overflow: auto;
}

.chat-bubble {
  max-width: 78%;
  padding: 15px 17px;

  border-radius: 15px;

  font-size: 12px;
  overflow-wrap: anywhere;
}

.chat-bubble p {
  margin: 4px 0;
}

.chat-bubble small {
  font-size: 9px;
  opacity: .7;
}

.chat-bubble.assistant {
  align-self: flex-start;
  background: var(--surface-2);
}

.chat-bubble.user {
  align-self: flex-end;

  background: linear-gradient(110deg, #9b32ee, #5157ed);
  color: #ffffff;
}

.chat-form {
  display: flex;
  gap: 9px;

  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.chat-form input {
  flex: 1;
}

.chat-disclaimer {
  display: block;
  margin-top: 12px;

  color: var(--muted);
  font-size: 9px;
}

/* =========================================================
   21. KUIS DAN EVALUASI
========================================================= */

.quiz-form {
  display: grid;
  gap: 14px;
}

.question-card h3 {
  margin: 10px 0 17px;
  font-size: 15px;
}

.question-top {
  display: flex;
  justify-content: space-between;

  color: var(--primary);

  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.question-top small {
  color: var(--muted);
  letter-spacing: 0;
}

.option-list {
  display: grid;
  gap: 9px;
}

.option-row {
  display: flex !important;
  align-items: center;
  gap: 10px !important;

  padding: 11px 13px;

  border: 1px solid var(--line);
  border-radius: 11px;

  font-weight: 500 !important;
  cursor: pointer;
}

.option-row:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.option-row input {
  accent-color: var(--primary);
}

/* Hasil kuis */
.result-hero {
  display: flex;
  align-items: center;
  gap: 30px;

  padding: 30px;
  margin-bottom: 18px;

  background: linear-gradient(
    120deg,
    var(--primary-soft),
    var(--blue-soft)
  );

  border-radius: 20px;
}

.score-ring {
  width: 135px;
  height: 135px;

  flex-shrink: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: var(--surface);
  border: 9px solid var(--primary);
  border-radius: 50%;
}

.score-ring strong {
  font-size: 29px;
}

.score-ring small {
  color: var(--muted);
  font-size: 9px;
}

.result-hero h2 {
  font-size: 22px;
  margin: 5px 0;
}

.result-hero p {
  color: var(--muted);
  font-size: 11px;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 14px 0;

  border-top: 1px solid var(--line);
}

.result-row b {
  font-size: 12px;
}

.result-row p {
  margin: 5px 0;
  font-size: 10px;
}

.result-mark {
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.result-mark.correct {
  color: #279b69;
}

.result-mark.incorrect {
  color: #d35a6c;
}

/* =========================================================
   22. SEMINAR
========================================================= */

.seminar-list {
  display: grid;
  gap: 15px;
}

.seminar-card {
  display: flex;
  align-items: flex-start;
  gap: 19px;

  padding: 20px;

  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;

  box-shadow: var(--shadow);
}

.seminar-date {
  width: 68px;
  height: 74px;

  flex-shrink: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: var(--primary-soft);
  color: var(--primary);

  border-radius: 14px;
}

.seminar-date b {
  font-size: 27px;
  line-height: 1;
}

.seminar-date span {
  font-size: 10px;
}

.seminar-info {
  min-width: 0;
}

.seminar-info h3 {
  margin: 7px 0;
  font-size: 16px;
}

.seminar-info p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 11px;
}

.seminar-info small {
  color: var(--muted);
  font-size: 10px;
}

/* =========================================================
   23. QUICK ACTIONS
========================================================= */

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-action {
  display: flex;
  flex-direction: column;
  gap: 5px;

  padding: 17px;

  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;

  transition: .2s;
}

.quick-action:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.quick-action > span {
  color: var(--primary);
  font-size: 21px;
}

.quick-action b {
  font-size: 12px;
}

.quick-action small {
  color: var(--muted);
  font-size: 9px;
}

/* =========================================================
   24. QUESTION EDITOR
========================================================= */

.question-editor {
  padding: 17px;
  margin-top: 13px;

  border: 1px solid var(--line);
  border-radius: 14px;
}

.question-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 12px;
  font-size: 12px;
}

.question-editor-head span {
  color: var(--muted);
  font-size: 9px;
}

.option-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;

  margin-top: 12px;
}

.option-editor {
  display: flex !important;
  align-items: center;
  gap: 8px !important;

  padding: 8px;

  background: var(--surface-2);
  border-radius: 10px;
}

.option-editor > span {
  width: 20px;
  color: var(--primary);
  font-weight: 800;
}

.option-editor input:not([type=radio]) {
  flex: 1;
  min-width: 0;
  padding: 8px !important;
}

.correct-choice {
  display: flex !important;
  align-items: center;
  gap: 4px !important;

  white-space: nowrap;
  font-size: 9px !important;
}

.correct-choice input {
  accent-color: var(--primary);
}

.points-field {
  max-width: 150px;
  margin-top: 12px;
}

/* =========================================================
   25. TABLE
========================================================= */

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 720px;

  border-collapse: collapse;

  font-size: 11px;
}

.data-table th {
  background: var(--surface-2);

  color: var(--muted);
  font-size: 9px;
  letter-spacing: .5px;

  text-align: left;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table td small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

/* =========================================================
   26. REVIEW CARD
========================================================= */

.review-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.review-field {
  padding: 13px;
  border-radius: 11px;
  background: var(--surface-2);
}

.review-field small,
.review-field b {
  display: block;
}

.review-field small {
  color: var(--muted);
  font-size: 9px;
}

.review-field b {
  margin-top: 4px;
  font-size: 12px;
}

.review-card .form-actions {
  grid-column: 1 / -1;
}

/* =========================================================
   27. DASHBOARD DROPDOWN FITUR
========================================================= */

.feature-dropdown-list {
  width: 100%;
  max-width: 850px;

  display: grid;
  gap: 13px;

  margin: 0 auto;
}

.feature-dropdown {
  overflow: hidden;

  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;

  box-shadow: var(--shadow);

  transition: border-color .2s, transform .2s;
}

.feature-dropdown:hover {
  border-color: var(--primary);
}

.feature-dropdown summary {
  display: flex;
  align-items: center;
  gap: 15px;

  padding: 17px 20px;

  list-style: none;
  cursor: pointer;
}

.feature-dropdown summary::-webkit-details-marker {
  display: none;
}

.dropdown-icon {
  width: 43px;
  height: 43px;

  flex-shrink: 0;

  display: grid;
  place-items: center;

  background: var(--primary-soft);
  color: var(--primary);

  border-radius: 12px;
  font-size: 21px;
}

.dropdown-title {
  flex: 1;
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dropdown-title strong {
  color: var(--text);
  font-size: 13px;
}

.dropdown-title small {
  color: var(--muted);
  font-size: 10px;
}

.dropdown-arrow {
  color: var(--primary);
  font-size: 23px;
  transition: transform .2s;
}

.feature-dropdown[open] .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  padding: 0 20px 20px 78px;
  border-top: 1px solid var(--line);

  animation: dropdownFade .2s ease;
}

.dropdown-content p {
  margin: 15px 0;

  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   28. RESPONSIVE: LAPTOP DAN TABLET
========================================================= */

@media (max-width: 1050px) {

  :root {
    --sidebar-width: 205px;
  }

  .main-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .material-grid,
  .quiz-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-section {
    gap: 25px;
  }

  .auth-wrap .login-layout {
    gap: 22px;
  }
}

/* =========================================================
   29. RESPONSIVE: TABLET KECIL DAN PONSEL
========================================================= */

@media (max-width: 760px) {

  :root {
    --topbar-height: 64px;
  }

  .topbar {
    height: 64px;
    padding: 0 18px;
    gap: 10px;
  }

  .brand {
    font-size: 18px;
  }

  .topbar-actions {
    max-width: 65%;
    gap: 9px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topbar-actions::-webkit-scrollbar {
    display: none;
  }

  .topbar-actions a {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 11px;
  }

  .user-chip {
    display: none;
  }

  /* Sidebar mobile */
  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 64px;
    z-index: 20;

    width: 100%;
    height: auto;

    flex-direction: row;
    align-items: center;

    gap: 4px;

    padding: 8px 12px;

    overflow-x: auto;
    overflow-y: hidden;

    border-right: 0;
    border-bottom: 1px solid var(--line);

    scrollbar-width: thin;
  }

  .sidebar-label,
  .sidebar-bottom {
    display: none;
  }

  .nav-link {
    flex-shrink: 0;
    white-space: nowrap;

    padding: 9px 11px;
    font-size: 10px;
  }

  .nav-link span {
    display: inline;
  }

  .main-content {
    width: 100%;
    max-width: none;

    padding: 25px 16px 45px;
  }

  .page-heading h1 {
    font-size: 24px;
  }

  /* Hero */
  .hero-section {
    min-height: auto;

    grid-template-columns: 1fr;
    gap: 35px;

    padding: 48px 0;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-visual {
    min-height: 370px;
  }

  .floating-top {
    right: -5px;
  }

  .floating-bottom {
    left: -5px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-section {
    display: block;
    padding: 25px;
  }

  .role-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 18px;
  }

  .public-main {
    padding: 0 18px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .recommendation-grid {
    grid-template-columns: 1fr;
  }

  /* Register mobile */
  .auth-wrap {
    margin: 25px auto 50px;
    padding: 0 16px;
  }

  .auth-wrap .login-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .auth-wrap .hero-copy {
    padding: 10px 0;
  }

  .auth-wrap .hero-copy h1 {
    font-size: 32px;
  }

  .auth-wrap .hero-copy .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-card {
    padding: 23px;
  }

  /* Login mobile */
  .login-layout {
    grid-template-columns: 1fr;
    margin: 25px 16px 50px;
    gap: 16px;
  }

  .login-art {
    min-height: 250px;
    padding: 28px;
  }

  .login-card {
    padding: 25px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .full-field {
    grid-column: auto;
  }

  .option-editor-grid {
    grid-template-columns: 1fr;
  }

  /* Result mobile */
  .result-hero {
    align-items: flex-start;
    gap: 18px;
    padding: 20px;
  }

  .score-ring {
    width: 100px;
    height: 100px;
  }

  .score-ring strong {
    font-size: 22px;
  }

  .result-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .review-card {
    grid-template-columns: 1fr;
  }

  .review-card .form-actions {
    grid-column: 1;
  }

  .topbar-actions {
    gap: 7px;
  }

  .topbar .btn-small {
    padding: 7px 10px;
  }
}

/* =========================================================
   30. RESPONSIVE: PONSEL KECIL
========================================================= */

@media (max-width: 450px) {

  .feature-grid,
  .stats-grid,
  .material-grid,
  .quiz-grid,
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 38px;
    letter-spacing: -1.8px;
  }

  .hero-copy > p {
    font-size: 14px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .mock-dashboard {
    width: 95%;
    padding: 15px;
  }

  .hero-visual {
    min-height: 330px;
  }

  .floating-card {
    padding: 10px;
  }

  .floating-card strong {
    font-size: 10px;
  }

  .floating-card small {
    font-size: 9px;
  }

  .search-form {
    flex-direction: column;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .role-pill {
    display: none;
  }

  .chat-bubble {
    max-width: 92%;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions .btn {
    flex: 1 1 100%;
  }

  .section-heading h2,
  .role-section h2 {
    font-size: 26px;
  }

  .auth-wrap .hero-copy .feature-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 19px;
    border-radius: 16px;
  }

  .seminar-card {
    gap: 12px;
    padding: 14px;
  }

  .seminar-date {
    width: 55px;
    height: 65px;
  }

  .seminar-date b {
    font-size: 23px;
  }

  .feature-dropdown summary {
    padding: 14px;
    gap: 10px;
  }

  .dropdown-content {
    padding: 0 14px 17px 67px;
  }

  .topbar-actions a {
    font-size: 10px;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
  }
}

/* =========================================================
   31. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}