/**
 * EDU Sekolah Rendah - Lembaran Gaya CSS Premium Meja Belajar Murid
 * Berinspirasikan Skrin Tablet Android Moden, Ceria, Tactile & Mesra Murid
 */

:root {
  --bg-desk: #FAF7F2;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #FDFBF7;
  --bg-elevated: #FFFDF9;
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  
  /* Aksen Mengikut Tahun */
  --accent-y1: #10B981;
  --accent-y1-dark: #047857;
  --accent-y1-light: #ECFDF5;
  --accent-y1-border: #A7F3D0;

  --accent-y2: #0284C7;
  --accent-y2-dark: #0369A1;
  --accent-y2-light: #F0F9FF;
  --accent-y2-border: #BAE6FD;

  --accent-y3: #8B5CF6;
  --accent-y3-dark: #6D28D9;
  --accent-y3-light: #F5F3FF;
  --accent-y3-border: #DDD6FE;

  /* Tema Utama Meja Belajar */
  --theme-accent: #0D9488;
  --theme-accent-dark: #0F766E;
  --theme-accent-light: #CCFBF1;
  --theme-accent-border: #99F6E4;

  --amber-gold: #F59E0B;
  --amber-dark: #B45309;
  --amber-light: #FEF3C7;

  --radius-tablet: 24px;
  --radius-card: 20px;
  --radius-btn: 14px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-tablet-icon: 0 10px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-bottom-nav: 0 -8px 24px rgba(15, 23, 42, 0.06);
}

/* Tetapan Kurangkan Animasi */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-desk);
  background-image: radial-gradient(#E2E8F0 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  color: var(--text-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 96px;
}

/* =========================================================================
   TOP STATUS / HEADER MEJA BELAJAR
   ========================================================================= */
.tablet-status-bar {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  border-bottom: 1.5px solid rgba(226, 232, 240, 0.85);
  box-shadow: var(--shadow-sm);
}

.status-bar-container {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.app-badge-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 2px solid #F59E0B;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-title-group:hover .app-badge-icon {
  transform: scale(1.08) rotate(-6deg);
}

.app-title-text h1 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0F766E;
  line-height: 1.15;
  letter-spacing: -0.4px;
}

.app-title-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* WIDGET BINTANG & PILIHAN TAHUN */
.header-star-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFBEB;
  border: 1.5px solid #FCD34D;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.88rem;
  color: #92400E;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
  user-select: none;
}

.header-star-counter .star-icon {
  animation: bounce-subtle 2s infinite ease-in-out;
}

@keyframes bounce-subtle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.year-widget-selector {
  display: flex;
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  padding: 4px;
  border-radius: var(--radius-pill);
  gap: 4px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.year-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.year-btn:hover:not(.active) {
  background: #E2E8F0;
  color: #0F172A;
  transform: translateY(-1px);
}

.year-btn.active.y1 {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  transform: scale(1.02);
}

.year-btn.active.y2 {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  transform: scale(1.02);
}

.year-btn.active.y3 {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
  transform: scale(1.02);
}

@media (max-width: 640px) {
  .year-btn {
    padding: 6px 10px;
    font-size: 0.82rem;
    gap: 4px;
  }
}

/* WIDGET PILIHAN MATA PELAJARAN (MATEMATIK / SAINS) */
.subject-widget-selector {
  display: inline-flex;
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  padding: 4px;
  border-radius: var(--radius-pill);
  gap: 4px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.subject-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.subject-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #1E293B;
}

.subject-btn.active[data-subject="matematik"] {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.32);
}

.subject-btn.active[data-subject="sains"] {
  background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.32);
}

.subject-btn-short {
  display: none;
}

@media (max-width: 640px) {
  .subject-btn {
    padding: 5px 8px;
    font-size: 0.78rem;
    gap: 3px;
  }
  .subject-btn-short {
    display: inline;
  }
  .subject-btn-text {
    display: none;
  }
}

/* KAD PENYIASATAN SAINTIFIK & SALAH FAHAM SAINS */
.investigation-card {
  background: #F0FDFA;
  border: 2px solid #5EEAD4;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.08);
}

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

.investigation-grid-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.inv-box {
  background: #FFFFFF;
  border: 1.5px solid #CCFBF1;
  border-radius: 14px;
  padding: 14px 18px;
}

.inv-box.aim { border-left: 5px solid #0D9488; }
.inv-box.prediction { border-left: 5px solid #6366F1; }
.inv-box.safety { border-left: 5px solid #F59E0B; background: #FFFBEB; }
.inv-box.materials { border-left: 5px solid #10B981; }

.misconception-card {
  background: #FFF7ED;
  border: 2px solid #FDBA74;
  border-radius: 18px;
  padding: 20px;
  margin: 20px 0;
}

.unit-summary-card {
  background: #F8FAFC;
  border: 2px solid #CBD5E1;
  border-radius: 18px;
  padding: 20px;
  margin: 20px 0;
}

/* =========================================================================
   KAWASAN KANDUNGAN UTAMA
   ========================================================================= */
.app-content-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  padding: 24px 20px 40px;
  flex: 1;
}

/* =========================================================================
   1. HALAMAN UTAMA (HERO BANNER & LAUNCHER)
   ========================================================================= */
.home-welcome-banner {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-tablet);
  padding: 26px 30px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.home-welcome-banner::after {
  content: '📐';
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 8rem;
  opacity: 0.05;
  pointer-events: none;
}

.hero-stats-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-stat-pill {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.active-year-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 8px;
  border: 1.5px solid transparent;
}

.active-year-pill.y1 { background: var(--accent-y1-light); color: var(--accent-y1-dark); border-color: var(--accent-y1-border); }
.active-year-pill.y2 { background: var(--accent-y2-light); color: var(--accent-y2-dark); border-color: var(--accent-y2-border); }
.active-year-pill.y3 { background: var(--accent-y3-light); color: var(--accent-y3-dark); border-color: var(--accent-y3-border); }

/* GRID IKON TABLET LAUNCHER */
.tablet-apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 34px;
}

@media (min-width: 720px) {
  .tablet-apps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }
}

.app-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  background: var(--bg-card);
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-tablet);
  padding: 24px 16px 20px;
  box-shadow: var(--shadow-tablet-icon);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.app-icon-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--theme-accent);
  box-shadow: 0 16px 32px -4px rgba(13, 148, 136, 0.18);
}

.app-icon-item:active {
  transform: scale(0.96);
}

.app-badge-floating {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569;
}

.icon-squircle {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.7rem;
  margin-bottom: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease;
}

.app-icon-item:hover .icon-squircle {
  transform: scale(1.1) rotate(5deg);
}

.app-icon-label {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 3px;
}

.app-icon-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 700;
  text-align: center;
}

/* =========================================================================
   2. SENARAI BAB (KAD NOTA & PENCARIAN)
   ========================================================================= */
.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.home-section-header h3 {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-filter-box {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

.search-filter-box:focus-within {
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.search-filter-box input {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  width: 100%;
  background: transparent;
}

.topics-grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
  margin-bottom: 34px;
}

.topic-chapter-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-card);
  padding: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.topic-chapter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--theme-accent);
  transition: height 0.2s ease;
}

.topic-chapter-card:hover {
  transform: translateY(-6px);
  border-color: var(--theme-accent);
  box-shadow: var(--shadow-lg);
}

.topic-chapter-card:hover::before {
  height: 8px;
}

.chapter-number-pill {
  display: inline-block;
  font-weight: 900;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  background: var(--theme-accent-light);
  color: var(--theme-accent-dark);
}

.chapter-title-text {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 6px;
  line-height: 1.25;
}

.chapter-desc-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
  flex: 1;
}

.chapter-chips-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.chapter-chip {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #475569;
}

/* =========================================================================
   3. PAPARAN BAB TERPERINCI (NOTE DETAIL)
   ========================================================================= */
.note-detail-container {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-tablet);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}

.note-detail-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid #F1F5F9;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-nav-action {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.9rem;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  transition: all 0.15s ease;
}

.btn-nav-action:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  transform: translateY(-1px);
}

.btn-nav-action:active {
  transform: translateY(2px);
}

/* SEGMENTED TAB NOTA */
.note-section-nav {
  position: sticky;
  top: 10px;
  z-index: 50;
  display: flex;
  gap: 8px;
  margin: 20px 0 28px 0;
  overflow-x: auto;
  padding: 6px;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(8px);
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  scrollbar-width: none;
}

.note-section-nav::-webkit-scrollbar {
  display: none;
}

.note-section-tab {
  background: transparent;
  border: none;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.note-section-tab:hover {
  color: #0F172A;
}

.note-section-tab.active {
  background: #FFFFFF;
  color: #0F766E;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tab-badge-pill {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 800;
}

.note-section-tab.active .tab-badge-pill {
  background: #CCFBF1;
  color: #0F766E;
}

.note-section-tab:not(.active) .tab-badge-pill {
  background: #E2E8F0;
  color: #64748B;
}

/* CONTOH BERPANDU ACCORDION CARD */
.guided-example-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-card);
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.guided-example-card.open {
  border-color: #0F766E;
  box-shadow: 0 8px 20px -2px rgba(15, 118, 110, 0.1);
}

.example-header-btn {
  width: 100%;
  background: #F8FAFC;
  border: none;
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
  transition: background 0.15s ease;
}

.example-header-btn:hover {
  background: #F1F5F9;
}

.guided-example-card.open .example-header-btn {
  background: #F0FDFA;
}

.example-title-text {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.example-toggle-icon {
  font-size: 1.1rem;
  font-weight: 900;
  color: #64748B;
  transition: transform 0.25s ease;
}

.guided-example-card.open .example-toggle-icon {
  transform: rotate(180deg);
  color: #0F766E;
}

.example-body-content {
  padding: 22px;
  border-top: 1.5px solid #F1F5F9;
  display: none;
}

.guided-example-card.open .example-body-content {
  display: block;
}

.example-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.example-meta-card {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.example-meta-card.given {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1E3A8A;
}

.example-meta-card.to-find {
  background: #FEF3C7;
  border-color: #FDE68A;
  color: #92400E;
}

.example-meta-card.method {
  background: #F5F3FF;
  border-color: #DDD6FE;
  color: #5B21B6;
}

.example-meta-card strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

/* SUSUNAN BENTUK LAZIM (COLUMN MATH) MENAWAN */
.column-math-wrapper {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 2px dashed #CBD5E1;
  border-radius: 16px;
  padding: 16px 20px;
  margin: 16px 0;
  display: inline-block;
  min-width: 180px;
}

.column-math-display {
  display: inline-block;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  border-radius: 14px;
  padding: 14px 22px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.35rem;
  font-weight: 900;
  text-align: right;
  letter-spacing: 0.16em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.column-math-display .math-carry {
  color: #DC2626;
  font-size: 1rem;
  line-height: 1.2;
}

.column-math-display .math-row {
  line-height: 1.3;
}

.column-math-display .math-op {
  float: left;
  margin-right: 14px;
  color: #0F766E;
  font-weight: 900;
}

.column-math-display .math-line {
  border-bottom: 2.5px solid #1E293B;
  margin: 4px 0 6px 0;
}

.column-math-display .math-ans {
  color: #047857;
  font-size: 1.45rem;
  border-bottom: 2.5px double #047857;
  padding-bottom: 2px;
}

/* STEP FLOW LIST */
.step-flow-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0;
}

.step-flow-item {
  display: flex;
  gap: 14px;
  background: #F8FAFC;
  border-left: 4.5px solid var(--theme-accent);
  padding: 14px 16px;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.step-number-bubble {
  min-width: 32px;
  height: 32px;
  background: var(--theme-accent);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.3);
}

.step-action-text {
  font-size: 0.98rem;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 4px;
  line-height: 1.4;
}

.step-why-box {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
  font-size: 0.86rem;
  padding: 5px 12px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 4px;
  line-height: 1.35;
}

.example-final-answer-box {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 2px solid #6EE7B7;
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* CUBA SENDIRI (EXERCISE CARDS) */
.try-self-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-card);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.try-self-card:hover {
  border-color: #93C5FD;
}

.try-self-question-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 10px;
  line-height: 1.4;
}

.try-self-hint-text {
  font-size: 0.88rem;
  color: #92400E;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  display: inline-block;
}

.btn-toggle-solution {
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 3px 0 #CBD5E1;
  transition: all 0.15s ease;
}

.btn-toggle-solution:hover {
  background: #E2E8F0;
}

.btn-toggle-solution:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #CBD5E1;
}

.try-solution-panel {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px dashed #E2E8F0;
  animation: fadeIn 0.25s ease;
}

.try-solution-panel.open {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   4. HALAMAN GAME
   ========================================================================= */
.games-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}

.game-card-tablet {
  background: #FFFFFF;
  border: 2.5px solid #E2E8F0;
  border-radius: var(--radius-tablet);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-card-tablet:hover {
  transform: translateY(-6px);
  border-color: var(--amber-gold);
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.15);
}

.btn-game-act {
  flex: 1;
  min-width: 140px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-game-act.primary {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  box-shadow: 0 5px 0 #B45309;
}

.btn-game-act.primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #B45309;
}

.btn-game-act.secondary {
  background: #FFFFFF;
  color: #334155;
  border: 2px solid #CBD5E1;
  box-shadow: 0 4px 0 #CBD5E1;
}

