/* ==========================================================================
   MERAUKE AI NAMEK NAMUK ACADEMY — tema hijau mewah + emas
   Palet: hijau zamrud gelap (akademi), gading (kartu), emas (aksen premium)
   ========================================================================== */

:root {
  --green-950: #041D16;
  --green-900: #062A20;
  --green-800: #0A3A2C;
  --green-700: #0F4B39;
  --green-600: #14604A;
  --green-100: #E4EEE8;
  --green-050: #F1F6F2;

  --gold-100: #F7EDD0;
  --gold-300: #EBD08A;
  --gold-400: #DCB65C;
  --gold-500: #C79A2E;
  --gold-600: #A67C1E;
  --gold-700: #7E5C12;

  --ivory: #FBF9F3;
  --ivory-2: #F4F1E7;
  --ink: #10241C;
  --ink-soft: #4A5F56;
  --line: rgba(10, 58, 44, .12);
  --line-strong: rgba(10, 58, 44, .22);

  --grad-gold: linear-gradient(135deg, #F3DFA2 0%, #DCB65C 45%, #B98A22 100%);
  --grad-green: linear-gradient(150deg, #062A20 0%, #0A3A2C 55%, #041D16 100%);
  --grad-hero: radial-gradient(1100px 620px at 12% -10%, rgba(220, 182, 92, .18), transparent 60%),
               radial-gradient(900px 520px at 100% 0%, rgba(20, 96, 74, .55), transparent 62%),
               linear-gradient(150deg, #041D16 0%, #062A20 45%, #0A3A2C 100%);

  --font-head: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow-1: 0 2px 10px rgba(6, 42, 32, .06);
  --shadow-2: 0 14px 40px rgba(6, 42, 32, .12);
  --shadow-3: 0 26px 70px rgba(4, 29, 22, .28);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--gold-600); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0 0 1em; padding-left: 1.15em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-soft); }
.small { font-size: .84rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ic { flex: 0 0 auto; vertical-align: middle; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .93rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  text-align: center;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold {
  background: var(--grad-gold);
  color: #351F00;
  box-shadow: 0 10px 26px rgba(199, 154, 46, .32);
}
.btn-gold:hover { color: #2A1900; box-shadow: 0 14px 32px rgba(199, 154, 46, .42); }
.btn-dark { background: var(--green-900); color: #F6F2E6; }
.btn-dark:hover { color: #fff; background: var(--green-800); }
.btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: inherit;
  border-color: rgba(255, 255, 255, .28);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--green-800);
}
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-700); background: rgba(199, 154, 46, .07); }
.btn-sm { padding: 8px 15px; font-size: .84rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn-danger { background: #8C2F1F; color: #fff; }

/* ---------- Navbar publik (di atas hero gelap) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(4, 29, 22, .88);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(220, 182, 92, .28);
  color: #F3EFE4;
}
.topbar-inner { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; flex: 0 0 auto; }
.brand:hover { color: inherit; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-size: 1.06rem; letter-spacing: .01em; }
.brand-sub { font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-300); }
.topnav { display: flex; gap: 6px; margin-left: auto; }
.topnav a {
  color: rgba(246, 242, 230, .84);
  font-size: .9rem;
  font-weight: 500;
  padding: 9px 13px;
  border-radius: 999px;
}
.topnav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.topnav a.active { color: #041D16; background: var(--grad-gold); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  color: inherit;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grad-hero); color: #F6F2E6; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(60deg, rgba(220, 182, 92, .07) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(-60deg, rgba(220, 182, 92, .07) 0 1px, transparent 1px 46px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 78%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 84px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-300);
  border: 1px solid rgba(220, 182, 92, .38);
  border-radius: 999px;
  padding: 7px 15px;
  margin-bottom: 20px;
}
.hero h1 { color: #FFFDF6; margin-bottom: 14px; }
.hero h1 em { font-style: italic; color: var(--gold-300); }
.hero-lead { font-size: 1.06rem; color: rgba(246, 242, 230, .86); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-cta .btn-ghost { color: #F6F2E6; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid rgba(220, 182, 92, .26);
}
.hero-stats div strong { display: block; font-family: var(--font-head); font-size: 1.9rem; color: var(--gold-300); }
.hero-stats div span { font-size: .84rem; color: rgba(246, 242, 230, .78); }

.hero-card {
  position: relative;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(220, 182, 92, .36);
  border-radius: var(--r-xl);
  padding: 26px;
  box-shadow: var(--shadow-3);
  backdrop-filter: blur(10px);
}
.hero-card h3 { color: #FFFDF6; font-size: 1.15rem; }
.hero-card ol { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.hero-card ol li { display: flex; gap: 13px; align-items: flex-start; font-size: .93rem; color: rgba(246, 242, 230, .9); }
.step-dot {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(220, 182, 92, .16);
  border: 1px solid rgba(220, 182, 92, .5);
  color: var(--gold-300);
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-size: .95rem;
}
.hero-badge {
  position: absolute;
  top: -16px; right: 22px;
  background: var(--grad-gold);
  color: #351F00;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(4, 29, 22, .4);
}

/* ---------- Seksi umum ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--ivory-2); }
.section.dark { background: var(--grad-green); color: #F2EEE2; }
.section.dark h2, .section.dark h3 { color: #FFFDF6; }
.section.dark .muted { color: rgba(242, 238, 226, .74); }
.sec-head { max-width: 720px; margin-bottom: 42px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-kicker {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #8A6414;
  font-weight: 700;
  margin-bottom: 10px;
}
.section.dark .sec-kicker { color: var(--gold-300); }
.sec-head p { color: var(--ink-soft); }
.section.dark .sec-head p { color: rgba(242, 238, 226, .78); }

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-1);
}
.section.dark .card { background: rgba(255, 255, 255, .055); border-color: rgba(220, 182, 92, .26); box-shadow: none; }

.program-card { display: flex; flex-direction: column; gap: 12px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.program-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: rgba(199, 154, 46, .45); }
.program-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.program-no {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--green-900);
  color: var(--gold-300);
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-size: 1.15rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .74rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--green-050);
  color: var(--green-700);
  border: 1px solid var(--line);
}
.chip-gold { background: rgba(220, 182, 92, .18); color: var(--gold-700); border-color: rgba(199, 154, 46, .34); }
.chip-green { background: rgba(20, 96, 74, .12); color: var(--green-700); border-color: rgba(20, 96, 74, .22); }
.chip-warn { background: rgba(199, 90, 46, .14); color: #8C3B18; border-color: rgba(199, 90, 46, .3); }
.program-card h3 { margin: 0; }
.program-card p { color: var(--ink-soft); font-size: .93rem; margin: 0; }
.program-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }

.feature { display: flex; gap: 15px; align-items: flex-start; }
.feature-mark {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--grad-gold);
  color: #3A2200;
}
.feature h3 { margin: 0 0 4px; font-size: 1.05rem; }
.feature p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.section.dark .feature p { color: rgba(242, 238, 226, .76); }

.steps { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: s; }
.step-card { position: relative; padding-top: 30px; }
.step-card .step-num {
  position: absolute; top: -16px; left: 22px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad-gold); color: #3A2200;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600;
  box-shadow: 0 8px 18px rgba(4, 29, 22, .18);
}
.step-card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.step-card p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

.price-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
  background: var(--grad-green);
  color: #F5F1E5;
  border: 1px solid rgba(220, 182, 92, .3);
  border-radius: var(--r-xl);
  padding: 44px;
  box-shadow: var(--shadow-2);
}
.price-card h2 { color: #FFFDF6; }
.price-tag { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.1rem); color: var(--gold-300); line-height: 1; }
.price-benefits { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.price-benefits li { display: flex; gap: 11px; align-items: flex-start; font-size: .95rem; color: rgba(245, 241, 229, .92); }
.price-benefits .tick { color: var(--gold-300); flex: 0 0 auto; margin-top: 2px; }
.price-side {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(220, 182, 92, .3);
  border-radius: var(--r-lg);
  padding: 26px;
}
.bank-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(220, 182, 92, .28); padding: 10px 0; font-size: .92rem; }
.bank-row:last-of-type { border-bottom: 0; }
.bank-row strong { color: var(--gold-300); font-weight: 600; }

.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 4px 20px;
  box-shadow: var(--shadow-1);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--gold-600); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); font-size: .94rem; }

.cta-band {
  background: var(--grad-hero);
  color: #F6F2E6;
  border-radius: var(--r-xl);
  padding: 48px;
  text-align: center;
  border: 1px solid rgba(220, 182, 92, .32);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #FFFDF6; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-950);
  color: rgba(240, 236, 224, .8);
  padding: 56px 0 26px;
  border-top: 1px solid rgba(220, 182, 92, .26);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; }
.footer-brand { display: flex; gap: 15px; align-items: flex-start; }
.footer-name { font-family: var(--font-head); font-size: 1.12rem; color: #FFFDF6; margin-bottom: 6px; }
.footer-note { font-size: .88rem; margin: 0; color: rgba(240, 236, 224, .72); }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { color: var(--gold-300); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 4px; font-family: var(--font-body); font-weight: 700; }
.footer-col a { color: rgba(240, 236, 224, .82); font-size: .92rem; }
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(220, 182, 92, .18);
  font-size: .84rem;
}

/* ---------- Flash / notifikasi ---------- */
.flash {
  border-radius: var(--r-md);
  padding: 13px 18px;
  margin-bottom: 18px;
  font-size: .92rem;
  border: 1px solid;
  animation: fadein .25s ease;
}
.flash-ok { background: #EAF6EE; border-color: #B7DFC4; color: #17512F; }
.flash-err { background: #FDEDEA; border-color: #F0C3B9; color: #8C2F1F; }
.flash-info { background: var(--gold-100); border-color: rgba(199, 154, 46, .4); color: #6E4E10; }
@keyframes fadein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Formulir ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 7px; color: var(--green-800); }
.field .hint { font-size: .8rem; color: var(--ink-soft); margin-top: 6px; }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 12px 14px;
  transition: border-color .16s ease, box-shadow .16s ease;
  min-width: 0;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(199, 154, 46, .18);
}
textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.checkbox input { width: auto; margin-top: 3px; }

/* ---------- Halaman login ---------- */
.login-body { background: var(--grad-hero); min-height: 100vh; display: flex; flex-direction: column; color: #F6F2E6; }
.login-main { flex: 1; display: grid; place-items: center; padding: 60px 20px; position: relative; overflow: hidden; }
.login-main::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(60deg, rgba(220, 182, 92, .08) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(-60deg, rgba(220, 182, 92, .08) 0 1px, transparent 1px 48px);
  pointer-events: none;
}
.blur-accent { position: absolute; width: 340px; height: 340px; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.blur-accent.tr { top: -110px; right: -90px; background: rgba(220, 182, 92, .34); }
.blur-accent.bl { bottom: -120px; left: -100px; background: rgba(20, 96, 74, .55); }
.login-card-wrap { position: relative; z-index: 2; width: 100%; max-width: 452px; }
.login-card {
  background: var(--ivory);
  color: var(--ink);
  border: 1px solid rgba(220, 182, 92, .45);
  border-radius: var(--r-xl);
  padding: 34px 30px;
  box-shadow: var(--shadow-3);
}
.login-brand { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.login-logo { display: flex; align-items: center; justify-content: center; }
.login-title { font-size: 1.5rem; margin: 0; color: var(--green-900); }
.login-sub { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.login-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); margin: 24px 0; }
.login-help {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--gold-100);
  border: 1px solid rgba(199, 154, 46, .34);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: .85rem;
  color: #6B4D11;
  margin-top: 18px;
}
.login-help strong { color: #5A3F0B; }
.login-meta { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 22px; font-size: .82rem; }
.login-foot { text-align: center; color: rgba(246, 242, 230, .74); font-size: .82rem; padding: 22px 20px 30px; }
.login-foot a { color: var(--gold-300); }

/* ---------- Kerangka area anggota ---------- */
.app-shell { display: grid; grid-template-columns: 288px minmax(0, 1fr); min-height: 100vh; background: var(--green-050); }
.sidebar {
  background: var(--grad-green);
  color: rgba(240, 236, 224, .88);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(220, 182, 92, .22);
  z-index: 70;
}
.sidebar-head .brand-sub { color: var(--gold-300); }
.user-card {
  display: flex; gap: 12px; align-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(220, 182, 92, .22);
  border-radius: var(--r-md);
  padding: 12px;
}
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad-gold); color: #3A2200;
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 600;
  flex: 0 0 auto;
}
.user-name { font-weight: 600; font-size: .95rem; color: #FFFDF6; }
.user-role { font-size: .76rem; color: var(--gold-300); letter-spacing: .06em; text-transform: uppercase; }
.sidebar-progress { background: rgba(255, 255, 255, .05); border: 1px solid rgba(220, 182, 92, .18); border-radius: var(--r-md); padding: 13px; }
.sp-row { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: 8px; }
.sp-row strong { color: var(--gold-300); }
.bar { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad-gold); border-radius: 999px; }
.sp-sub { font-size: .76rem; color: rgba(240, 236, 224, .68); margin-top: 8px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px;
  border-radius: 10px;
  color: rgba(240, 236, 224, .88);
  font-size: .91rem;
  font-weight: 500;
}
.side-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-nav a.active { background: var(--grad-gold); color: #351F00; font-weight: 600; }
.side-logout { border-top: 1px solid rgba(220, 182, 92, .18); border-radius: 0; margin-top: 8px; padding-top: 15px !important; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 9px; }
.side-help {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .84rem;
  color: var(--gold-300);
  border: 1px dashed rgba(220, 182, 92, .4);
  border-radius: 10px;
  padding: 10px 12px;
}
.side-help:hover { color: #FFFDF6; }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.app-topbar .nav-toggle { display: none; color: var(--green-900); background: transparent; border-color: var(--line-strong); }
.app-topbar-title { font-family: var(--font-head); font-size: 1.02rem; color: var(--green-900); }
.app-topbar-actions { margin-left: auto; display: flex; gap: 10px; }
.app-content { padding: 28px 24px 64px; min-width: 0; }
.app-content > * { min-width: 0; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--ink-soft); font-size: .93rem; }
.crumbs { font-size: .82rem; color: var(--ink-soft); margin-bottom: 8px; }
.crumbs a { color: var(--green-700); }

.stat-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; min-width: 0; }
.stat .stat-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.stat .stat-value { font-family: var(--font-head); font-size: 1.9rem; color: var(--green-800); line-height: 1.2; margin-top: 6px; }
.stat .stat-note { font-size: .8rem; color: var(--ink-soft); }
.stat.gold { background: linear-gradient(150deg, #0A3A2C, #062A20); border-color: rgba(220, 182, 92, .3); }
.stat.gold .stat-label, .stat.gold .stat-note { color: rgba(242, 238, 226, .74); }
.stat.gold .stat-value { color: var(--gold-300); }

.course-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.course-card .cc-top { display: flex; gap: 16px; align-items: center; }
.course-card h3 { margin: 0; }
.course-card p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.course-card .cc-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.ring-text { font-family: var(--font-body); font-size: 15px; font-weight: 700; fill: var(--green-800); }

.lesson-list { display: grid; gap: 10px; }
.lesson-row {
  display: flex; gap: 14px; align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  transition: border-color .16s ease, box-shadow .16s ease;
  min-width: 0;
}
.lesson-row:hover { border-color: rgba(199, 154, 46, .45); box-shadow: var(--shadow-1); }
.lesson-row.is-done { background: #F3F8F4; border-color: rgba(20, 96, 74, .28); }
.lesson-icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--green-050); color: var(--green-700);
  display: grid; place-items: center; flex: 0 0 auto;
  border: 1px solid var(--line);
}
.lesson-row.is-done .lesson-icon { background: rgba(20, 96, 74, .14); color: var(--green-700); }
.lesson-main { flex: 1; min-width: 0; }
.lesson-main a { font-weight: 600; color: var(--ink); }
.lesson-main a:hover { color: var(--gold-700); }
.lesson-sub { font-size: .8rem; color: var(--ink-soft); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lesson-actions { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }

.module-block { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-1); min-width: 0; }
.module-block > h3 { margin-bottom: 4px; }
.module-block .mod-desc { color: var(--ink-soft); font-size: .9rem; margin-bottom: 16px; }

.reader {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-1);
  min-width: 0;
}
.reader h1 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); }
.reader-body { font-size: 1.02rem; line-height: 1.85; color: #1B322A; white-space: pre-line; }
.video-frame { position: relative; padding-top: 56.25%; border-radius: var(--r-md); overflow: hidden; background: #000; margin-bottom: 20px; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Pratinjau modul PDF dari Google Drive (dokumen panjang) */
.doc-frame {
  position: relative;
  width: 100%;
  height: min(78vh, 780px);
  min-height: 460px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  margin-bottom: 14px;
}
.doc-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.doc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.reader-nav { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.toc { display: grid; gap: 6px; }
.toc a { font-size: .88rem; padding: 8px 11px; border-radius: 9px; color: var(--ink-soft); }
.toc a:hover { background: var(--green-050); color: var(--green-800); }
.toc a.active { background: var(--grad-gold); color: #351F00; font-weight: 600; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.split-wide { grid-template-columns: minmax(0, 1fr) 372px; }
.split > * { min-width: 0; }

.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; }
table.data { width: 100%; border-collapse: collapse; min-width: 620px; }
table.data th, table.data td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
table.data th { background: var(--green-050); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green-700); }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(199, 154, 46, .05); }
.row-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.inline-form { display: inline; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.badge-ok { background: #E7F4EC; color: #17512F; }
.badge-warn { background: var(--gold-100); color: #6E4E10; }
.badge-off { background: #EFEFEC; color: #5A5A52; }
.badge-err { background: #FBEAE6; color: #8C2F1F; }

.empty { text-align: center; padding: 46px 24px; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.empty-mark { width: 58px; height: 58px; border-radius: 16px; background: var(--green-050); color: var(--green-700); display: grid; place-items: center; margin: 0 auto 14px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--ink-soft); margin: 0; }

/* ---------- Kotak pembayaran ---------- */
.pay-box { border-color: rgba(199, 154, 46, .45); }
.pay-head { display: flex; align-items: center; gap: 10px; color: var(--green-800); margin-bottom: 14px; }
.pay-head h2 { font-size: 1.08rem; }
.pay-amount {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--grad-green);
  border: 1px solid rgba(220, 182, 92, .3);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.pay-label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(240, 236, 224, .74); }
.pay-value { font-family: var(--font-head); font-size: 1.9rem; color: var(--gold-300); line-height: 1.15; }
.pay-rek { letter-spacing: .04em; }
.pay-wa { font-size: .86rem; color: var(--ink-soft); margin: 12px 0 0; text-align: center; }
.pay-note { font-size: .8rem; color: var(--ink-soft); margin: 10px 0 0; }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--gold-100);
  border: 1px solid rgba(199, 154, 46, .34);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: .88rem;
  color: #6B4D11;
  margin-bottom: 18px;
}
.notice.plain { background: var(--green-050); border-color: var(--line-strong); color: var(--green-800); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-1); min-width: 0; }
.panel h2 { font-size: 1.15rem; margin-bottom: 16px; }
.panel + .panel { margin-top: 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-head h2 { margin: 0; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }

.timeline { display: grid; gap: 14px; }
.timeline-item { display: flex; gap: 13px; align-items: flex-start; }
.timeline-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-500); margin-top: 8px; flex: 0 0 auto; }
.timeline-item .tl-time { font-size: .78rem; color: var(--ink-soft); }

/* ---------- Sertifikat ---------- */
.cert-list { display: grid; gap: 18px; }
.certificate {
  background: var(--ivory);
  border: 1px solid rgba(199, 154, 46, .4);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-1);
}
.cert-inner {
  position: relative;
  border: 2px solid var(--gold-500);
  border-radius: var(--r-md);
  padding: 44px 40px;
  text-align: center;
  background:
    radial-gradient(700px 340px at 50% -20%, rgba(220, 182, 92, .16), transparent 70%),
    linear-gradient(160deg, #FFFDF7 0%, #FBF7EC 100%);
  overflow: hidden;
}
.cert-inner::before {
  content: "";
  position: absolute; inset: 9px;
  border: 1px solid rgba(199, 154, 46, .5);
  border-radius: 6px;
  pointer-events: none;
}
.cert-kicker { font-size: .76rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-700); font-weight: 700; }
.cert-inner h1 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); color: var(--green-900); margin: 12px 0 6px; }
.cert-name { font-family: var(--font-head); font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--green-800); border-bottom: 2px solid rgba(199, 154, 46, .55); display: inline-block; padding: 0 26px 8px; margin: 14px 0 18px; }
.cert-for { color: var(--ink-soft); font-size: .95rem; }
.cert-course { font-family: var(--font-head); font-size: clamp(1.15rem, 2.4vw, 1.55rem); color: var(--green-700); margin: 6px 0 20px; }
.cert-meta { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; margin-top: 34px; text-align: left; }
.cert-meta div { font-size: .84rem; color: var(--ink-soft); }
.cert-meta strong { display: block; color: var(--green-800); font-family: var(--font-body); font-size: .95rem; }
.cert-sign { text-align: center; margin-top: 6px; }
.sign-line { border-top: 1px solid var(--line-strong); margin-top: 42px; padding-top: 8px; font-size: .84rem; }
.cert-seal {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #351F00;
  display: grid; place-items: center;
  text-align: center;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.25;
  box-shadow: 0 10px 26px rgba(199, 154, 46, .4);
  margin: 0 auto;
  border: 3px solid rgba(255, 255, 255, .65);
}
.cert-note { font-size: .76rem; color: var(--ink-soft); margin-top: 26px; }

