/* ==========================================================================
   STYLE.CSS — GREEN TECH, ENERGY & CLIMATE ACTION
   Arah Desain: Hijau Beralam & Solarpunk Futuristik
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CUSTOM PROPERTIES & TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Palet Warna Utama */
  --forest-deep: #10231C;  /* Latar kanopi senja dominan */
  --canopy: #1B4332;       /* Lapisan sekunder panel */
  --canopy-light: #245A43; /* Hover panel */
  --bio-glow: #4ADE9C;     /* Aksen hidup/menyala utama */
  --bio-glow-dim: rgba(74, 222, 156, 0.18);
  --bio-glow-glow: rgba(74, 222, 156, 0.45);
  --solar-amber: #F5A623;  /* Aksen surya kontras terbatas */
  --solar-dim: rgba(245, 166, 35, 0.2);
  --grid-cyan: #5EEAD4;    /* Aksen nuklir, grid & data stabil */
  --grid-cyan-dim: rgba(94, 234, 212, 0.2);
  --mist: #F4F1EA;         /* Latar terang khusus edukasi.html */
  --mist-darker: #E8E3D7;
  
  /* Teks & Netral */
  --text-pure: #FFFFFF;
  --text-main: #F4F1EA;
  --text-muted: #A3B8B0;
  --text-dark: #14241E;
  --text-dark-muted: #3D5A4C;

  /* Font Families */
  --font-display: 'Fraunces', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Transisi Organik Easing */
  --ease-organic: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: all 0.3s var(--ease-organic);

  /* Dimensi & Grid */
  --max-width: 1240px;
  --nav-height: 76px;
  --border-hairline: 1px solid rgba(74, 222, 156, 0.22);
}

/* --------------------------------------------------------------------------
   2. RESET & DASAR TIPOGRAFI
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--forest-deep);
  color: var(--text-main);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Latar Belakang Tekstur Organik Halus */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 18% 22%, rgba(74, 222, 156, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(94, 234, 212, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(27, 67, 50, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Variasi Latar Terang Khusus edukasi.html */
body.mist-theme {
  background-color: var(--mist);
  color: var(--text-dark);
}

body.mist-theme::before {
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(74, 222, 156, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(245, 166, 35, 0.05) 0%, transparent 45%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-pure);
}

body.mist-theme h1,
body.mist-theme h2,
body.mist-theme h3,
body.mist-theme h4 {
  color: var(--forest-deep);
}

p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  color: var(--text-main);
}

body.mist-theme p {
  color: var(--text-dark);
}

a {
  color: var(--bio-glow);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: #7ef5bd;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   3. NAVBAR SOLARPUNK
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  height: var(--nav-height);
  background: rgba(16, 35, 28, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(74, 222, 156, 0.16);
  z-index: 1000;
  transition: var(--transition-smooth);
}

body.mist-theme .site-header {
  background: rgba(244, 241, 234, 0.92);
  border-bottom: 1px solid rgba(27, 67, 50, 0.12);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-pure);
  text-decoration: none;
}

body.mist-theme .brand-logo {
  color: var(--forest-deep);
}

.brand-leaf-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px 3px 12px 3px;
  background: linear-gradient(135deg, var(--bio-glow), var(--grid-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest-deep);
  font-size: 1.15rem;
  box-shadow: 0 0 16px rgba(74, 222, 156, 0.35);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0.6rem 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.98rem;
  border-radius: 999px;
  transition: var(--transition-smooth);
  position: relative;
}

body.mist-theme .nav-link {
  color: var(--text-dark-muted);
}

.nav-link:hover {
  color: var(--text-pure);
  background: rgba(74, 222, 156, 0.08);
}

body.mist-theme .nav-link:hover {
  color: var(--forest-deep);
  background: rgba(27, 67, 50, 0.08);
}

.nav-link.active {
  color: var(--forest-deep);
  background: var(--bio-glow);
  font-weight: 600;
  box-shadow: 0 0 14px rgba(74, 222, 156, 0.4);
}

body.mist-theme .nav-link.active {
  background: var(--canopy);
  color: var(--mist);
}

.nav-extra {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Badge Eco Points di Navbar */
.eco-points-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  background: rgba(74, 222, 156, 0.12);
  border: 1px solid rgba(74, 222, 156, 0.3);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bio-glow);
}

body.mist-theme .eco-points-badge {
  background: rgba(27, 67, 50, 0.08);
  border-color: rgba(27, 67, 50, 0.25);
  color: var(--canopy);
}

.btn-open-api-modal {
  background: transparent;
  border: 1px solid rgba(74, 222, 156, 0.35);
  color: var(--text-muted);
  padding: 0.38rem 0.85rem;
  border-radius: 8px;
  font-size: 0.84rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-open-api-modal:hover {
  border-color: var(--bio-glow);
  color: var(--bio-glow);
  background: rgba(74, 222, 156, 0.07);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.4rem;
}

body.mist-theme .mobile-menu-btn {
  color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   4. HERO SECTION ORGANIK (INDEX.HTML)
   -------------------------------------------------------------------------- */
.hero-solarpunk {
  position: relative;
  padding: 5rem 0 4.5rem;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42) saturate(1.15);
  transform: scale(1.03);
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 35, 28, 0.6) 0%,
    rgba(16, 35, 28, 0.82) 60%,
    var(--forest-deep) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(74, 222, 156, 0.15);
  border: 1px solid rgba(74, 222, 156, 0.35);
  border-radius: 999px;
  color: var(--bio-glow);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
  line-height: 1.15;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #FFFFFF 30%, var(--bio-glow) 70%, var(--grid-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #D2DDD8;
  margin-bottom: 2.5rem;
  max-width: 720px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   5. TOMBOL & CTA DENGAN BIO-GLOW
   -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--bio-glow);
  color: var(--forest-deep);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.8rem;
  border-radius: 14px 4px 14px 4px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(74, 222, 156, 0.35);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(74, 222, 156, 0.55);
  color: var(--forest-deep);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(27, 67, 50, 0.6);
  color: var(--text-pure);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 0.85rem 1.7rem;
  border-radius: 14px 4px 14px 4px;
  border: var(--border-hairline);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(74, 222, 156, 0.15);
  border-color: var(--bio-glow);
  color: var(--bio-glow);
}

