/* Modern Nautical & Glassmorphism Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  /* Color Palette - Deep Maritime & Vibrant Neon Accents */
  --bg-dark: #070F1E;
  --bg-card: rgba(15, 30, 54, 0.75);
  --bg-card-hover: rgba(23, 42, 75, 0.85);
  --border-glass: rgba(255, 255, 255, 0.12);
  
  --primary: #00F2FE;
  --primary-glow: rgba(0, 242, 254, 0.35);
  --secondary: #4FACFE;
  --accent: #FFD166;
  --accent-cyan: #64FFDA;
  --accent-pink: #FF6B6B;
  --accent-purple: #A78BFA;
  
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --gradient-ocean: linear-gradient(135deg, #00F2FE 0%, #4FACFE 100%);
  --gradient-gold: linear-gradient(135deg, #FFE066 0%, #F59E0B 100%);
  --gradient-purple: linear-gradient(135deg, #A78BFA 0%, #7C3AED 100%);
  --gradient-hero: linear-gradient(180deg, rgba(7, 15, 30, 0.4) 0%, rgba(7, 15, 30, 0.95) 100%);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.2);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(79, 172, 254, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.03) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Header & Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 15, 30, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  background: var(--gradient-ocean);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-glow);
}

.brand-info h1 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-ocean);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  overflow-x: auto;
  padding: 0.2rem 0;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.nav-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-btn.active {
  color: #070F1E;
  background: var(--gradient-ocean);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

/* Main Container */
.main-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  min-height: calc(100vh - 80px - 70px);
}

/* Page Section Visibility */
.page-section {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-section.active {
  display: block;
}

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

/* Common Components & Typography */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--primary);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(0, 242, 254, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-ocean);
  color: #070F1E;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-gold {
  background: var(--gradient-gold);
  color: #070F1E;
  box-shadow: 0 4px 20px rgba(255, 209, 102, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 209, 102, 0.5);
}

/* ==========================================================================
   PAGE 1: BERANDA (HOME)
   ========================================================================== */
