/* ==========================================================================
   BEBAS TB ANAK CILACAP - RAPI, CLEAN & MOBILE-FIRST DESIGN SYSTEM
   Aesthetics: Sleek Glass Header, Quick Menu Cards, Mobile Side Drawer Slider,
   Mobile Bottom Dock, Map Pop-up, Premium Footer, Pagination, SVG Comic,
   & Compact Custom SweetAlert2 Modals
   ========================================================================== */

:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-400: #38bdf8;
  --sky-500: #0284c7;
  --sky-600: #0369a1;
  --sky-900: #0c4a6e;

  --emerald-100: #d1fae5;
  --emerald-500: #10b981;
  --emerald-600: #059669;

  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;

  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;

  --purple-100: #f3e8ff;
  --purple-500: #a855f7;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-600: #475569;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 10px 30px rgba(2, 132, 199, 0.08);
  --card-radius: 20px;

  --font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-heading: 'Fredoka', cursive, sans-serif;
}

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

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

body {
  font-family: var(--font-family);
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 40%, #ecfdf5 100%);
  color: var(--slate-800);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 75px; /* Space for Mobile Dock */
}

/* BACKGROUND GLOWS */
.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
}
.shape-1 { width: 320px; height: 320px; background: rgba(56, 189, 248, 0.35); top: -80px; left: -80px; }
.shape-2 { width: 350px; height: 350px; background: rgba(245, 158, 11, 0.25); top: 400px; right: -100px; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

/* CLEAN RAPI HEADER */
.main-header {
  position: sticky;
  top: 10px;
  z-index: 900;
  padding: 4px 0;
}

.header-container {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--glass-shadow);
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.logo-badge {
  width: 40px;
  height: 40px;
  background: var(--sky-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.logo-text { display: flex; flex-direction: column; }
.brand-row { display: flex; align-items: center; gap: 6px; }

.brand-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--sky-900);
  white-space: nowrap;
}

.badge-kids {
  background: linear-gradient(135deg, var(--rose-500), var(--amber-500));
  color: white;
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

.brand-sub {
  font-size: 10px;
  color: var(--slate-600);
  white-space: nowrap;
}

/* DESKTOP NAVBAR */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-btn {
  background: transparent;
  border: none;
  padding: 8px 14px;
  border-radius: 12px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 13px;
  color: var(--slate-600);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: var(--sky-50);
  color: var(--sky-600);
}

.nav-btn.active {
  background: var(--sky-500);
  color: white;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-highlight {
  background: var(--sky-100);
  color: var(--sky-600);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--slate-200);
  background: white;
  color: var(--slate-600);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 14px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
  touch-action: manipulation;
  white-space: nowrap;
  text-decoration: none;
}

.btn:active { transform: scale(0.96); }
.btn-primary { background: linear-gradient(135deg, var(--sky-500), var(--sky-600)); color: white; }
.btn-emerald { background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600)); color: white; }
.btn-amber { background: var(--amber-400); color: var(--slate-900); }
.btn-outline { background: white; border: 2px solid var(--sky-500); color: var(--sky-600); }
.btn-emergency { background: var(--rose-500); color: white; font-size: 12px; padding: 7px 12px; }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 16px; }

/* MOBILE SIDE DRAWER SLIDER MENU */
.drawer-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1800;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-side-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: white;
  z-index: 1900;
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-side-drawer.active {
  transform: translateX(320px);
}