/* ---------- Info halaman statis ---------- */
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow-1); }
.doc h2 { margin-top: 30px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: #24382F; }


/* ---------- Halaman Pengimbasan ---------- */
.imb-stats { display: grid; gap: 18px; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 24px; }
.imb-stats .stat-value { font-size: 1.6rem; }
.imb-split { grid-template-columns: minmax(0, 1fr) 452px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.imb-filter { display: grid; gap: 10px; grid-template-columns: 1fr 1fr auto; margin-bottom: 16px; }
.imb-list { display: grid; gap: 14px; max-height: 62vh; overflow-y: auto; padding-right: 4px; }
.imb-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  background: #fff;
  min-width: 0;
}
.imb-item-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.imb-title { font-size: 1.02rem; margin: 0 0 8px; }
.imb-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--ink-soft); margin-bottom: 8px; }
.imb-meta span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.imb-desc { font-size: .88rem; color: #24382F; margin: 0 0 10px; }
.imb-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-050);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 10px;
}
.imb-link:hover { background: rgba(199, 154, 46, .12); color: var(--gold-700); }
.imb-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 1200px) {
  /* dua kolom baru nyaman di atas 1200px; di bawahnya formulir jadi terlalu sempit */
  .imb-split { grid-template-columns: 1fr; }
  .imb-list { max-height: none; }
}
@media (max-width: 1080px) {
  .imb-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .imb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .imb-filter { grid-template-columns: 1fr; }
  .imb-filter .btn { width: 100%; }
}


