/**
 * MIHS-SMART — Portal Pembelajaran Digital
 * Identitas Visual: Hijau - Kuning - Putih
 * Belajar • Bermain • Berkarya
 */

:root {
  /* Green Palette (Identitas MI Hidayatus Shibyan) */
  --green-950: #022c22;
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --green-200: #a7f3d0;
  --green-100: #d1fae5;
  --green-50:  #f0fdf4;
  --green-soft:#f7fbf8;

  /* Gold & Yellow Palette */
  --gold-dark:    #b45309;
  --gold-primary: #d97706;
  --gold-accent:  #F4C430;
  --gold-bright:  #fbbf24;
  --gold-light:   #fef3c7;

  /* Neutral Slate */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  /* Typography & Sizing */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(4, 120, 87, 0.06);
  --shadow-md: 0 8px 24px rgba(4, 120, 87, 0.08);
  --shadow-lg: 0 16px 36px rgba(4, 120, 87, 0.12);
  --shadow-gold: 0 8px 25px rgba(244, 196, 48, 0.35);
  --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.06);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--green-soft);
  color: var(--slate-800);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

/* ==========================================================================
   1. STAGING / PREVIEW TOP BAR
   ========================================================================== */
.staging-bar {
  background: #0f172a;
  color: #fff;
  padding: 8px 16px;
  font-size: 0.8rem;
  border-bottom: 2px solid var(--gold-accent);
  position: relative;
  z-index: 60;
}

.staging-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.staging-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--gold-accent);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.staging-switchers {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.staging-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.staging-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.staging-btn.active {
  background: var(--gold-accent);
  color: var(--slate-900);
  border-color: var(--gold-accent);
  font-weight: 700;
}

.staging-info-pill {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
}

/* ==========================================================================
   2. MAIN SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 60%, #0d5c36 100%);
  border-bottom: 3.5px solid var(--gold-accent);
  color: var(--white);
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-logo-wrap {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}

.brand-sparkle {
  color: var(--gold-accent);
  font-size: 0.95rem;
}

.brand-tagline {
  font-size: 0.74rem;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-item {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.nav-item.active {
  color: var(--slate-900);
  background: var(--gold-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-header-explore {
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}

.btn-header-explore:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-header-login {
  background: linear-gradient(135deg, var(--gold-accent), var(--gold-primary));
  color: var(--green-950);
  border: 0;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(244, 196, 48, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-header-login:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(244, 196, 48, 0.45);
}

.student-header-pill {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 12px 4px 6px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #fff;
}

.student-avatar-small {
  font-size: 1.1rem;
}

.student-name-text {
  font-weight: 700;
}

.student-xp-pill {
  background: var(--gold-accent);
  color: var(--slate-900);
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
}

.btn-header-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-header-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Breadcrumb Bar */
.breadcrumb-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--slate-200);
  padding: 10px 20px;
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--slate-500);
}

.breadcrumb-inner a {
  color: var(--green-700);
  font-weight: 600;
}

.breadcrumb-inner a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--slate-400);
}

/* Main Layout Wrapper */
.main-wrapper {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 18px 56px;
}

/* ==========================================================================
   3. HERO SECTION (HOMEPAGE PUBLIK)
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 50%, #ecfdf5 100%);
  border: 1.5px solid var(--green-100);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(244, 196, 48, 0.15) 0%, rgba(244, 196, 48, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--green-200);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-800);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.hero-sparkle {
  font-size: 1rem;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--green-950);
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-tagline-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tagline-word {
  font-size: 1.15rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
}

.tag-belajar {
  background: #dcfce7;
  color: #15803d;
}

.tag-bermain {
  background: #fef3c7;
  color: #b45309;
}

.tag-berkarya {
  background: #e0e7ff;
  color: #4338ca;
}

.tagline-dot {
  color: var(--slate-400);
  font-weight: bold;
}

.hero-narasi {
  font-size: 1.05rem;
  color: var(--slate-700);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 26px;
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-800) 100%);
  color: #ffffff;
  border: 0;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(6, 95, 70, 0.28);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 95, 70, 0.38);
  background: linear-gradient(135deg, var(--green-600) 0%, var(--green-700) 100%);
}

.btn-cta-secondary {
  background: #ffffff;
  color: var(--green-800);
  border: 2px solid var(--green-600);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-cta-secondary:hover {
  background: var(--green-50);
  border-color: var(--green-700);
  transform: translateY(-1.5px);
}

.hero-features-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--slate-600);
  font-weight: 600;
}

.feat-icon {
  font-size: 0.95rem;
}

/* Hero Visual Interactive Preview Card */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card-preview {
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 360px;
  transition: transform 0.2s ease;
}