.drawer-header {
  background: linear-gradient(135deg, var(--sky-500), var(--sky-600));
  color: white;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-user-info { display: flex; align-items: center; gap: 10px; }
.drawer-avatar {
  width: 42px; height: 42px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

.drawer-user-text h3 { font-family: var(--font-heading); font-size: 18px; color: white; }
.drawer-user-text p { font-size: 11px; color: var(--sky-100); }

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.drawer-body { padding: 16px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.drawer-menu-list { display: flex; flex-direction: column; gap: 8px; }

.drawer-item {
  background: white;
  border: 1.5px solid var(--slate-200);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--slate-800);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.drawer-item.active {
  background: var(--sky-50);
  border-color: var(--sky-500);
  color: var(--sky-600);
}

.drawer-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.arrow-icon { margin-left: auto; font-size: 12px; color: var(--slate-400); }

.drawer-emergency-box {
  background: var(--rose-100);
  border: 1px solid var(--rose-500);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.emg-icon { width: 36px; height: 36px; background: var(--rose-500); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.emg-text { flex: 1; display: flex; flex-direction: column; }
.emg-text span { font-size: 9.5px; color: var(--slate-600); text-transform: uppercase; font-weight: 700; }
.emg-text strong { font-size: 14px; color: var(--rose-600); font-family: var(--font-heading); }

/* MOBILE BOTTOM NAVIGATION DOCK */
.mobile-bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--slate-200);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0 8px 0;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.dock-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-family);
  font-size: 10px;
  font-weight: 700;
  color: var(--slate-600);
  cursor: pointer;
  flex: 1;
}

.dock-item i { font-size: 18px; }
.dock-item.active { color: var(--sky-600); }

.dock-item-highlight { position: relative; top: -10px; }
.dock-ai-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--sky-500), var(--purple-500));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
  border: 3px solid white;
}

/* TAB PANES */
.main-content { padding: 20px 0 40px 0; }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.25s ease; }

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

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 24px;
  box-shadow: var(--glass-shadow);
}

/* HERO SECTION */
.hero-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(240, 249, 255, 0.9));
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  padding: 28px 20px;
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.08);
  margin-bottom: 20px;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sky-100);
  color: var(--sky-600);
  font-weight: 700;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.25;
  color: var(--sky-900);
  margin-bottom: 10px;
}