/* ---------- Halaman Tantangan ---------- */
.tgh-stats { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 24px; }
.tgh-stats .stat-value { font-size: 1.6rem; }
.tgh-split { grid-template-columns: minmax(0, 1fr) 438px; }

.tgh-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tgh-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  border-left: 4px solid rgba(10, 58, 44, .18);
  border-radius: var(--r-md);
  padding: 16px 16px 18px;
  background: #FBFAF6;
  min-width: 0;
}
.tgh-card.is-done { background: #F3F8F4; border-color: rgba(20, 96, 74, .3); border-left-color: var(--gold-500); }
.tgh-card h3 { font-size: 1rem; margin: 0; }
.tgh-hint { font-size: .84rem; color: var(--ink-soft); margin: 0; flex: 1; }
.tgh-card-head { display: flex; align-items: center; gap: 10px; }
.tgh-icon {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--green-700);
}
.tgh-card.is-done .tgh-icon { background: var(--green-900); border-color: transparent; color: var(--gold-300); }
.tgh-no {
  font-family: var(--font-head);
  font-size: .95rem;
  color: var(--ink-soft);
  margin-left: auto;
}
.tgh-badge {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 9px;
  border-radius: 999px;
  background: #EFEFEC;
  color: #5A5A52;
}
.tgh-badge.is-done { background: rgba(20, 96, 74, .14); color: var(--green-700); }
.tgh-link-mini {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 600; color: var(--green-700);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 11px; overflow-wrap: anywhere;
}
.tgh-link-mini:hover { color: var(--gold-700); border-color: rgba(199, 154, 46, .5); }

