/* ==========================================================================
   Parentia v112 — Gelombang 3 Super-App Lengkap (5 Aplikasi tuntas 100%)
   1. Asisten Curhat Bunda 24 Jam + Kuis Anak Berperasaan Dalam (#/curhat-bunda)
   2. Jurnal Harian Bayi & MPASI 0–2 Thn + Kartu Usia Setara (#/jurnal-bayi)
   3. Dunia Bermain Peran: Dapur Sehat, Dokter UKS, Ensiklopedia (#/dunia-peran)
   4. Jam Putar Siang-Malam & Papan Huruf Geser Montessori (#/jam-huruf)
   5. Pembuat Kartu Kado Digital + Bagikan Kartu ke WhatsApp (#/kartu-kado)
   ========================================================================== */

.w3-tabnum,
.jb-stat-val,
.jb-time,
.jh-digi,
.dp-prog-pct,
.ens-badge-cnt {
  font-variant-numeric: tabular-nums;
}

/* Sembunyikan seluruh baris khusus Bunda saat Mode Si Kecil aktif */
body.kid-mode .w3-parent-strip,
body.kid-mode .w3-parent-pills {
  display: none !important;
}

/* ---------- Baris Tambahan Pegangan Bunda di Beranda ---------- */
.w3-parent-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: -6px;
  margin-bottom: 12px;
}
@media (max-width: 720px) {
  .w3-parent-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pqs-card.curhat {
  background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
  border-color: #DDD6FE;
  color: #4C1D95;
  box-shadow: 0 12px 24px -18px rgba(109, 40, 217, 0.35);
}
.pqs-card.curhat:hover {
  border-color: #C4B5FD;
  box-shadow: 0 14px 28px -16px rgba(109, 40, 217, 0.42);
}
.pqs-card.curhat .pqs-eyebrow {
  background: #EDE9FE;
  color: #6D28D9;
}

.pqs-card.jurnal {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border-color: #FDE68A;
  color: #78350F;
  box-shadow: 0 12px 24px -18px rgba(217, 119, 6, 0.35);
}
.pqs-card.jurnal:hover {
  border-color: #FCD34D;
  box-shadow: 0 14px 28px -16px rgba(217, 119, 6, 0.42);
}
.pqs-card.jurnal .pqs-eyebrow {
  background: #FEF3C7;
  color: #B45309;
}

.w3-parent-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.w3-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1.5px solid #FBCFE8;
  background: linear-gradient(135deg, #FDF2F8 0%, #FCE7F3 100%);
  color: #9D174D;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition-property: transform, border-color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.w3-pill-btn:hover {
  border-color: #F472B6;
  box-shadow: 0 8px 18px -12px rgba(219, 39, 119, 0.4);
}
.w3-pill-btn:active {
  transform: scale(0.98);
}
.w3-pill-btn.alt {
  border-color: #BAE6FD;
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  color: #075985;
}

/* ---------- Kartu Dunia Spesial Anak Gelombang 3 ---------- */
.dw.rose {
  background: linear-gradient(150deg, #FB7185, #E11D48);
  --wc: #E11D48;
}
.dw.sky {
  background: linear-gradient(150deg, #38BDF8, #0284C7);
  --wc: #0284C7;
}

/* ---------- Tombol Bagikan ke WhatsApp Universal ---------- */
.wa-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1.5px solid #16A34A;
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px -12px rgba(22, 163, 74, 0.55);
  transition-property: transform, box-shadow, opacity;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.wa-share-btn:hover {
  box-shadow: 0 14px 24px -12px rgba(22, 163, 74, 0.65);
}
.wa-share-btn:active {
  transform: scale(0.98);
}
.wa-share-btn.ghost {
  background: #F0FDF4;
  color: #15803D;
  border-color: #86EFAC;
  box-shadow: none;
}

/* ---------- 1. ASISTEN CURHAT BUNDA 24 JAM & KUIS SENSITIF ---------- */
.cb-hero {
  background: linear-gradient(135deg, #4C1D95 0%, #6D28D9 55%, #7C3AED 100%);
  color: #FFFFFF;
}
.cb-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cb-tab {
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 99px;
  border: 1.5px solid #DDD6FE;
  background: #FFFFFF;
  color: #4C1D95;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition-property: background-color, color, border-color, transform;
  transition-duration: 150ms;
}
.cb-tab.on {
  background: #5B21B6;
  border-color: #5B21B6;
  color: #FFFFFF;
}
.cb-composer {
  background: #FFFFFF;
  border: 1.5px solid #E9D5FF;
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 14px 30px -22px rgba(88, 28, 135, 0.25);
  margin-bottom: 16px;
}
.cb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.cb-chip {
  min-height: 40px;
  padding: 7px 12px;
  border-radius: 12px;
  border: 1.5px solid #EDE9FE;
  background: #FAF5FF;
  color: #5B21B6;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition-property: background-color, border-color, transform;
  transition-duration: 140ms;
}
.cb-chip:hover {
  background: #F3E8FF;
  border-color: #C4B5FD;
}
.cb-chip:active {
  transform: scale(0.98);
}
.cb-textarea {
  width: 100%;
  min-height: 88px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid #CBD5E1;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.45;
  color: #1E293B;
  resize: vertical;
  box-sizing: border-box;
}
.cb-textarea:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}
.cb-ans-card {
  background: #FFFFFF;
  border: 2px solid #DDD6FE;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 18px 36px -24px rgba(91, 33, 182, 0.28);
  margin-bottom: 16px;
}
.cb-ans-step {
  border-radius: 16px;
  padding: 13px 15px;
  margin-top: 12px;
}
.cb-ans-step.empathy {
  background: #FAF5FF;
  border: 1.5px solid #E9D5FF;
  color: #4C1D95;
}
.cb-ans-step.brain {
  background: #F0F9FF;
  border: 1.5px solid #BAE6FD;
  color: #0C4A6E;
}
.cb-ans-step.script {
  background: #ECFDF5;
  border: 1.5px solid #A7F3D0;
  color: #064E3B;
}
.cb-ans-step.boundary {
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
  color: #78350F;
}
.cb-ans-step b {
  display: block;
  font-family: 'Baloo 2', cursive;
  font-size: 17px;
  line-height: 1.2;
  margin-bottom: 4px;
}
.cb-script-quote {
  background: #FFFFFF;
  border-left: 4px solid #10B981;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: #065F46;
}
.cb-dfk-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 18px;
  padding: 15px;
  margin-bottom: 12px;
}
.cb-dfk-opts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
@media (max-width: 520px) {
  .cb-dfk-opts {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cb-dfk-opt {
  min-height: 44px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  color: #334155;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition-property: background-color, border-color, color;
  transition-duration: 140ms;
}
.cb-dfk-opt.on {
  background: #EDE9FE;
  border-color: #7C3AED;
  color: #4C1D95;
}

/* ---------- 2. JURNAL HARIAN BAYI & MPASI (0–2 TAHUN) ---------- */
.jb-hero {
  background: linear-gradient(135deg, #B45309 0%, #D97706 55%, #F59E0B 100%);
  color: #FFFFFF;
}
.jb-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
@media (max-width: 680px) {
  .jb-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.jb-stat {
  background: #FFFFFF;
  border: 1.5px solid #FDE68A;
  border-radius: 18px;
  padding: 12px;
  text-align: center;
}
.jb-stat-em {
  font-size: 24px;
  display: block;
}
.jb-stat-val {
  font-family: 'Baloo 2', cursive;
  font-size: 22px;
  font-weight: 800;
  color: #78350F;
  line-height: 1.15;
  display: block;
  margin-top: 2px;
}
.jb-stat-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: #92400E;
}
.jb-form-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 16px;
}
.jb-type-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
@media (max-width: 520px) {
  .jb-type-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.jb-type-btn {
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  color: #334155;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition-property: background-color, border-color, color;
  transition-duration: 140ms;
}
.jb-type-btn.on {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #78350F;
}
.jb-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.jb-preset {
  min-height: 42px;
  padding: 7px 13px;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  color: #1E293B;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.jb-preset.on {
  background: #FFFBEB;
  border-color: #D97706;
  color: #92400E;
}
.jb-input {
  width: 100%;
  min-height: 44px;
  padding: 9px 13px;
  border-radius: 12px;
  border: 1.5px solid #CBD5E1;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}
.jb-log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #FFFFFF;
  border: 1.5px solid #F1F5F9;
  border-radius: 16px;
  padding: 11px 14px;
  margin-bottom: 8px;
}
.jb-del-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 11px;
  border: 1px solid #FECDD3;
  background: #FFF1F2;
  color: #BE123C;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  flex: none;
}

/* Kartu Usia Perkembangan Setara di #/cek-tumbuh */
.ck-equiv-banner {
  background: linear-gradient(135deg, #0F766E 0%, #0D9488 100%);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 16px 18px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ck-equiv-badge {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 4px;
}

/* ---------- 3. DUNIA BERMAIN PERAN (DAPUR, DOKTER UKS, ENSIKLOPEDIA) ---------- */
.dp-hero {
  background: linear-gradient(135deg, #BE123C 0%, #E11D48 55%, #FB7185 100%);
  color: #FFFFFF;
}
.dp-stage-card {
  background: #FFFBF5;
  border: 2px solid #FDE68A;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 16px 34px -22px rgba(180, 83, 9, 0.28);
}
.dp-recipe-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.dp-r-tab {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1.5px solid #FED7AA;
  background: #FFFFFF;
  color: #9A3412;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}
.dp-r-tab.on {
  background: #EA580C;
  border-color: #EA580C;
  color: #FFFFFF;
}
.dp-board {
  background: repeating-linear-gradient(90deg, #FDE68A 0px, #FDE68A 28px, #FCD34D 28px, #FCD34D 30px);
  border: 4px solid #D97706;
  border-radius: 22px;
  padding: 18px 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  text-align: center;
}
@media (max-width: 420px) {
  .dp-board {
    grid-template-columns: minmax(0, 1fr);
  }
}
.dp-ing-btn {
  min-height: 96px;
  border-radius: 18px;
  border: 2px solid rgba(146, 64, 14, 0.25);
  background: rgba(255, 255, 255, 0.92);
  padding: 10px;
  cursor: pointer;
  font-family: inherit;
  transition-property: transform, background-color, border-color;
  transition-duration: 140ms;
}
.dp-ing-btn:active {
  transform: scale(0.94);
}
.dp-ing-btn.chopped {
  background: #ECFDF5;
  border-color: #10B981;
}
.dp-pot-wrap {
  text-align: center;
  padding: 8px 0;
}
.dp-pot-canvas {
  width: 260px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  touch-action: none;
  cursor: grab;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}

/* Dokter Kecil UKS */
.doc-bed {
  background: linear-gradient(180deg, #F0F9FF 0%, #E0F2FE 100%);
  border: 2px solid #BAE6FD;
  border-radius: 24px;
  padding: 18px;
  text-align: center;
  position: relative;
}
.doc-patient-zone {
  position: relative;
  width: 220px;
  max-width: 100%;
  height: 190px;
  margin: 8px auto 12px;
  border-radius: 24px;
  background: #FFFFFF;
  border: 2px dashed #7DD3FC;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.doc-spot {
  position: absolute;
  min-width: 48px;
  min-height: 48px;
  border-radius: 99px;
  border: 2px solid #FB7185;
  background: #FFE4E6;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(225, 29, 72, 0.25);
  transition-property: transform, background-color, border-color;
  transition-duration: 150ms;
}
.doc-spot.healed {
  background: #DCFCE7;
  border-color: #22C55E;
  box-shadow: none;
}
.doc-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 440px) {
  .doc-tools {
    grid-template-columns: minmax(0, 1fr);
  }
}
.doc-tool-btn {
  min-height: 58px;
  border-radius: 16px;
  border: 2px solid #BAE6FD;
  background: #FFFFFF;
  color: #0C4A6E;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  padding: 8px 10px;
  cursor: pointer;
}
.doc-tool-btn.on {
  background: #0284C7;
  border-color: #0284C7;
  color: #FFFFFF;
}
.doc-tool-btn.done {
  background: #ECFDF5;
  border-color: #10B981;
  color: #065F46;
}

/* Buku Pintar Alam Sentuh-Suara */
.ens-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 190px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 18px 34px -22px rgba(15, 23, 42, 0.45);
}
.ens-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.78) 100%);
}
.ens-banner-txt {
  position: relative;
  z-index: 1;
  color: #FFFFFF;
}
.ens-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 560px) {
  .ens-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
.ens-card {
  text-align: left;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 20px;
  padding: 14px;
  cursor: pointer;
  font-family: inherit;
  transition-property: transform, border-color, box-shadow;
  transition-duration: 150ms;
}
.ens-card:hover {
  border-color: #38BDF8;
  box-shadow: 0 12px 24px -18px rgba(2, 132, 199, 0.35);
}
.ens-card.heard {
  border-color: #10B981;
  background: #F0FDF4;
}

/* ---------- 4. JAM PUTAR SIANG-MALAM & PAPAN HURUF GESER ---------- */
.jh-hero {
  background: linear-gradient(135deg, #0369A1 0%, #0284C7 55%, #38BDF8 100%);
  color: #FFFFFF;
}
.jh-clock-stage {
  border-radius: 26px;
  padding: 18px;
  color: #FFFFFF;
  text-align: center;
  transition-property: background-color;
  transition-duration: 300ms;
}
.jh-clock-canvas {
  width: 270px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  touch-action: none;
  cursor: pointer;
  display: block;
  margin: 8px auto;
}
.jh-digi {
  display: inline-block;
  background: rgba(15, 23, 42, 0.42);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  padding: 6px 18px;
  border-radius: 14px;
  font-family: 'Baloo 2', cursive;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Papan Huruf Geser Montessori */
.ma-board {
  background: #FEF3C7;
  border: 3px solid #D97706;
  border-radius: 24px;
  padding: 18px 14px;
  text-align: center;
}
.ma-slots {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.ma-slot {
  width: 56px;
  height: 62px;
  border-radius: 14px;
  border: 2.5px dashed #B45309;
  background: rgba(255, 255, 255, 0.85);
  font-family: 'Baloo 2', cursive;
  font-size: 30px;
  font-weight: 800;
  display: grid;
  place-items: center;
  text-transform: uppercase;
  cursor: pointer;
}
.ma-slot.vowel {
  background: #DBEAFE;
  border: 2.5px solid #2563EB;
  color: #1D4ED8;
}
.ma-slot.cons {
  background: #FCE7F3;
  border: 2.5px solid #DB2777;
  color: #BE185D;
}
.ma-tray {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px dashed rgba(180, 83, 9, 0.25);
}
.ma-tile {
  min-width: 52px;
  min-height: 56px;
  padding: 6px 12px;
  border-radius: 14px;
  font-family: 'Baloo 2', cursive;
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.14);
  transition-property: transform, opacity;
  transition-duration: 120ms;
}
.ma-tile:active {
  transform: translateY(2px);
}
.ma-tile.vowel {
  background: #2563EB;
  border: 2px solid #1D4ED8;
  color: #FFFFFF;
}
.ma-tile.cons {
  background: #EC4899;
  border: 2px solid #DB2777;
  color: #FFFFFF;
}
.ma-tile.used {
  opacity: 0.28;
  pointer-events: none;
}

/* ---------- 5. PEMBUAT KARTU KADO DIGITAL ---------- */
.gc-hero {
  background: linear-gradient(135deg, #9D174D 0%, #DB2777 55%, #F472B6 100%);
  color: #FFFFFF;
}
.gc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
@media (max-width: 780px) {
  .gc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.gc-canvas-wrap {
  background: #FFFFFF;
  border: 1.5px solid #FBCFE8;
  border-radius: 22px;
  padding: 14px;
  text-align: center;
}
.gc-canvas {
  width: 100%;
  max-width: 380px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 14px 28px -18px rgba(157, 23, 77, 0.38);
}