/* --------------------------------------------------------------------------
   6. DIAGRAM ALUR ENERGI ORGANIK MENYALA (INDEX.HTML)
   -------------------------------------------------------------------------- */
.flow-diagram-section {
  padding: 5.5rem 0;
  position: relative;
  background: linear-gradient(180deg, var(--forest-deep) 0%, #0B1914 100%);
  border-top: 1px solid rgba(74, 222, 156, 0.12);
  border-bottom: 1px solid rgba(74, 222, 156, 0.12);
}

.section-header-centered {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-tag {
  color: var(--bio-glow);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Wadah Diagram Alur */
.energy-flow-container {
  position: relative;
  padding: 2.5rem 1.5rem;
  background: rgba(27, 67, 50, 0.25);
  border: var(--border-hairline);
  border-radius: 32px 8px 32px 8px;
  backdrop-filter: blur(10px);
}

.flow-step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.flow-node {
  flex: 1;
  background: rgba(27, 67, 50, 0.55);
  border: 1px solid rgba(74, 222, 156, 0.2);
  border-radius: 20px 6px 20px 6px;
  padding: 1.5rem;
  position: relative;
  transition: var(--transition-smooth);
  opacity: 0.85;
}

.flow-node:hover {
  opacity: 1;
  border-color: var(--bio-glow);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(74, 222, 156, 0.15);
}

.flow-node-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.flow-node-title {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
  color: var(--text-pure);
}

.flow-node-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

/* Node Khusus Cabang Surya & Nuklir */
.flow-branch-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.flow-node.branch-solar {
  border-left: 4px solid var(--solar-amber);
}

.flow-node.branch-nuclear {
  border-left: 4px solid var(--grid-cyan);
}

/* Node Tujuan Akhir */
.flow-node.node-goal {
  border: 1px solid var(--bio-glow);
  background: linear-gradient(135deg, rgba(27, 67, 50, 0.8) 0%, rgba(74, 222, 156, 0.15) 100%);
  box-shadow: 0 0 24px rgba(74, 222, 156, 0.2);
}

/* Garis Aliran SVG Organik yang Mengalir Menyala */
.flow-trace-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.flow-trace-path {
  fill: none;
  stroke: rgba(74, 222, 156, 0.25);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.flow-trace-active {
  fill: none;
  stroke: var(--bio-glow);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  filter: drop-shadow(0 0 8px var(--bio-glow));
}

/* Animasi mengalir sekali saat masuk viewport */
.flow-diagram-section.in-view .flow-trace-active {
  animation: energyFlowPulse 3.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes energyFlowPulse {
  0% { stroke-dashoffset: 400; opacity: 0.3; }
  50% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.9; }
}

/* --------------------------------------------------------------------------
   7. FITUR UTAMA CARDS & STATISTIK BESAR (INDEX.HTML)
   -------------------------------------------------------------------------- */
.feature-path-section {
  padding: 5rem 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-tile {
  background: var(--canopy);
  border: var(--border-hairline);
  border-radius: 28px 8px 24px 8px;
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-tile::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--bio-glow), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.feature-tile:hover {
  transform: translateY(-5px);
  border-color: var(--bio-glow);
  box-shadow: 0 16px 36px rgba(16, 35, 28, 0.8);
}

.feature-tile:hover::after {
  opacity: 1;
}

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

.tile-title {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.tile-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.tile-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--bio-glow);
}

/* Momen Statistik Besar Tanpa Monospace */
.impact-stats-bar {
  margin: 4.5rem 0 1rem;
  padding: 2.8rem 2rem;
  background: linear-gradient(135deg, rgba(27, 67, 50, 0.4) 0%, rgba(16, 35, 28, 0.6) 100%);
  border: var(--border-hairline);
  border-radius: 36px 8px 36px 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-metric {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--bio-glow);
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.98rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   8. HALAMAN EDUKASI.HTML (LATAR MIST, TEKS PANJANG KONTRAS TINGGI)
   -------------------------------------------------------------------------- */
.edu-hero {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid rgba(27, 67, 50, 0.15);
  margin-bottom: 3.5rem;
}

.edu-hero-tag {
  color: var(--canopy);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: block;
}

.edu-hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  color: var(--forest-deep);
  margin-bottom: 1.2rem;
}

.edu-hero-lead {
  font-size: 1.25rem;
  color: var(--text-dark-muted);
  max-width: 820px;
  line-height: 1.7;
}

/* Section Latar Belakang & Bab-bab */
.edu-chapter {
  margin-bottom: 5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(27, 67, 50, 0.12);
}

.edu-chapter:last-of-type {
  border-bottom: none;
}

.edu-chapter-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--canopy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

.edu-chapter-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  color: var(--forest-deep);
  margin-bottom: 1.6rem;
}

.edu-chapter-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.edu-chapter-grid.reverse {
  grid-template-columns: 0.8fr 1.2fr;
}

.edu-chapter-grid.reverse .edu-text-col {
  order: 2;
}

.edu-chapter-grid.reverse .edu-image-col {
  order: 1;
}

/* Bingkai Foto Organik Menyerupai Daun / Solarpunk Blob */
.organic-image-frame {
  position: relative;
  border-radius: 42px 8px 42px 8px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(27, 67, 50, 0.18);
  border: 2px solid rgba(27, 67, 50, 0.12);
}

.organic-image-frame img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.6s var(--ease-organic);
}

.organic-image-frame:hover img {
  transform: scale(1.04);
}

.image-caption {
  padding: 0.85rem 1.2rem;
  background: var(--mist-darker);
  font-size: 0.85rem;
  color: var(--text-dark-muted);
  border-top: 1px solid rgba(27, 67, 50, 0.08);
}

/* Callout Kotak Pembatas Hairline untuk Dampak Nyata / Penyebab */
.edu-highlight-box {
  background: rgba(255, 255, 255, 0.7);
  border-left: 4px solid var(--canopy);
  border-radius: 0 16px 16px 0;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 18px rgba(27, 67, 50, 0.05);
}

.edu-highlight-box h4 {
  color: var(--canopy);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.edu-highlight-box ul {
  padding-left: 1.3rem;
  color: var(--text-dark);
}

.edu-highlight-box li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Section Spesial: Energi Nuklir dengan Latar Foto Halus dari Kejauhan */
.nuclear-featured-section {
  position: relative;
  background: var(--forest-deep);
  color: var(--text-pure);
  border-radius: 40px 8px 40px 8px;
  padding: 3.5rem 3rem;
  margin: 4rem 0;
  overflow: hidden;
}

.nuclear-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/nuclear_power.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

.nuclear-featured-section .edu-chapter-title,
.nuclear-featured-section p {
  position: relative;
  z-index: 2;
  color: var(--text-pure);
}

.nuclear-featured-section .edu-chapter-num {
  color: var(--grid-cyan);
}

/* --------------------------------------------------------------------------
   9. HALAMAN SIMULASI.HTML (DASHBOARD RUMAH PINTAR)
   -------------------------------------------------------------------------- */
.sim-hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.sim-disclaimer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: 999px;
  color: var(--solar-amber);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

/* Toggle Saklar Siang & Malam Interaktif */
.sim-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0 3rem;
  flex-wrap: wrap;
}

.btn-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.6rem;
  background: var(--canopy);
  border: 1px solid var(--bio-glow);
  border-radius: 999px;
  color: var(--text-pure);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-mode-switch:hover {
  background: var(--canopy-light);
  transform: scale(1.03);
}

.btn-auto-time {
  background: transparent;
  border: 1px dashed rgba(74, 222, 156, 0.4);
  color: var(--text-muted);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-auto-time:hover {
  color: var(--bio-glow);
  border-color: var(--bio-glow);
}

/* Dashboard Rumah Pintar */
.smart-home-dashboard {
  background: var(--canopy);
  border: var(--border-hairline);
  border-radius: 36px 8px 36px 8px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 3.5rem;
  box-shadow: 0 20px 48px rgba(10, 24, 19, 0.8);
  transition: border-color 0.4s ease;
}

.smart-home-dashboard[data-sim-mode="day"] {
  border-color: var(--solar-amber);
  background: linear-gradient(145deg, #183C2D 0%, #10231C 100%);
}

.smart-home-dashboard[data-sim-mode="night"] {
  border-color: var(--grid-cyan);
  background: linear-gradient(145deg, #132E27 0%, #0D1C16 100%);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(74, 222, 156, 0.15);
  margin-bottom: 2rem;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}

.mode-badge.badge-solar {
  background: rgba(245, 166, 35, 0.2);
  color: var(--solar-amber);
  border: 1px solid rgba(245, 166, 35, 0.4);
}

.mode-badge.badge-nuclear {
  background: rgba(94, 234, 212, 0.2);
  color: var(--grid-cyan);
  border: 1px solid rgba(94, 234, 212, 0.4);
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

/* Visualisasi Skematik Rumah Pintar SVG */
.house-schematic-wrap {
  position: relative;
  background: rgba(16, 35, 28, 0.6);
  border-radius: 24px 6px 24px 6px;
  padding: 2rem;
  border: 1px solid rgba(74, 222, 156, 0.12);
  text-align: center;
}

.schematic-house-image {
  max-height: 280px;
  margin-inline: auto;
  border-radius: 16px;
  object-fit: cover;
  width: 100%;
}

.active-glow {
  filter: drop-shadow(0 0 12px var(--bio-glow));
}

/* Status Metrik Real-Time */
.metrics-status-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sim-metric-card {
  background: rgba(16, 35, 28, 0.7);
  border: 1px solid rgba(74, 222, 156, 0.16);
  border-radius: 16px 4px 16px 4px;
  padding: 1.25rem 1.5rem;
}

.sim-metric-card label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.35rem;
}

.sim-metric-card .metric-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-pure);
}

/* Saklar Beban Alat Rumah Tangga */
.appliances-control-card {
  margin-top: 2rem;
  padding: 1.8rem;
  background: rgba(16, 35, 28, 0.5);
  border-radius: 20px 4px 20px 4px;
  border: 1px solid rgba(74, 222, 156, 0.12);
}

.appliances-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.appliance-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(27, 67, 50, 0.4);
  border-radius: 12px;
  border: 1px solid rgba(74, 222, 156, 0.1);
}

.appliance-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Kalkulator Jejak Karbon & Estimasi Biaya */
.sim-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.tool-card {
  background: var(--canopy);
  border: var(--border-hairline);
  border-radius: 28px 6px 28px 6px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
}

.tool-card-title {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

.tool-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.calc-form-group {
  margin-bottom: 1.25rem;
}

.calc-form-group label {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.calc-select,
.calc-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--forest-deep);
  border: 1px solid rgba(74, 222, 156, 0.25);
  border-radius: 10px;
  color: var(--text-pure);
  font-family: var(--font-body);
  font-size: 1rem;
}

.calc-select:focus,
.calc-input:focus {
  outline: none;
  border-color: var(--bio-glow);
  box-shadow: 0 0 10px var(--bio-glow-dim);
}

.calc-output-box {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(16, 35, 28, 0.8);
  border: 1px solid var(--bio-glow);
  border-radius: 18px 4px 18px 4px;
}

.calc-output-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.calc-stat-item {
  display: flex;
  flex-direction: column;
}

.calc-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.calc-stat-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}

.calc-stat-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.text-amber { color: var(--solar-amber); }
.text-bio { color: var(--bio-glow); }
.text-cyan { color: var(--grid-cyan); }

.calc-trees-highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem;
  background: rgba(74, 222, 156, 0.1);
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

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

.calc-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   9. KEBUN VIRTUAL INTERAKTIF, RAK LENCANA & GAMIFIKASI ECO POINTS
   ========================================================================== */
.virtual-garden-section {
  padding: 3rem 0;
  margin-bottom: 4rem;
}

/* Kartu Utama Kebun Virtual */
.virtual-garden-card {
  background: var(--canopy);
  border: var(--border-hairline);
  border-radius: 36px 8px 36px 8px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(10, 24, 19, 0.7);
  transition: var(--transition-smooth);
}

.virtual-garden-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(74, 222, 156, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.garden-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Wadah Visual Ilustrasi SVG */
.garden-visual-stage {
  position: relative;
  background: rgba(16, 35, 28, 0.75);
  border: 1px solid rgba(74, 222, 156, 0.22);
  border-radius: 28px 6px 28px 6px;
  padding: 1.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  overflow: hidden;
  transition: all 0.5s var(--ease-organic);
}

/* Efek Glow Spesifik Tahap 4 Rimbun / Hutan Mini */
.garden-visual-stage.stage-lush-glow {
  border-color: var(--bio-glow);
  box-shadow: 0 0 35px rgba(74, 222, 156, 0.35), inset 0 0 25px rgba(74, 222, 156, 0.15);
  background: radial-gradient(circle at center, rgba(27, 67, 50, 0.9) 0%, rgba(16, 35, 28, 0.95) 100%);
}

.stage-lush-glow .garden-svg-frame {
  filter: drop-shadow(0 0 16px rgba(74, 222, 156, 0.75));
  animation: bioPulseGlow 3s ease-in-out infinite alternate;
}

@keyframes bioPulseGlow {
  0% {
    filter: drop-shadow(0 0 12px rgba(74, 222, 156, 0.65));
    transform: scale(1);
  }
  100% {
    filter: drop-shadow(0 0 24px rgba(74, 222, 156, 0.95));
    transform: scale(1.02);
  }
}

.garden-svg-frame {
  width: 100%;
  max-width: 280px;
  height: auto;
  transition: transform 0.4s var(--ease-organic);
}

.garden-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(74, 222, 156, 0.12);
  color: var(--bio-glow);
  border: 1px solid rgba(74, 222, 156, 0.3);
}

.stage-lush-glow .garden-stage-badge {
  background: rgba(74, 222, 156, 0.25);
  border-color: var(--bio-glow);
  box-shadow: 0 0 14px rgba(74, 222, 156, 0.5);
}

/* Kolom Informasi & Progres Kebun */
.garden-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.garden-title-wrap h3 {
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.garden-stage-desc {
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* Progress Bar Menuju Tahap Berikutnya */
.garden-progress-wrap {
  background: rgba(16, 35, 28, 0.7);
  border: 1px solid rgba(74, 222, 156, 0.2);
  border-radius: 16px;
  padding: 1.2rem;
}

.garden-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.garden-progress-track {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.garden-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--grid-cyan) 0%, var(--bio-glow) 100%);
  border-radius: 999px;
  box-shadow: 0 0 10px var(--bio-glow);
  transition: width 0.8s var(--ease-organic);
}

/* Kalimat Makna Poin & Hubungan ke Tujuan Nyata Situs */
.garden-purpose-quote {
  position: relative;
  padding: 1.2rem 1.4rem;
  background: rgba(27, 67, 50, 0.5);
  border-left: 3px solid var(--bio-glow);
  border-radius: 4px 16px 16px 4px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-pure);
  line-height: 1.6;
  margin-top: 0.4rem;
}