.tgh-filter { display: grid; gap: 10px; grid-template-columns: 1fr 1fr auto; margin-bottom: 16px; }
.tgh-records { display: grid; gap: 12px; max-height: 58vh; overflow-y: auto; padding-right: 4px; }
.tgh-record {
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--r-sm);
  background: #fff;
  padding: 12px 14px;
  min-width: 0;
}
.tgh-record-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.tgh-record-link { display: inline-flex; align-items: flex-start; gap: 6px; font-size: .86rem; font-weight: 600; overflow-wrap: anywhere; }
.tgh-record-note { font-size: .84rem; color: var(--ink-soft); margin: 6px 0 0; }
.tgh-record-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.tgh-summary { display: grid; gap: 2px; }
.tgh-sum-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.tgh-sum-row:last-child { border-bottom: 0; }
.tgh-sum-mark {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background: #EFEFEC; color: #fff;
}
.tgh-sum-mark.is-done { background: var(--green-700); }
.tgh-sum-label { font-size: .87rem; min-width: 0; overflow-wrap: anywhere; }
.tgh-sum-count { margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--green-700); }

@media (max-width: 1200px) {
  .tgh-split { grid-template-columns: 1fr; }
  .tgh-records { max-height: none; }
}
@media (max-width: 720px) {
  .tgh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tgh-grid { grid-template-columns: 1fr; }
  .tgh-filter { grid-template-columns: 1fr; }
  .tgh-filter .btn { width: 100%; }
}


