/* ==========================================================================
   ASDOS DIGITAL ACADEMY — LMS CORE DESIGN SYSTEM
   Standardized Styles for Instructional Design & Interactive Components
   ========================================================================== */

:root {
  --ink: #2A2420;
  --muted: #5E544C;
  --brand: #1F6B7A;
  --brand-dark: #164F5B;
  --green: #1F6B7A;
  --green-dark: #164F5B;
  --green-light: #E6F4E4;
  --go: #2E7D4F;
  --go-dark: #226139;
  --mint: #DFF0E6;
  --lime: #C9EC78;
  --leaf: #E6F4E4;
  --leaf-line: #7DBB8A;
  --peach: #FFEBD6;
  --peach-line: #F0B98A;
  --sun: #FFF3BF;
  --bg: #FFF9F0;
  --card: #FFFFFF;
  --card-bg: #FFFFFF;
  --line: #E8DCCB;
  --gold: #E8A427;
  --shadow: 0 8px 26px rgba(80, 55, 30, 0.07);
}

/* 1. JEMBATAN KEMARIN (SCHEMA ACTIVATION & BRIDGING) */
.bridging-card {
  background: linear-gradient(135deg, #eef7ee, #e0f2e2);
  border: 1px solid #cce2d0;
  border-radius: 14px;
  padding: 13px 16px;
  margin: 14px 0 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 4px 14px #173d2806;
}
.b-badge {
  background: var(--green);
  color: white;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .8px;
  padding: 4px 8px;
  border-radius: 6px;
  flex: none;
  margin-top: 2px;
}
.bridging-card p {
  margin: 0;
  font-size: 13px;
  color: #244432;
  line-height: 1.55;
}
.bridging-card strong {
  color: var(--green-dark);
}

/* 2. KAMUS SANTAI (MICRO-GLOSSARY) */
.glossary-card {
  background: #ffffff;
  border: 1px solid #e1e9e2;
  border-radius: 15px;
  padding: 14px 16px;
  margin: 14px 0 18px;
  box-shadow: 0 4px 16px #173d2806;
}
.g-head {
  font-size: 12px;
  font-weight: 850;
  color: var(--green);
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.g-items {
  display: grid;
  gap: 6px;
}
.g-item {
  font-size: 13px;
  color: #495850;
  line-height: 1.45;
}
.g-item strong {
  color: var(--ink);
}

/* 3. KOTAK PENYELAMAT (TROUBLESHOOTING & ANTI-FRUSTRATION) */
.troubleshoot-box {
  background: #fffcf4;
  border: 1px solid #fae6be;
  border-radius: 12px;
  margin: 12px 0 16px;
  overflow: hidden;
}
.troubleshoot-box summary {
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 800;
  color: #8c5b08;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff8e8;
}
.troubleshoot-box summary::-webkit-details-marker {
  display: none;
}
.troubleshoot-box summary:after {
  content: "⌄";
  font-size: 17px;
  font-weight: 900;
  transition: transform .2s;
}
.troubleshoot-box[open] summary:after {
  transform: rotate(180deg);
}
.tb-body {
  padding: 12px 16px;
  border-top: 1px solid #f9ebd0;
  font-size: 12px;
  color: #553e16;
  line-height: 1.55;
  background: #fffcf4;
}
.tb-body ol, .tb-body ul {
  margin: 0;
  padding-left: 18px;
}
.tb-body li {
  margin: 4px 0;
}
.tb-body strong {
  color: #7c4f03;
}

/* 4. CEK MANDIRI KUALITAS (SELF-ASSESSMENT RUBRIC) */
.self-check-card {
  background: #f8faf8;
  border: 1px solid #dfeae0;
  border-radius: 13px;
  padding: 13px 15px;
  margin: 14px 0 16px;
}
.self-check-card strong {
  font-size: 12px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
}
.self-check-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: #4b5f52;
}
.self-check-card li {
  margin: 4px 0;
}

/* 5. KUIS SANTAI 1 PERTANYAAN (RETRIEVAL PRACTICE) */
.quiz-card {
  background: #ffffff;
  border: 1px solid #d5e5d7;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 18px 0;
  box-shadow: 0 6px 20px #173d2808;
}
.quiz-badge {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .8px;
  color: var(--green);
  background: #edf5ed;
  padding: 4px 10px;
  border-radius: 99px;
  width: fit-content;
  margin-bottom: 8px;
}
.quiz-question {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.45;
  color: var(--ink);
}
.quiz-options {
  display: grid;
  gap: 8px;
}
.quiz-opt {
  border: 1px solid #d8e5d9;
  border-radius: 10px;
  padding: 11px 13px;
  background: #f9fbf9;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #354a3e;
  transition: .2s;
  cursor: pointer;
  width: 100%;
}
.quiz-opt:hover:not(:disabled) {
  background: #edf5ec;
  border-color: var(--green);
  transform: translateX(2px);
}
.quiz-opt.correct {
  background: #dcf2de !important;
  border-color: #53a260 !important;
  color: #185327 !important;
}
.quiz-opt.wrong {
  background: #fde8e8 !important;
  border-color: #e07b7b !important;
  color: #7e2222 !important;
}
.quiz-feedback {
  margin-top: 11px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}
.quiz-feedback.success {
  background: #e8f7ea;
  color: #185327;
  border: 1px solid #c7e8cb;
}
.quiz-feedback.error {
  background: #fdf0f0;
  color: #7e2222;
  border: 1px solid #fad2d2;
}

/* 6. TOAST GLOBAL */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 15px);
  opacity: 0;
  background: #173b2c;
  color: white;
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 750;
  transition: .25s;
  pointer-events: none;
  z-index: 999;
  box-shadow: 0 10px 30px #00000030;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}


