/* ZoneEdu Elementary Storybook & 10-Island Game UI (Scoped .zk-*) */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&display=swap');

.zk-root {
  --zk-cream: #FFFBF0;
  --zk-ink: #172554;
  --zk-orange: #FF5C16;
  --zk-orange-dark: #C8430C;
  --zk-font: 'Baloo 2', 'Be Vietnam Pro', system-ui, sans-serif;
  color: var(--zk-ink);
}
.zk-root a, .zk-root button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.zk-font { font-family: var(--zk-font); }

/* 1. HERO STORYBOOK */
.zk-hero {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  min-height: 490px;
  border: 4px solid #FCD34D;
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.16);
  display: flex;
  align-items: center;
  background: #BAE6FD;
}
.zk-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.zk-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 251, 240, 0.97) 0%, rgba(255, 251, 240, 0.90) 45%, rgba(255, 251, 240, 0.14) 76%, rgba(255, 251, 240, 0) 100%);
}
.zk-hero-panel {
  position: relative;
  z-index: 2;
  max-width: 585px;
  padding: 32px 34px;
}
.zk-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #DCFCE7;
  color: #166534;
  border: 2px solid #86EFAC;
  border-radius: 99px;
  padding: 6px 14px;
  font-family: var(--zk-font);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
}
.zk-h1 {
  font-family: var(--zk-font);
  font-size: clamp(30px, 4.1vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 16px;
  color: #172554;
}
.zk-h1 span { color: #FF5C16; }

.zk-grade-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.zk-grade-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 74px;
  border-radius: 20px;
  background: #FFFFFF;
  border: 3px solid #BAE6FD;
  border-bottom: 6px solid #38BDF8;
  font-family: var(--zk-font);
  font-size: 18px;
  font-weight: 800;
  color: #1E3A8A;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}
.zk-grade-tile .zk-ico { font-size: 25px; line-height: 1.05; }
.zk-grade-tile.active {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #1D4ED8;
  border-bottom-color: #172554;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.32);
}
.zk-grade-tile:active { transform: translateY(3px); border-bottom-width: 3px; }

.zk-hero-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}
.zk-btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 0 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, #FF8547 0%, #FF5C16 100%);
  border: 3px solid #C8430C;
  border-bottom: 7px solid #C8430C;
  color: #FFFFFF;
  font-family: var(--zk-font);
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(255, 92, 22, 0.30);
  cursor: pointer;
  transition: transform 0.1s ease;
}
.zk-btn-play:active { transform: translateY(4px); border-bottom-width: 3px; }
.zk-btn-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 20px;
  background: #FFFFFF;
  border: 3px solid #16A34A;
  border-bottom: 6px solid #15803D;
  color: #15803D;
  font-family: var(--zk-font);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

/* SECTION HEADERS */
.zk-sec { margin-top: 28px; }
.zk-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.zk-h2 {
  font-family: var(--zk-font);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin: 0;
  color: #172554;
}
.zk-pill {
  font-family: var(--zk-font);
  font-size: 16px;
  font-weight: 800;
  padding: 7px 15px;
  border-radius: 99px;
  background: #FEF3C7;
  color: #92400E;
  border: 2px solid #FCD34D;
}