/* ---------- Ujian Kompetensi ---------- */
.uj-split { grid-template-columns: minmax(0, 1fr) 400px; }
.uj-card {
  border: 1px solid var(--line);
  border-left: 4px solid rgba(10, 58, 44, .2);
  border-radius: var(--r-md);
  background: #fff;
  padding: 16px 18px;
  min-width: 0;
}
.uj-card.is-lulus { border-left-color: var(--gold-500); background: #F7FBF8; }
.uj-card-main { display: flex; gap: 14px; align-items: center; min-width: 0; }
.uj-no {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  background: var(--green-900); color: var(--gold-300);
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.1rem;
}
.uj-card.is-lulus .uj-no { background: var(--grad-gold); color: #351F00; }
.uj-info { min-width: 0; flex: 1; }
.uj-info h3 { margin: 0 0 2px; font-size: 1.05rem; }
.uj-modul { font-size: .86rem; color: var(--ink-soft); margin: 0 0 8px; }
.uj-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.uj-nilai { text-align: center; flex: 0 0 auto; min-width: 82px; }
.uj-nilai-label { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.uj-nilai-value { font-family: var(--font-head); font-size: 2rem; color: var(--green-800); line-height: 1.1; }
.uj-nilai-value.is-lulus { color: var(--gold-700); }
.uj-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }

.uj-riwayat { display: grid; gap: 8px; max-height: 56vh; overflow-y: auto; padding-right: 4px; }
.uj-riwayat-baris { display: flex; gap: 8px; align-items: center; min-width: 0; }
.uj-riwayat-baris .uj-riwayat-item { flex: 1; min-width: 0; }
.uj-riwayat-item {
  display: flex; gap: 12px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 12px; background: #fff; color: inherit;
}
.uj-riwayat-item:hover { border-color: rgba(199, 154, 46, .5); background: #FDFBF5; }
.uj-rw-nilai {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background: #EFEFEC; color: #4A5F56;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 600;
}
.uj-rw-nilai.is-lulus { background: var(--green-900); color: var(--gold-300); }
.uj-rw-main { display: flex; flex-direction: column; min-width: 0; }
.uj-rw-judul { font-size: .9rem; font-weight: 600; }

.uj-progress { display: flex; align-items: center; gap: 14px; margin: 18px 0; position: sticky; top: 64px; background: var(--green-050); padding: 12px 16px; border-radius: var(--r-md); border: 1px solid var(--line); z-index: 5; }
.uj-progress .bar { flex: 1; }
.uj-soal { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.uj-soal-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; min-width: 0; }
.uj-soal-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.uj-soal-no {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  background: var(--grad-gold); color: #351F00;
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: .95rem;
}
.uj-soal-teks { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: 0; line-height: 1.55; }
.uj-opsi { display: grid; gap: 9px; }
.uj-opsi-item {
  display: flex; gap: 11px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 14px; cursor: pointer; background: #FCFCFA;
  transition: border-color .15s ease, background .15s ease;
  min-width: 0;
}
.uj-opsi-item:hover { border-color: rgba(199, 154, 46, .5); background: #FFFDF7; }
.uj-opsi-item input { margin-top: 3px; flex: 0 0 auto; }
.uj-opsi-item:has(input:checked) { border-color: var(--green-700); background: #F1F8F4; }
.uj-opsi-kode {
  width: 24px; height: 24px; border-radius: 6px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--green-050); border: 1px solid var(--line);
  font-size: .8rem; font-weight: 700; color: var(--green-700);
}
.uj-opsi-teks { font-size: .95rem; overflow-wrap: anywhere; }
.uj-aksi { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; position: sticky; bottom: 12px; }

.uj-hasil { border-color: rgba(199, 154, 46, .4); }
.uj-hasil.is-lulus { background: #F8FBF8; }
.uj-hasil-utama { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.uj-hasil-nilai {
  text-align: center; flex: 0 0 auto; min-width: 160px;
  background: var(--grad-green); color: #F6F2E6;
  border: 1px solid rgba(220, 182, 92, .34);
  border-radius: var(--r-lg); padding: 20px 22px;
}
.uj-hasil-label { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(240, 236, 224, .76); }
.uj-hasil-angka { display: block; font-family: var(--font-head); font-size: 3.4rem; line-height: 1; color: var(--gold-300); }
.uj-hasil-angka.is-lulus { color: #FFE7A6; }
.uj-hasil-kkm { display: block; font-size: .76rem; color: rgba(240, 236, 224, .78); margin-top: 6px; }
.uj-hasil-teks { min-width: 0; flex: 1; }
.uj-hasil-teks h1 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin: 10px 0 6px; }
.uj-hasil-rinci { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 24px; }
.uj-rinci { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.uj-rinci span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.uj-rinci strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--green-800); }

@media (max-width: 1200px) {
  .uj-split { grid-template-columns: 1fr; }
  .uj-riwayat { max-height: none; }
}
@media (max-width: 720px) {
  .uj-card-main { align-items: flex-start; flex-wrap: wrap; }
  .uj-nilai { text-align: left; }
  .uj-progress { position: static; }
  .uj-aksi { position: static; }
  .uj-hasil-utama { gap: 18px; }
}


/* ---------- Syarat sertifikat & Badge Duta ---------- */
.syarat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: sy; }
.syarat-item {
  display: flex; gap: 13px; align-items: flex-start;
  border: 1px solid var(--line); border-left: 4px solid rgba(10, 58, 44, .2);
  border-radius: var(--r-md); background: #FCFCFA;
  padding: 14px 16px; min-width: 0;
}
.syarat-item.is-ok { background: #F2F8F3; border-left-color: var(--gold-500); }
.syarat-mark {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--green-050); color: var(--green-700);
  border: 1px solid var(--line);
  font-family: var(--font-head); font-size: .95rem;
}
.syarat-item.is-ok .syarat-mark { background: var(--green-700); color: #fff; border-color: transparent; }
.syarat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.syarat-judul { font-weight: 600; font-size: .96rem; }
.syarat-detail { font-size: .84rem; color: var(--ink-soft); }
.syarat-bar { display: block; height: 5px; border-radius: 999px; background: rgba(10, 58, 44, .12); margin-top: 7px; overflow: hidden; }
.syarat-bar i { display: block; height: 100%; background: var(--grad-gold); }

.duta-panel { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: var(--green-050); border: 1px solid rgba(199, 154, 46, .4); border-radius: var(--r-md); padding: 18px; }
.duta-badge {
  width: 92px; height: 92px; flex: 0 0 auto;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #351F00;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 3px solid rgba(255, 255, 255, .72);
  box-shadow: 0 12px 26px rgba(199, 154, 46, .4);
  text-align: center;
}
.duta-badge-lg { width: 112px; height: 112px; }
.duta-badge-teks { font-size: .52rem; font-weight: 800; letter-spacing: .1em; line-height: 1.2; }
.duta-badge-teks small { font-size: .46rem; letter-spacing: .08em; }
.duta-badge-ikon { line-height: 0; }

.cert-duta .cert-inner { border-color: var(--gold-500); background: radial-gradient(700px 340px at 50% -20%, rgba(220, 182, 92, .22), transparent 70%), linear-gradient(160deg, #FFFDF5 0%, #F8F3E4 100%); }
.cert-badge-wrap { display: flex; justify-content: center; margin-bottom: 14px; }
.cert-duta-syarat { font-size: .84rem; color: var(--ink-soft); max-width: 62ch; margin: 0 auto; line-height: 1.7; }

.badge-duta-mini {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--grad-gold); color: #351F00;
  border-radius: 999px; padding: 8px 16px 8px 10px;
  font-weight: 700; font-size: .84rem;
  box-shadow: 0 8px 20px rgba(199, 154, 46, .32);
}
.badge-duta-mini .bd-ikon { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .55); display: grid; place-items: center; }

@media (max-width: 720px) {
  .syarat-item { flex-wrap: wrap; }
  .syarat-item .btn { width: 100%; }
  .duta-panel { justify-content: center; text-align: center; }
}


/* ---------- Contoh sertifikat & badge (gambar desain resmi) ---------- */
.contoh-grid { display: grid; gap: 22px; grid-template-columns: 1.42fr 1fr; align-items: start; }
.contoh-item { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow-1); }
.contoh-item a { display: block; }
.contoh-item img { width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); display: block; }
.contoh-item figcaption { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.contoh-item figcaption strong { font-size: .95rem; }
.contoh-badge img { max-width: 320px; margin: 0 auto; }

@media (max-width: 1080px) {
  .contoh-grid { grid-template-columns: 1fr; }
  .contoh-badge img { max-width: 260px; }
}

/* ---------- Sertifikat berbasis gambar desain ---------- */
.cert-sheet {
  position: relative;
  background: #fff;
  border: 1px solid rgba(199, 154, 46, .4);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow-1);
  min-width: 0;
}
.cert-sheet .cert-art { width: 100%; height: auto; display: block; border-radius: var(--r-sm); }
.cert-overlay {
  position: absolute;
  left: 14px; right: 14px;
  top: 40.6%;
  text-align: center;
  pointer-events: none;
}
.cert-ov-nama {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.5vw, 1.78rem);
  font-weight: 600;
  color: #12352A;
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}
.cert-ov-baris {
  margin-top: .3em;
  display: flex; flex-direction: column; gap: 2px; align-items: center;
}
.cert-ov-label { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: #7E5C12; }
.cert-ov-nilai { font-family: var(--font-head); font-size: clamp(.8rem, 1.6vw, 1.1rem); color: #0F4B39; }
.cert-badge-tempel {
  position: absolute;
  right: 4.5%;
  bottom: 13%;
  width: 15%;
  min-width: 78px;
  filter: drop-shadow(0 8px 18px rgba(6, 42, 32, .3));
}
.cert-badge-tempel img { width: 100%; height: auto; border-radius: 50%; }
.cert-meta-baris {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  justify-content: center;
  margin-top: 12px;
  font-size: .8rem;
  color: var(--ink-soft);
}
.cert-meta-baris strong { color: var(--green-800); }

/* Badge Duta (gambar) */
.duta-badge-img { width: 104px; height: 104px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 10px 24px rgba(6, 42, 32, .22); background: #fff; }
.duta-badge-img-lg { width: 128px; height: 128px; }

@media (max-width: 720px) {
  .cert-ov-nama { font-size: 1.15rem; }
  .cert-ov-nilai { font-size: .9rem; }
  .cert-badge-tempel { width: 18%; min-width: 62px; bottom: 11%; }
  .duta-panel { flex-direction: column; }
}


/* ---------- Logo PGM (gambar) ---------- */
.logo-pgm {
  width: auto;
  height: 42px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(4, 29, 22, .28);
  flex: 0 0 auto;
}
.brand-compact .logo-pgm { height: 38px; }
.footer-brand .logo-pgm { height: 52px; border-radius: 12px; }
.login-logo { width: auto; height: auto; padding: 0; background: none; box-shadow: none; }
.login-logo .logo-pgm { height: 74px; border-radius: 16px; padding: 5px; box-shadow: 0 12px 26px rgba(6, 42, 32, .3); }

@media (max-width: 980px) { .logo-pgm { height: 36px; } }
@media (max-width: 720px) { .footer-brand .logo-pgm { height: 46px; } }


/* ---------- Kartu kredensial akun baru ---------- */
.kred-box { border-color: rgba(199, 154, 46, .5); background: #FFFDF6; }
.kred-head { display: flex; align-items: center; gap: 10px; color: var(--green-800); margin-bottom: 6px; }
.kred-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.kred-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 13px; min-width: 0; }
.kred-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.kred-item strong { font-size: .98rem; overflow-wrap: anywhere; }
.kred-mono { font-family: "DejaVu Sans Mono", ui-monospace, monospace; color: var(--green-800); }
.kred-aksi { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 14px; }


/* ---------- Alat tautan video (khusus admin) ---------- */
.video-grup { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 18px; background: #FCFCFA; min-width: 0; }
.video-grup-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.video-grup-head h3 { font-size: 1.05rem; }
.video-cepat { background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); padding: 12px 14px; }
.video-cepat textarea { min-height: 66px; font-family: "DejaVu Sans Mono", ui-monospace, monospace; font-size: .84rem; }
.video-daftar { display: grid; gap: 10px; }
.video-baris { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; min-width: 0; }
.video-baris[data-kosong="1"] { border-left: 4px solid var(--gold-500); }
.video-baris[data-kosong="0"] { border-left: 4px solid var(--green-700); }
.video-info { display: flex; gap: 11px; align-items: flex-start; min-width: 0; flex-wrap: wrap; }
.video-no { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; background: var(--green-050); border: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--green-700); }
.video-judul { display: block; font-weight: 600; font-size: .94rem; overflow-wrap: anywhere; }
.video-input { min-width: 0; }
.video-input input { font-size: .88rem; }
.video-kecil { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

@media (max-width: 980px) {
  .video-baris { grid-template-columns: 1fr; }
}


/* ---------- Animasi hati merah: 9 baris jatuh berulang ---------- */
.hati-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;      /* tidak menghalangi klik apa pun */
  z-index: 4;                /* di atas latar, di bawah navbar/sidebar & tombol */
}
.hati {
  position: absolute;
  top: -14vh;
  display: block;
  opacity: 0;
  animation-name: hatiJatuh;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  filter: drop-shadow(0 2px 4px rgba(158, 27, 27, .35));
  will-change: transform, opacity;
}
.hati svg { display: block; width: 100%; height: 100%; }

@keyframes hatiJatuh {
  0%   { transform: translate3d(0, -14vh, 0) rotate(-10deg) scale(.9); opacity: 0; }
  6%   { opacity: .85; }
  50%  { transform: translate3d(14px, 45vh, 0) rotate(8deg) scale(1); opacity: .85; }
  94%  { opacity: .8; }
  100% { transform: translate3d(-12px, 116vh, 0) rotate(-8deg) scale(1); opacity: 0; }
}
.hati-kiri  { animation-direction: normal; }
.hati-kanan { animation-direction: normal; }

/* Halaman login: hati tampil di atas latar hijau, tetap di bawah kartu */
.login-body .hati-layer { z-index: 1; }

/* Layar HP: kurangi jumlah hati agar tetap ringan & tidak ramai */
@media (max-width: 720px) {
  .hati:nth-child(5n) { display: none; }
}

/* Hormati preferensi pengunjung yang tidak ingin banyak gerakan */
@media (prefers-reduced-motion: reduce) {
  .hati-layer { display: none; }
}

/* ---------- Animasi masuk (hanya bila JS aktif, agar konten tetap terlihat) ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsif
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; padding: 56px 0 64px; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .split, .split-wide { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-card { grid-template-columns: 1fr; padding: 32px; }
}

/** Tujuh item menu: rapatkan dulu di layar sedang agar tetap satu baris. */
@media (max-width: 1620px) {
  .topbar-inner { gap: 12px; }
  .topnav { gap: 3px; }
  .topnav a { padding: 9px 10px; font-size: .87rem; }
}

/** Baru setelah itu pindah ke tombol hamburger (7 item + tombol aksi tidak muat lagi). */
@media (max-width: 1270px) {
  .nav-toggle { display: inline-flex; }
  .topnav {
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    background: rgba(4, 29, 22, .98);
    padding: 14px 18px 20px;
    border-bottom: 1px solid rgba(220, 182, 92, .28);
    display: none;
  }
  .topnav.open { display: flex; }
  .topbar-inner { position: relative; flex-wrap: wrap; }
  .topbar-actions { margin-left: auto; flex-wrap: wrap; row-gap: 8px; justify-content: flex-end; }
  .topbar-actions .btn { padding: 10px 14px; font-size: .86rem; }
}

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 290px;
    transform: translateX(-102%);
    transition: transform .26s ease;
    height: 100vh;
  }
  .sidebar.open { transform: none; box-shadow: var(--shadow-3); }
  .app-topbar .nav-toggle { display: inline-flex; }
  body.nav-open::after {
    content: "";
    position: fixed; inset: 0;
    background: rgba(4, 29, 22, .48);
    z-index: 65;
  }
  .app-content { padding: 22px 16px 56px; }
}

@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4, .steps, .form-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 14px; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .hero-card { padding: 22px; }
  .price-card { padding: 24px; }
  .cta-band { padding: 34px 22px; }
  .doc { padding: 24px; }
  .reader { padding: 20px; }
  .cert-inner { padding: 30px 20px; }
  .cert-meta { flex-direction: column; gap: 14px; }
  .btn { width: 100%; }
  .btn-inline { width: auto; }
  .topbar-actions .btn { width: auto; }
  .row-actions .btn, .lesson-actions .btn, .panel-head .btn, .cc-actions .btn { width: auto; }
  .hero-cta .btn { width: 100%; }
}

/* ==========================================================================
   Cetak (sertifikat & laporan)
   ========================================================================== */
@media print {
  .sidebar, .app-topbar, .site-footer, .topbar, .no-print, .cert-actions { display: none !important; }
  body, .app-shell, .app-content { background: #fff !important; }
  .app-shell { display: block; }
  .app-content { padding: 0; }
  .certificate { border: 0; box-shadow: none; padding: 0; }
  .cert-inner { border-width: 3px; page-break-inside: avoid; }
  .cert-sheet { border: 0; box-shadow: none; padding: 0; page-break-inside: avoid; }
  .cert-sheet .cert-art { border-radius: 0; }
  .cert-overlay { left: 0; right: 0; }
  @page { size: A4 landscape; margin: 12mm; }
}


/* ---------- Halaman publik: Hasil Tantangan ---------- */
.hsl-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hsl-card {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px; min-width: 0;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.hsl-card:hover { border-color: rgba(199, 154, 46, .5); box-shadow: var(--shadow-1); }
.hsl-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hsl-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  background: var(--grad-gold); color: #3A2200;
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 600;
}
.hsl-nama { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 0; overflow-wrap: anywhere; }
.hsl-sub { font-size: .8rem; color: var(--ink-soft); margin: 2px 0 0; overflow-wrap: anywhere; }
.hsl-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hsl-card .btn { margin-top: auto; }

.hsl-filters { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 20px; }
@media (max-width: 640px) { .hsl-filters { grid-template-columns: 1fr; } .hsl-filters .btn { width: 100%; } }

.hsl-hasil { display: grid; gap: 14px; }
.hsl-item {
  border: 1px solid var(--line); border-left: 4px solid var(--gold-500);
  border-radius: var(--r-md); background: #fff; padding: 16px 18px; min-width: 0;
}
.hsl-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.hsl-item h3 { margin: 0; font-size: 1.02rem; }
.hsl-item .hsl-ket { font-size: .87rem; color: var(--ink-soft); margin: 0 0 10px; }
.hsl-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .85rem; font-weight: 600; color: var(--green-700);
  background: var(--green-050); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 13px; max-width: 100%;
  overflow-wrap: anywhere;
}
.hsl-link:hover { background: rgba(199, 154, 46, .12); color: var(--gold-700); }
.hsl-profil {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  background: var(--green-050); border: 1px solid rgba(199, 154, 46, .4);
  border-radius: var(--r-md); padding: 18px 20px; margin-bottom: 22px;
}
.hsl-profil .hsl-avatar { width: 62px; height: 62px; font-size: 1.6rem; }
.hsl-profil h1 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin: 0; }
.hsl-kosong {
  text-align: center; padding: 34px 22px; background: #fff;
  border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--ink-soft);
}
@media (max-width: 1100px) { .hsl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .hsl-grid { grid-template-columns: 1fr; } }