/* 7. DRAWER KURIKULUM (MOBILE CURRICULUM MAP) */
.lms-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 43, 33, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lms-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.lms-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: min(340px, 86vw);
  height: 100%;
  background: #ffffff;
  z-index: 1001;
  box-shadow: -10px 0 35px rgba(18, 43, 33, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.lms-drawer-backdrop.active .lms-drawer {
  transform: translateX(-340px);
}
.drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 850;
  color: var(--ink);
}
.drawer-close {
  background: #f1f5ef;
  border: 0;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
}
.drawer-list {
  padding: 14px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fbfcfb;
  text-decoration: none;
  color: var(--ink);
  transition: .2s;
}
.drawer-item:hover, .drawer-item.active {
  background: #edf6ee;
  border-color: #cce0ce;
}
.drawer-item.active {
  border-left: 4px solid var(--green);
}
.d-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e4eee4;
  color: var(--green);
  font-weight: 850;
  font-size: 11px;
  display: grid;
  place-items: center;
  flex: none;
}
.drawer-item.done .d-num {
  background: #d4ebd2;
  color: #175a36;
}
.d-info {
  flex: 1;
  min-width: 0;
}
.d-info strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.d-info small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.d-status {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}
.drawer-item.done .d-status {
  color: var(--green);
}

/* Button Trigger Drawer di Header */
.btn-drawer-trigger {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: .2s;
}
.btn-drawer-trigger:hover {
  background: #edf5eb;
}

/* 8. NAVIGASI BAWAH BERPASANGAN (PAIRED BOTTOM NAVIGATION - HIDDEN) */
.paired-bottom-nav,
#lmsPairedBottomNav {
  display: none !important;
}
.btn-nav-prev, .btn-nav-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: .2s;
}
.btn-nav-prev {
  background: #f1f4f1;
  color: var(--muted);
  border: 1px solid var(--line);
}
.btn-nav-prev:hover {
  background: #e5ece5;
  color: var(--ink);
}
.btn-nav-next {
  background: var(--green);
  color: white;
  box-shadow: 0 4px 14px rgba(36, 107, 82, 0.25);
  margin-left: auto;
}
.btn-nav-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(36, 107, 82, 0.35);
}

/* 9. LITE YOUTUBE FAÇADE (HEMAT RAM & KUOTA HP) */
.lite-yt-facade {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 9/16;
  background: #0d1e17;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lite-yt-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s, transform .3s;
}
.lite-yt-facade:hover .lite-yt-thumb {
  transform: scale(1.02);
}
.lite-yt-play {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transition: transform .2s, background .2s;
}
.lite-yt-facade:hover .lite-yt-play {
  transform: scale(1.08);
  background: #ffffff;
}
.lite-yt-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(18, 43, 33, 0.85);
  color: white;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
}