.garden-purpose-quote::before {
  content: "“";
  font-size: 2.4rem;
  line-height: 0;
  position: relative;
  top: 0.5rem;
  margin-right: 0.3rem;
  color: var(--bio-glow);
  font-family: serif;
}

.garden-purpose-quote::after {
  content: "”";
  font-size: 2.4rem;
  line-height: 0;
  position: relative;
  top: 0.5rem;
  margin-left: 0.3rem;
  color: var(--bio-glow);
  font-family: serif;
}

/* ==========================================================================
   RAK LENCANA PENCAPAIAN TONGGAK SPESIFIK (MINI BADGE SHELF)
   ========================================================================== */
.badge-shelf-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(74, 222, 156, 0.15);
}

.badge-shelf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.badge-shelf-title {
  font-size: 1.55rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.badge-shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.badge-card {
  background: rgba(16, 35, 28, 0.65);
  border: 1px solid rgba(74, 222, 156, 0.15);
  border-radius: 18px 4px 18px 4px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  position: relative;
  transition: var(--transition-smooth);
}

.badge-card.unlocked {
  background: linear-gradient(135deg, rgba(27, 67, 50, 0.6) 0%, rgba(16, 35, 28, 0.8) 100%);
  border-color: var(--bio-glow);
  box-shadow: 0 4px 20px rgba(74, 222, 156, 0.15);
}

.badge-card.unlocked:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(74, 222, 156, 0.25);
}