.hero-card-preview:hover {
  transform: translateY(-3px);
}

.preview-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--slate-100);
  margin-bottom: 14px;
}

.preview-avatar {
  font-size: 2rem;
  background: #ecfdf5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--slate-900);
}

.preview-sub {
  font-size: 0.74rem;
  color: var(--slate-500);
}

.preview-badge-live {
  margin-left: auto;
  background: #dcfce7;
  color: #166534;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.preview-mission-box {
  background: linear-gradient(135deg, #f0fdf4, #fefce8);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}

.preview-mission-tag {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.preview-mission-box h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.preview-mission-box p {
  font-size: 0.78rem;
  color: var(--slate-600);
  margin-bottom: 10px;
}

.preview-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
}

.preview-xp {
  color: var(--green-700);
}

.preview-pb {
  color: var(--gold-dark);
}

.preview-btn-cta {
  background: var(--green-700);
  color: #fff;
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.84rem;
  transition: background 0.2s ease;
}

.preview-btn-cta:hover {
  background: var(--green-800);
}

/* ==========================================================================
   4. THREE PILLARS SECTION (Belajar • Bermain • Berkarya)
   ========================================================================== */
.pillars-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.pillar-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-500);
}

.pillar-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.icon-belajar { background: #dcfce7; }
.icon-bermain { background: #fef3c7; }
.icon-berkarya { background: #e0e7ff; }

.pillar-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.pillar-card p {
  font-size: 0.86rem;
  color: var(--slate-600);
  line-height: 1.55;
}

/* ==========================================================================
   5. ETALASE PEMBELAJARAN (SHOWCASE PUBLIK)
   ========================================================================== */
.showcase-section {
  margin-bottom: 56px;
}

.section-title-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 28px;
}

.section-pill {
  display: inline-block;
  background: #ecfdf5;
  color: var(--green-800);
  border: 1px solid var(--green-200);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.section-main-heading {
  font-size: 1.95rem;
  font-weight: 900;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-sub-heading {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.55;
}

/* Category Filter Tabs */
.category-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  color: var(--slate-700);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
}

.filter-btn.active {
  background: var(--green-800);
  color: #ffffff;
  border-color: var(--green-800);
  box-shadow: 0 4px 12px rgba(6, 95, 70, 0.2);
}

/* Public Mode Banner */
.public-mode-banner {
  background: #f8fafc;
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--green-600);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.public-mode-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.public-mode-text {
  flex: 1;
  font-size: 0.84rem;
  color: var(--slate-700);
  min-width: 260px;
}

.demo-tag-example {
  background: #fef3c7;
  color: #b45309;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.74rem;
}

.btn-public-to-login {
  background: var(--green-700);
  color: #ffffff;
  border: 0;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-public-to-login:hover {
  background: var(--green-800);
}

/* Showcase Cards Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.showcase-card {
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.showcase-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-500);
}

.showcase-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.showcase-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: #ecfdf5;
  flex-shrink: 0;
}

.showcase-card.theme-blue .showcase-icon-box { background: #eff6ff; }
.showcase-card.theme-purple .showcase-icon-box { background: #f5f3ff; }
.showcase-card.theme-amber .showcase-icon-box { background: #fffbeb; }
.showcase-card.theme-teal .showcase-icon-box { background: #f0fdfa; }

.showcase-class-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--green-700);
  background: var(--green-50);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 2px;
}

.showcase-subject-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.25;
}

.showcase-desc {
  font-size: 0.86rem;
  color: var(--slate-600);
  line-height: 1.55;
  margin-bottom: 18px;
}

/* Mission Mini List in Showcase Card */
.showcase-missions-list {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
  flex: 1;
}

.missions-list-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.missions-count {
  background: #ffffff;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--slate-200);
}

.mission-mini-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  gap: 10px;
  transition: all 0.15s ease;
}

.mission-mini-card:last-child {
  margin-bottom: 0;
}

.mission-mini-card:hover {
  border-color: var(--green-500);
}

.mission-mini-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mission-num-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mission-mini-info {
  min-width: 0;
}

.mission-mini-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mission-mini-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.badge-coba-misi {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.btn-try-mission {
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 800;
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-try-mission:hover {
  background: var(--green-700);
  color: #fff;
}

.btn-lock-mission {
  background: var(--slate-100);
  color: var(--slate-500);
  border: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
}

.btn-lock-mission:hover {
  background: var(--slate-200);
  color: var(--slate-700);
}

.showcase-card-footer {
  margin-top: auto;
}

.btn-card-peta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green-50);
  color: var(--green-800);
  border: 1px solid var(--green-200);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-card-peta:hover {
  background: var(--green-700);
  color: #ffffff;
  border-color: var(--green-700);
}

/* ==========================================================================
   6. TELUSURI BERDASARKAN KELAS (1 - 6)
   ========================================================================== */
.class-browse-section {
  margin-bottom: 48px;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.class-card {
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.class-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-600);
}

.class-badge-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-50);
  border: 2px solid var(--green-200);
  color: var(--green-800);
  font-size: 1.4rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.class-card.has-content .class-badge-number {
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: #ffffff;
  border-color: var(--gold-accent);
}

.class-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.class-status-text {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.class-card.has-content .class-status-text {
  color: var(--green-700);
  font-weight: 700;
}

.class-cta-arrow {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-700);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   7. RUANG BELAJAR SISWA (STUDENT DASHBOARD)
   ========================================================================== */
.student-dashboard {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Student Hero Greeting */
.student-hero-banner {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 60%, #0c5632 100%);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.student-hero-main {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 280px;
}

.student-avatar-wrap {
  position: relative;
}

.student-avatar-big {
  width: 76px;
  height: 76px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.student-level-chip {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-accent);
  color: var(--slate-900);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.student-pill-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 6px;
}

.student-name-heading {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.student-motto-quote {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  font-style: italic;
}

.student-preview-switch-box {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  max-width: 280px;
}

.preview-mode-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--gold-accent);
  margin-bottom: 6px;
}

.student-preview-switch-box p {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
  line-height: 1.4;
}

.btn-back-to-public {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-back-to-public:hover {
  background: #ffffff;
  color: var(--green-950);
}

/* Gamification Stats Bar */
.gamification-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.game-stat-card {
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
}

.game-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.game-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.card-xp .game-stat-icon { background: #fef3c7; }
.card-level .game-stat-icon { background: #e0e7ff; }
.card-streak .game-stat-icon { background: #fee2e2; }
.card-pb .game-stat-icon { background: #ecfdf5; }

.game-stat-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.game-stat-value {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--slate-900);
  line-height: 1.2;
  margin-bottom: 2px;
}

.game-stat-sub {
  font-size: 0.72rem;
  color: var(--slate-600);
}

/* Level Progress Section */
.level-progress-section {
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 8px;
}

.progress-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.level-badge-current {
  font-weight: 800;
  color: var(--green-800);
  background: var(--green-50);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.progress-percentage {
  color: var(--slate-500);
  font-weight: 600;
}

.progress-right {
  font-size: 0.82rem;
  color: var(--slate-600);
}

.xp-remaining {
  color: var(--gold-dark);
  font-weight: 700;
}

.progress-track {
  height: 14px;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669, #F4C430);
  border-radius: var(--radius-full);
  position: relative;
  transition: width 0.6s ease;
}

/* ==========================================================================
   8. 🎯 MISI HARI INI (TODAY'S MISSIONS)
   ========================================================================== */
.today-missions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.today-mission-card {
  background: #ffffff;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.today-mission-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-accent);
  box-shadow: var(--shadow-lg);
}

.today-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.today-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fef3c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.today-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.today-mapel-tag {
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.today-xp-reward {
  background: #ecfdf5;
  color: #047857;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid #a7f3d0;
}

.today-mission-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.today-target-text {
  font-size: 0.82rem;
  color: var(--slate-600);
  margin-bottom: 14px;
}

.today-pb-banner {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--gold-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.today-action-row {
  margin-top: auto;
}

.btn-start-today-mission {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: #ffffff;
  display: block;
  text-align: center;
  padding: 11px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(6, 95, 70, 0.2);
  transition: all 0.2s ease;
}

.btn-start-today-mission:hover {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  transform: translateY(-1.5px);
}

/* ==========================================================================
   9. 🗺️ PILIH PETUALANGAN (ADVENTURE SUBJECTS)
   ========================================================================== */
.adventure-subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.adventure-card {
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.adventure-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-600);
}

.adv-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--slate-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.adv-blue .adv-icon { background: #eff6ff; }
.adv-green .adv-icon { background: #ecfdf5; }
.adv-purple .adv-icon { background: #f5f3ff; }
.adv-teal .adv-icon { background: #f0fdfa; }
.adv-amber .adv-icon { background: #fffbeb; }
.adv-emerald .adv-icon { background: #f0fdf4; }

.adv-class {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--slate-500);
  text-transform: uppercase;
}

.adventure-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 2px 0 6px;
}

.adventure-card p {
  font-size: 0.84rem;
  color: var(--slate-600);
  margin-bottom: 14px;
}

.adv-stats {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.adv-action {
  margin-top: auto;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--green-700);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   10. 🏆 PERSONAL BEST CARDS (REKOR PRIBADI)
   ========================================================================== */
.pb-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.pb-card {
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.pb-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pb-card-highlight {
  border-color: var(--gold-accent);
  background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
}

.pb-badge-new {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold-accent);
  color: var(--slate-900);
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

.pb-top-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.pb-icon-box {
  font-size: 1.5rem;
}

.pb-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate-500);
}

.pb-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.25;
}

.pb-metric-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 10px;
}

.pb-metric-col {
  display: flex;
  flex-direction: column;
}

.pb-metric-caption {
  font-size: 0.68rem;
  color: var(--slate-500);
  text-transform: uppercase;
}

.pb-metric-val {
  font-size: 1rem;
  font-weight: 800;
}

.pb-metric-val.prev {
  color: var(--slate-400);
  text-decoration: line-through;
}

.pb-metric-val.current {
  color: var(--green-700);
  font-size: 1.15rem;
}

.pb-metric-arrow {
  color: var(--gold-dark);
  font-weight: 900;
}

.pb-delta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--gold-dark);
}

.pb-date {
  color: var(--slate-400);
  font-weight: 500;
}

/* ==========================================================================
   11. 🎖️ KOLEKSI BADGE
   ========================================================================== */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.badge-item-card {
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s ease;
}

.badge-item-card.locked {
  opacity: 0.7;
  background: var(--slate-50);
}

.badge-item-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f8fafc;
  border: 2.5px solid var(--slate-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  position: relative;
  margin-bottom: 10px;
}

.badge-lock-overlay {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 0.85rem;
  background: var(--slate-800);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-item-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.badge-item-desc {
  font-size: 0.72rem;
  color: var(--slate-600);
  line-height: 1.4;
  margin-bottom: 10px;
}

.badge-item-footer {
  margin-top: auto;
}

.badge-stars {
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.star-empty {
  opacity: 0.25;
}

.badge-status-text {
  font-size: 0.68rem;
  font-weight: 700;
}

.badge-status-text.unlocked {
  color: var(--green-700);
}

.badge-status-text.locked {
  color: var(--slate-400);
}

/* ==========================================================================
   12. PETA MISI (MISSION MAP ADVENTURE)
   ========================================================================== */
.peta-misi-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.peta-header-card {
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.peta-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.peta-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 280px;
}

.peta-mapel-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
}

.peta-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.peta-class-chip {
  background: var(--green-50);
  color: var(--green-800);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.peta-category-chip, .peta-count-chip {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--slate-500);
}

.peta-mapel-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.peta-mapel-desc {
  font-size: 0.86rem;
  color: var(--slate-600);
}

.peta-header-right {
  min-width: 260px;
}

.peta-switch-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--slate-500);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.peta-switch-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.switch-pill {
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
}

.switch-pill:hover {
  background: var(--slate-200);
}

.switch-pill.active {
  background: var(--green-700);
  color: #fff;
}

.peta-overall-progress {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.progress-bar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.peta-progress-track {
  height: 8px;
  background: var(--slate-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.peta-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-600), var(--gold-accent));
  border-radius: var(--radius-full);
}

/* Mission Workflow Banner */
.mission-workflow-banner {
  background: #ffffff;
  border: 1.5px solid var(--green-200);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.wf-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--green-800);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wf-steps-track {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wf-step-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-700);
}

.wf-step-reward {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}

.wf-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
}

.wf-arrow {
  color: var(--slate-400);
  font-size: 0.75rem;
}

/* Adventure Nodes Progression */
.mission-path-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.mission-nodes-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mission-node-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.node-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 14px;
  width: 64px;
  flex-shrink: 0;
}

.node-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 4px;
}

.node-badge-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--slate-500);
  white-space: nowrap;
}

.mission-detail-card {
  background: #ffffff;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  flex: 1;
  transition: all 0.25s ease;
}

.card-status-selesai {
  border-color: #a7f3d0;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.card-status-sedang_berjalan {
  border-color: var(--gold-accent);
  box-shadow: 0 4px 20px rgba(244, 196, 48, 0.25);
}

.card-status-terkunci {
  opacity: 0.75;
  background: var(--slate-50);
}

.mission-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mission-tags-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-tag {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.status-done { background: #dcfce7; color: #166534; }
.status-active { background: #fef3c7; color: #92400e; }
.status-available { background: #e0f2fe; color: #075985; }
.status-locked { background: var(--slate-200); color: var(--slate-600); }

.mission-reward-tag {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold-dark);
}

.mission-title-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.title-stars {
  font-size: 0.85rem;
}

.mission-desc-text {
  font-size: 0.84rem;
  color: var(--slate-600);
  margin-bottom: 12px;
}

.mission-progress-banner {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--slate-700);
  margin-bottom: 14px;
}

.pb-completed-info, .active-progress-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pb-separator {
  color: var(--slate-300);
}

.mission-card-action-bar {
  display: flex;
  justify-content: flex-end;
}

.btn-mission-action {
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: 0;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-review {
  background: var(--slate-100);
  color: var(--slate-700);
}

.btn-review:hover {
  background: var(--slate-200);
}

.btn-primary-pulse {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: #fff;
  box-shadow: 0 4px 14px rgba(6, 95, 70, 0.3);
}

.btn-primary-pulse:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(6, 95, 70, 0.4);
}

.btn-start {
  background: var(--gold-accent);
  color: var(--slate-900);
  box-shadow: 0 4px 12px rgba(244, 196, 48, 0.35);
}

.btn-start:hover {
  background: var(--gold-bright);
}

.btn-disabled {
  background: var(--slate-200);
  color: var(--slate-400);
  cursor: not-allowed;
}

.mission-arrow-connector {
  text-align: center;
  margin-left: 24px;
  color: var(--slate-300);
  font-size: 1.4rem;
  line-height: 1;
}

.peta-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-back-dashboard, .btn-back-showcase {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-800);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  transition: all 0.2s ease;
}

.btn-back-dashboard:hover, .btn-back-showcase:hover {
  border-color: var(--green-600);
  background: var(--green-50);
}

/* ==========================================================================
   13. DEMO MISI & TYPING CHALLENGE
   ========================================================================== */
.demo-player-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-top-notice {
  background: #fefce8;
  border: 1.5px solid #fef08a;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.notice-icon { font-size: 1.4rem; }
.notice-text { flex: 1; font-size: 0.84rem; color: #854d0e; min-width: 260px; }

.btn-notice-login {
  background: var(--green-700);
  color: #fff;
  border: 0;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.mission-stepper-card {
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.stepper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.stepper-mapel-badge {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--green-700);
  text-transform: uppercase;
}

.stepper-mission-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--slate-900);
}

.stepper-reward-chip {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.stepper-steps-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--slate-50);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  flex-wrap: wrap;
  gap: 6px;
}

.step-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-400);
}

.step-badge.active {
  color: var(--green-800);
}

.step-badge.reward-step {
  color: var(--gold-dark);
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.step-separator {
  color: var(--slate-300);
  font-size: 0.7rem;
}

.demo-activity-board {
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.typing-challenge-box, .quiz-challenge-box {
  max-width: 760px;
  margin: 0 auto;
}

.challenge-header {
  text-align: center;
  margin-bottom: 22px;
}

.chal-badge {
  display: inline-block;
  background: #ecfdf5;
  color: var(--green-800);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.challenge-header h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 6px;
}

.challenge-header p {
  font-size: 0.88rem;
  color: var(--slate-600);
}

.typing-target-card {
  background: var(--slate-50);
  border: 1.5px dashed var(--green-500);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.target-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--slate-500);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.target-sentence {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-800);
  line-height: 1.5;
}

.typing-textarea {
  width: 100%;
  border: 2px solid var(--slate-300);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
  margin-bottom: 16px;
}

.typing-textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

.typing-live-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: var(--slate-50);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 24px;
}

.live-stat-col {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.stat-caption {
  font-size: 0.7rem;
  color: var(--slate-500);
  font-weight: 700;
  text-transform: uppercase;
}

.stat-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--slate-900);
}

.stat-val.pb-val { color: var(--slate-500); }
.stat-val.target-val { color: var(--gold-dark); }

/* Quiz Box */
.quiz-question-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.question-number {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--green-700);
  margin-bottom: 6px;
}

.quiz-question-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 16px;
  line-height: 1.5;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.quiz-option-label:hover {
  border-color: var(--green-500);
  background: var(--green-50);
}

.quiz-option-label.correct {
  border-color: #10b981;
  background: #d1fae5;
  color: #065f46;
}

.demo-action-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--slate-200);
  padding-top: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-action-back {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-600);
}