.highlight-text {
  background: linear-gradient(120deg, var(--sky-500), var(--emerald-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub { font-size: 13.5px; color: var(--slate-600); margin-bottom: 18px; }
.hero-buttons { display: flex; gap: 10px; margin-bottom: 20px; }

.hero-stats {
  display: flex;
  gap: 16px;
  border-top: 1px solid var(--slate-200);
  padding-top: 14px;
}

.stat-num { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--sky-600); }
.stat-lbl { font-size: 10.5px; color: var(--slate-600); }

/* MASCOT */
.mascot-avatar-wrapper { display: flex; flex-direction: column; align-items: center; }
.mascot-badge { background: var(--amber-400); color: var(--slate-900); font-weight: 800; font-size: 10px; padding: 3px 10px; border-radius: 10px; margin-bottom: -8px; z-index: 2; }
.mascot-illustration { width: 140px; height: 140px; background: linear-gradient(135deg, var(--sky-400), var(--sky-600)); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px rgba(2, 132, 199, 0.25); }
.mascot-body { width: 90px; height: 90px; background: white; border-radius: 40% 40% 50% 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mascot-face { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mascot-eyes { width: 32px; height: 7px; display: flex; justify-content: space-between; }
.mascot-eyes::before, .mascot-eyes::after { content: ''; width: 7px; height: 7px; background: var(--slate-900); border-radius: 50%; }
.mascot-smile { width: 12px; height: 6px; border-bottom: 3px solid var(--rose-500); border-radius: 0 0 6px 6px; }
.mascot-lungs-heart { font-size: 28px; color: var(--sky-500); margin-top: 4px; }
.mascot-speech-bubble { background: white; border-radius: 14px; padding: 8px 12px; box-shadow: 0 6px 16px rgba(0,0,0,0.06); margin-top: 12px; font-size: 11px; border: 1px solid var(--slate-200); text-align: center; cursor: pointer; }

/* QUICK MENU CARDS */
.quick-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.quick-card {
  background: white;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quick-card:active { transform: scale(0.98); }

.bg-sky-card { border-left: 4px solid var(--sky-500); }
.bg-emerald-card { border-left: 4px solid var(--emerald-500); }
.bg-purple-card { border-left: 4px solid var(--purple-500); }
.bg-amber-card { border-left: 4px solid var(--amber-500); }

.q-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.bg-sky { background: var(--sky-100); color: var(--sky-600); }
.bg-emerald { background: var(--emerald-100); color: var(--emerald-600); }
.bg-amber { background: var(--amber-100); color: var(--amber-500); }
.bg-purple { background: var(--purple-100); color: var(--purple-600); }
.bg-rose { background: var(--rose-100); color: var(--rose-600); }

.q-text { flex: 1; }
.q-text h3 { font-family: var(--font-heading); font-size: 16px; color: var(--slate-900); margin-bottom: 2px; }
.q-text p { font-size: 11.5px; color: var(--slate-600); }
.q-arrow { color: var(--slate-600); font-size: 12px; }

/* SECTION HEADER */
.section-header { margin-bottom: 20px; }
.section-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--sky-100); color: var(--sky-600); font-weight: 700; font-size: 11px; padding: 3px 10px; border-radius: 10px; margin-bottom: 4px; }
.section-header h2 { font-family: var(--font-heading); font-size: 24px; color: var(--sky-900); }
.section-sub { font-size: 13px; color: var(--slate-600); }

/* WIZARD QUESTIONNAIRE */
.wizard-container { max-width: 750px; margin: 0 auto; }
.wizard-header { margin-bottom: 18px; }
.wizard-progress-info { display: flex; justify-content: space-between; font-weight: 700; font-size: 12px; color: var(--slate-600); margin-bottom: 6px; }
.wizard-progress-bar { width: 100%; height: 8px; background: var(--slate-200); border-radius: 8px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--sky-400), var(--sky-600)); border-radius: 8px; transition: width 0.3s; }

.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn 0.25s; }
.step-question-box { display: flex; gap: 12px; background: white; border-radius: 16px; padding: 16px; margin-bottom: 16px; border: 1px solid var(--slate-200); }
.question-icon { width: 40px; height: 40px; background: var(--sky-100); color: var(--sky-600); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.question-content h3 { font-family: var(--font-heading); font-size: 17px; color: var(--slate-900); margin-bottom: 2px; }
.question-content p { font-size: 12px; color: var(--slate-600); }

.options-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.option-card { background: white; border: 2px solid var(--slate-200); border-radius: 14px; padding: 12px 16px; cursor: pointer; display: flex; align-items: flex-start; gap: 10px; min-height: 52px; }
.option-card input[type="radio"] { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--sky-500); }
.option-title { font-weight: 700; font-size: 13.5px; color: var(--slate-900); margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }
.option-desc { font-size: 11.5px; color: var(--slate-600); }

.wizard-actions { display: flex; justify-content: space-between; border-top: 1px solid var(--slate-200); padding-top: 16px; }

/* RESULT CARD */
.result-container { max-width: 750px; margin: 20px auto 0 auto; }
.result-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--slate-200); padding-bottom: 14px; margin-bottom: 16px; }
.result-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 12px; font-weight: 800; font-size: 13px; }
.score-display { display: flex; align-items: baseline; gap: 4px; }
.score-val { font-family: var(--font-heading); font-size: 26px; font-weight: 700; }
.recommendation-list { background: white; border-radius: 14px; padding: 16px; border: 1px solid var(--slate-200); margin: 16px 0; }
.recommendation-list ul { padding-left: 16px; font-size: 12.5px; }
.result-contact-box { background: var(--sky-50); border-radius: 14px; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.result-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--slate-200); padding-top: 14px; }

/* DOSING CALCULATOR */
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; width: 100%; margin-left: auto; margin-right: auto; }
.margin-auto { margin-left: auto; margin-right: auto; }

.margin-top-section { margin-top: 40px; }
.card-spacing-bottom { margin-bottom: 32px; }

.quick-weight-container { margin-bottom: 14px; }
.quick-label { font-size: 12px; font-weight: 700; color: var(--slate-600); margin-bottom: 6px; display: block; }
.quick-pills-row { display: flex; gap: 8px; flex-wrap: wrap; }
.weight-pill { background: white; border: 1.5px solid var(--sky-400); color: var(--sky-600); font-family: var(--font-family); font-weight: 700; font-size: 12.5px; padding: 6px 14px; border-radius: 14px; cursor: pointer; transition: all 0.15s; }
.weight-pill:active, .weight-pill.active { background: var(--sky-500); color: white; border-color: var(--sky-500); }