.hero-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 30, 54, 0.9) 0%, rgba(7, 15, 30, 0.95) 100%),
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0 50 Q 25 35 50 50 T 100 50" fill="none" stroke="rgba(0,242,254,0.05)" stroke-width="2"/></svg>');
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  margin-bottom: 2.5rem;
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-title span {
  background: var(--gradient-ocean);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.user-welcome-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.user-welcome-card h3 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-group {
  display: flex;
  gap: 0.6rem;
}

.input-field {
  flex: 1;
  background: rgba(7, 15, 30, 0.8);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-info h4 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.stat-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Feature Navigation Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: var(--shadow-glow), var(--shadow-card);
  background: var(--bg-card-hover);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-ocean);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.feature-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ==========================================================================
   PAGE 2: TUJUAN PEMBELAJARAN
   ========================================================================== */
.tujuan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.tujuan-card {
  position: relative;
  padding: 2rem;
}

.tujuan-badge-pill {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(100, 255, 218, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(100, 255, 218, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
}

.tujuan-icon {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
  display: block;
}

.tujuan-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.tujuan-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.deep-learning-info {
  background: linear-gradient(135deg, rgba(23, 42, 75, 0.8) 0%, rgba(15, 30, 54, 0.9) 100%);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
}

.dl-badges-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.dl-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(7, 15, 30, 0.6);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.dl-item span.emoji {
  font-size: 1.3rem;
}

.dl-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
}

.dl-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PAGE 3: MATERI PEMBELAJARAN
   ========================================================================== */
.materi-tabs {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.materi-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.materi-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.materi-tab-btn.active {
  background: var(--gradient-ocean);
  color: #070F1E;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.materi-tab-content {
  display: none;
}

.materi-tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

/* Definition & Comparison Table */
.definition-box {
  background: rgba(0, 242, 254, 0.05);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 1.8rem;
}

.definition-box p {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.2rem;
  background: rgba(7, 15, 30, 0.6);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.comparison-table th, .comparison-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.88rem;
}

.comparison-table th {
  background: rgba(0, 242, 254, 0.12);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* Cards Grid for Intrinsik Elements */
.unsur-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.unsur-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}

.unsur-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.unsur-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.unsur-icon {
  font-size: 1.6rem;
}

.unsur-header h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.unsur-def {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.unsur-example {
  background: rgba(7, 15, 30, 0.7);
  border-left: 3px solid var(--accent);
  padding: 0.6rem 0.8rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8rem;
  color: var(--accent);
}

/* Interactive Poetry Dissecting Section */
.bedah-puisi-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.poem-paper {
  background: #0B192C;
  border: 2px dashed rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.poem-paper-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.poem-paper-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
}

.poem-paper-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.poem-interactive-line {
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 0.4rem;
}

.mark-word {
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: var(--transition);
  border: 1px solid transparent;
}

.mark-word[data-type="diksi"] {
  background: rgba(255, 209, 102, 0.2);
  color: var(--accent);
  border-color: rgba(255, 209, 102, 0.5);
}

.mark-word[data-type="majas"] {
  background: rgba(167, 139, 250, 0.2);
  color: var(--accent-purple);
  border-color: rgba(167, 139, 250, 0.5);
}

.mark-word[data-type="citraan_penglihatan"] {
  background: rgba(79, 172, 254, 0.2);
  color: var(--secondary);
  border-color: rgba(79, 172, 254, 0.5);
}

.mark-word[data-type="citraan_pendengaran"] {
  background: rgba(100, 255, 218, 0.2);
  color: var(--accent-cyan);
  border-color: rgba(100, 255, 218, 0.5);
}

.mark-word[data-type="majas_metafora"] {
  background: rgba(255, 107, 107, 0.2);
  color: var(--accent-pink);
  border-color: rgba(255, 107, 107, 0.5);
}

.mark-word:hover {
  transform: scale(1.06);
  box-shadow: 0 0 10px currentColor;
}

.annotation-display {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}

.annotation-display h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.annotation-box {
  background: rgba(7, 15, 30, 0.8);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  min-height: 120px;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.annotation-placeholder {
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
  margin-top: 2rem;
}

/* ==========================================================================
   PAGE 4: SIMULASI MEMBACA PUISI
   ========================================================================== */
.simulasi-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.8rem;
}

.simulasi-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.poem-selector-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.poem-selector-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.poem-selector-btn.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.poem-selector-btn h4 {
  font-size: 0.98rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.poem-selector-btn p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.teleprompter-card {
  background: #060D19;
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.teleprompter-screen {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  max-height: 340px;
  scroll-behavior: smooth;
}

.teleprompter-line {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.teleprompter-line.highlight {
  color: var(--primary);
  font-size: 1.65rem;
  font-weight: 800;
  background: rgba(0, 242, 254, 0.1);
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.teleprompter-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-glass);
}

.sound-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--accent-cyan);
  padding: 0.6rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sound-toggle-btn.playing {
  background: rgba(100, 255, 218, 0.2);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(100, 255, 218, 0.3);
}

.declamation-legend {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.legend-item code {
  background: rgba(0, 242, 254, 0.15);
  color: var(--primary);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 800;
}

/* ==========================================================================
   PAGE 5 & 6: KUIS & HASIL
   ========================================================================== */
.quiz-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.quiz-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.quiz-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.quiz-progress-bar-fill {
  height: 100%;
  background: var(--gradient-ocean);
  width: 20%;
  transition: width 0.4s ease;
}

.quiz-question-card {
  margin-bottom: 1.8rem;
}

.quiz-question-text {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  white-space: pre-line;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.quiz-option-btn {
  background: rgba(7, 15, 30, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  text-align: left;
  color: var(--text-main);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.quiz-option-btn:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 242, 254, 0.4);
}

.option-prefix {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.quiz-option-btn.correct {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10B981;
  color: #34D399;
}

.quiz-option-btn.correct .option-prefix {
  background: #10B981;
  color: #fff;
}

.quiz-option-btn.wrong {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
  color: #FCA5A5;
}

.quiz-option-btn.wrong .option-prefix {
  background: #EF4444;
  color: #fff;
}

.explanation-box {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-top: 1.5rem;
  display: none;
}

.explanation-box.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Results Section */
.results-card {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--gradient-ocean);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.4);
}

.score-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: #070F1E;
  line-height: 1;
}

.score-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #070F1E;
  text-transform: uppercase;
}

.badge-earned-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 209, 102, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
}

/* Certificate Preview Modal / Card */
.certificate-card {
  background: #ffffff;
  color: #0F172A;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin-top: 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 8px solid #0F2B48;
  position: relative;
  text-align: center;
}

.cert-header {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #0F2B48;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cert-title {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 1.5rem;
}

.cert-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0284C7;
  border-bottom: 2px solid #0284C7;
  display: inline-block;
  padding: 0.2rem 1.5rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   PAGE 7: REFLEKSI
   ========================================================================== */
.refleksi-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.emoji-rating-group {
  display: flex;
  justify-content: space-around;
  gap: 0.8rem;
  margin: 1.2rem 0;
}

.emoji-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
}

.emoji-btn span.emoji {
  font-size: 1.8rem;
}

.emoji-btn span.label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.emoji-btn.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

.textarea-field {
  width: 100%;
  min-height: 100px;
  background: rgba(7, 15, 30, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 0.8rem 1rem;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  outline: none;
  resize: vertical;
  margin-top: 0.5rem;
}

.textarea-field:focus {
  border-color: var(--primary);
}

.reflection-saved-card {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #10B981;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: none;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border-glass);
  background: rgba(7, 15, 30, 0.9);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-banner {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
  .bedah-puisi-wrapper {
    grid-template-columns: 1fr;
  }
  .simulasi-container {
    grid-template-columns: 1fr;
  }
  .deep-learning-info {
    grid-template-columns: 1fr;
  }
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }
}