/* 10. PAYWALL & WHITELIST ACCESS GATE MODAL */
.lms-gate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 43, 33, 0.78);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn .25s ease;
}
.lms-gate-card {
  background: #ffffff;
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  padding: 28px 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  text-align: center;
  position: relative;
  border: 1px solid rgba(36, 107, 82, 0.15);
}
.lms-gate-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #fdf5e7;
  color: #c97d09;
  font-size: 28px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 20px rgba(201, 125, 9, 0.15);
}
.lms-gate-card h2 {
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -.5px;
}
.lms-gate-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 20px;
}
.lms-gate-form {
  background: #f7f9f7;
  border: 1px solid #e1e9e2;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: left;
}
.lms-gate-form label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}
.lms-gate-input-row {
  display: flex;
  gap: 8px;
}
.lms-gate-input {
  flex: 1;
  padding: 11px 13px;
  border: 1.5px solid #d4ded6;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: .2s;
}
.lms-gate-input:focus {
  border-color: var(--green);
  background: #ffffff;
}
.lms-gate-btn {
  background: var(--green);
  color: white;
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: .2s;
}
.lms-gate-btn:hover {
  background: var(--green-dark);
}
.lms-gate-error {
  display: none;
  font-size: 12px;
  color: #c0392b;
  margin-top: 8px;
  font-weight: 700;
}
.lms-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lms-gate-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--brand);
  color: #ffffff !important;
  font-weight: 850;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(31, 107, 122, 0.25);
  transition: transform .15s ease, background .15s ease;
}
.lms-gate-buy-btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}
.lms-gate-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  background: #ffffff;
  color: #128C7E !important;
  border: 1.5px solid #25D366;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.lms-gate-wa-btn:hover {
  background: #F0FDF4;
  transform: translateY(-1px);
}
.lms-gate-back-link {
  font-size: 12.5px;
  font-weight: 750;
  color: var(--brand);
  text-decoration: underline;
  padding: 4px;
}
.lms-gate-back-link:hover {
  color: var(--brand-dark);
}
.lms-gate-back-link:hover {
  color: var(--ink);
}

/* 11. INDEX.HTML PROGRESS BANNER */
.lms-progress-banner {
  background: linear-gradient(135deg, #184a39, #246b52);
  color: white;
  border-radius: 20px;
  padding: 22px 26px;
  margin: 0 auto 32px;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(24, 74, 57, 0.2);
}
.lms-pb-text h3 {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 850;
}
.lms-pb-text p {
  margin: 0;
  font-size: 13px;
  opacity: .9;
}
.lms-pb-bar {
  height: 8px;
  background: rgba(255,255,255,0.25);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 10px;
  width: 220px;
}
.lms-pb-fill {
  height: 100%;
  background: var(--lime);
  border-radius: 99px;
  transition: width .3s ease;
}
.lms-pb-btn {
  background: white;
  color: var(--green-dark);
  font-weight: 850;
  font-size: 13px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: .2s;
}
.lms-pb-btn:hover {
  transform: translateY(-2px);
  background: var(--mint);
}
@media(max-width: 640px) {
  .lms-progress-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px;
    gap: 16px;
  }
  .lms-pb-bar {
    width: 100%;
  }
  .lms-pb-btn {
    text-align: center;
  }
}

