/* ===================================================================
   DINO LAB – Virtual Anthropometry Laboratory
   Theme: Cute Dinosaur Science Laboratory (Modern, Clean & Professional)
   Colors: Soft Blue, White, Pastel Green, Playful Science Accents
   =================================================================== */

:root {
  /* Prehistoric Jungle Color Palette */
  --jungle-dark: #1b4332;
  --jungle-forest: #2d6a4f;
  --jungle-deep: #1e3a29;
  --jungle-sage: #52b788;
  --jungle-mint: #74c69d;
  --jungle-leaf: #95d5b2;
  --jungle-pastel: #d8f3dc;
  --jungle-cream: #fefae0;
  --jungle-sky: #e0f2fe;
  --jungle-wood: #854d0e;
  --jungle-wood-light: #fef08a;

  /* Primary & Accent Color Palette */
  --primary-blue: #0284c7;
  --primary-hover: #0369a1;
  --primary-dark: #075985;
  --primary-light: #e0f2fe;
  --primary-ice: #f0fdf4;
  --primary-border: #bae6fd;
  
  --secondary-green: #10b981;
  --green-hover: #059669;
  --green-light: #dcfce7;
  --green-pastel: #a7f3d0;
  --green-border: #86efac;

  /* Nutrition Status Palette (Soft & Non-judgmental) */
  --status-severe: #8b5cf6;     /* Purple */
  --status-severe-bg: #ede9fe;
  --status-thin: #0ea5e9;       /* Light blue */
  --status-thin-bg: #e0f2fe;
  --status-normal: #10b981;     /* Emerald green */
  --status-normal-bg: #dcfce7;
  --status-overweight: #f59e0b; /* Warm amber */
  --status-overweight-bg: #fef3c7;
  --status-obesity: #f43f5e;    /* Rose/Coral */
  --status-obesity-bg: #ffe4e6;

  /* Neutrals & Surfaces - Prehistoric Forest Glassmorphism */
  --bg-page: #e8f5e9;
  --card-bg: rgba(255, 255, 255, 0.95);
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-light: #64748b;
  --border-color: rgba(52, 211, 153, 0.28);
  --border-light: rgba(226, 232, 240, 0.8);

  /* Elevation Shadows */
  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 10px -2px rgba(6, 78, 59, 0.08), 0 2px 4px -2px rgba(6, 78, 59, 0.04);
  --shadow-md: 0 12px 24px -4px rgba(6, 78, 59, 0.12), 0 4px 8px -3px rgba(6, 78, 59, 0.06);
  --shadow-lg: 0 20px 35px -5px rgba(6, 78, 59, 0.16), 0 8px 12px -5px rgba(6, 78, 59, 0.08);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

  /* Typography */
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Poppins', sans-serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s ease-in-out;
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: 
    radial-gradient(circle at 50% 0%, rgba(224, 242, 254, 0.95) 0%, rgba(216, 243, 220, 0.8) 35%, rgba(183, 228, 199, 0.65) 75%, transparent 100%),
    linear-gradient(180deg, #f0fdf4 0%, #e8f9ee 25%, #d8f3dc 50%, #c2edd0 75%, #b7e4c7 100%);
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ===================================================================
   PREHISTORIC JUNGLE AMBIENT BACKDROP
   =================================================================== */

.jungle-ambient-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Sunbeams / God Rays shining down */
.jungle-sunbeams {
  position: absolute;
  top: -80px;
  left: -10%;
  width: 130%;
  height: 100%;
  background: repeating-linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.14) 0px,
    rgba(255, 255, 255, 0.14) 45px,
    transparent 45px,
    transparent 110px,
    rgba(254, 240, 138, 0.09) 110px,
    rgba(254, 240, 138, 0.09) 160px,
    transparent 160px,
    transparent 240px
  );
  opacity: 0.8;
  animation: sunbeamPulse 9s ease-in-out infinite alternate;
}

@keyframes sunbeamPulse {
  0% { opacity: 0.55; transform: scaleX(0.98) rotate(-1deg); }
  50% { opacity: 0.85; transform: scaleX(1.02) rotate(1deg); }
  100% { opacity: 0.65; transform: scaleX(1) rotate(0deg); }
}