.btn-claim-xp-demo {
  background: linear-gradient(135deg, var(--gold-accent), var(--gold-primary));
  color: var(--slate-950);
  border: 0;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(244, 196, 48, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-claim-xp-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 196, 48, 0.5);
}

/* ==========================================================================
   14. PLAYER LKM INTERACTION & STEPPER
   ========================================================================== */
.player-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.player-topbar {
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.player-nav-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-player-back {
  background: var(--slate-100);
  color: var(--slate-700);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-player-back:hover {
  background: var(--slate-200);
}

.player-lkm-meta h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.25;
}

.meta-sub {
  font-size: 0.78rem;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.player-xp-chip {
  color: var(--green-700);
  font-weight: 800;
}

.player-pb-chip {
  color: var(--gold-dark);
  font-weight: 700;
}

.player-mini-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  padding: 4px 12px;
}

.mini-step {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate-400);
}

.mini-step.done { color: var(--green-700); }
.mini-step.active { color: var(--green-900); font-weight: 800; }
.mini-step.reward { color: var(--gold-dark); font-weight: 800; }
.mini-arr { font-size: 0.65rem; color: var(--slate-300); }

.player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-nav-step {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-700);
  transition: all 0.15s ease;
}

.btn-nav-step:hover:not(.disabled) {
  background: var(--slate-200);
}