.form-group { margin-bottom: 16px; }
.margin-top-md { margin-top: 14px; }
.margin-bottom-md { margin-bottom: 16px; }
.form-label { font-weight: 700; font-size: 14px; color: var(--slate-900); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.input-with-btn { display: flex; gap: 8px; }
.form-input { width: 100%; padding: 11px 14px; border-radius: 12px; border: 2px solid var(--slate-200); font-family: var(--font-family); font-size: 14px; outline: none; background: white; }
.form-input-lg { font-size: 16px; font-weight: 700; }
.form-input:focus { border-color: var(--sky-500); }

.dosing-result-card { background: white; border-radius: 16px; padding: 18px; border: 1px solid var(--slate-200); margin-top: 16px; }
.dosing-header { border-bottom: 1px solid var(--slate-200); padding-bottom: 10px; margin-bottom: 14px; }
.dosing-category-badge { background: var(--sky-100); color: var(--sky-600); font-weight: 800; font-size: 11px; padding: 3px 8px; border-radius: 8px; display: inline-block; margin-bottom: 4px; }
.dosing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.dosing-phase-card { border-radius: 14px; padding: 14px; text-align: center; }
.phase-tag { font-size: 9.5px; font-weight: 800; padding: 3px 7px; border-radius: 6px; display: inline-block; margin-bottom: 6px; }
.dose-num { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--slate-900); margin-bottom: 2px; }
.dose-desc { font-size: 10.5px; color: var(--slate-600); }
.dosing-tips { background: var(--amber-100); border-radius: 12px; padding: 12px; font-size: 11.5px; color: var(--slate-800); }
.dosing-tips ul { padding-left: 14px; margin-top: 4px; }

/* AI CHATBOT CILO */
.chat-container { display: flex; flex-direction: column; height: 500px; }
.chat-header { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--slate-200); padding-bottom: 12px; margin-bottom: 12px; }
.chat-bot-avatar { width: 40px; height: 40px; background: linear-gradient(135deg, var(--sky-500), var(--purple-500)); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.chat-bot-info h3 { font-family: var(--font-heading); font-size: 17px; color: var(--slate-900); }
.status-online { font-size: 10px; color: var(--emerald-600); font-weight: 700; }
.status-online i { font-size: 7px; }

.chat-messages-box { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; background: rgba(248, 250, 252, 0.6); border-radius: 14px; margin-bottom: 10px; }
.chat-msg { display: flex; }
.chat-msg.bot { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }
.msg-bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.45; }
.chat-msg.bot .msg-bubble { background: white; border: 1px solid var(--slate-200); border-top-left-radius: 2px; }
.chat-msg.user .msg-bubble { background: var(--sky-500); color: white; border-top-right-radius: 2px; }

.chat-chips-container { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; }
.chip-btn { background: white; border: 1px solid var(--sky-400); color: var(--sky-600); font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 14px; white-space: nowrap; cursor: pointer; }
.chat-input-row { display: flex; gap: 8px; }

/* TRACKER & BADGES */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.child-profile { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.avatar-circle { width: 44px; height: 44px; background: var(--sky-100); color: var(--sky-600); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.tracker-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: white; border-radius: 12px; padding: 10px; border: 1px solid var(--slate-200); margin-bottom: 14px; text-align: center; }
.t-num { font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.t-lbl { font-size: 9.5px; color: var(--slate-600); }
.daily-checkin-box { background: white; border: 2px dashed var(--emerald-500); border-radius: 14px; padding: 14px; text-align: center; }

.badges-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.badge-item { background: white; border-radius: 12px; padding: 10px; border: 1px solid var(--slate-200); text-align: center; }
.badge-item.unlocked { background: var(--amber-100); border-color: var(--amber-400); }
.badge-item.locked { opacity: 0.4; filter: grayscale(1); }
.badge-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--amber-400); color: white; display: flex; align-items: center; justify-content: center; font-size: 16px; margin: 0 auto 4px auto; }
.badge-name { font-weight: 700; font-size: 11px; }
.badge-desc { font-size: 9.5px; color: var(--slate-600); }