.btn-game-act.secondary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #CBD5E1;
}

/* =========================================================================
   5. GAMEPLAY STAGE & HUD
   ========================================================================= */
.game-play-container {
  background: #FFFFFF;
  border-radius: var(--radius-tablet);
  border: 2px solid #E2E8F0;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 30px;
}

.game-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid #F1F5F9;
}

.game-round-pill {
  background: #F1F5F9;
  border: 2px solid #CBD5E1;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.95rem;
  color: #334155;
}

.game-prompt-card {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border: 2px solid #86EFAC;
  border-radius: var(--radius-card);
  padding: 18px 22px;
  margin-bottom: 22px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.game-prompt-text {
  font-size: 1.4rem;
  font-weight: 900;
  color: #14532D;
  line-height: 1.35;
}

.fruit-picker-area {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 20px;
  background: #F8FAFC;
  border-radius: var(--radius-card);
  border: 2px dashed #CBD5E1;
  margin-bottom: 22px;
}

.fruit-token {
  font-size: 3rem;
  background: #FFFFFF;
  border: 2.5px solid #E2E8F0;
  border-radius: 50%;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fruit-token:hover {
  transform: scale(1.15) rotate(6deg);
  border-color: #10B981;
}

.fruit-token:active {
  transform: scale(0.9);
}

/* =========================================================================
   6. HALAMAN TETAPAN
   ========================================================================= */
.settings-panel-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-tablet);
  padding: 30px 26px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.setting-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1.5px solid #F1F5F9;
  gap: 16px;
}

.setting-info h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 3px;
}

.setting-info p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.toggle-switch-input {
  width: 52px;
  height: 30px;
  appearance: none;
  background: #CBD5E1;
  border-radius: 20px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.toggle-switch-input:checked {
  background: var(--theme-accent);
}

.toggle-switch-input::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  background: #FFFFFF;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch-input:checked::before {
  transform: translateX(22px);
}

/* =========================================================================
   7. BUTANG AUDIO DENGAN ANIMASI WAVE
   ========================================================================= */
.btn-listen-speech-mini {
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  color: #166534;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.btn-listen-speech-mini:hover {
  background: #DCFCE7;
  transform: translateY(-1px);
}

.btn-listen-speech-mini:active {
  transform: translateY(2px);
}

.btn-listen-speech-mini.speaking {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #92400E;
  animation: pulse-ring 1s infinite alternate;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  100% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

/* =========================================================================
   8. BOTTOM NAVIGATION BAR (FLOATING DOCK TABLET)
   ========================================================================= */
.android-bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-bottom-nav);
  z-index: 1000;
  padding: 6px 12px;
}

.bottom-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}

.nav-bottom-item {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: #64748B;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex: 1;
}

.nav-bottom-item .nav-b-icon {
  font-size: 1.45rem;
  margin-bottom: 2px;
  transition: transform 0.2s ease;
}

.nav-bottom-item .nav-b-label {
  font-size: 0.78rem;
  font-weight: 800;
}

.nav-bottom-item:hover {
  color: var(--theme-accent);
}

.nav-bottom-item.active {
  color: #0F766E;
  background: #CCFBF1;
}

.nav-bottom-item.active .nav-b-icon {
  transform: translateY(-2px) scale(1.15);
}

/* Responsive adjustment for small phones */
@media (max-width: 580px) {
  .android-bottom-nav {
    bottom: 0;
    border-radius: 0;
    max-width: 100%;
    border-left: none;
    border-right: none;
  }
}


/* =========================================================================
   GAYA INTERAKTIF PERMAINAN (BAKUL BUAH, BINA NOMBOR, KEDAI MINI, DLL)
   ========================================================================= */

/* 1. BAKUL BUAH */
.basket-dropzone {
  background: radial-gradient(circle, #FEF3C7 0%, #FDE68A 100%);
  border: 3.5px dashed #D97706;
  border-radius: 36px;
  padding: 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 6px 14px rgba(180, 83, 9, 0.15), 0 8px 16px rgba(0,0,0,0.04);
  margin-bottom: 22px;
}

.basket-badge {
  position: absolute;
  top: -14px;
  background: #DC2626;
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 900;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
  letter-spacing: 0.03em;
}

.basket-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 10px;
}

.fruit-token.tapped {
  opacity: 0.35;
  transform: scale(0.85);
  filter: grayscale(80%);
}

/* 2. BINA NOMBOR (BLOK PULUH & SA) */
.blocks-workplace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-tablet);
  padding: 18px;
  margin-bottom: 20px;
}

.block-column {
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 220px;
}

.block-col-header {
  font-size: 1.1rem;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #F1F5F9;
  width: 100%;
  text-align: center;
}

.block-items-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: flex-end;
  flex: 1;
  width: 100%;
  padding: 8px;
}

.rod-puluh {
  width: 22px;
  height: 140px;
  background: linear-gradient(180deg, #10B981 0%, #059669 100%);
  border: 2px solid #047857;
  border-radius: 6px;
  box-shadow: 2px 4px 6px rgba(0,0,0,0.12);
  cursor: pointer;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 12px, rgba(255,255,255,0.4) 12px, rgba(255,255,255,0.4) 14px);
  transition: transform 0.15s ease;
}

.rod-puluh:hover {
  transform: scale(1.08);
}

.unit-sa {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  border: 2px solid #D97706;
  border-radius: 5px;
  box-shadow: 2px 3px 5px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.unit-sa:hover {
  transform: scale(1.2);
}

.btn-add-block {
  margin-top: 10px;
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-add-block:hover {
  background: #E2E8F0;
  border-color: #94A3B8;
}

/* 3. KEDAI MINI */
.shop-counter {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
  border: 2px solid #FDE68A;
  border-radius: var(--radius-tablet);
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
}

.item-for-sale-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 2px solid #FDE68A;
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin-bottom: 18px;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.1);
}

.item-sale-icon {
  font-size: 3.2rem;
  margin-right: 16px;
}

.item-sale-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0F172A;
}

.item-sale-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0F766E;
  background: #CCFBF1;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
}

.money-buttons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}

.money-btn {
  border: none;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.money-btn:hover {
  transform: translateY(-3px) scale(1.06);
}

.money-btn:active {
  transform: translateY(2px) scale(0.95);
}

/* Wang Kertas */
.money-btn.note-rm1 {
  background: #2563EB;
  color: #FFFFFF;
  border: 2px solid #1D4ED8;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 1rem;
}

.money-btn.note-rm5 {
  background: #10B981;
  color: #FFFFFF;
  border: 2px solid #059669;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 1rem;
}

.money-btn.note-rm10 {
  background: #EF4444;
  color: #FFFFFF;
  border: 2px solid #DC2626;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 1rem;
}

.money-btn.note-rm20 {
  background: #F97316;
  color: #FFFFFF;
  border: 2px solid #EA580C;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 1rem;
}

.money-btn.note-rm50 {
  background: #0D9488;
  color: #FFFFFF;
  border: 2px solid #0F766E;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 1rem;
}

/* Wang Syiling */
.money-btn.coin {
  border-radius: 50%;
  font-size: 0.85rem;
  width: 50px;
  height: 50px;
}

.money-btn.coin-50sen {
  background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%);
  color: #1E293B;
  border: 2.5px solid #94A3B8;
  width: 56px;
  height: 56px;
}

.money-btn.coin-20sen {
  background: linear-gradient(135deg, #FDE047 0%, #EAB308 100%);
  color: #713F12;
  border: 2.5px solid #CA8A04;
  width: 52px;
  height: 52px;
}

.money-btn.coin-10sen {
  background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
  color: #334155;
  border: 2px solid #94A3B8;
  width: 46px;
  height: 46px;
}

.money-btn.coin-5sen {
  background: linear-gradient(135deg, #F1F5F9 0%, #CBD5E1 100%);
  color: #475569;
  border: 2px solid #94A3B8;
  width: 42px;
  height: 42px;
}

.money-tray {
  background: #F8FAFC;
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius-card);
  padding: 16px;
  min-height: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.money-tray-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #64748B;
  width: 100%;
  text-align: center;
  margin-bottom: 6px;
}

.paid-display-box {
  background: #ECFDF5;
  border: 2px solid #6EE7B7;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 900;
  color: #065F46;
  margin-bottom: 18px;
}

/* 4. JAM ANALOG */
.clock-display-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-bottom: 20px;
}

.analog-clock-svg {
  width: 240px;
  height: 240px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.12));
}

.digital-preview-box {
  background: #0F172A;
  color: #2DD4BF;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.6rem;
  font-weight: 900;
  padding: 8px 22px;
  border-radius: 12px;
  letter-spacing: 0.15em;
  margin-top: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.clock-controls-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 16px 0;
}

.clock-step-btn {
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  color: #1E293B;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 3px 0 #CBD5E1;
  transition: all 0.15s ease;
}

.clock-step-btn:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
}

.clock-step-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #CBD5E1;
}

/* 5. GERAI KUIH (PECAHAN) */
.kuih-trays-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.kuih-tray-box {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.kuih-items-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 12px 0;
}

/* 6. DETEKTIF DATA (CARTA PALANG) */
.data-chart-wrapper {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
}

.bar-chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 200px;
  border-bottom: 3px solid #334155;
  border-left: 3px solid #334155;
  padding: 10px 10px 0 10px;
  gap: 16px;
}

.bar-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.bar-val-label {
  font-size: 0.85rem;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 4px;
}

.bar-fill {
  width: 100%;
  max-width: 50px;
  background: linear-gradient(180deg, #38BDF8 0%, #0284C7 100%);
  border-radius: 8px 8px 0 0;
  transition: height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bar-cat-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #475569;
  margin-top: 8px;
  text-align: center;
}

.btn-choice-data {
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  border-radius: var(--radius-card);
  padding: 14px 20px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1E293B;
  cursor: pointer;
  box-shadow: 0 4px 0 #CBD5E1;
  transition: all 0.15s ease;
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

.btn-choice-data:hover {
  border-color: var(--theme-accent);
  background: #F0FDFA;
}

.btn-choice-data.selected {
  background: var(--theme-accent);
  color: #FFFFFF;
  border-color: var(--theme-accent-dark);
  box-shadow: 0 4px 0 var(--theme-accent-dark);
}

.btn-choice-num {
  font-size: 1.4rem;
  font-weight: 900;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  border-radius: 16px;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 0 #CBD5E1;
  transition: all 0.15s ease;
}

.btn-choice-num:hover {
  border-color: #0D9488;
  transform: translateY(-2px);
}

.btn-choice-num.selected {
  background: #0D9488;
  color: #FFFFFF;
  border-color: #0F766E;
  box-shadow: 0 4px 0 #0F766E;
}

/* 7. KEPUTUSAN & MAKLUM BALAS */
.game-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.game-feedback-box {
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-card);
  padding: 14px 18px;
  margin-top: 16px;
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  animation: fadeIn 0.25s ease;
}

.game-feedback-box.correct {
  background: #ECFDF5;
  border-color: #6EE7B7;
  color: #065F46;
}

.game-feedback-box.wrong {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #991B1B;
}

.session-result-card {
  text-align: center;
  padding: 36px 20px;
}

.result-trophy {
  font-size: 5rem;
  margin-bottom: 12px;
  animation: bounce-subtle 2s infinite ease-in-out;
}

.btn-view-notes {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sp-tag {
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

.note-box {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-card);
  padding: 16px;
  margin: 14px 0;
  line-height: 1.55;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.note-box h4 {
  color: #0F766E;
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 900;
}

.subtopic-item {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

.subtopic-item:hover {
  border-color: #CCFBF1;
}

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

/* =========================================================================
   7. GAYA KHUSUS 6 PERMAINAN BAHARU (MAIN & BELAJAR)
   ========================================================================= */

/* --- A. JAMBATAN NOMBOR (Tahun 1) --- */
.bridge-river-scene {
  position: relative;
  background: linear-gradient(180deg, #BAE6FD 0%, #7DD3FC 50%, #38BDF8 100%);
  border-radius: var(--radius-card);
  padding: 30px 16px 20px 16px;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.river-water {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.15), rgba(255,255,255,0.15) 10px, transparent 10px, transparent 20px);
  pointer-events: none;
}

.bridge-structure {
  position: relative;
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: flex-end;
  z-index: 2;
  flex-wrap: wrap;
  max-width: 100%;
}

.bridge-plank-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bridge-character-slot {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bridge-character {
  font-size: 2.2rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.jump-bounce {
  animation: jumpBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite alternate;
}

@keyframes jumpBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-14px); }
}

.pattern-jump-badge {
  position: absolute;
  top: -12px;
  background: #10B981;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  animation: popBadge 0.4s ease-out;
}

@keyframes popBadge {
  0% { transform: scale(0); }
  80% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.bridge-plank {
  background: linear-gradient(180deg, #B45309 0%, #92400E 100%);
  border: 3px solid #78350F;
  border-radius: 8px;
  width: 72px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.25);
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.bridge-plank::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  right: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  pointer-events: none;
}

.bridge-plank .plank-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: #FEF3C7;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.bridge-plank.missing-slot {
  background: linear-gradient(180deg, #FEF3C7 0%, #FDE68A 100%);
  border: 3px dashed #D97706;
  box-shadow: 0 0 16px rgba(217, 119, 6, 0.4);
  animation: pulseGlow 1.5s infinite;
}

.bridge-plank.missing-slot .plank-num {
  color: #B45309;
  text-shadow: none;
}

.bridge-plank.missing-slot.filled {
  background: linear-gradient(180deg, #ECFDF5 0%, #A7F3D0 100%);
  border: 3px solid #059669;
  box-shadow: 0 0 16px rgba(5, 150, 105, 0.4);
  animation: none;
}

.bridge-plank.missing-slot.filled .plank-num {
  color: #065F46;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(217, 119, 6, 0.2); }
  50% { box-shadow: 0 0 20px rgba(217, 119, 6, 0.6); }
}

.bridge-plank-idx {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0369A1;
}

/* --- B. BENGKEL BENTUK (Tahun 1) --- */
.shape-workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.shape-craft-card {
  background: #FFFFFF;
  border: 2.5px solid #E2E8F0;
  border-radius: var(--radius-card);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.shape-craft-card:hover {
  transform: translateY(-4px);
  border-color: #0D9488;
  box-shadow: var(--shadow-md);
}

.shape-craft-card.selected {
  border-color: #0D9488;
  background: #F0FDFA;
  box-shadow: 0 0 16px rgba(13, 148, 136, 0.25);
  transform: scale(1.04);
}

.shape-svg-wrapper {
  width: 90px;
  height: 90px;
  margin: 0 auto 10px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.shape-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.shape-craft-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1E293B;
}

.vertex-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
  border: 2px solid #FFFFFF;
}

.vertex-dot.v1 { top: 0px; left: 34px; }
.vertex-dot.v2 { bottom: 4px; left: 2px; }
.vertex-dot.v3 { bottom: 4px; right: 2px; }

.model-assembly-tray {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 2px dashed #94A3B8;
  border-radius: var(--radius-card);
  padding: 18px;
  text-align: center;
}

/* --- C. KEDAI KEK PECAHAN (Tahun 2) --- */
.fraction-cake-circle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px 0;
}

.cake-pie-svg {
  width: 220px;
  height: 220px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.12));
}

.cake-slice-path {
  fill: #FFFBEB;
  stroke: #F59E0B;
  stroke-width: 2.5;
  cursor: pointer;
  transition: fill 0.2s, transform 0.2s;
}

.cake-slice-path:hover {
  fill: #FEF3C7;
}

.cake-slice-path.shaded {
  fill: #F43F5E !important;
  stroke: #BE123C;
}

.fraction-bar-wrapper {
  display: flex;
  justify-content: center;
  margin: 18px 0;
  overflow-x: auto;
  padding: 10px;
}

.fraction-bar-container {
  display: flex;
  border: 3px solid #059669;
  border-radius: 14px;
  overflow: hidden;
  background: #ECFDF5;
  box-shadow: 0 6px 14px rgba(5, 150, 105, 0.15);
  max-width: 100%;
}

.fraction-strip-slice {
  width: 44px;
  height: 80px;
  border-right: 2px dashed #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #FFFFFF;
  transition: background 0.2s, transform 0.15s;
  user-select: none;
}

.fraction-strip-slice:last-child {
  border-right: none;
}

.fraction-strip-slice:hover {
  background: #D1FAE5;
}

.fraction-strip-slice.shaded {
  background: #10B981 !important;
  color: #FFFFFF;
}

.fraction-strip-slice.shaded .slice-label {
  color: #FFFFFF;
}

.slice-label {
  font-weight: 900;
  font-size: 0.95rem;
  color: #047857;
}

.decimal-conversion-card {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 2px solid #6EE7B7;
  border-radius: var(--radius-card);
  padding: 14px 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.1);
  animation: popBadge 0.3s ease-out;
}

/* --- D. UKUR MEJA KELAS (Tahun 2) --- */
.desk-measuring-scene {
  background: linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 2.5px solid #FDE68A;
  border-radius: var(--radius-card);
  padding: 24px 16px;
  position: relative;
  overflow-x: auto;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.04);
}