.btn-nav-step.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-claim-xp {
  background: linear-gradient(135deg, var(--gold-accent), var(--gold-primary));
  color: var(--slate-950);
  border: 0;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(244, 196, 48, 0.35);
  transition: all 0.2s ease;
}

.btn-claim-xp:hover {
  transform: translateY(-1px);
}

.player-iframe-frame {
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 78vh;
  min-height: 550px;
}

.player-iframe-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   15. MODAL DIALOGS (LOGIN & CELEBRATION)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 440px;
  width: 100%;
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  text-align: center;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--slate-100);
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  color: var(--slate-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: var(--slate-200);
  color: var(--slate-800);
}

.modal-icon-badge {
  width: 64px;
  height: 64px;
  background: #ecfdf5;
  border: 2px solid var(--green-200);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.modal-dialog h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin-bottom: 20px;
}

.student-login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-700);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  font-size: 1rem;
}

.form-control {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.btn-modal-login {
  background: var(--green-700);
  color: #fff;
  border: 0;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-modal-login:hover {
  background: var(--green-800);
}

.btn-modal-quick-demo {
  background: #fef3c7;
  color: #92400e;
  border: 1.5px solid #fde68a;
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-modal-quick-demo:hover {
  background: #fde68a;
}

.btn-modal-dismiss {
  background: transparent;
  border: 0;
  color: var(--slate-500);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px;
  text-decoration: underline;
}

.modal-privacy-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.72rem;
  color: var(--slate-600);
  margin-top: 14px;
  line-height: 1.4;
  text-align: left;
}

/* CELEBRATION MODAL */
.modal-dialog-celebration {
  max-width: 480px;
  background: linear-gradient(180deg, #ffffff 0%, #fefce8 100%);
  border: 2px solid var(--gold-accent);
}

.celebration-badge-hero {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.celebration-emoji-big {
  font-size: 3.5rem;
  animation: bounceEmoji 1s infinite alternate;
}

@keyframes bounceEmoji {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-8px) scale(1.1); }
}

.celebration-headline {
  margin-bottom: 16px;
}

.celebration-subhead {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--gold-dark);
  letter-spacing: 0.08em;
}

.celebration-headline h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--slate-900);
}