/* ---------- Perbaikan kop di layar ponsel (teks nama akademi tidak meluap) ---------- */
@media (max-width: 720px) {
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand-text { min-width: 0; }
  .brand-name { font-size: .95rem; line-height: 1.25; }
  .brand-sub { letter-spacing: .1em; line-height: 1.3; }
}
@media (max-width: 420px) {
  .topbar-inner { gap: 10px; }
  .brand { gap: 9px; }
  .brand-name { font-size: .88rem; }
  .brand-sub { font-size: .6rem; letter-spacing: .07em; }
  .logo-pgm { height: 32px; }
}


/* ---------- Hiasan: gambar jatuh dari atas ke bawah halaman ---------- */
.jatuh-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;   /* tidak pernah menghalangi klik/mengetik */
  z-index: 5;             /* di atas latar, di bawah menu & tombol (topbar z=60) */
  contain: strict;
}
.jatuh-item {
  position: absolute;
  top: 0;
  width: var(--ukuran, 70px);
  height: auto;
  opacity: 0;
  will-change: transform, opacity;
  animation: jatuhTurun var(--durasi, 20s) linear var(--jeda, 0s) infinite;
  filter: drop-shadow(0 6px 14px rgba(6, 42, 32, .16));
  transform: translate3d(0, -32vh, 0) rotate(0deg);
}
@keyframes jatuhTurun {
  0%   { transform: translate3d(0, -32vh, 0) rotate(0deg);            opacity: 0; }
  6%   { opacity: .92; }
  50%  { transform: translate3d(14px, 42vh, 0) rotate(var(--putar, 8deg)); opacity: .92; }
  92%  { opacity: .85; }
  100% { transform: translate3d(-10px, 132vh, 0) rotate(calc(var(--putar, 8deg) * -1)); opacity: 0; }
}