.desk-object-holder {
  min-width: 560px;
  height: 60px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}

.classroom-object {
  height: 48px;
  background: linear-gradient(90deg, #FCD34D 0%, #F59E0B 100%);
  border: 2.5px solid #D97706;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
  position: relative;
}

.obj-icon {
  font-size: 1.8rem;
}

.obj-label {
  font-size: 0.9rem;
  font-weight: 900;
  color: #78350F;
  white-space: nowrap;
}

.obj-left-guide {
  position: absolute;
  left: 0;
  top: -10px;
  bottom: -30px;
  width: 2px;
  background: #EF4444;
  z-index: 3;
}

.obj-right-guide {
  position: absolute;
  right: 0;
  top: -10px;
  bottom: -30px;
  width: 2px;
  background: #3B82F6;
  z-index: 3;
}

.desk-ruler-holder {
  min-width: 560px;
  height: 70px;
  position: relative;
}

.metric-ruler {
  position: absolute;
  top: 0;
  left: 0;
  width: 532px; /* 19 * 28px */
  height: 56px;
  background: linear-gradient(180deg, #FEF08A 0%, #FDE047 100%);
  border: 2.5px solid #CA8A04;
  border-radius: 6px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.ruler-zero-indicator {
  position: absolute;
  top: -24px;
  left: -20px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ruler-zero-indicator.aligned {
  background: #10B981;
}

.ruler-tick-mark {
  position: absolute;
  top: 0;
  width: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tick-line {
  width: 2px;
  height: 14px;
  background: #854D0E;
}

.tick-line.major {
  height: 24px;
  background: #713F12;
  width: 2.5px;
}

.tick-num {
  font-size: 0.78rem;
  font-weight: 900;
  color: #713F12;
  margin-top: 4px;
  user-select: none;
}

/* --- E. PETA HARTA KARUN (Tahun 3) --- */
.treasure-map-board {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 3px solid #D97706;
  border-radius: var(--radius-card);
  padding: 20px 16px;
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.15);
  max-width: 440px;
  margin: 0 auto;
}

.y-axis-label {
  text-align: center;
  font-weight: 800;
  color: #92400E;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.x-axis-label {
  text-align: center;
  font-weight: 800;
  color: #92400E;
  font-size: 0.88rem;
  margin-top: 8px;
}

.grid-board-outer {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.y-axis-numbers {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 240px;
  font-weight: 900;
  color: #B45309;
  font-size: 0.9rem;
}

.x-axis-numbers {
  display: flex;
  justify-content: space-between;
  width: 240px;
  margin: 6px auto 0 auto;
  font-weight: 900;
  color: #B45309;
  font-size: 0.9rem;
  padding-left: 20px;
}

.coord-matrix-grid {
  display: grid;
  grid-template-columns: repeat(6, 40px);
  grid-template-rows: repeat(6, 40px);
  background: #FFFFFF;
  border: 2.5px solid #92400E;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.1);
}

.coord-cell {
  border: 1px dashed #FCD34D;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}

.coord-cell:hover {
  background: #FEF9C3;
}

.coord-point-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D97706;
}

.coord-point-dot.origin-dot {
  width: 12px;
  height: 12px;
  background: #DC2626;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.8);
}

.coord-ship-token {
  font-size: 1.8rem;
  position: absolute;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  animation: shipBob 1s ease-in-out infinite alternate;
}

@keyframes shipBob {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-4px) rotate(2deg); }
}

.coord-treasure-found {
  font-size: 1.4rem;
  animation: treasurePop 0.8s ease forwards;
}

@keyframes treasurePop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}

.coord-nav-pad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.btn-coord-nav {
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 800;
  color: #1E293B;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s;
}

.btn-coord-nav:hover {
  background: #F1F5F9;
  border-color: #0D9488;
}

.btn-coord-nav:active {
  transform: scale(0.95);
}

/* --- F. CERMIN CORAK (Tahun 3) --- */
.symmetry-mirror-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  perspective: 900px;
  min-height: 220px;
}

.mirror-half {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.mirror-center-line {
  width: 3px;
  height: 190px;
  background: repeating-linear-gradient(180deg, #EF4444, #EF4444 8px, transparent 8px, transparent 16px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
}

.mirror-tag {
  position: absolute;
  top: -14px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.symmetry-svg {
  width: 180px;
  height: 160px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.08));
}

.symmetry-shape-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-card);
  padding: 20px;
}

.sym-line {
  cursor: pointer;
  transition: stroke-width 0.2s, stroke 0.2s;
}

.sym-line.active {
  stroke-width: 6 !important;
  stroke: #10B981 !important;
}

.symmetry-mirror-stage.folded .right-half {
  transform: rotateY(-180deg);
  opacity: 0.85;
}

.btn-choice-sym {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
}

/* =========================================================================
   8. GAYA MODEN & CERIA PAPARAN NOTA (SENARAI BAB & DETAIL NOTA)
   ========================================================================= */

/* --- A. HERO HEADER SENARAI NOTA --- */
.notes-header-hero {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0FDFA 100%);
  border: 2px solid #CCFBF1;
  border-radius: var(--radius-tablet);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.notes-header-hero::after {
  content: "📖";
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 8rem;
  opacity: 0.05;
  pointer-events: none;
}

.header-icon-bubble {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0F766E 0%, #0D9488 100%);
  color: #FFFFFF;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.25);
}

.notes-overview-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 18px 0 20px 0;
}

.notes-stat-item {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: transform 0.2s, border-color 0.2s;
}

.notes-stat-item:hover {
  transform: translateY(-2px);
  border-color: #0D9488;
}

.notes-stat-item .stat-num {
  font-size: 1.45rem;
  font-weight: 900;
  color: #0F766E;
  line-height: 1.2;
}

.notes-stat-item .stat-lbl {
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

/* --- B. KAD BAB SENARAI NOTA (INTERAKTIF & CERIA) --- */
.chapter-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.chapter-icon-squircle {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #F0FDFA 0%, #CCFBF1 100%);
  border: 2px solid #99F6E4;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(13, 148, 136, 0.12);
  transition: transform 0.2s ease;
}

.topic-chapter-card:hover .chapter-icon-squircle {
  transform: scale(1.1) rotate(4deg);
}

.chapter-badge-count {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0F766E;
  background: #F0FDFA;
  border: 1px solid #99F6E4;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.chapter-chips-row .game-chip {
  background: #FFFBEB;
  color: #92400E;
  border-color: #FDE68A;
  font-weight: 800;
}

.chapter-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1.5px dashed #E2E8F0;
  margin-top: 8px;
}

.read-progress-hint {
  font-size: 0.84rem;
  font-weight: 700;
  color: #64748B;
}

.btn-open-chapter-pill {
  background: #0F766E;
  color: #FFFFFF;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.25);
  transition: background 0.15s, transform 0.15s;
}

.topic-chapter-card:hover .btn-open-chapter-pill {
  background: #0D9488;
  transform: scale(1.05);
}

/* --- C. DETAIL BAB: HERO BANNER UTAMA --- */
.chapter-hero-banner {
  background: linear-gradient(135deg, #0F766E 0%, #115E59 60%, #134E4A 100%);
  border-radius: var(--radius-tablet);
  padding: 28px 24px;
  color: #FFFFFF;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -4px rgba(15, 118, 110, 0.35);
}

.chapter-hero-banner::after {
  content: "✨";
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 4rem;
  opacity: 0.15;
  pointer-events: none;
}

.chapter-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.chapter-hero-icon-bubble {
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.chapter-hero-title {
  font-size: 1.95rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.chapter-hero-desc {
  color: #CCFBF1;
  font-size: 1.02rem;
  line-height: 1.5;
  margin-bottom: 18px;
  max-width: 680px;
}

.chapter-quick-stats-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.chapter-hero-banner .hero-stat-pill {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.84rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.chapter-hero-banner .hero-stat-pill.game-pill {
  background: #FEF3C7;
  color: #92400E;
  border-color: #FDE68A;
}

/* --- D. SUBTAJUK KONSEP (SUBTOPIC CARDS) --- */
.subtopic-item {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-left: 5px solid #0D9488;
  border-radius: var(--radius-card);
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}

.subtopic-item:hover {
  border-color: #0D9488;
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.12);
}

.subtopic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.subtopic-index-badge {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #0F766E 0%, #0D9488 100%);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 900;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.25);
}

.subtopic-title-text {
  font-size: 1.22rem;
  font-weight: 900;
  color: #0F172A;
  margin: 0 0 2px 0;
}

.subtopic-summary-text {
  color: #475569;
  font-size: 0.98rem;
  margin-bottom: 14px;
  line-height: 1.5;
}

.subtopic-content-body {
  margin-bottom: 10px;
}

.subtopic-game-callout {
  margin: 22px 0 14px 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, #FFFDF5 0%, #FEF9C3 35%, #FDE68A 100%);
  border: 2px solid #F59E0B;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 6px 18px -4px rgba(245, 158, 11, 0.22), 0 2px 6px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.subtopic-game-callout:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(245, 158, 11, 0.3), 0 3px 8px rgba(0, 0, 0, 0.05);
}

.subtopic-game-callout::before {
  content: "🎮";
  position: absolute;
  right: -10px;
  bottom: -18px;
  font-size: 5.5rem;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  transform: rotate(-15deg);
}

.game-callout-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 260px;
  position: relative;
  z-index: 1;
}

.game-callout-icon-badge {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(217, 119, 6, 0.35);
  animation: gentlePulse 2.8s ease-in-out infinite;
}

.game-callout-icon {
  font-size: 1.85rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.game-callout-details {
  display: flex;
  flex-direction: column;
}

.game-callout-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: rgba(180, 83, 9, 0.12);
  color: #92400E;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 3px;
}

.game-callout-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #78350F;
  line-height: 1.25;
}

.game-callout-desc {
  font-size: 0.88rem;
  color: #92400E;
  margin-top: 2px;
  line-height: 1.4;
  opacity: 0.95;
}

/* BUTANG 3D TACTILE KANAK-KANAK: MULA MAIN SEKARANG */
.btn-play-from-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
  color: #FFFFFF !important;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 0 #9A3412, 0 8px 18px rgba(234, 88, 12, 0.38);
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  outline: none;
  position: relative;
  z-index: 2;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-play-from-note:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  box-shadow: 0 6px 0 #9A3412, 0 12px 24px rgba(234, 88, 12, 0.46);
}