.celebration-reward-box {
  background: #ffffff;
  border: 1.5px solid var(--green-200);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
}

.reward-xp-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--green-700);
}

.reward-label {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 600;
}

.celebration-pb-box {
  background: #ffffff;
  border: 1.5px solid var(--gold-accent);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 16px;
}

.pb-header {
  font-size: 0.76rem;
  color: var(--gold-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pb-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 8px;
}

.pb-col {
  display: flex;
  flex-direction: column;
}

.pb-caption { font-size: 0.68rem; color: var(--slate-400); text-transform: uppercase; }
.pb-val.old { font-size: 1.1rem; font-weight: 800; color: var(--slate-400); text-decoration: line-through; }
.pb-val.new { font-size: 1.4rem; font-weight: 900; color: var(--green-700); }
.pb-arrow { font-size: 1.2rem; color: var(--gold-dark); font-weight: bold; }

.pb-gain-pill {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold-dark);
}

.celebration-level-status {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 18px;
  text-align: left;
}

.level-status-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 6px;
}

.level-progress-bar {
  height: 8px;
  background: var(--slate-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 4px;
}

.level-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #F4C430);
  border-radius: var(--radius-full);
}

.level-hint {
  font-size: 0.72rem;
  color: var(--slate-500);
}

.celebration-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-celebration-next {
  background: var(--green-700);
  color: #fff;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-celebration-next:hover {
  background: var(--green-800);
}