/* Di layar kecil: kurangi jumlah gambar agar tetap ringan */
@media (max-width: 760px) {
  .jatuh-item:nth-child(n+7) { display: none; }
  .jatuh-layer { z-index: 4; }
}
@media (max-width: 480px) {
  .jatuh-item:nth-child(n+5) { display: none; }
  .jatuh-item { filter: none; }
}
@media (max-width: 360px) {
  .jatuh-item:nth-child(n+4) { display: none; }
}

/* Hormati pilihan pengunjung: kurangi gerakan */
@media (prefers-reduced-motion: reduce) {
  .jatuh-layer { display: none !important; }
}


/* ---------- Halaman publik: Profil Mentor ---------- */
.mentor-hero { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
.mentor-figure {
  margin: 0;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(199, 154, 46, .45);
  box-shadow: var(--shadow-2);
  background: var(--green-050);
}
.mentor-figure img { display: block; width: 100%; height: auto; }
.mentor-figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 26px 20px 16px;
  color: #FFFDF6;
  background: linear-gradient(to top, rgba(4, 29, 22, .92), rgba(4, 29, 22, .55) 55%, transparent);
}
.mentor-figure figcaption strong { font-family: var(--font-head); font-size: 1.15rem; }
.mentor-figsub { font-size: .8rem; color: rgba(255, 253, 246, .78); }
.mentor-badge {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--grad-gold); color: #351F00;
  border-radius: 999px; padding: 4px 11px;
}
.mentor-side { display: flex; flex-direction: column; }
@media (max-width: 980px) {
  .mentor-hero { grid-template-columns: 1fr; }
}