.btn-play-from-note:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #9A3412, 0 4px 10px rgba(234, 88, 12, 0.28);
}

.btn-play-from-note .btn-rocket-anim {
  display: inline-block;
  font-size: 1.25rem;
  transition: transform 0.22s ease;
}

.btn-play-from-note:hover .btn-rocket-anim {
  transform: translate(3px, -3px) rotate(-15deg) scale(1.25);
}

/* PORTAL BESAR DALAM TAB GAME DI HUJUNG BAB */
.btn-play-from-note.btn-portal-large {
  padding: 16px 36px;
  font-size: 1.15rem;
  box-shadow: 0 5px 0 #9A3412, 0 10px 24px rgba(234, 88, 12, 0.42);
}

.btn-play-from-note.btn-portal-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 #9A3412, 0 16px 30px rgba(234, 88, 12, 0.5);
}

.btn-play-from-note.btn-portal-large:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #9A3412, 0 4px 10px rgba(234, 88, 12, 0.3);
}

/* --- E. PANDUAN BELAJAR & BANNER --- */
.effective-learn-banner {
  background: linear-gradient(135deg, #F0FDFA 0%, #CCFBF1 100%);
  border: 1.5px solid #99F6E4;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  color: #115E59;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1.45;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.08);
}

.exercise-guide-banner {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1.5px solid #BFDBFE;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  color: #1E40AF;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1.45;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.08);
}

/* --- F. CONTOH BERPANDU (STEP TIMELINE & ACCORDION) --- */
.example-number-badge {
  background: linear-gradient(135deg, #0F766E 0%, #0D9488 100%);
  color: #FFFFFF;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 2px 4px rgba(15, 118, 110, 0.2);
}

.example-question-box {
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  padding: 16px 18px;
  border-radius: 14px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

.step-flow-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0 20px 0;
  position: relative;
}

.step-flow-item {
  display: flex;
  gap: 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 4.5px solid #0D9488;
  padding: 16px 18px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: background 0.15s;
}

.step-flow-item:hover {
  background: #F1F5F9;
}

.step-number-bubble {
  min-width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #0F766E 0%, #0D9488 100%);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.35);
  flex-shrink: 0;
}

.step-why-box {
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
  color: #92400E;
  font-size: 0.88rem;
  padding: 6px 14px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 6px;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(146, 64, 14, 0.05);
}

/* --- G. CUBA SENDIRI (EXERCISE CARDS) --- */
.try-badge-pill {
  background: #EFF6FF;
  color: #1D4ED8;
  font-weight: 900;
  font-size: 0.86rem;
  padding: 4px 12px;
  border-radius: 10px;
  border: 1px solid #BFDBFE;
}

.try-hint-card {
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
  border-radius: 10px;
  padding: 10px 14px;
  color: #92400E;
  font-size: 0.92rem;
  margin-top: 10px;
}

.btn-toggle-solution {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 1.5px solid #CBD5E1;
  padding: 8px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.btn-toggle-solution:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.try-solution-panel {
  margin-top: 14px;
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.try-self-card.revealed .try-solution-panel {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- H. CHAPTER GAME PORTAL & PAGINATION --- */
.chapter-game-portal-card {
  background: linear-gradient(135deg, #FFFDF5 0%, #FEF9C3 40%, #FDE68A 100%);
  border: 2.5px solid #F59E0B;
  border-radius: 28px;
  padding: 38px 24px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.2);
  position: relative;
  overflow: hidden;
}

.chapter-game-portal-card::before {
  content: "🎮";
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-size: 8rem;
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
  transform: rotate(-15deg);
}

.game-portal-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(180, 83, 9, 0.14);
  color: #92400E;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.game-portal-icon-wrapper {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px auto;
  border-radius: 24px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
  animation: jumpBounce 1.4s infinite alternate ease-in-out;
}

.game-portal-icon {
  font-size: 3.2rem;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
}

.game-portal-title {
  font-size: 1.65rem;
  font-weight: 900;
  color: #78350F;
  margin-bottom: 8px;
}

.game-portal-desc {
  color: #92400E;
  font-size: 1.02rem;
  max-width: 520px;
  margin: 0 auto 24px auto;
  line-height: 1.5;
}

@keyframes gentlePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 6px 14px rgba(217, 119, 6, 0.35);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.45);
  }
}

.bottom-chapter-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 2px solid #F1F5F9;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-prev-ch-pill {
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  padding: 10px 20px;
  border-radius: 14px;
  font-weight: 800;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-prev-ch-pill:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  transform: translateX(-3px);
}

.btn-next-ch-pill {
  background: linear-gradient(135deg, #F0FDFA 0%, #CCFBF1 100%);
  border: 2px solid #99F6E4;
  color: #0F766E;
  padding: 10px 20px;
  border-radius: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.12);
}

.btn-next-ch-pill:hover {
  background: #A7F3D0;
  border-color: #5EEAD4;
  transform: translateX(3px);
}

/* =========================================================================
   9. GAYA VISUAL LENGKAP & CERIA 12 PERMAINAN INTERAKTIF
   ========================================================================= */

/* --- A. STAGE HUD & PROGRESS BAR PERMAINAN --- */
.game-title-badge-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-title-icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.game-stage-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0F172A;
  margin: 2px 0 0 0;
  line-height: 1.2;
}

.game-round-dots-track {
  display: flex;
  gap: 6px;
  background: #F1F5F9;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid #E2E8F0;
}

.round-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
  transition: all 0.25s ease;
}

.round-progress-dot.active {
  background: #0D9488;
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(13, 148, 136, 0.6);
}

.round-progress-dot.done {
  background: #10B981;
}

.game-score-badge {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #92400E;
  border: 1.5px solid #FCD34D;
  font-weight: 900;
  font-size: 0.88rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.15);
}

.game-example-hint-tag {
  font-size: 0.88rem;
  color: #64748B;
  margin-top: 10px;
  background: rgba(255,255,255,0.7);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  display: inline-block;
}

.game-interactive-viewport {
  margin: 20px 0;
}

/* --- B. GAME 1: BAKUL BUAH (TAHUN 1) --- */
.fruit-basket-container {
  background: linear-gradient(180deg, #FEF3C7 0%, #FDE68A 30%, #D97706 100%);
  border: 3.5px solid #B45309;
  border-radius: 28px;
  padding: 24px 20px;
  min-height: 190px;
  box-shadow: inset 0 6px 14px rgba(120, 53, 15, 0.25), 0 8px 20px rgba(180, 83, 9, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.fruit-basket-container::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.1) 12px, transparent 12px, transparent 24px);
  pointer-events: none;
}

.fruit-token {
  font-size: 3rem;
  background: #FFFFFF;
  border: 2.5px solid #E2E8F0;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
  user-select: none;
}

.fruit-token:hover {
  transform: scale(1.15) rotate(6deg);
  border-color: #10B981;
}