/* Prehistoric Hills Horizon Backdrop */
.jungle-hills-backdrop {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 260px;
  opacity: 0.65;
  pointer-events: none;
}

.jungle-hills-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Soaring Pterodactyls in Distance */
.pterodactyl-group {
  animation: pterodactylFlight 28s linear infinite;
}

.ptero-delayed {
  animation: pterodactylFlight 36s linear infinite 14s;
}

@keyframes pterodactylFlight {
  0% { transform: translate(-120px, 15px) scale(0.85); }
  45% { transform: translate(650px, -20px) scale(1.05); }
  100% { transform: translate(1520px, 10px) scale(0.9); }
}

/* Hanging Prehistoric Canopy & Vines at Top Corners */
.jungle-canopy-top {
  position: absolute;
  top: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.82;
  filter: drop-shadow(0 4px 10px rgba(6, 78, 59, 0.12));
}

.jungle-canopy-left {
  left: 0;
  transform-origin: top left;
  animation: canopySwayLeft 7.5s ease-in-out infinite alternate;
}

.jungle-canopy-right {
  right: 0;
  transform-origin: top right;
  animation: canopySwayRight 8.5s ease-in-out infinite alternate;
}

@keyframes canopySwayLeft {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(2deg) scale(1.02); }
}

@keyframes canopySwayRight {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(-2deg) scale(1.02); }
}

/* Floating Spores / Organic Leaves */
.jungle-spore {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 243, 208, 0.75) 0%, rgba(52, 211, 153, 0.25) 70%, transparent 100%);
  pointer-events: none;
  filter: blur(1px);
}

.spore-1 { width: 14px; height: 14px; top: 22%; left: 12%; animation: sporeMotion 14s infinite ease-in-out; }
.spore-2 { width: 18px; height: 18px; top: 48%; right: 14%; animation: sporeMotion 18s infinite ease-in-out 3s; }
.spore-3 { width: 12px; height: 12px; top: 74%; left: 40%; animation: sporeMotion 15s infinite ease-in-out 6s; }

@keyframes sporeMotion {
  0% { transform: translateY(0) translateX(0); opacity: 0.2; }
  50% { transform: translateY(-50px) translateX(30px); opacity: 0.75; }
  100% { transform: translateY(-100px) translateX(-20px); opacity: 0.1; }
}

/* ===================================================================
   HEADER & NAVIGATION
   =================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 4px 16px rgba(6, 78, 59, 0.06);
  transition: all var(--transition-fast);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand Identity */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.brand-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-icon-wrapper {
  transform: rotate(-6deg) scale(1.05);
}

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

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--primary-blue);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--secondary-green);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Nav Menu Items */
.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-btn i {
  font-size: 0.88rem;
  color: var(--primary-blue);
  transition: transform var(--transition-fast);
}

.nav-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.nav-btn:hover i {
  transform: translateY(-1px);
}

.nav-btn.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  border-color: var(--primary-border);
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hamburger-btn {
  display: none;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary-blue);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.15rem;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.hamburger-btn:hover {
  background: var(--primary-blue);
  color: #fff;
}

/* ===================================================================
   LAYOUT & SPA PAGE SECTIONS
   =================================================================== */