/* 2. 10-ISLAND WINDING MAP */
.zk-board {
  position: relative;
  border-radius: 32px;
  padding: 30px 24px 24px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.7) 0 44px, transparent 45px),
    radial-gradient(circle at 82% 16%, rgba(255,255,255,0.65) 0 56px, transparent 57px),
    linear-gradient(180deg, #E0F2FE 0%, #DCFCE7 54%, #FEF9C3 100%);
  border: 4px solid #7DD3FC;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.55);
  overflow: hidden;
}
.zk-stage { position: relative; }
.zk-path-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.zk-islands {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 12px;
}
.zk-island {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: transparent;
  border: 0;
  padding: 4px;
  min-height: 136px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.zk-island:active { transform: scale(0.96); }
.zk-disc {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #4ADE80 0%, #16A34A 100%);
  border: 4px solid #FFFFFF;
  box-shadow: 0 8px 0 #15803D, 0 12px 20px rgba(22, 163, 74, 0.24);
  color: #FFFFFF;
  position: relative;
}
.zk-island.official .zk-disc {
  background: linear-gradient(180deg, #FBBF24 0%, #EA580C 100%);
  box-shadow: 0 8px 0 #9A3412, 0 14px 24px rgba(234, 88, 12, 0.28);
}
.zk-island.boss .zk-disc {
  width: 98px;
  height: 98px;
  background: linear-gradient(180deg, #A855F7 0%, #6D28D9 100%);
  box-shadow: 0 8px 0 #4C1D95, 0 14px 26px rgba(109, 40, 217, 0.32);
}
.zk-island.current .zk-disc {
  outline: 5px solid #FF5C16;
  outline-offset: 4px;
}
.zk-island.dim { opacity: 0.62; }
.zk-i-emoji { font-size: 33px; line-height: 1; }
.zk-i-num {
  position: absolute;
  top: -8px;
  right: -6px;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 99px;
  background: #172554;
  color: #fff;
  font-family: var(--zk-font);
  font-size: 15px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}
.zk-i-title {
  margin-top: 11px;
  font-family: var(--zk-font);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  color: #172554;
  background: rgba(255, 255, 255, 0.94);
  padding: 4px 12px;
  border-radius: 99px;
  border: 2px solid #BAE6FD;
}
.zk-i-stars {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #B45309;
}

@media (min-width: 921px) {
  .zk-island[data-id="6"] { grid-column: 5; grid-row: 2; }
  .zk-island[data-id="7"] { grid-column: 4; grid-row: 2; }
  .zk-island[data-id="8"] { grid-column: 3; grid-row: 2; }
  .zk-island[data-id="9"] { grid-column: 2; grid-row: 2; }
  .zk-island[data-id="10"] { grid-column: 1; grid-row: 2; }
}

.zk-drawer {
  margin-top: 20px;
  background: #FFFFFF;
  border: 3px solid #F59E0B;
  border-radius: 24px;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 2;
}
.zk-drawer-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.zk-drawer-ico {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #FEF3C7;
  display: grid;
  place-items: center;
  font-size: 30px;
  flex-shrink: 0;
}
.zk-drawer-h3 {
  font-family: var(--zk-font);
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: #172554;
}
.zk-d-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.zk-d-chip {
  font-size: 13.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: #EFF6FF;
  color: #1D4ED8;
}

/* 3. PLAYGROUND + FLIP CARDS */
.zk-play-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 20px;
}
.zk-basket-box {
  background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
  border: 4px solid #86EFAC;
  border-radius: 28px;
  padding: 22px;
}
.zk-word-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 64px;
  padding: 12px;
  border-radius: 20px;
  background: #FEF9C3;
  border: 2px dashed #F59E0B;
  margin: 12px 0 16px;
  align-items: center;
  justify-content: center;
}
.zk-word {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 99px;
  background: #FFFFFF;
  border: 3px solid #F59E0B;
  border-bottom: 5px solid #D97706;
  font-family: var(--zk-font);
  font-size: 19px;
  font-weight: 800;
  color: #172554;
  cursor: pointer;
}
.zk-word.sel {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #1D4ED8;
  border-bottom-color: #172554;
  transform: scale(1.05);
}
.zk-baskets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.zk-basket {
  min-height: 146px;
  border-radius: 22px;
  background: #FFFBEB;
  border: 3px solid #D97706;
  border-bottom: 7px solid #92400E;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  cursor: pointer;
}
.zk-basket-title {
  font-family: var(--zk-font);
  font-size: 20px;
  font-weight: 800;
  color: #78350F;
}
.zk-sorted {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 6px;
}
.zk-sorted-pill {
  font-size: 14px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: #DCFCE7;
  color: #166534;
}
.zk-msg {
  margin: 12px 0 0;
  min-height: 26px;
  font-family: var(--zk-font);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.zk-trap-box {
  background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 100%);
  border: 4px solid #93C5FD;
  border-radius: 28px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.zk-traps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.zk-flip {
  min-height: 112px;
  border-radius: 18px;
  border: 3px solid #FCA5A5;
  border-bottom: 6px solid #EF4444;
  background: #FEF2F2;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.zk-flip.flipped {
  background: #DCFCE7;
  border-color: #4ADE80;
  border-bottom-color: #16A34A;
}
.zk-flip-label {
  font-family: var(--zk-font);
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.2;
  color: #991B1B;
}
.zk-flip.flipped .zk-flip-label { color: #166534; }
.zk-flip-hint { font-size: 12.5px; font-weight: 700; color: #64748B; }

/* 4. STORYBOOK PICTURE CARDS */
.zk-swipe-hint { display: none; }
.zk-stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.zk-story {
  background: #FFFFFF;
  border-radius: 26px;
  border: 3px solid #E2E8F0;
  border-bottom: 7px solid #CBD5E1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.zk-story-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.zk-story-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: space-between;
}
.zk-story-h3 {
  font-family: var(--zk-font);
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0;
  color: #172554;
}
.zk-story-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 16px;
  background: #EFF6FF;
  border: 2px solid #60A5FA;
  border-bottom: 4px solid #2563EB;
  color: #1D4ED8;
  font-family: var(--zk-font);
  font-size: 17.5px;
  font-weight: 800;
  cursor: pointer;
}

/* SEO QUICK PILLS (Compact 1-row/wrap pills replacing the 8 text-wall cards while preserving 100% internal links) */
.zk-seo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.zk-seo-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 99px;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  font-size: 14px;
  font-weight: 700;
  color: #1E3A8A;
}

/* 5. PARENT STRIP */
.zk-parent-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}
.zk-pbox {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 24px;
  padding: 20px;
}
.zk-p-h3 {
  font-family: var(--zk-font);
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 12px;
  color: #172554;
}
.zk-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.zk-date-card {
  background: #F8FAFC;
  border: 2px solid #DBEAFE;
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.zk-date-pill {
  font-family: var(--zk-font);
  font-size: 15px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 10px;
  background: #DBEAFE;
  color: #1E40AF;
  white-space: nowrap;
}
.zk-prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.zk-pr {
  min-height: 88px;
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-bottom: 4px solid #CBD5E1;
  border-radius: 18px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}
.zk-pr.vip {
  background: #FEF3C7;
  border-color: #F59E0B;
  border-bottom-color: #D97706;
}
.zk-pr-big {
  font-family: var(--zk-font);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.05;
  color: #172554;
}

@media (hover: hover) {
  .zk-island:hover { transform: translateY(-4px) scale(1.03); }
  .zk-basket:hover { background: #FEF3C7; }
  .zk-story:hover { transform: translateY(-3px); }
  .zk-seo-link:hover { border-color: #60A5FA; background: #EFF6FF; }
}

@media (max-width: 920px) {
  .zk-hero {
    flex-direction: column;
    min-height: auto;
    border-radius: 26px;
    background: #FFFBF0;
  }
  .zk-hero-img {
    position: relative;
    inset: auto;
    width: 100%;
    height: 224px;
    object-fit: cover;
    object-position: 80% 42%;
    display: block;
  }
  .zk-hero-scrim {
    top: 170px;
    bottom: auto;
    height: 55px;
    background: linear-gradient(180deg, rgba(255,251,240,0) 0%, #FFFBF0 100%);
  }
  .zk-hero-panel {
    max-width: 100%;
    width: 100%;
    padding: 8px 18px 20px;
  }

  .zk-board { padding: 22px 14px 18px; border-radius: 26px; }
  .zk-islands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
  }
  .zk-island[data-id="3"] { grid-column: 2; grid-row: 2; }
  .zk-island[data-id="4"] { grid-column: 1; grid-row: 2; }
  .zk-island[data-id="7"] { grid-column: 2; grid-row: 4; }
  .zk-island[data-id="8"] { grid-column: 1; grid-row: 4; }
  .zk-disc { width: 82px; height: 82px; }
  .zk-island.boss .zk-disc { width: 88px; height: 88px; }
  .zk-i-emoji { font-size: 30px; }
  .zk-i-title { font-size: 16px; padding: 3px 10px; margin-top: 9px; }

  .zk-drawer { padding: 14px 16px; border-radius: 20px; gap: 12px; }
  .zk-drawer-info { align-items: flex-start; gap: 10px; }
  .zk-drawer-ico { width: 50px; height: 50px; font-size: 26px; border-radius: 14px; }
  .zk-drawer-h3 { font-size: 19px; line-height: 1.2; }
  .zk-drawer .zk-btn-play { width: 100%; }

  .zk-play-grid, .zk-parent-grid { grid-template-columns: 1fr; }

  .zk-desk-pill { display: none; }
  .zk-swipe-hint {
    display: inline-flex;
    font-family: var(--zk-font);
    font-size: 15px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 99px;
    background: #EFF6FF;
    color: #1D4ED8;
    border: 2px solid #BFDBFE;
  }
  .zk-stories {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding: 2px 4px 12px;
    margin: 0 -4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .zk-stories::-webkit-scrollbar { display: none; }
  .zk-story {
    flex: 0 0 84%;
    max-width: 340px;
    scroll-snap-align: center;
  }
}

@media (max-width: 560px) {
  .zk-hero-img { height: 194px; }
  .zk-hero-scrim { top: 144px; height: 50px; }
  .zk-hero-panel { padding: 6px 14px 16px; }
  .zk-chip { font-size: 14px; padding: 5px 11px; }
  .zk-h1 { font-size: 27px; margin-bottom: 12px; }
  .zk-grade-bar { gap: 5px; margin-bottom: 14px; }
  .zk-grade-tile { min-height: 62px; font-size: 13.5px; border-radius: 15px; padding: 2px; }
  .zk-grade-tile .zk-ico { font-size: 21px; }
  .zk-hero-actions { flex-wrap: wrap; gap: 8px; }
  .zk-btn-play, .zk-btn-sub { width: 100%; min-height: 54px; font-size: 18px; }

  .zk-basket-box, .zk-trap-box { padding: 16px 14px; border-radius: 24px; }
  .zk-baskets { gap: 10px; }
  .zk-basket { min-height: 132px; padding: 10px 8px; border-radius: 18px; }
  .zk-basket-title { font-size: 18px; }

  .zk-traps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .zk-flip { min-height: 112px; padding: 10px 8px; border-radius: 16px; }
  .zk-flip-label { font-size: 14.5px; }

  .zk-dates { grid-template-columns: 1fr; gap: 8px; }
  .zk-pbox { padding: 16px 14px; }
  .zk-pr-big { font-size: 22px; }
}


/* Live Mobile Bottom App Dock (explicit non-Tailwind grid & button styles) */
nav[aria-label="Điều hướng di động"] {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
  background: rgba(255, 251, 240, 0.97) !important;
  border-top: 3px solid #FCD34D !important;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
}
nav[aria-label="Điều hướng di động"] > button {
  min-height: 52px !important;
  border-radius: 14px !important;
  font-family: 'Baloo 2', 'Be Vietnam Pro', system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}
nav[aria-label="Điều hướng di động"] > button:last-child {
  background: linear-gradient(180deg, #FF8547 0%, #FF5C16 100%) !important;
  border-bottom: 3px solid #C8430C !important;
  color: #FFFFFF !important;
}

/* === ZEDU ELEMENTARY AUTH & PORTAL V3 === */
.za-portal-bg {
  background:
    radial-gradient(circle at 12% 8%, rgba(254, 243, 199, 0.85) 0, transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(224, 242, 254, 0.78) 0, transparent 34%),
    #FFFBF0 !important;
  color: #172554;
}
.za-portal-bg > header {
  background: rgba(255, 251, 240, 0.95) !important;
  border-bottom: 3px solid #FDE68A !important;
}
.za-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
}
.za-modal-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92dvh;
  overflow-y: auto;
  background: #FFFDF7;
  border: 3.5px solid #FCD34D;
  border-bottom: 8px solid #F59E0B;
  border-radius: 28px;
  padding: 20px 20px 18px;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.28);
  color: #172554;
}
.za-card {
  background: #FFFFFF;
  border: 3.5px solid #FCD34D;
  border-bottom: 8px solid #F59E0B;
  border-radius: 28px;
  padding: 22px 22px 20px;
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.12);
  color: #172554;
}
.za-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.za-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.za-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(23, 37, 84, 0.14);
}
.za-title {
  font-family: 'Baloo 2', 'Be Vietnam Pro', system-ui, sans-serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.12;
  color: #172554;
  margin: 0;
}
.za-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748B;
  margin: 2px 0 0;
}
.za-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 99px;
  border: 2px solid #FDE68A;
  background: #FEF3C7;
  color: #92400E;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.za-role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 20px;
  background: #FEF3C7;
  border: 2px solid #FDE68A;
  margin-bottom: 14px;
}
.za-role-btn {
  min-height: 48px;
  border-radius: 14px;
  border: 2px solid transparent;
  background: transparent;
  font-family: 'Baloo 2', 'Be Vietnam Pro', system-ui, sans-serif;
  font-size: 16.5px;
  font-weight: 800;
  color: #92400E;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px;
  transition: all 0.14s ease;
}
.za-role-btn.active-kid {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #1D4ED8;
  border-bottom: 4px solid #172554;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.24);
}
.za-role-btn.active-parent {
  background: #FFFFFF;
  color: #172554;
  border-color: #F59E0B;
  border-bottom: 4px solid #D97706;
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.16);
}
.za-alert-err {
  border-radius: 15px;
  border: 2px solid #FECACA;
  background: #FEF2F2;
  color: #B91C1C;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}
.za-alert-ok {
  border-radius: 15px;
  border: 2px solid #86EFAC;
  background: #F0FDF4;
  color: #166534;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}
.za-kid-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.za-kid-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 60px;
  padding: 8px 10px;
  border-radius: 16px;
  border: 2.5px solid #BAE6FD;
  border-bottom: 5px solid #7DD3FC;
  background: #F0F9FF;
  text-align: left;
  cursor: pointer;
  color: #172554;
}
.za-kid-card.selected {
  background: #DBEAFE;
  border-color: #2563EB;
  border-bottom-color: #1D4ED8;
}
.za-kid-emo {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}
.za-kid-name {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  color: #172554;
  display: block;
}
.za-kid-meta {
  font-size: 11.5px;
  font-weight: 700;
  color: #1D4ED8;
  display: block;
  margin-top: 2px;
}
.za-label {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 5px;
}
.za-input {
  width: 100%;
  min-height: 50px;
  border-radius: 15px;
  border: 2.5px solid #CBD5E1;
  background: #FFFFFF;
  padding: 10px 14px;
  font-size: 16px !important;
  font-weight: 600;
  color: #172554;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}
.za-input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.za-input-code {
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 19px !important;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-color: #93C5FD;
  background: #F8FAFC;
}
.za-pin-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 6px 0 10px;
}
.za-pin-slot {
  height: 50px;
  border-radius: 15px;
  border: 2.5px solid #93C5FD;
  background: #EFF6FF;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: #1D4ED8;
}
.za-pin-slot.filled {
  background: #DBEAFE;
  border-color: #2563EB;
  border-bottom: 4px solid #1D4ED8;
}
.za-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.za-key {
  min-height: 52px;
  border-radius: 15px;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  border-bottom: 5px solid #94A3B8;
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #172554;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
}
.za-key:active {
  transform: translateY(3px);
  border-bottom-width: 2px;
}
.za-key.util {
  background: #F1F5F9;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}
.za-google-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 2.5px solid #93C5FD;
  border-bottom: 5px solid #3B82F6;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  color: #172554;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}
.za-google-btn:hover {
  background: #F8FAFC;
}
.za-google-btn:active {
  transform: translateY(3px);
  border-bottom-width: 2px;
}
.za-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: #94A3B8;
  font-size: 11.5px;
  font-weight: 700;
}
.za-divider::before, .za-divider::after {
  content: "";
  flex: 1;
  border-top: 1.5px dashed #E2E8F0;
}
.za-mode-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 4px;
}
.za-mode-tab {
  flex: 1;
  min-height: 40px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  color: #64748B;
  cursor: pointer;
}
.za-mode-tab.active {
  background: #FFFFFF;
  color: #1D4ED8;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.za-cta-orange {
  width: 100%;
  min-height: 52px;
  border-radius: 18px;
  background: linear-gradient(180deg, #FF8547 0%, #FF5C16 100%);
  border: 2.5px solid #C8430C;
  border-bottom: 6px solid #9A3412;
  color: #FFFFFF;
  font-family: 'Baloo 2', 'Be Vietnam Pro', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.za-cta-orange:disabled, .za-cta-blue:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.za-cta-blue {
  width: 100%;
  min-height: 52px;
  border-radius: 18px;
  background: linear-gradient(180deg, #3B82F6 0%, #1D4ED8 100%);
  border: 2.5px solid #1E40AF;
  border-bottom: 6px solid #172554;
  color: #FFFFFF;
  font-family: 'Baloo 2', 'Be Vietnam Pro', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.za-pw-wrap {
  position: relative;
}
.za-pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: #64748B;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.za-opt-box {
  border-radius: 16px;
  border: 2px dashed #FCD34D;
  background: #FFFBEB;
  padding: 10px 12px;
}
.za-qr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 13px;
  border-radius: 12px;
  border: 2px solid #F59E0B;
  border-bottom: 4px solid #D97706;
  background: #FEF3C7;
  color: #92400E;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.za-qr-btn:hover {
  background: #FDE68A;
}
.za-portal-wrap {
  width: 100%;
  max-width: 452px;
  margin: 0 auto;
}
.za-portal-logo {
  width: 58px !important;
  height: 58px !important;
  border-radius: 16px;
  display: block;
  margin: 0 auto 10px;
  box-shadow: 0 6px 16px rgba(23, 37, 84, 0.14);
}
.za-dash-hero {
  border-radius: 28px;
  border: 3.5px solid #FCD34D;
  background: linear-gradient(135deg, #172554 0%, #1E40AF 56%, #2563EB 100%);
  padding: 26px 28px;
  color: #FFFFFF;
  box-shadow: 0 18px 40px rgba(23, 37, 84, 0.18);
}
.za-st-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #FEF3C7;
  border: 2px solid #FCD34D;
  display: grid;
  place-items: center;
  font-size: 28px;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .za-modal-box, .za-card {
    padding: 16px 14px 15px;
    border-radius: 24px;
  }
  .za-kid-grid {
    grid-template-columns: 1fr;
  }
}

/* === ZEDU PROMO PRICING V5 === */
.zk-pr {
  min-height: 98px !important;
  padding: 8px 6px !important;
  gap: 1px;
}
.zk-pr-strike {
  font-size: 12px;
  font-weight: 700;
  color: #94A3B8;
  text-decoration: line-through;
  line-height: 1.1;
}
.zk-pr-tag {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 7px;
  border-radius: 99px;
  background: #FEE2E2;
  color: #B91C1C;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.3;
}
.zk-pr.vip .zk-pr-tag {
  background: #FF5C16;
  color: #FFFFFF;
}
.zk-promo-banner {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 2.5px solid #F59E0B;
  border-bottom: 5px solid #D97706;
  border-radius: 22px;
  padding: 14px 18px;
  text-align: center;
  max-width: 768px;
  margin: 0 auto;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.14);
}
.zk-promo-title {
  font-family: 'Baloo 2', 'Be Vietnam Pro', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #9A3412;
  line-height: 1.25;
}
.zk-promo-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: #78350F;
  margin-top: 3px;
}
.zk-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FEE2E2;
  color: #B91C1C;
  border: 1.5px solid #FCA5A5;
  border-radius: 99px;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 800;
}
.zk-strike-lg {
  font-size: 15px;
  font-weight: 700;
  color: #94A3B8;
  text-decoration: line-through;
  margin-right: 8px;
}
.zk-save-pill {
  display: inline-block;
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
  border-radius: 99px;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 800;
}