.fruit-token.tapped {
  border-color: #10B981;
  background: #ECFDF5;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

.fruit-token.tapped::after {
  content: "✓";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  background: #10B981;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

.btn-choice-num {
  font-size: 1.35rem;
  font-weight: 900;
  padding: 12px 26px;
  border-radius: 16px;
  border: 2.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #1E293B;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.04);
  transition: all 0.15s ease;
}

.btn-choice-num:hover {
  border-color: #0D9488;
  background: #F0FDFA;
  transform: translateY(-2px);
}

.btn-choice-num.selected {
  border-color: #0D9488;
  background: #CCFBF1;
  color: #0F766E;
  box-shadow: 0 0 14px rgba(13, 148, 136, 0.3);
  transform: scale(1.05);
}

/* --- C. GAME 2: BINA NOMBOR (TAHUN 1) --- */
.build-number-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.build-col {
  background: #FFFFFF;
  border: 2px solid #DBEAFE;
  border-radius: var(--radius-card);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.blocks-container {
  min-height: 120px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  background: #F8FAFC;
  border-radius: 14px;
  padding: 14px;
  border: 1.5px dashed #CBD5E1;
}

.block-ten-rod {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border: 2px solid #1E40AF;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(29, 78, 216, 0.25);
  transition: transform 0.15s;
}

.block-ten-rod:hover {
  transform: scale(1.06);
}

.rod-tag-pill {
  background: #DBEAFE;
  color: #1E3A8A;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 6px;
}

.rod-ten-segments {
  display: flex;
  gap: 2px;
}

.rod-ten-segments span {
  width: 6px;
  height: 24px;
  background: #93C5FD;
  border-radius: 2px;
}

.block-one-cube {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
  border: 2px solid #1D4ED8;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.25);
  transition: transform 0.15s;
}

.block-one-cube:hover {
  transform: scale(1.15) rotate(4deg);
}

/* --- D. GAME 5: KEDAI MINI (TAHUN 2) --- */
.btn-money {
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-money.note {
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 1.05rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-money.note[data-sen="500"] {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border: 2px solid #047857;
}

.btn-money.note[data-sen="100"] {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border: 2px solid #1E40AF;
}

.btn-money.coin {
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
}

.btn-money.coin[data-sen="50"],
.btn-money.coin[data-sen="20"] {
  width: 58px;
  height: 58px;
  background: radial-gradient(circle, #FDE047 30%, #EAB308 100%);
  color: #713F12;
  border: 2.5px solid #CA8A04;
}

.btn-money.coin[data-sen="10"],
.btn-money.coin[data-sen="5"] {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, #F1F5F9 30%, #CBD5E1 100%);
  color: #334155;
  border: 2.5px solid #94A3B8;
}

.btn-money:hover {
  transform: translateY(-3px) scale(1.05);
}

.cash-counter-tray {
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 2.5px dashed #94A3B8;
  border-radius: var(--radius-card);
  padding: 18px;
  min-height: 90px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.money-token-tag {
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.9rem;
  color: #1E293B;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  transition: all 0.15s;
}

.money-token-tag:hover {
  background: #FEE2E2;
  border-color: #EF4444;
  color: #DC2626;
  transform: scale(1.05);
}

/* --- E. GAME 6: JAM LOCENG SEKOLAH (TAHUN 2) --- */
.digital-time-readout {
  font-size: 1.85rem;
  font-weight: 900;
  color: #854D0E;
  background: #FEF08A;
  padding: 6px 20px;
  border-radius: 16px;
  border: 2.5px solid #FACC15;
  box-shadow: 0 4px 10px rgba(234, 179, 8, 0.2);
  display: inline-block;
  letter-spacing: 0.05em;
}

.activity-time-tag {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #B45309;
  margin-top: 6px;
}

.analog-clock-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px 0;
}

.analog-clock-svg {
  width: 230px;
  height: 230px;
  filter: drop-shadow(0 10px 20px rgba(245, 158, 11, 0.2));
}

.clock-svg-number {
  font-size: 15px;
  font-weight: 900;
  fill: #78350F;
  font-family: inherit;
}

.clock-svg-tick {
  stroke: #B45309;
  stroke-width: 1.5;
}

.clock-svg-tick.major {
  stroke-width: 3;
  stroke: #78350F;
}

.clock-svg-hour-hand {
  stroke: #1E293B;
  stroke-width: 7;
  stroke-linecap: round;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.clock-svg-minute-hand {
  stroke: #DC2626;
  stroke-width: 4.5;
  stroke-linecap: round;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.clock-controls-cluster {
  margin-top: 18px;
}

.btn-clock-step {
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  color: #334155;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.btn-clock-step:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  transform: translateY(-2px);
}

.btn-clock-step.primary {
  background: #F0FDFA;
  border-color: #99F6E4;
  color: #0F766E;
}

.btn-clock-step.primary:hover {
  background: #CCFBF1;
  border-color: #2DD4BF;
}

/* --- F. GAME 9: GERAI KUIH (TAHUN 3) --- */
.plates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.kuih-plate {
  background: #FFFFFF;
  border: 3px solid #F472B6;
  border-radius: 22px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(244, 114, 182, 0.15);
  transition: transform 0.2s;
}

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

.plate-tray {
  min-height: 70px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
  background: #FDF2F8;
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 12px;
  border: 1.5px dashed #FBCFE8;
}

.kuih-icon {
  font-size: 2.2rem;
  cursor: pointer;
  transition: transform 0.15s;
  user-select: none;
}

.kuih-icon:hover {
  transform: scale(1.2);
}

.btn-add-kuih {
  background: #EC4899;
  color: #FFFFFF;
  border: none;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(236, 72, 153, 0.3);
  transition: background 0.15s, transform 0.15s;
}

.btn-add-kuih:hover {
  background: #DB2777;
  transform: scale(1.05);
}

/* --- G. GAME 10: DETEKTIF DATA (TAHUN 3) --- */
.bar-chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 200px;
  border-bottom: 3.5px solid #334155;
  border-left: 3.5px solid #334155;
  padding: 10px 14px 0 14px;
  gap: 16px;
  background: #F8FAFC;
  border-radius: 0 12px 0 0;
}

.bar-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.bar-value-label {
  font-size: 0.95rem;
  font-weight: 900;
  color: #0F766E;
  margin-bottom: 6px;
}

.bar-track {
  width: 48px;
  height: 150px;
  background: #E2E8F0;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1.5px solid #CBD5E1;
}

.bar-fill {
  width: 100%;
  border-radius: 6px 6px 0 0;
  transition: height 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bar-category-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #334155;
  margin-top: 8px;
}

/* --- KILANG NOMBOR (Tahun 1 Baharu) --- */
.kilang-workstation-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 20px;
  border: 1.5px solid #FDE047;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.08);
}

.kilang-columns-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  background: #FEFCE8;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #FEF08A;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .kilang-columns-wrapper {
    grid-template-columns: 1fr;
  }
}

.kilang-col-box {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 14px;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  min-height: 160px;
  display: flex;
  flex-direction: column;
}

.kilang-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #CBD5E1;
  flex-wrap: wrap;
  gap: 6px;
}

.col-pill-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.col-pill-badge.blue {
  background: #E0F2FE;
  color: #0369A1;
}

.col-pill-badge.orange {
  background: #FFEDD5;
  color: #C2410C;
}

.col-count-text {
  font-size: 0.85rem;
  color: #475569;
}

.kilang-tens-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  justify-content: center;
  min-height: 110px;
  padding: 6px;
}

.kilang-ten-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.ten-bar-new {
  animation: pulseNewBar 1s infinite alternate;
}

@keyframes pulseNewBar {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px #F59E0B); }
  100% { transform: scale(1.08); filter: drop-shadow(0 0 8px #F59E0B); }
}

.kilang-ones-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 6px;
}

.kilang-exchange-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
}

.btn-kilang-exchange {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 #B45309, 0 6px 14px rgba(217, 119, 6, 0.35);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-kilang-exchange:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #B45309, 0 8px 18px rgba(217, 119, 6, 0.45);
}

.btn-kilang-exchange:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #B45309;
}

.exchange-status-pill {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.exchange-status-pill.success {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}

.exchange-status-pill.info {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

.exchange-hint-mini {
  font-size: 0.78rem;
  color: #78350F;
  text-align: center;
}

/* Papan Bentuk Lazim */
.kilang-math-board {
  background: #F8FAFC;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #E2E8F0;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kilang-math-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0F766E;
  margin-bottom: 10px;
}

.kilang-column-math {
  font-family: 'Fredoka', 'Quicksand', monospace;
  font-size: 1.5rem;
  font-weight: 900;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  color: #0F172A;
}

.kilang-math-carry-row {
  display: flex;
  gap: 16px;
  font-size: 1rem;
  height: 24px;
}

.carry-cell {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: transparent;
}

.carry-cell.active {
  background: #F59E0B;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

.kilang-math-digits-row {
  display: flex;
  gap: 16px;
  position: relative;
  width: 100px;
  justify-content: flex-end;
}

.digit-p, .digit-s, .result-p, .result-s {
  width: 32px;
  text-align: center;
}

.math-op-sign {
  position: absolute;
  left: 0;
  color: #64748B;
}

.kilang-math-line {
  width: 100%;
  height: 3px;
  background: #334155;
  margin: 4px 0 6px 0;
  border-radius: 2px;
}

.kilang-math-result-row {
  display: flex;
  gap: 16px;
  width: 100px;
  justify-content: flex-end;
  color: #0F766E;
}

.kilang-choices-section {
  text-align: center;
}

.kilang-choices-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-choice-kilang {
  min-width: 80px;
  font-size: 1.35rem;
  font-weight: 900;
  padding: 12px 20px;
}

/* =========================================================================
   GAYA VISUAL 8 PERMAINAN BAHARU (EDISI 3 TAHAP 1)
   ========================================================================= */

/* --- 14. DETEKTIF PANJANG (Tahun 1) --- */
.detektif-stage-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 24px;
  border: 1.5px solid #BAE6FD;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08);
}

.detektif-canvas {
  background: #F0F9FF;
  border-radius: 16px;
  padding: 24px 20px;
  border: 1.5px dashed #7DD3FC;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: auto;
}

.detektif-object-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.object-start-line {
  position: absolute;
  left: 0;
  top: -12px;
  bottom: -40px;
  width: 2.5px;
  background: #EF4444;
  z-index: 5;
}

.object-end-line {
  position: absolute;
  right: 0;
  top: -12px;
  bottom: -40px;
  width: 2.5px;
  background: #EF4444;
  z-index: 5;
}

.detektif-clips-track {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  padding: 8px 12px;
  min-height: 56px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.track-start-marker {
  position: absolute;
  left: -10px;
  top: -24px;
  font-size: 0.85rem;
  font-weight: 900;
  color: #EF4444;
}

.track-clips-flex {
  display: flex;
  align-items: center;
  gap: 0; /* Tanpa ruang kosong */
}

.track-clip-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
}

.detektif-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn-detektif-act {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 #075985, 0 6px 12px rgba(2, 132, 199, 0.25);
  transition: all 0.15s ease;
}

.btn-detektif-act.secondary {
  background: linear-gradient(135deg, #64748B 0%, #475569 100%);
  box-shadow: 0 4px 0 #334155;
}

.btn-detektif-act:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.detektif-current-count {
  font-size: 0.95rem;
  color: #0369A1;
  background: #E0F2FE;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
}

.detektif-answer-box {
  text-align: center;
}

.detektif-choices-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- 15. UNDI BUAH KELAS (Tahun 1) --- */
.undi-stage-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 24px;
  border: 1.5px solid #FBCFE8;
  box-shadow: 0 8px 24px rgba(219, 39, 119, 0.08);
}

.picto-board-container {
  background: #FFF1F2;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #FECDD3;
  margin-bottom: 20px;
}

.picto-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  color: #9F1239;
  font-size: 0.95rem;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.picto-key-label {
  font-size: 0.82rem;
  background: #FFE4E6;
  padding: 4px 10px;
  border-radius: 8px;
}

.picto-grid-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: flex-end;
  min-height: 180px;
}

@media (max-width: 600px) {
  .picto-grid-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

.picto-column {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.picto-symbols-stack {
  display: flex;
  flex-direction: column-reverse; /* Simbol bertumpuk dari bawah ke atas */
  gap: 6px;
  align-items: center;
  min-height: 140px;
  justify-content: flex-start;
  width: 100%;
}

.picto-symbol-item {
  animation: popInSymbol 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popInSymbol {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.picto-col-base {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed #E2E8F0;
  padding-top: 8px;
  margin-top: 8px;
}

.picto-fruit-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #334155;
}

.picto-count-badge {
  font-size: 0.85rem;
  font-weight: 900;
  background: #FCE7F3;
  color: #BE185D;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.undi-incoming-card {
  background: #FDF2F8;
  border-radius: 16px;
  padding: 18px;
  border: 1.5px solid #F472B6;
  text-align: center;
}

.undi-badge-incoming {
  font-size: 0.85rem;
  font-weight: 800;
  color: #9D174D;
  margin-bottom: 6px;
}

.undi-fruit-target {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  padding: 8px 24px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(219, 39, 119, 0.15);
  margin-bottom: 14px;
}

.undi-buttons-prompt {
  font-size: 0.9rem;
  font-weight: 700;
  color: #831843;
  margin-bottom: 12px;
}

.undi-place-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-place-vote {
  background: #FFFFFF;
  border: 2px solid #F472B6;
  border-radius: 14px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  color: #9D174D;
  cursor: pointer;
  box-shadow: 0 4px 0 #F472B6;
  transition: all 0.15s ease;
}

.btn-place-vote:hover {
  transform: translateY(-2px);
  background: #FDF2F8;
}

.btn-place-vote:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #F472B6;
}

.undi-question-section {
  text-align: center;
}

.undi-complete-banner {
  background: #DCFCE7;
  color: #15803D;
  font-weight: 800;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.undi-choices-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- 16. KALENDAR KELAS (Tahun 2) --- */
.cal-stage-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 24px;
  border: 1.5px solid #DDD6FE;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.08);
}

.cal-month-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F5F3FF;
  padding: 12px 18px;
  border-radius: 14px;
  margin-bottom: 16px;
  border: 1px solid #EDE9FE;
  flex-wrap: wrap;
  gap: 8px;
}

.cal-month-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #5B21B6;
}

.cal-event-pill {
  font-size: 0.88rem;
  font-weight: 800;
  background: #EDE9FE;
  color: #6D28D9;
  padding: 4px 12px;
  border-radius: 999px;
}

.cal-grid-wrapper {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.cal-headers-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 900;
  color: #475569;
  padding-bottom: 8px;
  border-bottom: 1.5px solid #CBD5E1;
  margin-bottom: 8px;
}

.cal-header-cell.weekend {
  color: #DC2626;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid #F1F5F9;
  background: #FAFAFA;
}

.cal-cell.empty {
  background: transparent;
  border: none;
}

.day-cell {
  cursor: pointer;
  transition: all 0.15s ease;
}

.day-cell:hover {
  background: #EDE9FE;
  border-color: #C4B5FD;
  transform: scale(1.06);
}

.cal-day-num {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1E293B;
}

.cal-sticker-icon {
  font-size: 1.1rem;
  animation: popInSymbol 0.2s ease;
}

.day-cell.has-sticker {
  background: #DDD6FE;
  border: 2px solid #7C3AED;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.2);
}

.day-cell.target-glow {
  animation: glowCalDate 1.2s infinite alternate;
}

@keyframes glowCalDate {
  0% { border-color: #DDD6FE; }
  100% { border-color: #7C3AED; box-shadow: 0 0 8px rgba(124, 58, 237, 0.4); }
}

.cal-answer-section {
  text-align: center;
}

.cal-choices-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- 17. MAKMAL AIR (Tahun 2) --- */
.makmal-stage-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 24px;
  border: 1.5px solid #BAE6FD;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08);
}

.makmal-vessels-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
  background: #F0F9FF;
  border-radius: 16px;
  padding: 24px 16px;
  margin-bottom: 16px;
  border: 1px solid #E0F2FE;
  flex-wrap: wrap;
}

.makmal-vessel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.vessel-label {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0369A1;
}

.makmal-vs-badge {
  font-size: 1.4rem;
  font-weight: 900;
  color: #0284C7;
  background: #E0F2FE;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}

.makmal-guide-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.makmal-answer-box {
  text-align: center;
}

.makmal-choices-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- 18. STESEN CARTA PALANG (Tahun 2) --- */
.stesen-stage-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 24px;
  border: 1.5px solid #A7F3D0;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.08);
}

.stesen-layout-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 720px) {
  .stesen-layout-grid {
    grid-template-columns: 1fr;
  }
}

.stesen-table-box {
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
  border-radius: 14px;
  padding: 16px;
}

.stesen-table-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #065F46;
  margin-bottom: 12px;
}

.stesen-table-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.stesen-table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #DCFCE7;
  font-size: 0.88rem;
  font-weight: 700;
}

.stesen-cat-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.stesen-cat-name {
  flex: 1;
  color: #1E293B;
}

.stesen-cat-val {
  color: #059669;
  font-weight: 900;
}

.stesen-table-tip {
  font-size: 0.78rem;
  color: #047857;
  line-height: 1.35;
}

.stesen-chart-box {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px;
}

.stesen-chart-header {
  font-size: 1rem;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 14px;
}

.stesen-bars-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 200px;
  padding: 10px 0;
  border-bottom: 2px solid #334155;
}

.stesen-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 6px;
}

.stesen-bar-top-val {
  font-size: 0.88rem;
  font-weight: 900;
  color: #64748B;
}

.stesen-bar-top-val.matched {
  color: #059669;
}

.stesen-bar-track {
  width: 44px;
  height: 120px;
  background: #E2E8F0;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.stesen-bar-fill {
  width: 100%;
  transition: height 0.25s ease;
  border-radius: 6px 6px 0 0;
}

.stesen-bar-controls {
  display: flex;
  gap: 4px;
}

.btn-step-bar {
  width: 22px;
  height: 22px;
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: 4px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  cursor: pointer;
}

.btn-step-bar:hover {
  background: #E2E8F0;
}

.stesen-bar-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #334155;
}

.stesen-question-box {
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}

.stesen-question-box.locked {
  opacity: 0.5;
  pointer-events: none;
}

.stesen-status-bar {
  font-size: 0.85rem;
  font-weight: 800;
  color: #059669;
  margin-bottom: 10px;
}

.stesen-choices-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- 19. MISI PILIH OPERASI (Tahun 3) --- */
.misi-stage-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 24px;
  border: 1.5px solid #FECACA;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.08);
}

.misi-story-box {
  display: flex;
  gap: 16px;
  background: #FFF1F2;
  border: 1.5px solid #FECDD3;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
}

.misi-story-icon {
  font-size: 2.5rem;
}

.misi-story-text {
  font-size: 1rem;
  color: #334155;
}

.misi-question-highlight {
  font-weight: 900;
  color: #9F1239;
  font-size: 1.05rem;
}