/* Status Badges for Curriculum */
.day-status-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-top: 4px;
}
.dsp-done { background: #dcefd9; color: var(--green); }
.dsp-running { background: #fdf2db; color: #a2690d; }
.dsp-ready { background: #e8f4ec; color: var(--green); }
.dsp-locked { background: #edf0ed; color: #727e76; }


/* ==========================================================================
   12. NOTION-STYLE DASHBOARD COMPONENTS (NO-EMOJI, LIGHT THEME, MOBILE-FIRST)
   ========================================================================== */

/* Monochrome Lock & System Icons */
.ico-lock, .ico-lock-open, .ico-check {
  display: inline-block;
  vertical-align: -2px;
  stroke: currentColor;
}
.ico-lock {
  color: #718277;
}
.ico-lock-open {
  color: var(--green);
}
.ico-check {
  color: var(--green);
}

/* Student Profile & Level Card */
.student-profile-card {
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 24px 26px;
  margin: 20px 0;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
}
.profile-meta h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -.4px;
  color: var(--brand-dark);
}
.profile-meta p {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: var(--muted);
}
.profile-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--sun);
  color: var(--brand-dark);
  border: 1.5px solid #E8CF6A;
  padding: 8px 14px;
  border-radius: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(180, 115, 30, 0.08);
}
.level-badge-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: block;
}
.profile-level-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-level-texts span {
  font-size: 11px;
  font-weight: 750;
  color: #8C5311;
  letter-spacing: 0.3px;
}
.profile-level-texts strong {
  font-size: 14px;
  font-weight: 850;
  color: #422006;
}
.profile-stats-box {
  background: #FBF6EC;
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
}
.profile-stats-box .stat-val {
  font-size: 36px;
  font-weight: 900;
  color: var(--go);
  line-height: 1;
}
.profile-stats-box .stat-lbl {
  font-size: 11.5px;
  font-weight: 850;
  color: var(--muted);
  letter-spacing: .5px;
  margin-top: 6px;
  text-transform: uppercase;
}
.profile-quick-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.quick-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid var(--line);
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
  text-decoration: none;
  transition: all .15s ease;
}
.quick-link-pill:hover {
  background: var(--peach);
  border-color: var(--peach-line);
  color: var(--brand-dark);
}

/* 3 Main Tabs (Desktop Top Tab Bar > 768px; Mobile uses floating bottom dock) */
.dash-tabs-nav {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: #FAF3E8;
  border: 1.5px solid var(--line, #E8DCCB);
  border-radius: 16px;
  margin: 4px 0 18px;
}
.dash-tab-btn {
  flex: 1;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.dash-tab-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}
.dash-tab-btn.active {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(31, 107, 122, 0.25);
}
.dash-tab-btn.active svg {
  stroke: #ffffff;
}

/* Swipe Viewport & Track (Thumb Swipeable) */
.dash-swipe-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}
.dash-swipe-track {
  display: flex;
  width: 300%;
  transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  align-items: flex-start;
}
.dash-swipe-slide {
  width: 33.333333%;
  flex: 0 0 33.333333%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 2px;
}

/* Floating Bottom Navigation (Mobile/Tablet Dock <= 768px) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 420px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--line, #E8DCCB);
  box-shadow: 0 10px 30px rgba(23, 61, 40, 0.14), 0 2px 8px rgba(0, 0, 0, 0.04);
  border-radius: 999px;
  padding: 6px;
  align-items: center;
  justify-content: space-around;
  gap: 6px;
  box-sizing: border-box;
}
.mobile-bottom-nav.d-none {
  display: none !important;
}

.mobile-bottom-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--muted, #5E544C);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.mobile-bottom-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--muted, #5E544C);
  stroke-width: 2.2;
  fill: none;
  transition: stroke 0.2s, transform 0.2s;
}
.mobile-bottom-btn:hover:not(.active) {
  background: #FBF6EC;
  color: var(--ink, #2A2420);
}
.mobile-bottom-btn:hover:not(.active) svg {
  stroke: var(--ink, #2A2420);
}
.mobile-bottom-btn.active {
  background: var(--leaf, #E6F4E4);
  color: var(--green, #2E7D4F);
  font-weight: 850;
}
.mobile-bottom-btn.active svg {
  stroke: var(--green, #2E7D4F);
  transform: translateY(-1px);
}

/* Highlight Box: Lanjutkan Belajarmu */
.continue-highlight-card {
  background: linear-gradient(135deg, #1F6B7A, #164F5B);
  color: white;
  border-radius: 20px;
  padding: 22px 26px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 26px rgba(31, 107, 122, 0.28);
  border: 2px solid #164F5B;
}
.ch-info strong {
  display: block;
  font-size: 11.5px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 4px;
}
.ch-info h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.3px;
}
.ch-info p {
  margin: 0;
  font-size: 14.5px;
  opacity: .92;
}
.ch-btn {
  background: #FFF3BF;
  color: #164F5B;
  border: 1.5px solid #E8CF6A;
  font-weight: 850;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 14px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 0 #D4B340;
  transition: transform .08s, box-shadow .08s;
}
.ch-btn:hover {
  background: #FFF8D6;
}
.ch-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #D4B340;
}
.ch-btn:hover {
  background: var(--lime);
  transform: translateY(-2px);
}