.main-wrapper {
  flex: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.page-section {
  display: none; /* Controlled by JS Router */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Section Header Shared */
.section-header-wrap {
  margin-bottom: 2rem;
}

.section-header-wrap.text-center {
  text-align: center;
}

.section-title {
  font-size: 1.75rem;
  margin-top: 0.5rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

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

/* Generic Card */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  position: relative;
  transition: box-shadow var(--transition-fast);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header-styled {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.card-header-styled > i {
  font-size: 1.75rem;
  color: var(--primary-blue);
  background: var(--primary-light);
  padding: 0.85rem;
  border-radius: var(--radius-md);
}

.card-box-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.card-box-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ===================================================================
   BUTTONS & BADGES
   =================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.85rem 1.8rem;
  font-size: 1.05rem;
}

.btn-xs {
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-primary-gradient:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.btn-success-gradient {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-success-gradient:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  color: var(--primary-blue);
  border-color: var(--primary-border);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary-blue);
}

.btn-primary-soft {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary-border);
}

.btn-primary-soft:hover {
  background: #bae6fd;
}

.btn-success-soft {
  background: var(--green-light);
  color: #065f46;
  border-color: var(--green-border);
}

.btn-success-soft:hover {
  background: #a7f3d0;
}

.btn-secondary-soft {
  background: #f1f5f9;
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary-soft:hover {
  background: #e2e8f0;
}

.btn-danger-soft {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.btn-danger-soft:hover {
  background: #fecaca;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--primary-border);
}

/* Highlight Text */
.text-highlight {
  color: var(--primary-blue);
  background: linear-gradient(120deg, #0284c7 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===================================================================
   1. DASHBOARD HERO BANNER & GRID
   =================================================================== */

.hero-card {
  background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 50%, #ecfdf5 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--primary-border);
  box-shadow: var(--shadow-md);
  padding: 2.75rem 2.25rem;
  margin-bottom: 2.75rem;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-badge {
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: 2.75rem;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 580px;
}

.hero-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats-row {
  display: flex;
  gap: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(2, 132, 199, 0.15);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary-blue);
  line-height: 1.1;
}

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

/* Hero Visual SVG Stage */
.hero-visual-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-dino-stage {
  width: 100%;
  max-width: 360px;
  filter: drop-shadow(0 14px 20px rgba(2, 132, 199, 0.15));
  animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-bubble-1 { animation: floatSlow 3.2s ease-in-out infinite; }
.floating-bubble-2 { animation: floatSlow 3.8s ease-in-out infinite 0.5s; }
.floating-bubble-3 { animation: floatSlow 4.2s ease-in-out infinite 1s; }

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Feature Highlights Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}

.feature-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-text {
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.feature-link {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition-fast);
}

.feature-card:hover .feature-link {
  gap: 0.65rem;
}

/* Soft Color Backgrounds */
.bg-blue-soft { background: #e0f2fe; color: #0284c7; }
.bg-green-soft { background: #dcfce7; color: #059669; }
.bg-amber-soft { background: #fef3c7; color: #d97706; }
.bg-purple-soft { background: #ede9fe; color: #7c3aed; }
.bg-teal-soft { background: #ccfbf1; color: #0f766e; }
.bg-rose-soft { background: #ffe4e6; color: #e11d48; }

.text-primary { color: var(--primary-blue); }
.text-success { color: var(--secondary-green); }
.text-warning { color: #f59e0b; }
.text-danger { color: #ef4444; }
.text-purple { color: #8b5cf6; }
.text-rose { color: #f43f5e; }
.text-teal { color: #0d9488; }

/* Learning Objectives Card */
.learning-objectives-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.lo-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.lo-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--green-light);
  color: var(--secondary-green);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lo-title {
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
}

.lo-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.lo-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.lo-number {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--primary-light);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.95rem;
}

.lo-desc {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lo-desc strong {
  font-size: 0.92rem;
  color: var(--text-main);
}

.lo-desc span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ===================================================================
   2. PEMERIKSAAN ANTROPOMETRI (FORM & SIMULASI)
   =================================================================== */

/* Workflow step badge indicator */
.workflow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.step-badge.active {
  background: var(--primary-light);
  border-color: var(--primary-blue);
  color: var(--primary-dark);
}

.step-badge.completed {
  background: var(--green-light);
  border-color: var(--green-border);
  color: #065f46;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.step-badge.active .step-num {
  background: var(--primary-blue);
  color: #fff;
}

.step-badge.completed .step-num {
  background: var(--secondary-green);
  color: #fff;
}

.step-arrow {
  color: var(--text-light);
  font-size: 0.8rem;
}

/* Form Styles */
.form-identity-card {
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.identity-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-hint {
  font-size: 0.76rem;
  color: var(--text-light);
}

.error-msg {
  display: none;
  font-size: 0.78rem;
  color: #ef4444;
  font-weight: 600;
  margin-top: 0.2rem;
}

.form-group.has-error .error-msg {
  display: block;
}

.form-group.has-error .form-control {
  border-color: #ef4444;
}

/* Radio Group Gender */
.gender-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.gender-radio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem;
  background: var(--bg-page);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.gender-radio-label input {
  display: none;
}

.gender-radio-label:hover {
  background: #ffffff;
  border-color: var(--primary-border);
}

.gender-radio-label.active {
  background: var(--primary-light);
  border-color: var(--primary-blue);
  color: var(--primary-dark);
  box-shadow: var(--shadow-xs);
}

/* Age Inputs Row */
.age-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.age-col {
  position: relative;
  display: flex;
  align-items: center;
}

.unit-suffix {
  position: absolute;
  right: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  pointer-events: none;
}

.form-action-col {
  grid-column: span 2;
  margin-top: 0.5rem;
}

/* ===================================================================
   SIMULATION WORKSPACE (SCALE & STADIOMETER)
   =================================================================== */

.simulation-master-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.simulation-headline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-xs);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.active-student-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.simulation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.station-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-fast);
}

.station-card:hover {
  border-color: var(--primary-border);
}

.station-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.station-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-blue);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.2rem;
}

.station-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.station-unit {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
}

/* Virtual Stage Graphic Areas */
.virtual-stage {
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #f0f9ff 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--primary-border);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

/* Weighing Scale Animation */
.dino-weigh-normal {
  transition: transform 0.3s ease;
}

.dino-weigh-bouncing {
  animation: scaleBounce 1.2s ease-in-out;
}

@keyframes scaleBounce {
  0% { transform: translateY(0); }
  25% { transform: translateY(8px); }
  50% { transform: translateY(-4px); }
  75% { transform: translateY(3px); }
  100% { transform: translateY(0); }
}

/* Stadiometer headpiece transition */
#stadiometerHeadpieceGroup {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#stadiometerDino {
  transition: transform 0.3s ease;
}

/* Station Interactive Controls */
.station-controls {
  padding: 1.25rem 0 0.5rem;
}

.control-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.live-val-badge {
  background: var(--primary-blue);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
}

/* Custom Range Slider */
.input-range-wrap {
  margin-bottom: 0.85rem;
}

.custom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--primary-light);
  outline: none;
  cursor: pointer;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-blue);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
  cursor: grab;
  transition: transform var(--transition-fast);
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Step Number Row */
.input-number-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.btn-step {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-step:hover {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary-blue);
}

.input-unit-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.bold-input {
  font-size: 1.15rem;
  font-weight: 800;
  padding-right: 2.2rem;
}

.input-addon {
  position: absolute;
  right: 0.85rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-light);
  pointer-events: none;
}

/* Preset Chips */
.preset-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.preset-label {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
  margin-right: 0.2rem;
}

.chip-btn {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip-btn:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.chip-btn.active {
  background: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
}

/* SOP Box */
.sop-box {
  margin-top: 1rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--secondary-green);
  padding: 0.85rem;
  font-size: 0.8rem;
}

.sop-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.sop-list {
  padding-left: 1.25rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Master Calculation Action Banner */
.calc-action-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 1.5px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.calc-action-title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.calc-action-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.calc-action-btns {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ===================================================================
   3. LEMBAR HASIL PEMERIKSAAN / LAB REPORT
   =================================================================== */

.report-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

/* Printable Lab Report Card */
.lab-report-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 2.75rem;
  max-width: 960px;
  margin: 0 auto 3rem;
  position: relative;
}

/* Letterhead */
.report-letterhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.letterhead-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.letterhead-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  border: 2px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.letterhead-name {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--primary-dark);
}

.letterhead-inst {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--secondary-green);
}

.letterhead-sub {
  font-size: 0.76rem;
  color: var(--text-light);
}

.letterhead-meta {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  line-height: 1.6;
}

.report-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--secondary-green) 50%, var(--primary-blue) 100%);
  margin-bottom: 2rem;
  border-radius: 2px;
}

/* Section Blocks inside Report */
.report-section-block {
  margin-bottom: 2rem;
}

.report-block-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--border-color);
}

/* Patient Demographics Grid */
.report-demo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--bg-page);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.demo-cell {
  display: flex;
  flex-direction: column;
}

.demo-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
}

.demo-value {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.15rem;
}

/* Raw Measurements Grid */
.report-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.metric-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.metric-card.highlight-metric {
  background: var(--primary-ice);
  border-color: var(--primary-border);
}

.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.1;
}