.misi-step-section {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.misi-step-section.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.misi-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 12px;
}

.misi-step-badge {
  font-size: 0.75rem;
  font-weight: 800;
  background: #E0E7FF;
  color: #4338CA;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.misi-step-badge.green {
  background: #DCFCE7;
  color: #15803D;
}

.misi-ops-grid, .misi-choices-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-misi-op {
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  border-radius: 12px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 4px 0 #CBD5E1;
  transition: all 0.15s ease;
}

.btn-misi-op.selected {
  background: #EEF2FF;
  border-color: #4F46E5;
  color: #4F46E5;
  box-shadow: 0 4px 0 #4338CA;
}

.misi-eq-preview {
  margin-top: 12px;
  text-align: center;
  font-size: 0.95rem;
  color: #4338CA;
}

/* --- 20. TAMAN 100 PETAK (Tahun 3) --- */
.taman-stage-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 24px;
  border: 1.5px solid #FED7AA;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.08);
}

.taman-ribbon-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.ribbon-pill {
  font-size: 0.85rem;
  font-weight: 800;
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FFEDD5;
  padding: 6px 14px;
  border-radius: 999px;
}

.ribbon-pill.blue {
  background: #EFF6FF;
  color: #1D4ED8;
  border-color: #DBEAFE;
}

.ribbon-pill.green {
  background: #F0FDF4;
  color: #15803D;
  border-color: #DCFCE7;
}

.ribbon-pill.purple {
  background: #FAF5FF;
  color: #7E22CE;
  border-color: #F3E8FF;
}

.taman-grid-100 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  max-width: 380px;
  margin: 0 auto 20px auto;
  background: #FFF7ED;
  padding: 10px;
  border-radius: 16px;
  border: 2px solid #FDBA74;
}

.taman-cell {
  aspect-ratio: 1;
  background: #FFFFFF;
  border: 1px solid #FED7AA;
  border-radius: 4px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.1s ease;
  padding: 0;
}

.taman-cell:hover {
  background: #FFEDD5;
}

.taman-cell.colored {
  background: #F97316;
  border-color: #EA580C;
  animation: popInSymbol 0.15s ease;
}

.taman-controls-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-taman-act {
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 0 #9A3412;
}

.btn-taman-act.secondary {
  background: linear-gradient(135deg, #64748B 0%, #475569 100%);
  box-shadow: 0 3px 0 #334155;
}

.btn-taman-act.reset {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  box-shadow: 0 3px 0 #991B1B;
}

.btn-taman-act:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.taman-target-badge {
  font-size: 0.9rem;
  color: #9A3412;
  font-weight: 700;
  background: #FFEDD5;
  padding: 6px 14px;
  border-radius: 999px;
}

/* --- 21. MUZIUM BENTUK 3D (Tahun 3) --- */
.muzium-stage-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 24px;
  border: 1.5px solid #CBD5E1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.muzium-pedestal-card {
  background: linear-gradient(180deg, #F8FAFC 0%, #E2E8F0 100%);
  border-radius: 16px;
  padding: 20px;
  border: 1.5px solid #CBD5E1;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.muzium-header-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: #334155;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 6px;
}

.muzium-angle-badge {
  font-size: 0.75rem;
  font-weight: 800;
  background: #3B82F6;
  color: #FFFFFF;
  padding: 2px 10px;
  border-radius: 999px;
}

.muzium-viewport {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.muzium-angle-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-muzium-angle {
  background: #FFFFFF;
  border: 1.5px solid #94A3B8;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-muzium-angle.active {
  background: #0284C7;
  border-color: #0284C7;
  color: #FFFFFF;
}

.muzium-properties-box {
  background: #F1F5F9;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  border: 1px solid #E2E8F0;
}

.muzium-prop-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0369A1;
  margin-bottom: 4px;
}

.muzium-prop-text {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.45;
}

.muzium-classify-section {
  text-align: center;
}

.muzium-classify-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-muzium-class {
  padding: 16px 28px;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 900;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-prisma {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 0 #047857, 0 8px 16px rgba(16, 185, 129, 0.3);
}

.btn-bukan-prisma {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 0 #B91C1C, 0 8px 16px rgba(239, 68, 68, 0.3);
}

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

.btn-muzium-class:active {
  transform: translateY(2px);
}

.btn-muzium-class.selected {
  outline: 4px solid #F59E0B;
}

/* =========================================================================
   GAYA NOTA PENUH & VERSI MENARIK (STUDY CARDS, TIPS, AWAS & CONTOH BERPANDU)
   ========================================================================= */

.note-full-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.note-concept-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.note-concept-card:hover {
  border-color: #0F766E;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.08);
}

.note-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #F1F5F9;
}

.note-lead-text {
  font-size: 1rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 16px;
}

.note-table-study {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid #CBD5E1;
  margin: 16px 0;
  font-size: 0.95rem;
}

.note-table-study th {
  background: #0F766E;
  color: #FFFFFF;
  padding: 10px 14px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.3px;
}

.note-table-study td {
  padding: 10px 14px;
  border-bottom: 1px solid #E2E8F0;
  border-right: 1px solid #E2E8F0;
  color: #1E293B;
  vertical-align: middle;
}

.note-table-study td:last-child {
  border-right: none;
}

.note-table-study tr:last-child td {
  border-bottom: none;
}

.note-table-study tr:nth-child(even) td {
  background: #F8FAFC;
}

.note-visual-box {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 2px dashed #94A3B8;
  border-radius: 16px;
  padding: 16px 20px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.note-tip-card {
  background: #FFFBEB;
  border: 2px solid #FDE68A;
  border-left: 6px solid #D97706;
  border-radius: 14px;
  padding: 14px 18px;
  margin: 16px 0;
  color: #78350F;
  font-size: 0.95rem;
  line-height: 1.55;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.06);
}

.note-tip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 900;
  color: #B45309;
  margin-bottom: 6px;
}

.note-mistake-card {
  background: #FEF2F2;
  border: 2px solid #FECACA;
  border-left: 6px solid #DC2626;
  border-radius: 14px;
  padding: 14px 18px;
  margin: 16px 0;
  color: #991B1B;
  font-size: 0.95rem;
  line-height: 1.55;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.06);
}

.note-mistake-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 900;
  color: #B91C1C;
  margin-bottom: 6px;
}

.note-example-box {
  background: #F0FDFA;
  border: 2px solid #99F6E4;
  border-radius: 16px;
  padding: 18px;
  margin: 18px 0;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.05);
  transition: all 0.25s ease;
}

.note-example-box.is-collapsed {
  padding-bottom: 12px;
  background: #F8FAFC;
  border-color: #CBD5E1;
  box-shadow: none;
}

.note-example-box.is-collapsed .note-example-header {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.note-example-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid #CCFBF1;
}

.note-example-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0F766E;
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
}

.note-example-question {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 12px;
  line-height: 1.5;
}

.note-step-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  align-items: flex-start;
}

.note-step-pill {
  background: #14B8A6;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 8px;
  flex-shrink: 0;
  margin-top: 2px;
}

.note-step-text {
  font-size: 0.95rem;
  color: #1E293B;
  line-height: 1.5;
}

.note-step-why {
  font-size: 0.88rem;
  color: #0F766E;
  font-weight: 700;
  margin-top: 4px;
}

.note-ans-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ECFDF5;
  color: #065F46;
  border: 1.5px solid #6EE7B7;
  padding: 6px 14px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 0.98rem;
  margin-top: 10px;
}

.note-formula-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EEF2FF;
  color: #3730A3;
  border: 1.5px solid #C7D2FE;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
}

/* =========================================================================
   PENTAKSIRAN BILIK DARJAH (PBD) - GAYA HUB & KUIZ INTERAKTIF
   ========================================================================= */

.pbd-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .pbd-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pbd-card-tablet {
  background: #FFFFFF;
  border: 2.5px solid #E2E8F0;
  border-radius: var(--radius-tablet);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pbd-card-tablet:hover {
  transform: translateY(-5px);
  border-color: #0F766E;
  box-shadow: 0 16px 32px rgba(15, 118, 110, 0.12);
}

.pbd-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.pbd-badge-mid {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1.5px solid #BFDBFE;
}

.pbd-badge-final {
  background: #FEF3C7;
  color: #B45309;
  border: 1.5px solid #FDE68A;
}

.pbd-quiz-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.pbd-hud {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 20px;
  padding: 14px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .pbd-hud {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.pbd-progress-track {
  width: 100%;
  height: 10px;
  background: #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.pbd-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0F766E 0%, #14B8A6 100%);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.pbd-question-card {
  background: #FFFFFF;
  border: 2.5px solid #E2E8F0;
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.pbd-question-sp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F0FDFA;
  color: #0F766E;
  border: 1.5px solid #99F6E4;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.pbd-question-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.5;
  margin-bottom: 20px;
}

.pbd-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .pbd-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pbd-opt-btn {
  background: #F8FAFC;
  border: 2.5px solid #CBD5E1;
  border-radius: 18px;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  box-shadow: 0 3px 0 #CBD5E1;
}

.pbd-opt-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #F1F5F9;
  border-color: #94A3B8;
  box-shadow: 0 5px 0 #94A3B8;
}

.pbd-opt-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #94A3B8;
}

.pbd-opt-key {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #E2E8F0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 900;
  flex-shrink: 0;
}

.pbd-opt-btn.correct {
  background: #ECFDF5 !important;
  border-color: #10B981 !important;
  color: #065F46 !important;
  box-shadow: 0 4px 0 #059669 !important;
}

.pbd-opt-btn.correct .pbd-opt-key {
  background: #10B981 !important;
  color: #FFFFFF !important;
}

.pbd-opt-btn.wrong {
  background: #FEF2F2 !important;
  border-color: #EF4444 !important;
  color: #991B1B !important;
  box-shadow: 0 4px 0 #DC2626 !important;
}

.pbd-opt-btn.wrong .pbd-opt-key {
  background: #EF4444 !important;
  color: #FFFFFF !important;
}

.pbd-solution-card {
  background: #F8FAFC;
  border: 2px solid #CBD5E1;
  border-radius: 20px;
  padding: 20px;
  margin-top: 20px;
  animation: pbdFadeIn 0.3s ease;
}

.pbd-solution-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1.05rem;
  color: #0F172A;
  margin-bottom: 12px;
}

.pbd-why-box {
  background: #FEF3C7;
  border-left: 4px solid #D97706;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 12px 0;
  color: #78350F;
  font-size: 0.95rem;
  line-height: 1.5;
}

.pbd-note-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #F0FDFA;
  color: #0F766E;
  border: 2px solid #5EEAD4;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.pbd-note-link-btn:hover {
  background: #CCFBF1;
  transform: translateY(-2px);
}

.pbd-results-card {
  background: #FFFFFF;
  border: 3px solid #E2E8F0;
  border-radius: 28px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  margin: 0 auto 40px;
}

.pbd-score-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #CCFBF1 0%, #99F6E4 100%);
  border: 4px solid #0F766E;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.2);
  margin: 20px auto;
}

.pbd-tp-pill {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 900;
  background: #FEF3C7;
  color: #B45309;
  border: 2px solid #FDE68A;
  margin-bottom: 16px;
}

@keyframes pbdFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* =========================================================================
   UNIFIED NOTE STREAM & SECTION FLOW (NO HIDDEN TABS)
   ========================================================================= */
.note-flow-section {
  scroll-margin-top: 80px;
  margin-bottom: 44px;
}

.section-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border: 2px solid #BFDBFE;
  border-radius: 20px;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.section-banner-header.examples-header {
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border-color: #A7F3D0;
}

.section-banner-header.try-header {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border-color: #FDE68A;
}

.section-banner-header.game-header {
  background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%);
  border-color: #E9D5FF;
}

.section-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 2px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  flex-shrink: 0;
}

.section-banner-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #1E293B;
  margin: 0;
}

.section-banner-subtitle {
  font-size: 0.88rem;
  color: #64748B;
  margin-top: 2px;
  font-weight: 600;
}

.section-banner-badge {
  background: #3B82F6;
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
}

.section-banner-header.examples-header .section-banner-badge {
  background: #10B981;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.section-banner-header.try-header .section-banner-badge {
  background: #F59E0B;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

.section-banner-header.game-header .section-banner-badge {
  background: #8B5CF6;
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.25);
}

/* BRIDGE CARDS LEADING TO NEXT SECTION */
.section-bridge-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #ECFDF5 0%, #F0FDFA 100%);
  border: 2px dashed #0D9488;
  border-radius: 22px;
  padding: 20px 24px;
  margin: 32px 0 20px 0;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-bridge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.14);
}

.section-bridge-card.bridge-to-try {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border-color: #D97706;
}

.section-bridge-card.bridge-to-game {
  background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%);
  border-color: #9333EA;
}

.bridge-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.bridge-icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 2px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.bridge-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #0F766E;
  margin-bottom: 2px;
}

.section-bridge-card.bridge-to-try .bridge-title {
  color: #B45309;
}

.section-bridge-card.bridge-to-game .bridge-title {
  color: #7E22CE;
}

.bridge-desc {
  font-size: 0.88rem;
  color: #334155;
}

.btn-bridge-jump {
  background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-bridge-jump:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.4);
}

.btn-bridge-jump:active {
  transform: translateY(1px);
}