/* STORYBOOK & KOMIK SVG ILUSTRASI */
.storybook-card { max-width: 840px; width: 100%; margin-left: auto; margin-right: auto; }

.comic-nav-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumb-btn { background: white; border: 1.5px solid var(--slate-200); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; transition: all 0.2s ease; }
.thumb-btn.active { background: var(--sky-50); border-color: var(--sky-500); box-shadow: 0 4px 10px rgba(2, 132, 199, 0.15); }
.thumb-btn .t-num { width: 22px; height: 22px; background: var(--slate-200); color: var(--slate-800); border-radius: 50%; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.thumb-btn.active .t-num { background: var(--sky-500); color: white; }
.thumb-btn .t-text { font-size: 11px; font-weight: 700; color: var(--slate-800); white-space: nowrap; }

.comic-slide-pane { display: none; }
.comic-slide-pane.active { display: block; animation: fadeIn 0.3s ease; }

.comic-header-badge { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--slate-200); padding-bottom: 10px; }
.comic-header-badge h3 { font-family: var(--font-heading); font-size: 18px; color: var(--sky-900); }

.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.comic-svg-frame { border-radius: 20px; overflow: hidden; border: 2px solid var(--glass-border); box-shadow: 0 8px 20px rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: center; }
.comic-svg-art { width: 100%; height: auto; display: block; }