.badge-card.locked {
  opacity: 0.65;
  filter: grayscale(0.55);
}

.badge-icon-box {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(74, 222, 156, 0.1);
  border: 1px solid rgba(74, 222, 156, 0.2);
}

.badge-card.unlocked .badge-icon-box {
  background: rgba(74, 222, 156, 0.2);
  border-color: var(--bio-glow);
  box-shadow: 0 0 12px rgba(74, 222, 156, 0.4);
}

.badge-card.locked .badge-icon-box {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.badge-body {
  flex: 1;
}

.badge-name {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-status-pill {
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-card.unlocked .badge-status-pill {
  background: rgba(74, 222, 156, 0.2);
  color: var(--bio-glow);
  border: 1px solid var(--bio-glow);
}

.badge-card.locked .badge-status-pill {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.4rem;
}

.badge-progress-note {
  font-size: 0.78rem;
  color: var(--grid-cyan);
  font-weight: 600;
}

/* ==========================================================================
   DAFTAR MISI AKSI KONKRET (ANTI-FARMING ACTION HUB)
   ========================================================================== */
.concrete-missions-card {
  margin-top: 3.5rem;
  background: rgba(16, 35, 28, 0.6);
  border: 1px solid rgba(74, 222, 156, 0.2);
  border-radius: 28px 6px 28px 6px;
  padding: 2.2rem;
}

.missions-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.mission-item-card {
  background: rgba(27, 67, 50, 0.35);
  border: 1px solid rgba(74, 222, 156, 0.15);
  border-radius: 16px 4px 16px 4px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.mission-item-card.completed {
  border-color: rgba(94, 234, 212, 0.3);
  background: rgba(27, 67, 50, 0.2);
}

.mission-info h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mission-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.mission-action-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  min-width: 140px;
}

.btn-mission-act {
  background: rgba(74, 222, 156, 0.15);
  color: var(--bio-glow);
  border: 1px solid var(--bio-glow);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.btn-mission-act:hover {
  background: var(--bio-glow);
  color: var(--forest-deep);
  transform: translateY(-1px);
}

.btn-mission-act.completed {
  background: rgba(94, 234, 212, 0.12);
  border-color: rgba(94, 234, 212, 0.4);
  color: var(--grid-cyan);
  cursor: default;
  pointer-events: none;
  transform: none;
}

.mission-anti-farm-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ==========================================================================
   TOMBOL TANDAI BACA BAB EDUKASI (EDUKASI.HTML)
   ========================================================================== */
.chapter-completion-box {
  margin-top: 1.8rem;
  padding: 1.2rem 1.5rem;
  background: rgba(27, 67, 50, 0.08);
  border: 1px dashed rgba(27, 67, 50, 0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.dark-mode-box .chapter-completion-box {
  background: rgba(16, 35, 28, 0.6);
  border-color: rgba(74, 222, 156, 0.3);
}

.btn-chapter-complete {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--canopy);
  color: var(--mist);
  border: 1px solid var(--canopy);
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-chapter-complete:hover {
  background: var(--canopy-light);
  transform: translateY(-2px);
}

.btn-chapter-complete.completed {
  background: rgba(27, 67, 50, 0.15);
  border-color: rgba(27, 67, 50, 0.4);
  color: var(--canopy);
  cursor: default;
  pointer-events: none;
  transform: none;
}

.dark-mode-box .btn-chapter-complete {
  background: rgba(74, 222, 156, 0.15);
  color: var(--bio-glow);
  border-color: var(--bio-glow);
}

.dark-mode-box .btn-chapter-complete:hover {
  background: var(--bio-glow);
  color: var(--forest-deep);
}

.dark-mode-box .btn-chapter-complete.completed {
  background: rgba(94, 234, 212, 0.2);
  border-color: var(--grid-cyan);
  color: var(--grid-cyan);
}

/* --------------------------------------------------------------------------
   10. HALAMAN ASISTEN-AI.HTML (4 FUNGSI AI)
   -------------------------------------------------------------------------- */
.ai-hero {
  padding: 4rem 0 2rem;
  position: relative;
}

.ai-profile-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.6rem;
  background: rgba(27, 67, 50, 0.45);
  border: var(--border-hairline);
  border-radius: 999px;
  margin-bottom: 2.5rem;
}

.profile-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.btn-profile-change {
  background: transparent;
  border: 1px solid rgba(74, 222, 156, 0.35);
  color: var(--bio-glow);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-profile-change:hover {
  background: rgba(74, 222, 156, 0.15);
}

/* Wadah Cuaca & Rekomendasi (Fungsi 1 & 2) */
.weather-ai-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.weather-overview-box {
  background: var(--canopy);
  border: var(--border-hairline);
  border-radius: 28px 6px 28px 6px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.weather-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.weather-current-badge {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.weather-big-icon {
  font-size: 3.5rem;
  line-height: 1;
}

.weather-temp-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-pure);
}

.weather-desc-text {
  font-size: 1.05rem;
  color: var(--bio-glow);
  font-weight: 600;
}

.weather-metrics-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.weather-pill {
  padding: 0.35rem 0.8rem;
  background: rgba(16, 35, 28, 0.5);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Wadah Chart.js */
.chart-container-wrap {
  position: relative;
  height: 280px;
  width: 100%;
  margin-top: 1rem;
}

/* Kartu Rekomendasi AI Harian */
.rec-list-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.rec-item-card {
  background: rgba(27, 67, 50, 0.5);
  border: 1px solid rgba(74, 222, 156, 0.2);
  border-radius: 20px 4px 20px 4px;
  padding: 1.4rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.rec-item-card:hover {
  border-color: var(--bio-glow);
  transform: translateY(-2px);
  background: rgba(27, 67, 50, 0.7);
}

.rec-icon-box {
  font-size: 2rem;
  background: rgba(16, 35, 28, 0.6);
  padding: 0.6rem;
  border-radius: 12px;
  line-height: 1;
}

.rec-content {
  flex-grow: 1;
}

.rec-title {
  font-size: 1.18rem;
  margin-bottom: 0.35rem;
}

.rec-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  line-height: 1.55;
}

.rec-tip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  background: rgba(74, 222, 156, 0.12);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--bio-glow);
}

.btn-rec-action {
  align-self: center;
  background: transparent;
  border: 1px solid var(--bio-glow);
  color: var(--bio-glow);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.btn-rec-action:hover {
  background: var(--bio-glow);
  color: var(--forest-deep);
}

.btn-rec-action.completed {
  background: rgba(94, 234, 212, 0.2);
  border-color: var(--grid-cyan);
  color: var(--grid-cyan);
  cursor: default;
}

/* Loading Skeleton Halus */
.ai-loading-state {
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.pulsing-leaf {
  font-size: 2.5rem;
  display: inline-block;
  animation: pulseRotate 1.8s infinite ease-in-out;
  margin-bottom: 1rem;
}

@keyframes pulseRotate {
  0% { transform: scale(0.95) rotate(-4deg); opacity: 0.7; }
  50% { transform: scale(1.12) rotate(6deg); opacity: 1; }
  100% { transform: scale(0.95) rotate(-4deg); opacity: 0.7; }
}

/* Bagian 3: Tanya Isu Iklim & Grounding Kredibel */
.qa-grounding-section {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  margin-bottom: 4.5rem;
}

.qa-card {
  background: var(--canopy);
  border: var(--border-hairline);
  border-radius: 28px 6px 28px 6px;
  padding: 2.2rem;
}

.qa-form-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.qa-input-text {
  flex-grow: 1;
  padding: 0.85rem 1.2rem;
  background: var(--forest-deep);
  border: 1px solid rgba(74, 222, 156, 0.25);
  border-radius: 12px;
  color: var(--text-pure);
  font-family: var(--font-body);
  font-size: 1rem;
}

.qa-input-text:focus {
  outline: none;
  border-color: var(--bio-glow);
  box-shadow: 0 0 12px var(--bio-glow-dim);
}

.btn-qa-submit {
  background: var(--bio-glow);
  color: var(--forest-deep);
  border: none;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.btn-qa-submit:hover {
  background: #6df0b2;
  transform: translateY(-2px);
}

.qa-response-box {
  margin-top: 2rem;
  padding: 1.8rem;
  background: rgba(16, 35, 28, 0.85);
  border: 1px solid rgba(74, 222, 156, 0.3);
  border-radius: 20px 4px 20px 4px;
  display: none;
}

.qa-badge-grounding {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background: rgba(94, 234, 212, 0.15);
  border-radius: 999px;
  color: var(--grid-cyan);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.grounding-sources-container {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px dashed rgba(74, 222, 156, 0.2);
}

.sources-heading {
  font-size: 0.95rem;
  color: var(--bio-glow);
  margin-bottom: 0.6rem;
}

.sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.source-link {
  color: var(--grid-cyan);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.source-link:hover {
  text-decoration: underline;
}

/* Panel Rujukan Statis Resmi */
.official-sources-panel {
  background: rgba(27, 67, 50, 0.35);
  border: var(--border-hairline);
  border-radius: 24px 4px 24px 4px;
  padding: 1.8rem;
}

.official-sources-list {
  list-style: none;
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.official-source-item a {
  display: block;
  padding: 0.8rem 1rem;
  background: rgba(16, 35, 28, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(74, 222, 156, 0.1);
  color: var(--text-pure);
  transition: var(--transition-smooth);
}

.official-source-item a:hover {
  border-color: var(--bio-glow);
  transform: translateX(4px);
}

.official-source-item strong {
  display: block;
  color: var(--bio-glow);
  font-size: 0.95rem;
}

.official-source-item small {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Bagian 4: Cek Klaim / Hoax */
.hoax-checker-section {
  margin-bottom: 5rem;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(27, 67, 50, 0.6) 0%, rgba(16, 35, 28, 0.8) 100%);
  border: var(--border-hairline);
  border-radius: 36px 8px 36px 8px;
}

.hoax-textarea {
  width: 100%;
  height: 100px;
  padding: 1rem 1.2rem;
  background: var(--forest-deep);
  border: 1px solid rgba(74, 222, 156, 0.25);
  border-radius: 14px;
  color: var(--text-pure);
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
  margin: 1.2rem 0;
}

.hoax-textarea:focus {
  outline: none;
  border-color: var(--bio-glow);
  box-shadow: 0 0 12px var(--bio-glow-dim);
}

.hoax-verdict-card {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 20px 4px 20px 4px;
  border: 1px solid rgba(74, 222, 156, 0.3);
  background: rgba(16, 35, 28, 0.9);
}

.hoax-verdict-card.verdict-myth {
  border-color: #EF4444;
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.1) 0%, rgba(16, 35, 28, 0.9) 100%);
}

.hoax-verdict-card.verdict-fact {
  border-color: var(--bio-glow);
  background: linear-gradient(145deg, rgba(74, 222, 156, 0.1) 0%, rgba(16, 35, 28, 0.9) 100%);
}

.hoax-verdict-card.verdict-context {
  border-color: var(--solar-amber);
  background: linear-gradient(145deg, rgba(245, 166, 35, 0.1) 0%, rgba(16, 35, 28, 0.9) 100%);
}

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

.verdict-icon {
  font-size: 2.5rem;
}

.verdict-badge-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.verdict-myth .verdict-badge-label { color: #F87171; }
.verdict-fact .verdict-badge-label { color: var(--bio-glow); }
.verdict-context .verdict-badge-label { color: var(--solar-amber); }

.verdict-summary {
  font-size: 1.3rem;
  color: var(--text-pure);
}

.verdict-disclaimer {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. ADAPTIF LITERASI PENGGUNA (DATA-LITERACY)
   -------------------------------------------------------------------------- */
/* Mode Pemula / Baru Mulai Belajar */
body[data-literacy="beginner"] {
  font-size: 18px;
}

body[data-literacy="beginner"] p {
  font-size: 1.15rem;
  line-height: 1.8;
}

body[data-literacy="beginner"] .technical-data-row {
  display: none !important;
}

body[data-literacy="beginner"] .beginner-callout {
  display: block !important;
}

/* Mode Paham Istilah Teknis */
body[data-literacy="advanced"] .technical-data-row {
  display: table-row !important;
}

body[data-literacy="advanced"] .beginner-callout {
  display: none !important;
}

/* Glosarium Tooltip Interaktif */
.glossary-term {
  border-bottom: 1.5px dashed var(--bio-glow);
  cursor: help;
  position: relative;
}

.glossary-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--bio-glow);
  color: var(--forest-deep);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 0.25rem;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   12. MODAL DIALOG (LITERASI & KUNCI API)
   -------------------------------------------------------------------------- */
.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 19, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.custom-modal-backdrop.modal-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content-card {
  background: var(--canopy);
  border: var(--border-hairline);
  border-radius: 28px 6px 28px 6px;
  max-width: 580px;
  width: 100%;
  padding: 2.4rem;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(12px);
  transition: transform 0.3s var(--ease-organic);
}

.custom-modal-backdrop.modal-open .modal-content-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
}

.modal-title {
  font-size: 1.6rem;
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.literacy-options-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.2rem;
}

.btn-select-literacy {
  background: rgba(16, 35, 28, 0.7);
  border: 1px solid rgba(74, 222, 156, 0.2);
  border-radius: 14px;
  padding: 1.2rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-select-literacy:hover {
  border-color: var(--bio-glow);
  background: rgba(27, 67, 50, 0.6);
  transform: translateX(4px);
}

.btn-select-literacy strong {
  display: block;
  font-size: 1.1rem;
  color: var(--bio-glow);
  margin-bottom: 0.25rem;
}

.btn-select-literacy p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   13. TOAST NOTIFIKASI
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 3000;
  pointer-events: none;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.4rem;
  background: var(--canopy);
  border: 1px solid var(--bio-glow);
  border-radius: 999px;
  color: var(--text-pure);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: auto;
}

.toast-item.toast-show {
  transform: translateY(0);
  opacity: 1;
}

.toast-item.toast-eco {
  border-color: var(--bio-glow);
  background: #14382A;
}

.toast-item.toast-error {
  border-color: #EF4444;
  background: #2D1414;
}

/* --------------------------------------------------------------------------
   14. FOOTER RAMAH LINGKUNGAN
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: #0B1914;
  border-top: 1px solid rgba(74, 222, 156, 0.12);
  padding: 3.5rem 0 2rem;
}

body.mist-theme .site-footer {
  background: #10231C;
  color: var(--text-main);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--bio-glow);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-pure);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--bio-glow);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(74, 222, 156, 0.08);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .dashboard-main-grid,
  .weather-ai-layout,
  .qa-grounding-section,
  .sim-tools-grid,
  .edu-chapter-grid,
  .edu-chapter-grid.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .edu-chapter-grid.reverse .edu-text-col,
  .edu-chapter-grid.reverse .edu-image-col {
    order: unset;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(16, 35, 28, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(74, 222, 156, 0.2);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-organic), opacity 0.25s ease;
  }

  body.mist-theme .nav-menu {
    background: rgba(244, 241, 234, 0.98);
    border-color: rgba(27, 67, 50, 0.2);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
    font-size: 1.1rem;
  }

  .flow-step-row {
    flex-direction: column;
  }

  .flow-branch-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-solarpunk {
    padding: 3.5rem 0;
  }

  .nuclear-featured-section {
    padding: 2.2rem 1.5rem;
  }
}