/* Notion-style Gallery Cards */
.gallery-section {
  margin-bottom: 34px;
}
.gallery-sec-head {
  margin-bottom: 14px;
}
.gallery-sec-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: -.3px;
  color: var(--ink);
}
.gallery-sec-head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.gallery-sec-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 4px 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}
.gallery-sec-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 10px;
}
.gallery-sec-title-wrap {
  min-width: 0;
  flex: 1;
}
.gallery-sec-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cat-progress-pill {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--brand-dark);
  background: #FAF3E8;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.cat-progress-pill.is-done {
  background: var(--leaf);
  border-color: var(--leaf-line);
  color: var(--go-dark);
}
.cat-chevron {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #FAF3E8;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: transform 0.2s ease, background 0.15s ease;
}
.gallery-sec-toggle:hover .cat-chevron {
  background: #F3E8D8;
  color: var(--ink);
}
.gallery-section.is-collapsed {
  margin-bottom: 18px;
}
.gallery-section.is-collapsed .cat-chevron {
  transform: rotate(-90deg);
}
.gallery-section.is-collapsed .gallery-grid {
  display: none;
}
.learn-empty-state {
  text-align: center;
  padding: 30px 18px;
  background: #FFFFFF;
  border: 1.5px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
}
.learn-empty-state h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--ink);
}
.learn-empty-state p {
  margin: 0 0 14px;
  font-size: 13.5px;
}
.btn-reset-learn {
  border: 1.5px solid var(--brand);
  background: #FAF6EE;
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-card {
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s, border-color .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.gallery-card:hover {
  transform: translateY(-2px);
  border-color: var(--peach-line);
  box-shadow: 0 8px 24px rgba(80, 55, 30, 0.1);
}
.gallery-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #FBF6EC;
  display: block;
}
.gallery-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.gallery-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--sun);
  border: 1px solid #E8CF6A;
  padding: 3px 8px;
  border-radius: 6px;
  width: fit-content;
}
.card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.card-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 850;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.2px;
}
.card-status-badge.status-completed {
  background: var(--leaf);
  color: var(--go-dark);
  border: 1px solid var(--leaf-line);
}
.card-status-badge.status-progress {
  background: var(--peach);
  color: #8C4300;
  border: 1px solid var(--peach-line);
}
.card-status-badge.status-unstarted {
  background: #F4EFE6;
  color: var(--muted);
  border: 1px solid #DFCFC0;
}
.gallery-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--brand-dark);
}
.gallery-card p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
.gallery-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1.5px solid var(--line);
  padding-top: 12px;
  margin-top: auto;
  font-size: 13px;
  font-weight: 750;
}

/* Prompt Bank Component */
.prompt-list {
  display: grid;
  gap: 16px;
}
.prompt-card {
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.prompt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.prompt-head h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 850;
  color: var(--brand-dark);
  letter-spacing: -.3px;
}
.prompt-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.prompt-box {
  background: #231C17;
  color: #FFF8EE;
  border-radius: 14px;
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 12px 0 14px;
}
.btn-copy-prompt {
  background: var(--brand);
  color: #ffffff;
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 3px 0 var(--brand-dark);
  transition: transform .08s, box-shadow .08s;
}
.btn-copy-prompt:hover {
  background: var(--brand-dark);
}
.btn-copy-prompt:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--brand-dark);
}

/* Prompt Gallery (Grid, Filter, Compact Visual Card & Detail Modal) */
.prompt-gallery-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.pg-search-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.pg-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.pg-search-wrap svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.pg-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  box-sizing: border-box;
}
.pg-search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 107, 122, 0.12);
}
.pg-count-pill {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  background: #FAF6EE;
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.prompt-cat-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.prompt-cat-bar::-webkit-scrollbar {
  display: none;
}
.pg-cat-chip {
  flex: 0 0 auto;
  border: 1.5px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
}
.pg-cat-chip:hover {
  background: #FAF6EE;
  color: var(--brand-dark);
}
.pg-cat-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}
.prompt-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.pg-card {
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .16s ease, border-color .16s ease;
}
.pg-card:hover {
  transform: translateY(-2px);
  border-color: #D4C3AD;
}
.pg-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #FAF6EE;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1.5px solid var(--line);
}
.pg-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pg-thumb-visual {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  box-sizing: border-box;
}
.pg-thumb-visual .pg-vis-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.pg-thumb-visual span {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.3px;
  opacity: 0.88;
}
.pg-cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-dark);
  border: 1px solid rgba(232, 220, 203, 0.9);
  font-size: 11px;
  font-weight: 850;
  padding: 3px 9px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.pg-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(232, 220, 203, 0.9);
  background: rgba(255, 255, 255, 0.92);
  color: #8C7B6B;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .12s ease, color .12s ease;
}
.pg-fav-btn.active {
  color: #D97706;
  background: #FFFBEB;
  border-color: #FDE68A;
}
.pg-body {
  padding: 14px 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}