.metric-val small {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
}

.metric-sub {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* WHO Status Summary Box */
.status-summary-box {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.status-normal { background: var(--status-normal-bg); color: #065f46; border: 1.5px solid #86efac; }
.status-thin { background: var(--status-thin-bg); color: #0369a1; border: 1.5px solid #7dd3fc; }
.status-severe { background: var(--status-severe-bg); color: #6d28d9; border: 1.5px solid #c4b5fd; }
.status-overweight { background: var(--status-overweight-bg); color: #b45309; border: 1.5px solid #fde68a; }
.status-obesity { background: var(--status-obesity-bg); color: #be123c; border: 1.5px solid #fecdd3; }

.zscore-tag {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Multi-Segment Rainbow Gauge Bar */
.gauge-bar-wrapper {
  margin: 1.5rem 0 2rem;
  position: relative;
}

.gauge-bar {
  display: flex;
  height: 18px;
  border-radius: var(--radius-full);
  overflow: visible;
  position: relative;
  box-shadow: var(--shadow-inner);
}

.gauge-segment {
  height: 100%;
  flex: 1;
}

.seg-severe { background: #8b5cf6; border-radius: 9999px 0 0 9999px; }
.seg-thin { background: #38bdf8; }
.seg-normal { background: #10b981; flex: 1.4; }
.seg-overweight { background: #fbbf24; }
.seg-obesity { background: #f43f5e; border-radius: 0 9999px 9999px 0; }

.gauge-pointer {
  position: absolute;
  top: -26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.pointer-bubble {
  background: #0f172a;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.pointer-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #0f172a;
}

.gauge-labels-row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

.gauge-labels-row small {
  color: var(--text-light);
  display: block;
}

/* WHO Cutoff Reference Table */
.who-thresholds-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.who-thresholds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.who-thresholds-table th {
  background: var(--bg-page);
  padding: 0.6rem 0.85rem;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-muted);
}

.who-thresholds-table td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border-light);
}

.who-thresholds-table tr.active-row {
  background: #f0fdf4;
  font-weight: 800;
}

/* Status Explanation Card with Mascot */
.status-explanation-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--primary-ice);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.status-dino-avatar {
  flex-shrink: 0;
}

.explanation-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

#reportExpContent {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Recommendations Grid */
.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.recom-card {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  gap: 0.85rem;
}

.recom-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.recom-title {
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.recom-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Disclaimer & Signature */
.report-disclaimer {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  color: #92400e;
}

.report-disclaimer i {
  font-size: 1.2rem;
  margin-top: 0.15rem;
}

.report-disclaimer p {
  color: #92400e;
  margin-top: 0.2rem;
}

.report-signature-row {
  display: flex;
  justify-content: flex-end;
}

.signature-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}

.sig-title {
  font-size: 0.78rem;
  color: var(--text-light);
}

.sig-stamp {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sig-name {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* ===================================================================
   4. VISUALISASI DATA & FITUR KHUSUS DINOSAUR COMPARISON
   =================================================================== */

.chart-container-box {
  width: 100%;
  position: relative;
  margin: 1rem 0;
}

.chart-legend-notes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.78rem;
}

.chart-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.bg-rose { background: #f43f5e; }
.bg-amber { background: #f59e0b; }
.bg-green { background: #10b981; }
.bg-blue { background: #38bdf8; }
.bg-purple { background: #8b5cf6; }
.bg-red-dot { background: #ef4444; border: 2px solid #ffffff; box-shadow: 0 0 0 2px #ef4444; }

/* Dinosaur Comparison Master Card */
.dino-comparison-master-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 2px solid var(--primary-border);
  box-shadow: var(--shadow-md);
  padding: 2.25rem;
  margin-bottom: 2.5rem;
}

.comparison-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2rem;
}

.comparison-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fef3c7;
  color: #b45309;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 900;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid #fde68a;
  margin-bottom: 0.75rem;
}

.comparison-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.comparison-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 3-Dino Lineup Stage */
.dino-stage-container {
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 75%, #d1fae5 100%);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--primary-border);
  padding: 2rem 1.5rem 0.5rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-inner);
}

/* Horizontal Measurement Guide Lines */
.stage-height-guide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 50px;
  pointer-events: none;
}

.guide-line {
  position: absolute;
  left: 0;
  right: 0;
  border-bottom: 1px dashed rgba(2, 132, 199, 0.25);
  display: flex;
  justify-content: flex-end;
  padding-right: 0.75rem;
}

.guide-line span {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary-blue);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  transform: translateY(50%);
}

.dinos-lineup {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: flex-end;
  min-height: 280px;
  position: relative;
  z-index: 2;
}

.dino-actor-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.dino-overhead-tag {
  text-align: center;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tag-role {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.tag-name {
  font-size: 1.05rem;
  color: var(--text-main);
}

.tag-metrics {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-blue);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  margin-top: 0.15rem;
}

.dino-svg-holder {
  width: 100%;
  max-width: 160px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dino-pedestal {
  width: 80%;
  max-width: 140px;
  text-align: center;
  padding: 0.4rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pedestal-a { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.pedestal-b { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.pedestal-c { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

/* Dino Inputs Form Panel */
.dino-inputs-panel {
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.dino-inputs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.dino-control-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dino-control-box.border-a { border-color: #86efac; }
.dino-control-box.border-b { border-color: #c4b5fd; }
.dino-control-box.border-c { border-color: #fde68a; }

.dino-box-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dino-input-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.2rem;
}

.dino-stat-res {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-color);
  font-size: 0.85rem;
}

.status-chip-sm {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

.chip-normal { background: var(--status-normal-bg); color: #065f46; }
.chip-thin { background: var(--status-thin-bg); color: #0369a1; }
.chip-severe { background: var(--status-severe-bg); color: #6d28d9; }
.chip-overweight { background: var(--status-overweight-bg); color: #b45309; }
.chip-obesity { background: var(--status-obesity-bg); color: #be123c; }

.comparison-preset-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

/* Comparison Bar Chart Section */
.comparison-chart-section {
  margin-bottom: 2rem;
}

.comparison-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Difference Analysis Cards */
.diff-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.diff-card {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
}

.diff-pair-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed var(--border-color);
}

.diff-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

.diff-row strong {
  font-family: var(--font-heading);
  font-size: 0.9rem;
}

.diff-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  background: #ffffff;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  margin-top: 0.6rem;
  border-left: 2px solid var(--primary-blue);
}

.bio-lesson-banner {
  background: #f0fdf4;
  border: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.85rem;
}

.bio-lesson-banner i {
  font-size: 1.3rem;
  margin-top: 0.2rem;
}

/* ===================================================================
   5. MINI GAMES – DINO CHALLENGE (QUIZ)
   =================================================================== */

.quiz-master-container {
  max-width: 820px;
  margin: 0 auto;
}

.quiz-header-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.quiz-counter-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.quiz-step-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-blue);
}

.quiz-score-badge {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  background: #fef3c7;
  color: #b45309;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.quiz-progress-track {
  width: 100%;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7 0%, #10b981 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* Quiz Question Card */
.quiz-play-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px solid var(--primary-border);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.quiz-dino-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.quiz-dino-avatar {
  flex-shrink: 0;
  animation: gentleFloat 3s ease-in-out infinite;
}

.quiz-topic-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--secondary-green);
  letter-spacing: 0.5px;
}

.quiz-question-text {
  font-size: 1.25rem;
  margin-top: 0.25rem;
  line-height: 1.35;
}

/* Options Grid */
.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.quiz-opt-btn {
  background: var(--bg-page);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.quiz-opt-btn:hover:not(:disabled) {
  background: var(--primary-light);
  border-color: var(--primary-blue);
  transform: translateX(4px);
}

.quiz-opt-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Correct / Incorrect Option States */
.quiz-opt-btn.opt-correct {
  background: #dcfce7 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
}

.quiz-opt-btn.opt-correct .quiz-opt-letter {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

.quiz-opt-btn.opt-incorrect {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
}

.quiz-opt-btn.opt-incorrect .quiz-opt-letter {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

/* Instant Feedback Box */
.quiz-feedback-box {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  animation: fadeIn 0.3s ease;
}

.quiz-feedback-box.correct {
  background: #f0fdf4;
  border-color: #86efac;
}

.quiz-feedback-box.incorrect {
  background: #fef2f2;
  border-color: #fca5a5;
}

.feedback-icon {
  font-size: 1.6rem;
  margin-top: 0.1rem;
}

.feedback-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.feedback-explanation {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

/* Quiz Completion Screen */
.quiz-result-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 2px solid var(--primary-border);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.result-celebrate-avatar {
  display: inline-block;
  margin-bottom: 1rem;
  animation: gentleFloat 3s ease-in-out infinite;
}

.result-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.result-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.final-score-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.score-big {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary-blue);
  line-height: 1;
}

.score-total {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
}

.result-feedback-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: #fef3c7;
  color: #b45309;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.result-actions-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===================================================================
   6. PUSAT EDUKASI KESEHATAN & MODAL
   =================================================================== */

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.edu-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.edu-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
}

.edu-card-top {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.edu-card-top i {
  font-size: 1.75rem;
}

.edu-chip {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.edu-card-body {
  padding: 1.25rem;
  flex: 1;
}

.edu-card-title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.edu-card-summary {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.edu-card-footer {
  padding: 0.85rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border-light);
}

/* Modal Overlay & Box */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

.modal-close-btn {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.modal-body h4 {
  font-size: 1.05rem;
  color: var(--text-main);
  margin: 1rem 0 0.4rem;
}

.modal-body ul, .modal-body ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.modal-body li {
  margin-bottom: 0.35rem;
}

.modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  background: var(--bg-page);
}

/* ===================================================================
   7. RIWAYAT PEMERIKSAAN (LOCALSTORAGE)
   =================================================================== */

.history-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.history-count-badge {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.history-table-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.history-table th {
  background: var(--bg-page);
  padding: 0.9rem 1rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.history-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.history-table tr:hover {
  background: var(--primary-ice);
}

.empty-state-wrap {
  padding: 4rem 1.5rem;
  text-align: center;
}

.empty-dino-avatar {
  display: inline-block;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.empty-title {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

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

/* ===================================================================
   8. TENTANG & FAQ
   =================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.about-card, .disclaimer-ethics-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.about-brand-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.about-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.about-title {
  font-size: 1.25rem;
  line-height: 1.2;
}

.about-subtitle {
  font-size: 0.82rem;
  color: var(--secondary-green);
  font-weight: 700;
}

.about-content p {
  margin-bottom: 0.85rem;
  line-height: 1.6;
}

.reference-box {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.ref-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ref-list {
  padding-left: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ethics-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.ethics-header i {
  font-size: 1.5rem;
}

.ethics-title {
  font-size: 1.15rem;
}

.ethics-text {
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.ethics-bullet {
  display: flex;
  gap: 0.6rem;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.ethics-bullet i {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* FAQ Accordion */
.faq-container-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.faq-section-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.accordion-item.active {
  border-color: var(--primary-border);
}

.accordion-header {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-page);
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background var(--transition-fast);
}

.accordion-header:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.accordion-header i {
  font-size: 0.85rem;
  transition: transform var(--transition-normal);
  color: var(--primary-blue);
  flex-shrink: 0;
}

.accordion-item.active .accordion-header i {
  transform: rotate(180deg);
}

.accordion-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.accordion-item.active .accordion-collapse {
  max-height: 500px;
  transition: max-height 0.4s ease-in-out;
}

.accordion-body {
  padding: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--border-light);
  background: #ffffff;
}

/* ===================================================================
   FOOTER
   =================================================================== */

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.25rem 1.5rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--primary-blue);
}

.footer-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-blue);
}

.footer-badge-box {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.f-badge {
  display: inline-block;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 1rem;
}

.back-to-top-btn {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary-blue);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.back-to-top-btn:hover {
  background: var(--primary-blue);
  color: #fff;
  transform: translateY(-2px);
}

/* ===================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE, TABLET, DESKTOP)
   =================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-description {
    margin: 0 auto 1.5rem;
  }

  .hero-btn-group {
    justify-content: center;
  }

  .hero-stats-row {
    justify-content: center;
  }

  .hero-visual-wrapper {
    order: -1;
  }

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

  .dino-inputs-grid {
    grid-template-columns: 1fr;
  }

  .diff-cards-grid {
    grid-template-columns: 1fr;
  }

  .report-demo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .report-metrics-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    display: none;
    flex-direction: column;
    z-index: 999;
  }

  .main-nav.mobile-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .nav-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .identity-form-grid {
    grid-template-columns: 1fr;
  }

  .form-action-col {
    grid-column: span 1;
  }

  .calc-action-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .calc-action-btns {
    flex-direction: column;
  }

  .report-letterhead {
    flex-direction: column;
  }

  .dinos-lineup {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .dino-actor-column {
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 1rem;
  }

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

  /* Floating Assistant on Mobile */
  .floating-dino-assistant {
    bottom: 16px;
    right: 16px;
  }

  .dino-avatar-trigger {
    width: 68px;
    height: 68px;
  }

  .dino-speech-bubble {
    max-width: 275px;
    padding: 0.95rem 1.1rem 0.85rem;
  }

  .bubble-text {
    font-size: 0.82rem;
  }
}

/* ===================================================================
   FLOATING INTERACTIVE DINO ASSISTANT
   =================================================================== */

.floating-dino-assistant {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

/* Avatar Trigger Button */
.dino-avatar-trigger {
  pointer-events: auto;
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #dcfce7 45%, #6ee7b7 100%);
  border: 3px solid #10b981;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35), 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  outline: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  animation: assistantFloat 3.8s ease-in-out infinite;
}

.dino-avatar-trigger:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 14px 28px rgba(5, 150, 105, 0.45), 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dino-avatar-trigger:active {
  transform: scale(0.95);
}

@keyframes assistantFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* Dino Notification Pulse Dot */
.dino-avatar-badge {
  position: absolute;
  top: -2px;
  left: -2px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Speech Bubble Card */
.dino-speech-bubble {
  pointer-events: auto;
  position: relative;
  max-width: 310px;
  width: calc(100vw - 48px);
  background: #ffffff;
  border: 2.5px solid #34d399;
  border-radius: 20px;
  padding: 1.15rem 1.25rem 1rem;
  margin-bottom: 14px;
  box-shadow: 0 14px 35px rgba(6, 78, 59, 0.2), 0 3px 8px rgba(0, 0, 0, 0.05);
  display: none;
  transform-origin: bottom right;
}

.dino-speech-bubble.show {
  display: block;
  animation: bubblePop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bubblePop {
  0% { opacity: 0; transform: scale(0.8) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.bubble-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bubble-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}

.bubble-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding-right: 1.5rem;
}

.bubble-mascot-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.bubble-mood-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: #dcfce7;
  color: #047857;
  border: 1px solid #86efac;
}

.bubble-text {
  font-size: 0.88rem;
  color: #1e293b;
  line-height: 1.5;
  margin-bottom: 0.65rem;
}

.bubble-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 0.4rem;
  border-top: 1px dashed #e2e8f0;
}

.bubble-action-btn {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #065f46;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.bubble-action-btn:hover {
  background: #a7f3d0;
  color: #047857;
}

/* Bubble Tail pointing down toward Dino */
.bubble-tail {
  position: absolute;
  bottom: -11px;
  right: 28px;
  width: 18px;
  height: 12px;
  overflow: hidden;
}

.bubble-tail::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-right: 2.5px solid #34d399;
  border-bottom: 2.5px solid #34d399;
  transform: rotate(45deg);
  border-radius: 0 0 3px 0;
}

/* ===================================================================
   PRINT STYLESHEET (@media print)
   =================================================================== */

@media print {
  body {
    background: #ffffff;
    color: #000000;
  }

  .site-header,
  .site-footer,
  .report-toolbar,
  .no-print,
  .modal-overlay,
  .calc-action-banner,
  .hero-card,
  .features-grid,
  .learning-objectives-card {
    display: none !important;
  }

  .main-wrapper {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .page-section {
    display: none !important;
  }

  #hasil.page-section {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .lab-report-card {
    box-shadow: none !important;
    border: 1px solid #000000 !important;
    padding: 1.5rem !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .status-pill {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .gauge-segment {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