.btn-bridge-jump.btn-jump-amber {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}
.btn-bridge-jump.btn-jump-amber:hover {
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.4);
}

.btn-bridge-jump.btn-jump-purple {
  background: linear-gradient(135deg, #A855F7 0%, #7E22CE 100%);
  box-shadow: 0 4px 14px rgba(126, 34, 206, 0.3);
}
.btn-bridge-jump.btn-jump-purple:hover {
  box-shadow: 0 6px 18px rgba(126, 34, 206, 0.4);
}

/* SUBTOPIC QUICK ACTION PILL */
.subtopic-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #E2E8F0;
}

.btn-subtopic-jump-example {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F0FDF4;
  color: #15803D;
  border: 1.5px solid #86EFAC;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-subtopic-jump-example:hover {
  background: #DCFCE7;
  border-color: #22C55E;
  transform: translateY(-1px);
}


/* =========================================================================
   GORGEOUS & CLEAR YEAR SHOWCASE (HOME & NOTES)
   ========================================================================= */

/* 1. Interactive Year Showcase on Home */
.year-showcase-container {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 28px;
  padding: 26px 28px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.year-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #F1F5F9;
}

.year-showcase-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 2px solid #FCD34D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
  flex-shrink: 0;
}

.year-showcase-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0F172A;
  margin: 0;
}

.year-showcase-desc {
  font-size: 0.9rem;
  color: #64748B;
  margin: 3px 0 0;
}

.year-current-active-tag {
  background: #F0FDFA;
  border: 1.5px solid #5EEAD4;
  color: #0F766E;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
}

.year-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.year-card-box {
  background: #F8FAFC;
  border: 2.5px solid #E2E8F0;
  border-radius: 22px;
  padding: 22px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.year-card-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #94A3B8;
}

.year-card-box.selected.y1 {
  background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
  border-color: #10B981;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.18);
}

.year-card-box.selected.y2 {
  background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);
  border-color: #0EA5E9;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.18);
}

.year-card-box.selected.y3 {
  background: linear-gradient(180deg, #FAF5FF 0%, #FFFFFF 100%);
  border-color: #8B5CF6;
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.18);
}

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