.btn-celebration-dashboard {
  background: transparent;
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ==========================================================================
   16. SITE FOOTER
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--slate-200);
  margin-top: auto;
  color: var(--slate-600);
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 50%;
  padding: 6px;
  object-fit: contain;
  border: 1.5px solid var(--gold-accent);
  display: block;
  flex-shrink: 0;
  box-sizing: border-box;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--green-950);
}

.footer-motto {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.footer-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--slate-600);
}

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
}

.footer-col a:hover {
  color: var(--green-700);
  text-decoration: underline;
}

.footer-badge-preview {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.footer-bottom {
  border-top: 1px solid var(--slate-100);
  padding: 18px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--slate-500);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-safe-text {
  color: var(--green-700);
  font-weight: 600;
}

/* ==========================================================================
   17. ACTIVITY BADGE STYLES (MATCHES DB TYPES)
   ========================================================================== */
.activity-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}

.badge-belajar  { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.badge-bermain  { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.badge-berlatih { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.badge-berkarya { background: #f5f3ff; color: #5b21b6; border-color: #ddd6fe; }
.badge-evaluasi { background: #fff1f2; color: #9f1239; border-color: #fecdd3; }
.badge-default  { background: var(--slate-100); color: var(--slate-700); }

/* Animation keyframes */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleUp { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }

/* ==========================================================================
   18. MOBILE-FIRST RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 960px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title { font-size: 2.3rem; }
  .hero-tagline-wrap { justify-content: center; }
  .hero-narasi { margin: 0 auto 22px; }
  .hero-cta-group { justify-content: center; }
  .hero-features-strip { justify-content: center; }
  .gamification-bar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .site-nav {
    display: none; /* Accessible via header buttons & staging bar */
  }
}

@media (max-width: 640px) {
  /* 1. Header & Logo Sekolah di Mobile */
  .site-header {
    padding: 10px 14px;
  }
  .brand-link {
    gap: 9px;
  }
  .brand-logo-wrap {
    width: 38px;
    height: 38px;
    padding: 5px;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-sparkle {
    font-size: 0.85rem;
  }
  .brand-tagline {
    font-size: 0.66rem;
  }
  .footer-logo {
    width: 38px;
    height: 38px;
    padding: 5px;
  }
  .staging-bar {
    padding: 5px 10px;
    font-size: 0.72rem;
  }
  .staging-tag {
    font-size: 0.68rem;
  }
  .staging-btn {
    padding: 2px 8px;
    font-size: 0.68rem;
  }

  /* Header khusus tampilan Dashboard Siswa di Mobile */
  .is-student-area .site-header .brand-title {
    font-size: 0.98rem;
  }
  .is-student-area .student-header-pill {
    padding: 2px 8px 2px 4px;
    font-size: 0.72rem;
    gap: 4px;
  }
  .is-student-area .student-name-text {
    display: none; /* Nama sudah tampil dominan & hangat di hero dashboard */
  }
  .is-student-area .btn-header-secondary {
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  /* 2. Ringkas Dashboard Siswa & Nama Siswa di Mobile */
  .is-student-area .main-wrapper {
    padding: 12px 12px 36px;
  }
  .student-dashboard {
    gap: 16px;
  }
  .student-hero-banner {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    gap: 10px;
  }
  .student-hero-main {
    gap: 12px;
    align-items: center;
  }
  .student-avatar-big {
    width: 46px;
    height: 46px;
    font-size: 1.8rem;
  }
  .student-level-chip {
    font-size: 0.6rem;
    padding: 1px 6px;
    bottom: -4px;
  }
  .student-pill-tag {
    font-size: 0.68rem;
    margin-bottom: 2px;
    gap: 6px;
  }
  .student-name-heading {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
  }
  .student-motto-quote {
    font-size: 0.74rem;
    line-height: 1.35;
    margin-bottom: 0;
  }
  .student-preview-switch-box {
    padding: 6px 10px;
    max-width: 100%;
    width: 100%;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
  }
  .student-preview-switch-box p {
    display: none;
  }
  .preview-mode-tag {
    margin-bottom: 0;
    font-size: 0.68rem;
  }
  .btn-back-to-public {
    padding: 3px 8px;
    font-size: 0.68rem;
  }

  /* 3. Gamifikasi 2x2 Grid Ringkas di Layar Ponsel */
  .gamification-bar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .game-stat-card {
    padding: 10px 12px;
    gap: 10px;
    border-radius: var(--radius-md);
  }
  .game-stat-icon {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    border-radius: var(--radius-sm);
  }
  .game-stat-label {
    font-size: 0.62rem;
    margin-bottom: 0;
  }
  .game-stat-value {
    font-size: 0.98rem;
    margin-bottom: 0;
  }
  .game-stat-sub {
    display: none;
  }

  /* 4. Level Progress & Section Padding */
  .level-progress-section {
    padding: 10px 14px;
    border-radius: var(--radius-md);
  }
  .progress-labels {
    font-size: 0.74rem;
    margin-bottom: 6px;
  }
  .progress-track {
    height: 10px;
  }
  .student-section .section-title-wrap {
    margin-bottom: 12px;
  }
  .student-section .section-pill {
    font-size: 0.7rem;
    padding: 2px 10px;
    margin-bottom: 4px;
  }
  .student-section .section-main-heading {
    font-size: 1.3rem;
    margin-bottom: 4px;
  }
  .student-section .section-sub-heading {
    font-size: 0.78rem;
  }
  .today-mission-card {
    padding: 16px;
  }

  /* 5. Komponen Lainnya di Mobile */
  .hero-section {
    padding: 28px 18px;
    border-radius: var(--radius-lg);
  }
  .hero-title { font-size: 1.9rem; }
  .tagline-word { font-size: 0.95rem; padding: 2px 10px; }
  .pillars-section {
    grid-template-columns: 1fr;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .pb-cards-grid {
    grid-template-columns: 1fr;
  }
  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .typing-live-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .peta-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .mission-node-item {
    flex-direction: column;
    align-items: stretch;
  }
  .node-indicator {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding-top: 0;
    width: auto;
  }
}