.bg-sky-light { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.bg-amber-light { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.bg-emerald-light { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.bg-purple-light { background: linear-gradient(135deg, #f3e8ff, #ddd6fe); }

.speech-bubble-comic { background: white; border: 2px solid var(--sky-400); border-radius: 18px; padding: 16px; box-shadow: 0 6px 18px rgba(2, 132, 199, 0.1); margin-bottom: 12px; position: relative; }
.speaker-tag { font-size: 11px; font-weight: 800; color: var(--sky-600); text-transform: uppercase; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.speech-bubble-comic p { font-size: 13.5px; color: var(--slate-800); line-height: 1.55; }

.comic-fact-box { background: var(--sky-50); border: 1px solid var(--sky-400); border-radius: 14px; padding: 12px; font-size: 12px; color: var(--slate-800); display: flex; gap: 10px; align-items: flex-start; }
.comic-fact-box i { font-size: 18px; flex-shrink: 0; margin-top: 2px; }

.badge-page { background: var(--slate-100); border: 1px solid var(--slate-200); padding: 6px 14px; border-radius: 12px; font-weight: 700; font-size: 12.5px; color: var(--slate-800); }

/* KUIS & SERTIFIKAT */
.quiz-container { max-width: 800px; width: 100%; margin-left: auto; margin-right: auto; }
.quiz-header { display: flex; justify-content: space-between; border-bottom: 1px solid var(--slate-200); padding-bottom: 8px; margin-bottom: 14px; font-weight: 700; font-size: 12px; }
.quiz-options-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.quiz-opt-btn { background: white; border: 2px solid var(--slate-200); border-radius: 12px; padding: 12px 14px; text-align: left; font-family: var(--font-family); font-weight: 600; font-size: 13.5px; cursor: pointer; min-height: 48px; }
.quiz-opt-btn.correct { background: var(--emerald-100); border-color: var(--emerald-500); color: var(--emerald-600); }
.quiz-opt-btn.wrong { background: var(--rose-100); border-color: var(--rose-500); color: var(--rose-600); }

.certificate-preview { background: #fffdf9; border: 5px double var(--amber-400); border-radius: 12px; padding: 18px; margin: 16px 0; }
.cert-border { border: 1px solid var(--slate-200); padding: 12px; }
.cert-name { font-family: var(--font-heading); font-size: 22px; color: var(--rose-600); margin: 6px 0; }

/* PUSKESMAS DIRECTORY & FILTER GRID */
.puskesmas-controls { margin-bottom: 16px; }
.search-filter-grid { display: grid; grid-template-columns: 2fr 1.2fr 1fr; gap: 10px; }
.search-box { position: relative; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--slate-600); }
.search-box .form-input { padding-left: 36px; }
.form-select { width: 100%; padding: 11px 12px; border-radius: 12px; border: 2px solid var(--slate-200); font-family: var(--font-family); font-size: 12.5px; outline: none; background: white; }

.puskesmas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.puskesmas-card { background: white; border-radius: 16px; padding: 16px; border: 1px solid var(--slate-200); display: flex; flex-direction: column; justify-content: space-between; }
.pusk-header { display: flex; gap: 10px; margin-bottom: 8px; }
.pusk-icon { width: 36px; height: 36px; background: var(--sky-100); color: var(--sky-600); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.pusk-title h4 { font-family: var(--font-heading); font-size: 15px; color: var(--slate-900); }
.pusk-kecamatan { font-size: 10.5px; color: var(--sky-600); font-weight: 700; }
.pusk-details p { font-size: 11.5px; color: var(--slate-600); margin-bottom: 4px; }
.pusk-actions { display: flex; gap: 8px; margin-top: 12px; }
.pusk-actions .btn { flex: 1; padding: 8px; font-size: 11.5px; }

/* PAGINASI PUSKESMAS */
.pagination-wrapper { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; flex-wrap: wrap; gap: 12px; }
.pagination-info { font-size: 13px; color: var(--slate-600); }
.pagination-info strong { color: var(--sky-900); }
.pagination-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-btn { background: white; border: 1.5px solid var(--slate-200); color: var(--slate-800); font-family: var(--font-family); font-weight: 700; font-size: 13px; min-width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.15s ease; }
.page-btn:hover:not(:disabled) { background: var(--sky-50); border-color: var(--sky-500); color: var(--sky-600); }
.page-btn.active { background: var(--sky-500); color: white; border-color: var(--sky-500); box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* POPUP MODAL PETA PUSKESMAS */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn 0.25s ease; }
.modal-card { width: 100%; max-width: 650px; background: white; border-radius: 24px; padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.25); display: flex; flex-direction: column; gap: 14px; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--slate-200); padding-bottom: 10px; }
.modal-title-group { display: flex; align-items: center; gap: 10px; }
.modal-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.modal-title-group h3 { font-family: var(--font-heading); font-size: 18px; color: var(--slate-900); }
.modal-close-btn { background: none; border: none; font-size: 28px; color: var(--slate-600); cursor: pointer; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.modal-close-btn:hover { background: var(--slate-100); color: var(--rose-500); }
.map-iframe-wrapper { border-radius: 16px; overflow: hidden; border: 1px solid var(--slate-200); }
.modal-address { font-size: 13px; color: var(--slate-800); margin-top: 10px; font-weight: 600; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--slate-200); padding-top: 12px; }

/* PREMIUM & BEAUTIFUL MODERN FOOTER */
.main-footer { background: linear-gradient(135deg, #0c4a6e 0%, #0284c7 100%); color: white; border-top-left-radius: 36px; border-top-right-radius: 36px; padding: 48px 0 0 0; margin-top: 50px; position: relative; box-shadow: 0 -10px 40px rgba(2, 132, 199, 0.15); }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 36px; padding-bottom: 36px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo-badge { width: 44px; height: 44px; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--sky-400); }
.footer-logo-text { display: flex; flex-direction: column; }
.f-title { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: white; }
.f-badge { background: var(--amber-400); color: var(--slate-900); padding: 2px 7px; border-radius: 8px; font-size: 11px; margin-left: 4px; }
.f-sub { font-size: 11px; color: var(--sky-100); }

.footer-desc { font-size: 13px; color: var(--sky-100); line-height: 1.6; }
.footer-desc strong { color: white; }

.footer-partner-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.partner-chip { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); color: white; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 12px; display: inline-flex; align-items: center; gap: 6px; }

.footer-links-col h4, .footer-contact-col h4 { font-family: var(--font-heading); font-size: 17px; color: white; margin-bottom: 16px; position: relative; }

.footer-menu-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-menu-list a { color: var(--sky-100); text-decoration: none; font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s ease; }
.footer-menu-list a:hover { color: white; transform: translateX(4px); }
.footer-menu-list i { color: var(--sky-400); font-size: 12px; }

.footer-emergency-card { background: linear-gradient(135deg, var(--rose-500), var(--rose-600)); border-radius: 16px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; box-shadow: 0 8px 20px rgba(244, 63, 94, 0.3); margin-bottom: 16px; }
.f-emg-icon { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: white; }
.f-emg-text { display: flex; flex-direction: column; }
.f-emg-label { font-size: 10.5px; color: rgba(255, 255, 255, 0.9); font-weight: 700; text-transform: uppercase; }
.f-emg-num { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: white; text-decoration: none; }

.footer-contact-details p { font-size: 12.5px; color: var(--sky-100); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.footer-contact-details a { color: var(--sky-400); text-decoration: none; font-weight: 700; }

.footer-bottom-bar { background: rgba(12, 74, 110, 0.6); border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 16px 0; font-size: 12px; color: var(--sky-100); }

/* SWEETALERT2 COMPACT STYLING */
div.swal2-compact-popup {
  width: 380px !important;
  max-width: 90vw !important;
  border-radius: 24px !important;
  padding: 20px !important;
  font-family: var(--font-family) !important;
  box-shadow: 0 20px 50px rgba(2, 132, 199, 0.2) !important;
  border: 1px solid var(--glass-border) !important;
  background: var(--glass-bg) !important;
  backdrop-filter: blur(16px) !important;
}

div.swal2-compact-title {
  font-family: var(--font-heading) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  color: var(--sky-900) !important;
  padding: 10px 0 4px 0 !important;
}

div.swal2-compact-html {
  font-size: 13px !important;
  color: var(--slate-600) !important;
  line-height: 1.5 !important;
  margin: 6px 0 14px 0 !important;
}

button.swal2-compact-confirm {
  border-radius: 14px !important;
  font-family: var(--font-family) !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  padding: 10px 22px !important;
  background: linear-gradient(135deg, var(--sky-500), var(--sky-600)) !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3) !important;
}

button.swal2-compact-cancel {
  border-radius: 14px !important;
  font-family: var(--font-family) !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  padding: 10px 18px !important;
}

/* MOBILE BREAKPOINTS */
.desktop-only { display: flex; }
.mobile-only { display: none; }
.full-width-mobile { width: auto; }

@media (max-width: 820px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-buttons { justify-content: center; flex-direction: column; width: 100%; }
  .full-width-mobile { width: 100% !important; }
  .hero-stats { justify-content: center; }
  .grid-2 { grid-template-columns: 1fr; }
  .dosing-grid { grid-template-columns: 1fr; }
  .search-filter-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 24px; }
  .story-grid { grid-template-columns: 1fr; }
  .comic-nav-thumbs { grid-template-columns: repeat(2, 1fr); }
  .story-controls { flex-wrap: wrap; gap: 8px; justify-content: center; text-align: center; }

  .input-with-btn { flex-direction: column; }
  .modal-footer { flex-direction: column; }
  .pagination-wrapper { flex-direction: column; text-align: center; }
  .pagination-controls { justify-content: center; width: 100%; }

  .main-footer { padding-bottom: 20px; border-radius: 28px 28px 0 0; }
  .footer-bottom-bar { padding-bottom: 85px; }
}

@media print {
  .main-header, .main-footer, .mobile-bottom-dock, .wizard-actions, .cert-actions, .bg-shape, .modal-overlay, .mobile-side-drawer, .drawer-backdrop, .story-controls, .comic-nav-thumbs { display: none !important; }
  body { background: white !important; padding-bottom: 0 !important; }
  .tab-pane { display: block !important; }
}