.year-badge-bubble {
  font-size: 0.82rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.year-badge-bubble.y1 { background: #DCFCE7; color: #166534; border: 1px solid #86EFAC; }
.year-badge-bubble.y2 { background: #E0F2FE; color: #075985; border: 1px solid #7DD3FC; }
.year-badge-bubble.y3 { background: #F3E8FF; color: #6B21A8; border: 1px solid #D8B4FE; }

.year-age-pill {
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748B;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.year-card-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 12px;
  transition: transform 0.25s ease;
}

.year-card-box:hover .year-card-avatar {
  transform: scale(1.1) rotate(4deg);
}

.year-card-avatar.y1 { background: #DCFCE7; border: 2px solid #86EFAC; }
.year-card-avatar.y2 { background: #E0F2FE; border: 2px solid #7DD3FC; }
.year-card-avatar.y3 { background: #F3E8FF; border: 2px solid #D8B4FE; }

.year-card-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 4px;
}

.year-card-focus {
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 12px;
  min-height: 40px;
  line-height: 1.4;
}

.year-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.feat-pill {
  font-size: 0.76rem;
  font-weight: 800;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155;
  padding: 3px 8px;
  border-radius: 8px;
}

.year-card-topics-list {
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.5;
  margin-bottom: 18px;
  background: #FFFFFF;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  flex: 1;
}

.year-card-topics-list strong {
  color: #1E293B;
  display: block;
  margin-bottom: 2px;
}

.btn-year-selected {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: none;
  font-weight: 800;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: default;
}

.btn-year-selected.y1 { background: #10B981; color: #FFFFFF; box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3); }
.btn-year-selected.y2 { background: #0EA5E9; color: #FFFFFF; box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3); }
.btn-year-selected.y3 { background: #8B5CF6; color: #FFFFFF; box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3); }

.btn-year-choose {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  color: #334155;
  font-weight: 800;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.year-card-box:hover .btn-year-choose {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #0F172A;
}

/* 2. Bar Pilihan Tahun di Halaman Nota */
.notes-year-switcher-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 24px 0;
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  flex-wrap: wrap;
}

.switcher-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notes-year-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.notes-year-btn {
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notes-year-btn:hover:not(.active) {
  border-color: #94A3B8;
  background: #F1F5F9;
  transform: translateY(-1px);
}

.notes-year-btn.active.y1 {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border-color: #10B981;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.notes-year-btn.active.y2 {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  color: #FFFFFF;
  border-color: #0EA5E9;
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.25);
}

.notes-year-btn.active.y3 {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  color: #FFFFFF;
  border-color: #8B5CF6;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.25);
}

.ny-count {
  font-size: 0.78rem;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .year-cards-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================================
   RESPONSIVE DESIGN SUITE: PC, TABLET & PHONE OPTIMIZATION
   ========================================================================= */

/* Header Right Actions Container */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================================================================
   PEMILIH PINTAR SUBJEK & TAHUN (SMART LEARNING SELECTOR)
   ========================================================================= */
.smart-learning-selector-wrapper {
  position: relative;
  display: inline-flex;
}

.smart-learning-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  color: #1E293B;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  white-space: nowrap;
}

.smart-learning-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border-color: #94A3B8;
  background: #F8FAFC;
}

.smart-learning-btn.active,
.smart-learning-btn:focus-visible {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #EFF6FF;
}

.smart-learning-btn.matematik {
  border-color: #93C5FD;
}
.smart-learning-btn.sains {
  border-color: #5EEAD4;
}

.smart-learning-btn .smart-subj-icon {
  font-size: 1.05rem;
}

.smart-learning-btn .smart-title {
  color: #0F172A;
  font-weight: 800;
}

.smart-learning-btn .smart-arrow {
  font-size: 0.82rem;
  color: #64748B;
  transition: transform 0.2s ease;
}

.smart-learning-btn.active .smart-arrow {
  transform: rotate(180deg);
}

/* Popover Menu Dropdown Pilihan Subjek & Tahun */
.smart-selector-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
  z-index: 10000;
  min-width: 280px;
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: smartPopoverFade 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.smart-selector-popover.open {
  display: flex;
}

@keyframes smartPopoverFade {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popover-group-title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748B;
  margin-bottom: -4px;
}

.smart-selector-popover .subject-widget-selector,
.smart-selector-popover .year-widget-selector {
  width: 100%;
  display: flex;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  padding: 4px;
  border-radius: 14px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.smart-selector-popover .subject-btn {
  flex: 1;
  justify-content: center;
  padding: 8px 10px;
}

.smart-selector-popover .year-btn {
  flex: 1;
  justify-content: center;
  padding: 8px 6px;
}

/* =========================================================================
   BUTANG-BUTANG IKON HEADER YANG KEMAS (ICON BUTTONS)
   ========================================================================= */
.header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  font-size: 1.05rem;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  user-select: none;
  flex-shrink: 0;
  position: relative;
}

.header-icon-btn:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

.header-icon-btn:active {
  transform: translateY(0) scale(0.96);
}

/* Muzik Toggle Icon Button */
.header-music-toggle-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #334155;
}

.header-music-toggle-btn.playing {
  background: #ECFDF5;
  border-color: #10B981;
  color: #065F46;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25);
}

.header-music-toggle-btn.playing .music-icon {
  animation: music-note-bounce 1.2s infinite ease-in-out;
}

.header-music-toggle-btn .music-wave-anim {
  display: none;
  position: absolute;
  bottom: 4px;
  right: 5px;
  height: 8px;
  align-items: flex-end;
  gap: 1.5px;
}

.header-music-toggle-btn.playing .music-wave-anim {
  display: flex;
}

.music-wave-anim span {
  width: 2px;
  background: #10B981;
  border-radius: 1px;
  animation: soundwave 0.8s ease-in-out infinite alternate;
}
.music-wave-anim span:nth-child(1) { height: 4px; animation-delay: 0.1s; }
.music-wave-anim span:nth-child(2) { height: 8px; animation-delay: 0.3s; }
.music-wave-anim span:nth-child(3) { height: 5px; animation-delay: 0.2s; }

@keyframes soundwave {
  0% { height: 2px; }
  100% { height: 8px; }
}

/* Teroka 3D Icon Button */
.header-teroka3d-btn {
  background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
  border-color: #5EEAD4;
  color: #FFFFFF !important;
  box-shadow: 0 3px 8px rgba(15, 118, 110, 0.25);
}

.header-teroka3d-btn:hover {
  background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.35);
}

/* Pasang App Icon Button */
.header-install-btn {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  border-color: rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3);
}

.header-install-btn:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  box-shadow: 0 5px 12px rgba(16, 185, 129, 0.4);
}

@media (max-width: 600px) {
  .smart-learning-btn {
    padding: 6px 10px;
    font-size: 0.80rem;
  }
  .header-icon-btn {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }
}

/* Floating Toast Notification on Track Switch */
.music-track-toast {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-24px) scale(0.92);
  opacity: 0;
  pointer-events: none;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.music-track-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.music-track-toast .toast-note-icon {
  font-size: 1.35rem;
  animation: music-note-bounce 1s infinite ease-in-out;
}

.music-track-toast .toast-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.music-track-toast .toast-label {
  font-size: 0.72rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.music-track-toast .toast-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #38BDF8;
}

/* Header Teroka 3D Shortcut Button */
.header-teroka3d-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
  border: 1.5px solid #5EEAD4;
  color: #FFFFFF !important;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(15, 118, 110, 0.25);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.header-teroka3d-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.35);
  background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
  color: #FFFFFF !important;
}

@media (max-width: 600px) {
  .header-music-toggle-btn .music-label {
    display: none;
  }
  .header-music-toggle-btn {
    padding: 6px 9px;
    border-radius: 50%;
  }
  .header-music-next-btn .next-label {
    display: none;
  }
  .header-music-next-btn {
    padding: 6px 9px;
    border-radius: 50%;
  }
  .header-teroka3d-btn .teroka-label {
    display: none;
  }
  .header-teroka3d-btn {
    padding: 6px 9px;
    border-radius: 50%;
  }
}

.year-btn-short {
  display: none;
}
.year-btn-text {
  display: inline;
}

/* Home Welcome Banner */
.welcome-banner-text {
  flex: 1;
  max-width: 780px;
}

.welcome-heading {
  font-size: 1.85rem;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.welcome-subtext {
  color: #64748B;
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.welcome-banner-art {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mascot-bubble {
  width: 90px;
  height: 90px;
  border-radius: 28px;
  background: linear-gradient(135deg, #CCFBF1 0%, #99F6E4 100%);
  border: 3px solid #5EEAD4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.15);
  animation: floatMascot 4s ease-in-out infinite;
}

.mascot-sub-emoji {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 1.4rem;
}

@keyframes floatMascot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Year Showcase Title Group */
.year-showcase-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.year-card-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.year-card-title-col {
  flex: 1;
}

/* Launcher Grid Coloring */
.icon-notes { background: linear-gradient(135deg, #CCFBF1 0%, #99F6E4 100%); color: #0F766E; }
.icon-games { background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%); color: #B45309; }
.icon-pbd { background: linear-gradient(135deg, #FCE7F3 0%, #FBCFE8 100%); color: #BE185D; }
.icon-resume { background: linear-gradient(135deg, #E0E7FF 0%, #C7D2FE 100%); color: #4338CA; }
.icon-settings { background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%); color: #475569; }

/* Spotlight PBD Card on Home */
.home-pbd-spotlight-card {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border: 2px solid #86EFAC;
  border-radius: 24px;
  padding: 20px 26px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.1);
}

.pbd-spotlight-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.pbd-spotlight-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.pbd-spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #BBF7D0;
  color: #14532D;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 4px;
}

.pbd-spotlight-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #064E3B;
  margin: 0 0 2px 0;
}

.pbd-spotlight-desc {
  font-size: 0.9rem;
  color: #166534;
  margin: 0;
  line-height: 1.45;
}

/* Chapter Card Responsive Elements */
.chapter-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.chapter-examples-tag {
  font-size: 0.78rem;
  color: #0F766E;
  font-weight: 800;
  background: #F0FDFA;
  padding: 2px 8px;
  border-radius: 10px;
}

.chapter-chip.game-chip {
  background: #FFFBEB;
  color: #92400E;
  border-color: #FDE68A;
}

.chapter-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 0.86rem;
  color: #0F766E;
  border-top: 1.5px solid #F1F5F9;
  padding-top: 12px;
}

.chapter-open-pill {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: #334155;
}

/* =========================================================================
   BREAKPOINT: DESKTOP / PC (min-width: 1024px)
   ========================================================================= */
@media (min-width: 1024px) {
  .app-content-wrapper {
    max-width: 1200px;
    padding: 28px 24px 70px;
  }
  .status-bar-container {
    max-width: 1200px;
  }
  .tablet-apps-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 16px;
  }
  .year-cards-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
  }
  .topics-grid-list {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
  }
}

/* =========================================================================
   BREAKPOINT: TABLET (768px - 1023px)
   ========================================================================= */
@media (max-width: 1023px) and (min-width: 768px) {
  .app-content-wrapper {
    padding: 20px 18px 84px;
  }
  .welcome-heading {
    font-size: 1.6rem;
  }
  .tablet-apps-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px;
  }
  .tablet-apps-grid > .app-icon-item:nth-child(4),
  .tablet-apps-grid > .app-icon-item:nth-child(5) {
    grid-column: span 1;
  }
  .year-cards-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px;
  }
  .topics-grid-list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }
}

/* =========================================================================
   BREAKPOINT: PHONE / MOBILE (< 768px)
   ========================================================================= */
@media (max-width: 767px) {
  .tablet-status-bar {
    padding: 8px 12px;
  }

  .app-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 1.25rem;
  }

  .app-title-text h1 {
    font-size: 1rem;
  }

  .app-title-text p {
    display: none;
  }

  .header-star-counter {
    padding: 4px 8px;
    font-size: 0.8rem;
    gap: 4px;
  }

  .year-widget-selector {
    padding: 2px;
    gap: 2px;
  }

  .year-btn {
    padding: 5px 8px;
    font-size: 0.78rem;
    gap: 3px;
  }

  .year-btn-short {
    display: inline;
  }
  .year-btn-text {
    display: none;
  }

  .app-content-wrapper {
    padding: 14px 12px 96px;
  }

  /* Welcome Banner on Phone */
  .home-welcome-banner {
    padding: 20px 16px;
    border-radius: 20px;
    margin-bottom: 18px;
  }

  .welcome-banner-art {
    display: none;
  }

  .welcome-heading {
    font-size: 1.35rem;
  }

  .welcome-subtext {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .hero-stats-group {
    gap: 6px;
  }

  .hero-stat-pill {
    padding: 4px 10px;
    font-size: 0.78rem;
  }

  /* Year Showcase on Phone */
  .year-showcase-container {
    padding: 18px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
  }

  .year-showcase-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .year-showcase-title {
    font-size: 1.15rem;
  }

  .year-showcase-desc {
    font-size: 0.82rem;
  }

  .year-current-active-tag {
    font-size: 0.8rem;
    padding: 4px 10px;
  }

  .year-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .year-card-box {
    padding: 16px;
    border-radius: 16px;
  }

  .year-card-header-main {
    margin-bottom: 8px;
  }

  .year-card-avatar {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .year-card-title {
    font-size: 1.15rem;
  }

  /* Launcher grid on phone */
  .tablet-apps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
    margin-bottom: 20px;
  }

  .app-icon-item {
    padding: 16px 10px 14px;
    border-radius: 16px;
  }

  .app-icon-item .icon-squircle {
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  .app-icon-label {
    font-size: 0.95rem;
  }

  .app-icon-sub {
    font-size: 0.75rem;
  }

  /* Spotlight on Phone */
  .home-pbd-spotlight-card {
    padding: 16px;
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .pbd-spotlight-left {
    gap: 12px;
  }

  .pbd-spotlight-icon {
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
  }

  .pbd-spotlight-title {
    font-size: 1.1rem;
  }

  .pbd-spotlight-desc {
    font-size: 0.82rem;
  }

  /* Topics on Phone */
  .topics-grid-list {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .topic-chapter-card {
    padding: 16px;
    border-radius: 16px;
  }

  .chapter-title-text {
    font-size: 1.12rem;
  }

  /* Bottom nav on phone */
  .android-bottom-nav {
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }

  .nav-bottom-item {
    padding: 4px 6px;
  }

  .nav-bottom-item .nav-b-icon {
    font-size: 1.25rem;
  }

  .nav-bottom-item .nav-b-label {
    font-size: 0.7rem;
  }
}


/* ==========================================================================
   DUA CARA, SATU JAWAPAN (STRATEGI FLEKSIBEL) STYLES
   ========================================================================== */
.dua-cara-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.dua-cara-header-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #EEF2FF;
  border: 2px solid #C7D2FE;
  border-radius: 16px;
  padding: 12px 20px;
}

.dua-cara-q-badge {
  background: #4F46E5;
  color: #FFFFFF;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 8px;
}

.dua-cara-q-text {
  font-size: 1.35rem;
  font-weight: 900;
  color: #1E1B4B;
}

.dual-strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .dual-strategy-grid {
    grid-template-columns: 1fr;
  }
}

.strategy-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 18px;
  border: 2px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  position: relative;
}

.strategy-card.strat-a {
  border-color: #93C5FD;
  background: #F8FAFC;
}

.strategy-card.strat-b {
  border-color: #FBBF24;
  background: #FFFBEB;
}

.strategy-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.strat-a-badge {
  background: #DBEAFE;
  color: #1D4ED8;
}

.strat-b-badge {
  background: #FEF3C7;
  color: #B45309;
}

.strategy-title {
  margin: 0 0 10px 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: #0F172A;
}

.strategy-steps {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
  margin: 0;
}

.missing-step-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 1.15rem;
  vertical-align: middle;
  margin: 0 4px;
  transition: all 0.2s ease;
}

.missing-step-box.waiting {
  background: #FEF3C7;
  color: #D97706;
  border: 2px dashed #D97706;
  animation: pulseBlank 1.4s infinite alternate;
}

.missing-step-box.filled {
  background: #059669;
  color: #FFFFFF;
  border: 2px solid #047857;
  box-shadow: 0 2px 8px rgba(5,150,105,0.3);
}

@keyframes pulseBlank {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); box-shadow: 0 0 8px rgba(217,119,6,0.3); }
}

.dua-cara-action-box {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
}

.dua-cara-prompt-text {
  font-weight: 900;
  color: #1E293B;
  font-size: 1rem;
  margin-bottom: 14px;
  line-height: 1.5;
}

.dua-cara-choices-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-dua-cara-choice {
  min-width: 64px;
  height: 48px;
  padding: 0 16px;
  background: #FFFFFF;
  border: 2.5px solid #CBD5E1;
  border-radius: 14px;
  font-weight: 900;
  font-size: 1.25rem;
  color: #1E293B;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.btn-dua-cara-choice:hover {
  border-color: #4F46E5;
  background: #EEF2FF;
  transform: translateY(-2px);
}

.btn-dua-cara-choice.selected {
  background: #4F46E5;
  color: #FFFFFF;
  border-color: #3730A3;
  box-shadow: 0 4px 12px rgba(79,70,229,0.35);
  transform: scale(1.05);
}

/* RAJAH ILUSTRASI & VISUAL CONTOH BERGAMBAR */
.example-diagram-card {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 14px;
  margin: 14px 0 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.diagram-badge-row {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.diagram-tag {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0F766E;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.diagram-sub {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748B;
}

.diagram-body {
  padding: 12px 16px;
}

/* ==========================================================================
   ILUSTRASI BENTUK 2D REALISTIK & TANGIBEL (SEPERTI OBJEK SEBENAR)
   ========================================================================== */
.edu-svg-2d-real {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
  user-select: none;
}

.edu-svg-2d-real:hover {
  transform: translateY(-3px) scale(1.04);
  filter: drop-shadow(0 10px 16px rgba(15, 23, 42, 0.22)) !important;
}

.card-2d-realistic {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-2d-realistic:hover {
  border-color: #0D9488 !important;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.12) !important;
}

.real-badge {
  display: inline-block;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
}

/* =========================================================================
   CONTOH PENGIRAAN LENGKAP INLINE MENGIKUT SUBTAJUK (ACCORDION BUKA / TUTUP)
   ========================================================================= */
.subtopic-inline-examples-container {
  margin-top: 18px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 2px solid #99F6E4;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.08);
  transition: all 0.25s ease;
}

.subtopic-inline-examples-container:hover {
  border-color: #0D9488;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.14);
}

.btn-toggle-subtopic-examples {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #F0FDFA 0%, #E6FFFA 100%);
  border: none;
  padding: 14px 18px;
  cursor: pointer;
  text-align: left;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

.btn-toggle-subtopic-examples:hover {
  background: linear-gradient(135deg, #E6FFFA 0%, #CCFBF1 100%);
}

.btn-toggle-subtopic-examples.is-open {
  background: #CCFBF1;
  border-bottom: 2px solid #99F6E4;
}

.toggle-btn-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 3px 8px rgba(13, 148, 136, 0.3);
  flex-shrink: 0;
}

.toggle-text-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-main-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F766E;
  letter-spacing: -0.01em;
}

.toggle-sub-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: #475569;
}

.toggle-btn-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.toggle-status-badge {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #0F766E;
  border: 1.5px solid #0D9488;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.btn-toggle-subtopic-examples.is-open .toggle-status-badge {
  background: #0F766E;
  color: #FFFFFF;
  border-color: #0F766E;
}

.toggle-arrow-symbol {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0D9488;
  transition: transform 0.25s ease;
  display: inline-block;
  line-height: 1;
}

.btn-toggle-subtopic-examples.is-open .toggle-arrow-symbol {
  transform: rotate(180deg);
}

.subtopic-inline-examples-drawer {
  background: #F8FAFC;
  padding: 18px;
  animation: inlineDrawerSlideDown 0.25s ease-out;
}

@keyframes inlineDrawerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.inline-drawer-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px dashed #CBD5E1;
}

.inline-drawer-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.inline-drawer-badge {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0F766E;
  background: #E6FFFA;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #99F6E4;
}

.inline-drawer-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748B;
  background: #F1F5F9;
  padding: 4px 10px;
  border-radius: 999px;
}

.inline-drawer-hint {
  font-size: 0.85rem;
  color: #64748B;
  margin: 0;
  line-height: 1.4;
}

.inline-examples-cards-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inline-examples-cards-list .guided-example-card {
  margin-bottom: 0;
  border: 2px solid #E2E8F0;
  border-radius: 14px;
}

.inline-examples-cards-list .guided-example-card.open {
  border-color: #0D9488;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.1);
}

.btn-trigger-inline-example {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: #F0FDFA !important;
  color: #0F766E !important;
  border-color: #99F6E4 !important;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-trigger-inline-example:hover {
  background: #CCFBF1 !important;
  border-color: #0D9488 !important;
  transform: translateY(-1px);
}

.btn-trigger-inline-example .action-arrow {
  display: inline-block;
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

@media (max-width: 640px) {
  .btn-toggle-subtopic-examples {
    padding: 12px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .toggle-btn-right {
    width: 100%;
    justify-content: space-between;
  }
  .subtopic-inline-examples-drawer {
    padding: 12px 8px;
  }
}

/* ==========================================================================
   PWA & MOBILE APP INSTALLATION STYLES (ANDROID, IPHONE & DESKTOP)
   ========================================================================== */

/* Butang Header Pasang App */
.header-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.header-install-btn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

.header-install-btn:active {
  transform: translateY(0) scale(0.98);
}

.header-install-btn .install-icon {
  font-size: 1.05rem;
  animation: pwaBounce 2s infinite ease-in-out;
}

@keyframes pwaBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Sepanduk Pemasangan Aplikasi di Skrin Utama (Home Screen) */
.pwa-install-banner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 24px;
  padding: 18px 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #4F46E5 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.pwa-install-banner-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pwa-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1;
}

.pwa-banner-app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.pwa-banner-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pwa-banner-texts h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.pwa-banner-texts p {
  font-size: 0.88rem;
  margin: 0;
  color: #E0E7FF;
  line-height: 1.4;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
  flex-shrink: 0;
}

.btn-pwa-banner-install {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  background: #FFFFFF;
  color: #1E3A8A;
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.btn-pwa-banner-install:hover {
  transform: translateY(-2px) scale(1.02);
  background: #F8FAFC;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Modal Panduan Pasang iOS & Am */
.pwa-install-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pwa-install-modal-overlay.is-open {
  display: flex;
  opacity: 1;
}

.pwa-install-modal-card {
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: pwaModalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pwaModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pwa-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  padding-bottom: 16px;
  border-bottom: 1px solid #F1F5F9;
}

.pwa-modal-app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.pwa-modal-title-group h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: #0F172A;
}

.pwa-modal-title-group p {
  font-size: 0.82rem;
  margin: 3px 0 0;
  color: #64748B;
}

.pwa-modal-close-btn {
  position: absolute;
  right: 0;
  top: 0;
  background: #F1F5F9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pwa-modal-close-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.pwa-modal-body {
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pwa-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.pwa-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2563EB;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-step-content strong {
  display: block;
  font-size: 0.95rem;
  color: #1E293B;
  margin-bottom: 2px;
}

.pwa-step-content p {
  font-size: 0.85rem;
  color: #64748B;
  margin: 0;
  line-height: 1.4;
}

.ios-share-badge,
.ios-add-badge {
  display: inline-block;
  padding: 2px 6px;
  background: #E0E7FF;
  color: #3730A3;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
}

.pwa-modal-perks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.pwa-perk-chip {
  padding: 6px 12px;
  border-radius: 9999px;
  background: #ECFDF5;
  color: #065F46;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid #A7F3D0;
}

.pwa-modal-footer {
  padding-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.btn-pwa-primary {
  width: 100%;
  padding: 12px 20px;
  border-radius: 14px;
  background: #2563EB;
  color: #FFFFFF;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pwa-primary:hover {
  background: #1D4ED8;
}

/* Status Badge di Tetapan */
.pwa-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.pwa-status-badge.installed {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.pwa-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

@media (max-width: 640px) {
  .pwa-install-banner-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 14px;
  }
  .pwa-banner-actions {
    justify-content: stretch;
  }
  .btn-pwa-banner-install {
    width: 100%;
    justify-content: center;
  }
  .header-install-btn .install-label {
    display: none;
  }
  .header-install-btn {
    padding: 6px 10px;
  }
}