/* ---------- Tombol gabung grup WhatsApp ---------- */
.grup-cta {
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed rgba(199, 154, 46, .55);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, #FFFDF6 0%, #F7F4E7 100%);
  text-align: center;
}
.grup-cta-judul { margin: 0 0 12px; font-size: .9rem; font-weight: 600; color: var(--green-800); line-height: 1.5; }
.grup-cta .btn { justify-content: center; }
.grup-cta-note { margin: 12px 0 0; font-size: .78rem; line-height: 1.6; color: var(--ink-soft); }


/* ---------- Tombol "Gabung Grup WA" di bar atas ---------- */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(160deg, #25D366 0%, #128C7E 100%);
  color: #06281f;
  border: 1px solid rgba(255, 255, 255, .28);
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(18, 140, 126, .35);
  padding: 10px 15px;
  font-size: .87rem;
  border-radius: 999px;
  white-space: nowrap;
}
.btn-wa:hover { color: #03211a; filter: brightness(1.06); }
.btn-wa .ic { flex: 0 0 auto; }

/* item grup di dalam menu hamburger */
.topnav-wa {
  display: none;   /* hanya tampil saat menu dibuka / di layar kecil */
  align-items: center;
  gap: 8px;
  color: #06281f !important;
  background: linear-gradient(160deg, #25D366 0%, #128C7E 100%) !important;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 14px !important;
  margin-top: 6px;
}
.topnav-wa:hover { filter: brightness(1.06); }

/* Bar atas boleh sedikit lebih lebar daripada isi halaman, supaya 7 menu + tombol
   aksi tetap muat satu baris di layar lebar. */
.topbar .topbar-inner.wrap { max-width: 1420px; }

/* Ruang bar atas terbatas: tombol grup diringkas jadi ikon saja, lalu tombol
   sekunder disembunyikan, baru setelah itu pindah ke menu hamburger. */
@media (max-width: 1440px) {
  /* "Ajukan Akun" tetap tersedia di hero & menu, jadi dilepas dari bar atas
     agar tombol "Gabung Grup WA" tetap tampil lengkap dengan teksnya. */
  .topbar-actions .btn-ghost { display: none; }
}
@media (max-width: 1330px) {
  .btn-wa .wa-teks { display: none; }
  .btn-wa { padding: 10px 12px; }
}
@media (max-width: 1270px) {
  /* di layar kecil tombol grup ada di dalam menu, bukan di bar atas */
  .topbar-actions .btn-wa { display: none; }
  .topnav.open .topnav-wa { display: inline-flex; }
}