.pg-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--brand);
}
.pg-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 850;
  color: var(--brand-dark);
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pg-summary {
  margin: 0;
  font-size: 12.8px;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pg-actions {
  padding: 0 16px 15px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.pg-btn-copy {
  background: var(--brand);
  color: #ffffff;
  border: 0;
  border-radius: 11px;
  padding: 10px 13px;
  min-height: 42px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .15s ease, transform .1s ease;
}
.pg-btn-copy:hover {
  background: var(--brand-dark);
}
.pg-btn-copy.copied {
  background: var(--go);
}
.pg-btn-guide {
  background: #FAF6EE;
  color: var(--brand-dark);
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
  min-height: 42px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease;
}
.pg-btn-guide:hover {
  background: var(--peach);
}
.pg-empty-state {
  text-align: center;
  padding: 36px 18px;
  background: #ffffff;
  border: 1.5px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  font-size: 13.5px;
}
.pg-modal-visual {
  width: 100%;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #FAF6EE;
  overflow: hidden;
  margin-bottom: 14px;
  text-align: center;
}
.pg-modal-visual img {
  width: auto;
  max-width: 100%;
  max-height: 320px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}
.pg-modal-section {
  background: #FAF6EE;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px;
  margin-bottom: 12px;
}
.pg-modal-section h4 {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 850;
  color: var(--brand-dark);
}
.pg-modal-section p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.55;
  white-space: pre-line;
}
.pg-var-hl {
  background: rgba(255, 224, 102, 0.28);
  color: #FFE066;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 700;
}
@media (max-width: 640px) {
  .prompt-gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pg-actions {
    grid-template-columns: 1fr 1fr;
  }
}

/* Information & Tools Tab Styles */
.info-block {
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.info-block h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -.3px;
  color: var(--brand-dark);
}
.info-announcement-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink);
}
.info-announcement-list li {
  line-height: 1.55;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.tool-card-item {
  background: #FBF6EC;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s, border-color .15s;
  display: block;
}
.tool-card-item:hover {
  background: #ffffff;
  border-color: var(--brand);
  transform: translateY(-2px);
}
.tool-card-item strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 3px;
}
.tool-card-item small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 14px;
  }
  .student-profile-card {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 18px 16px !important;
    gap: 16px !important;
    box-sizing: border-box !important;
  }
  .student-profile-card > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .profile-level-badge {
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
  }
  .level-badge-icon {
    width: 48px !important;
    height: 48px !important;
  }
  .profile-level-texts span {
    font-size: 11px !important;
    font-weight: 750 !important;
    color: #8C5311 !important;
  }
  .profile-level-texts strong {
    font-size: 14px !important;
    font-weight: 850 !important;
    color: #422006 !important;
  }
  .profile-stats-box {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px !important;
    box-sizing: border-box !important;
  }
  .profile-quick-links {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .quick-link-pill {
    width: 100% !important;
    justify-content: flex-start !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
  }
  .continue-highlight-card {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 20px 16px !important;
    gap: 16px !important;
  }
  .ch-info {
    width: 100% !important;
  }
  .ch-info h3 {
    font-size: 20px !important;
    line-height: 1.35 !important;
    word-break: normal !important;
  }
  .ch-btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    min-height: 48px !important;
    font-size: 15px !important;
  }
  .gallery-grid {
    grid-template-columns: 1fr !important;
  }

  /* Mobile-specific adjustments for Floating Bottom Dock */
  .mobile-bottom-nav {
    display: flex;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    padding: 5px 6px;
    gap: 4px;
    width: calc(100% - 24px);
  }
  .mobile-bottom-btn {
    padding: 6px 8px;
    font-size: 11px;
  }
  .mobile-bottom-btn svg {
    width: 19px;
    height: 19px;
  }
}
