/* Header: Unified Cartoon Strip */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 253, 247, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #1E293B;
  padding: 0.65rem 0;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #1E293B;
}

.brand-icon {
  width: 44px;
  height: 44px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover .brand-icon {
  transform: rotate(-10deg) scale(1.1);
}

.brand-text h1 {
  font-family: 'Baloo 2', var(--font-family);
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.08;
  color: #15803D;
}

.brand-text span {
  font-size: 0.75rem;
  color: #B45309;
  font-weight: 700;
  display: block;
}

/* Header Quick Invite Form */
.header-action {
  display: flex;
  align-items: center;
}

.quick-input-group {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 2px solid #1E293B;
  border-radius: var(--radius-full);
  padding: 3px 4px 3px 14px;
  box-shadow: 0 3px 0 #1E293B;
  transition: var(--transition);
}

.quick-input-group:focus-within {
  background: #FFFBEB;
  border-color: #15803D;
  box-shadow: 0 3px 0 #15803D;
}

.quick-input-group .btn-accent {
  border: 1.8px solid #1E293B;
  font-family: 'Baloo 2', var(--font-family);
  font-size: 0.92rem;
  font-weight: 800;
  color: #1E293B;
  background: #FDE047;
  box-shadow: none;
}

.quick-input-group .btn-accent:hover {
  background: #FACC15;
  transform: scale(1.03);
}

.quick-amount-input {
  border: none;
  outline: none;
  font-size: 0.88rem;
  font-family: inherit;
  width: 145px;
  background: transparent;
  color: #1E293B;
  font-weight: 700;
}

.quick-amount-input::placeholder {
  font-weight: 500;
  color: #6B7280;
}

#header-share-btn {
  border: 2px solid #1E293B;
  box-shadow: 0 3px 0 #1E293B;
  font-family: 'Baloo 2', var(--font-family);
  font-size: 0.92rem;
  font-weight: 800;
  color: #1E293B;
}

#header-share-btn:hover {
  background: #FEF3C7;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #1E293B;
}

/* Hero Section: Cartoon Storyboard & Kinetic Typography */
.hero-section {
  padding: 1.75rem 0 2.25rem 0;
  text-align: center;
}

.hero-cartoon-title {
  font-family: 'Baloo 2', var(--font-family);
  font-size: clamp(1.85rem, 4.4vw, 3.05rem);
  font-weight: 800;
  line-height: 1.22;
  color: #1E293B;
  margin: 0 auto 2.1rem auto;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.hero-cartoon-title .title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.38rem 0.55rem;
}

.word-bounce {
  display: inline-block;
  animation: cartoonWordPop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: calc(var(--w-idx, 0) * 0.08s);
}

/* Interactive Morphing Food Slot Sticker */
.hero-slot-pill {
  display: inline-flex;
  align-items: center;
  font-family: 'Baloo 2', var(--font-family);
  font-size: 0.92em;
  font-weight: 800;
  line-height: 1.1;
  color: #1E293B;
  background: #FEF08A;
  border: 2.5px solid #1E293B;
  border-radius: 999px;
  padding: 0.18em 0.68em;
  box-shadow: 0 4px 0 #1E293B;
  transform: rotate(-1.5deg);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.18s ease;
}

.hero-slot-pill:hover {
  background: #FDE047;
  transform: rotate(1deg) translateY(-2px) scale(1.03);
  box-shadow: 0 6px 0 #1E293B;
}

.hero-slot-pill:active {
  transform: rotate(0deg) translateY(2px);
  box-shadow: 0 2px 0 #1E293B;
}

.slot-track {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.slot-track.is-flipping {
  transform: translateY(-115%) scale(0.88);
  opacity: 0;
}

.slot-track.is-entering {
  animation: slotPopUp 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.slot-emoji {
  font-size: 1.05em;
  display: inline-block;
  animation: wiggleEmoji 2.4s ease-in-out infinite;
}

/* 100% Comic Stamp */
.cartoon-stamp-100 {
  display: inline-block;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.86em;
  line-height: 1.05;
  padding: 0.14em 0.48em;
  border-radius: 12px;
  border: 2.5px solid #1E293B;
  box-shadow: 0 4px 0 #1E293B;
  transform: rotate(2.5deg);
  animation: stampPulse 2.8s ease-in-out infinite;
}

/* Hand-drawn Brush Underline Phrase */
.hero-wave-phrase {
  position: relative;
  display: inline-block;
  color: #15803D;
  padding-bottom: 0.08em;
}

.hero-brush-underline {
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 14px;
  pointer-events: none;
  overflow: visible;
}

.hero-brush-underline path {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: drawBrushLine 0.85s 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Cartoon Storyboard Stage Card */
.cartoon-stage-card {
  background: #FFFFFF;
  border: 2.5px solid #1E293B;
  border-radius: 26px;
  padding: 0.85rem 0.85rem 0.9rem 0.85rem;
  max-width: 880px;
  margin: 0 auto 0.75rem auto;
  box-shadow: 0 7px 0 #1E293B, 0 20px 38px -10px rgba(245, 158, 11, 0.25);
  position: relative;
}

.cartoon-stage {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid #1E293B;
  cursor: pointer;
  user-select: none;
  background: #FFFBEB;
}

.cartoon-stage:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.cartoon-scene-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Speech Bubble Above Cartoon Stage */
.bowl-speech-bubble {
  position: absolute;
  top: -20px;
  left: 24%;
  transform: translateX(-50%);
  background: #1E293B;
  color: #FEF08A;
  font-family: 'Baloo 2', var(--font-family);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.22);
  z-index: 15;
  animation: floatBounce 2.5s infinite ease-in-out;
}

.bowl-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px 7px 0;
  border-style: solid;
  border-color: #1E293B transparent transparent transparent;
}

.bowl-speech-bubble.bubble-pop {
  animation: bubblePopAnim 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* SVG Scene Internal Animations */
.sun-rays {
  animation: slowSpin 24s linear infinite;
}

.cloud-1 {
  animation: cloudFloat1 9s ease-in-out infinite;
}

.cloud-2 {
  animation: cloudFloat2 11s ease-in-out infinite;
}

.arc-dash-line {
  animation: marchArc 1.1s linear infinite;
}

.chibi-beggar-group {
  animation: chibiIdleBob 2.4s ease-in-out infinite;
}

.cartoon-stage.is-cheering .chibi-beggar-group {
  animation: chibiCheerJump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chibi-eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: cartoonBlink 4.2s infinite;
}

.bowl-sprout {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: sproutSway 2.8s ease-in-out infinite;
}

.tap-pill-bounce {
  animation: tapHintNudge 1.6s ease-in-out infinite;
}

.kid-jump-1 {
  animation: kidHappyHop 1.9s ease-in-out infinite;
}

.heart-float-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: heartBeatFloat 1.9s ease-in-out infinite;
}

.flag-wave {
  transform-box: fill-box;
  transform-origin: left center;
  animation: flagFlutter 1.8s ease-in-out infinite;
}

.no-middleman-badge {
  animation: badgeFloat 3.2s ease-in-out infinite;
}

/* Stage Footer Strip */
.cartoon-stage-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.8rem;
  padding: 0.15rem 0.35rem 0;
}

.stage-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #FEF3C7;
  border: 1.5px solid #F59E0B;
  color: #92400E;
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 700;
}

.stage-stat-pill strong {
  color: #15803D;
  font-weight: 800;
  font-size: 0.98rem;
}

.coin-spin-icon {
  display: inline-block;
  animation: coinWobble 2.2s ease-in-out infinite;
}

.stage-trust-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  color: #166534;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}

.stage-cta-btn {
  border: 2px solid #1E293B;
  box-shadow: 0 3px 0 #1E293B;
  font-weight: 800;
}

.stage-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #1E293B;
}

/* Floating coin animation on click */
.coin-particle {
  position: absolute;
  pointer-events: none;
  font-size: 1.65rem;
  animation: coinFly 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  z-index: 20;
}

@keyframes coinFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: translate(var(--tx), -70px) scale(1.35) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), -125px) scale(0.9) rotate(360deg);
  }
}

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

@keyframes bubblePopAnim {
  0% { transform: translateX(-50%) scale(0.82); }
  60% { transform: translateX(-50%) scale(1.08); }
  100% { transform: translateX(-50%) scale(1); }
}

@keyframes cartoonWordPop {
  0% { opacity: 0; transform: translateY(16px) scale(0.82); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slotPopUp {
  0% { opacity: 0; transform: translateY(95%) scale(0.86); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes wiggleEmoji {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(8deg) scale(1.1); }
}

@keyframes stampPulse {
  0%, 100% { transform: rotate(2.5deg) scale(1); }
  50% { transform: rotate(-1.5deg) scale(1.06); }
}

@keyframes drawBrushLine {
  to { stroke-dashoffset: 0; }
}

@keyframes slowSpin {
  to { transform: rotate(360deg); }
}

@keyframes cloudFloat1 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(22px); }
}

@keyframes cloudFloat2 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-20px); }
}

@keyframes marchArc {
  to { stroke-dashoffset: -36; }
}

@keyframes chibiIdleBob {
  0%, 100% { transform: translate(155px, 168px); }
  50% { transform: translate(155px, 162px); }
}

@keyframes chibiCheerJump {
  0% { transform: translate(155px, 168px) scale(1.06, 0.92); }
  45% { transform: translate(155px, 146px) scale(0.96, 1.06); }
  100% { transform: translate(155px, 168px) scale(1, 1); }
}

@keyframes cartoonBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

@keyframes sproutSway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(5deg); }
}

@keyframes tapHintNudge {
  0%, 100% { transform: translate(56px, 88px); }
  50% { transform: translate(56px, 83px); }
}

@keyframes kidHappyHop {
  0%, 100% { transform: translate(-26px, 22px); }
  50% { transform: translate(-26px, 13px); }
}

@keyframes heartBeatFloat {
  0%, 100% { transform: translate(-26px, -18px) scale(1); }
  50% { transform: translate(-26px, -25px) scale(1.18); }
}

@keyframes flagFlutter {
  0%, 100% { transform: skewY(0deg) scaleX(1); }
  50% { transform: skewY(-5deg) scaleX(0.94); }
}

@keyframes badgeFloat {
  0%, 100% { transform: translate(445px, 212px); }
  50% { transform: translate(445px, 207px); }
}

@keyframes coinWobble {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
}

/* Recipient Section: Trạm Gửi Yêu Thương (Cartoon Portals & Character Cards) */
.recipient-section {
  margin-bottom: 3.25rem;
  scroll-margin-top: 84px;
}

.step-cartoon-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.step-comic-pill {
  display: inline-block;
  font-family: 'Baloo 2', var(--font-family);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
  color: #1E293B;
  background: #FEF08A;
  border: 2.5px solid #1E293B;
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  box-shadow: 0 3px 0 #1E293B;
  transform: rotate(-3deg);
}

.step-comic-pill.pill-green {
  background: #86EFAC;
  color: #14532D;
}

.step-comic-pill.pill-white {
  background: #FEF08A;
  color: #1E293B;
  font-size: 0.92rem;
  padding: 0.18rem 0.72rem;
  transform: rotate(-2deg);
}

.step-cartoon-title {
  font-family: 'Baloo 2', var(--font-family);
  font-size: clamp(1.65rem, 3.4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: #1E293B;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.paper-plane-heart {
  width: 44px;
  height: 36px;
  overflow: visible;
  flex-shrink: 0;
}

.plane-body {
  animation: planeGlide 2.8s ease-in-out infinite;
}

.plane-trail {
  animation: trailDash 1s linear infinite;
}

/* Illustrated Program Switcher Portals */
.program-portals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 780px;
  margin: 0 auto 1.4rem auto;
}

.program-portal-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.1rem;
  background: #FFFFFF;
  border: 2.5px solid #D1D5DB;
  border-radius: 22px;
  box-shadow: 0 4px 0 #CBD5E1;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.program-portal-card:hover {
  transform: translateY(-3px);
  border-color: #1E293B;
  box-shadow: 0 6px 0 #1E293B;
}

.program-portal-card.active {
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFBEB 100%);
  border-color: #1E293B;
  box-shadow: 0 6px 0 #1E293B, 0 12px 24px -8px rgba(22, 163, 74, 0.28);
  transform: translateY(-2px);
}

.portal-selected-stamp {
  position: absolute;
  top: -11px;
  right: 14px;
  background: #16A34A;
  color: #FFFFFF;
  font-family: 'Baloo 2', var(--font-family);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  border: 2px solid #1E293B;
  box-shadow: 0 2px 0 #1E293B;
  opacity: 0;
  transform: scale(0.7) rotate(3deg);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.program-portal-card.active .portal-selected-stamp {
  opacity: 1;
  transform: scale(1) rotate(2deg);
}

.portal-illust {
  width: 60px;
  height: 56px;
  flex-shrink: 0;
  display: block;
}

.portal-illust svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.portal-leaves-sway {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: sproutSway 2.8s ease-in-out infinite;
}

.portal-chimney-heart {
  transform-box: fill-box;
  transform-origin: center;
  animation: chimneyHeartPuff 2.2s ease-in-out infinite;
}

.portal-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.portal-title {
  font-family: 'Baloo 2', var(--font-family);
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.15;
  color: #1E293B;
}

.portal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.portal-mini-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  border: 1.5px solid #1E293B;
}

.portal-mini-tag.tag-green {
  background: #DCFCE7;
  color: #14532D;
}

.portal-mini-tag.tag-amber {
  background: #FEF3C7;
  color: #92400E;
}

/* Search & Source Bar for Mái Ấm Gia Đình Việt */
.mag-toolbar-wrap:not([hidden]) {
  max-width: 780px;
  margin: 0 auto 1.2rem auto;
}

.mag-cartoon-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.mag-search-box {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  border: 2px solid #1E293B;
  border-radius: 999px;
  padding: 0.48rem 1rem;
  box-shadow: 0 3px 0 #1E293B;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.mag-search-box:focus-within {
  background: #FFFBEB;
  box-shadow: 0 4px 0 #16A34A;
  border-color: #16A34A;
}

.mag-search-icon {
  font-size: 1rem;
  line-height: 1;
}

.mag-search-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1E293B;
}

.mag-search-input::placeholder {
  font-weight: 500;
  color: #6B7280;
}

.mag-source-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: #FEF3C7;
  border: 2px solid #1E293B;
  box-shadow: 0 3px 0 #1E293B;
  color: #92400E;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mag-source-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #1E293B;
  background: #FDE68A;
}

.mag-error-pill {
  margin-top: 0.65rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #B91C1C;
}

/* Recipient Grid & Spotlight Layout */
.children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 0.95rem;
}

.children-grid.is-single-spotlight {
  display: flex;
  justify-content: center;
}

/* Single Spotlight Ticket (Cặp Lá Yêu Thương) */
.clyt-spotlight-card {
  width: 100%;
  max-width: 660px;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 1.35rem;
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 60%, #FFFBEB 100%);
  border: 2.5px solid #1E293B;
  border-radius: 24px;
  box-shadow: 0 6px 0 #1E293B;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  position: relative;
  overflow: hidden;
  animation: cardCartoonPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.clyt-spotlight-card.selected {
  border-color: #15803D;
  box-shadow: 0 6px 0 #15803D, 0 14px 28px -8px rgba(22, 163, 74, 0.3);
}

.spotlight-avatar-wrap {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2.5px solid #1E293B;
  background: #FFFFFF;
  padding: 4px;
  box-shadow: 0 3px 0 #1E293B;
  animation: floatSimple 3s ease-in-out infinite;
}

.spotlight-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.spotlight-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.spotlight-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.spotlight-title {
  font-family: 'Baloo 2', var(--font-family);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.15;
  color: #1E293B;
}

.spotlight-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

/* Cartoon Character Stamp Cards (Mái Ấm Gia Đình Việt) */
.child-card.cartoon-char-card {
  background: #FFFFFF;
  border: 2.5px solid #1E293B;
  border-radius: 20px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 4px 0 #1E293B;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.18s ease, border-color 0.2s ease;
  animation: cardCartoonPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: calc(var(--card-idx, 0) * 0.03s);
}

.child-card.cartoon-char-card:hover {
  transform: translateY(-3px) rotate(-0.4deg);
  background: #FFFDF5;
  box-shadow: 0 7px 0 #1E293B;
}

.child-card.cartoon-char-card:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #1E293B;
}

.child-card.cartoon-char-card.selected {
  background: linear-gradient(135deg, #DCFCE7 0%, #FEF9C3 100%);
  border-color: #15803D;
  box-shadow: 0 5px 0 #15803D;
}

.child-card-avatar {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2.2px solid #1E293B;
  background: #FFFBEB;
  box-shadow: 0 2px 0 #1E293B;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.child-card:hover .child-card-avatar,
.child-card.selected .child-card-avatar {
  transform: scale(1.1) rotate(-6deg);
}

.child-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.child-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.child-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.child-card-name {
  font-family: 'Baloo 2', var(--font-family);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.child-card-code {
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 800;
  color: #92400E;
  background: #FEF08A;
  border: 1.5px solid #1E293B;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  transform: rotate(2deg);
}

.child-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.card-qr-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.card-qr-chip.has-qr {
  background: #DCFCE7;
  color: #166534;
  border: 1.5px solid #86EFAC;
}

.card-qr-chip.no-qr {
  background: #F3F4F6;
  color: #4B5563;
  border: 1.5px solid #D1D5DB;
}

.clyt-spotlight-card .card-qr-chip {
  max-width: none;
}

.card-qr-chip.tag-syntax {
  background: #FEF3C7;
  color: #92400E;
  border: 1.5px solid #FCD34D;
  max-width: none;
}

.qr-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16A34A;
  flex-shrink: 0;
  animation: dotPing 1.8s ease-in-out infinite;
}

.card-pick-cta {
  font-family: 'Baloo 2', var(--font-family);
  font-size: 0.84rem;
  font-weight: 800;
  color: #D97706;
  white-space: nowrap;
  margin-left: auto;
}

.child-card.selected .card-pick-cta {
  color: #15803D;
}

.card-heart-burst {
  position: absolute;
  right: 18px;
  top: 16px;
  pointer-events: none;
  font-size: 1.35rem;
  animation: heartPopFly 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: 10;
}

.mag-empty-cartoon {
  grid-column: 1 / -1;
  background: #FFFBEB;
  border: 2px dashed #F59E0B;
  border-radius: 20px;
  padding: 1.5rem 1rem;
  text-align: center;
  font-weight: 700;
  color: #92400E;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.mag-empty-cartoon .empty-emoji {
  font-size: 2rem;
}

/* Pagination More Bar */
.mag-more:not([hidden]) {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.mag-count-pill {
  display: inline-flex;
  align-items: center;
  background: #FEF3C7;
  border: 2px solid #1E293B;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-family: 'Baloo 2', var(--font-family);
  font-size: 0.95rem;
  font-weight: 800;
  color: #92400E;
  box-shadow: 0 3px 0 #1E293B;
}

.mag-more-comic-btn {
  border: 2px solid #1E293B;
  box-shadow: 0 3px 0 #1E293B;
  font-family: 'Baloo 2', var(--font-family);
  font-size: 0.98rem;
  font-weight: 800;
  color: #1E293B;
  background: #FDE047;
}

.mag-more-comic-btn:hover {
  background: #FACC15;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #1E293B;
}

#mag-more-button[hidden] {
  display: none;
}

/* Steaming Bowl Header Icon */
.steaming-bowl-icon {
  width: 42px;
  height: 38px;
  overflow: visible;
  flex-shrink: 0;
}

.steam-wisp {
  animation: steamRise 2.1s ease-in-out infinite;
}

.steam-wisp.wisp-2 {
  animation-delay: 0.45s;
}

.steam-wisp.wisp-3 {
  animation-delay: 0.9s;
}

/* Bước 2: Category Filter Comic Pills */
.menu-section {
  margin-bottom: 3.25rem;
  scroll-margin-top: 84px;
}

.category-nav-wrapper {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.cat-btn {
  padding: 0.46rem 1.15rem;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 2px solid #1E293B;
  box-shadow: 0 3px 0 #1E293B;
  color: #374151;
  font-family: 'Baloo 2', var(--font-family);
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.18s ease;
}

.cat-btn:hover {
  background: #FFFBEB;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #1E293B;
}

.cat-btn.active {
  background: #FEF08A;
  color: #1E293B;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #1E293B;
}

/* Bước 2: Cartoon Illustrated Menu Sticker Cards */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 1.15rem;
}

.menu-card {
  background: #FFFFFF;
  border: 2.5px solid #1E293B;
  border-radius: 24px;
  padding: 1.35rem 1.05rem 1.1rem 1.05rem;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: 0 5px 0 #1E293B;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: cardCartoonPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: calc(var(--card-idx, 0) * 0.04s);
}

.menu-card:hover {
  transform: translateY(-5px) rotate(-0.6deg);
  background: #FFFDF5;
  box-shadow: 0 8px 0 #1E293B;
}

.menu-card:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #1E293B;
}

.menu-card.selected {
  border-color: #15803D;
  background: linear-gradient(155deg, #F0FDF4 0%, #FEF9C3 100%);
  box-shadow: 0 6px 0 #15803D, 0 14px 26px -8px rgba(22, 163, 74, 0.28);
}

.menu-price-sticker {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: 'Baloo 2', var(--font-family);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.1;
  background: #FEF08A;
  color: #1E293B;
  border: 2px solid #1E293B;
  border-radius: 999px;
  padding: 0.16rem 0.6rem;
  box-shadow: 0 2px 0 #1E293B;
  transform: rotate(3deg);
}

.menu-price-sticker.is-custom {
  background: #FBCFE8;
  color: #831843;
}

.menu-card.selected .menu-price-sticker {
  background: #16A34A;
  color: #FFFFFF;
}

.menu-illust-wrap {
  width: 78px;
  height: 78px;
  margin: 0.35rem auto 0.55rem auto;
  display: block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-illust-wrap svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.menu-card:hover .menu-illust-wrap,
.menu-card.selected .menu-illust-wrap {
  transform: scale(1.12) rotate(-5deg);
}

.menu-card-name {
  font-family: 'Baloo 2', var(--font-family);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.18;
  color: #1E293B;
  margin-bottom: 0.28rem;
}

.menu-card-caption {
  font-size: 0.84rem;
  font-weight: 600;
  color: #4B5563;
  line-height: 1.35;
  margin-bottom: 0.85rem;
  flex-grow: 1;
}

.menu-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.36rem 0.75rem;
  border-radius: 999px;
  background: #FFFBEB;
  border: 1.8px solid #1E293B;
  font-family: 'Baloo 2', var(--font-family);
  font-size: 0.9rem;
  font-weight: 800;
  color: #B45309;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-card.selected .menu-card-cta {
  background: #16A34A;
  color: #FFFFFF;
}

/* Bước 3: Payment & VietQR Cartoon Station */
.payment-section {
  scroll-margin-top: 84px;
  margin-bottom: 3.25rem;
}

.payment-card {
  background: #FFFFFF;
  border-radius: 26px;
  border: 2.5px solid #1E293B;
  box-shadow: 0 8px 0 #1E293B, 0 20px 38px -12px rgba(22, 163, 74, 0.22);
  max-width: 840px;
  margin: 0 auto;
  overflow: hidden;
}

.payment-header {
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  border-bottom: 2.5px solid #1E293B;
  color: #FFFFFF;
  padding: 1rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.payment-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.payment-header h3 {
  font-family: 'Baloo 2', var(--font-family);
  font-size: 1.38rem;
  font-weight: 800;
  line-height: 1.15;
}

.payment-recipient-pill {
  display: inline-flex;
  align-items: center;
  background: #FEF3C7;
  color: #92400E;
  border: 2px solid #1E293B;
  box-shadow: 0 2px 0 #1E293B;
  font-family: 'Baloo 2', var(--font-family);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
}

.payment-body {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 285px 1fr;
  gap: 1.4rem;
  align-items: start;
  background: #FFFDF7;
}

/* QR & Verification Cartoon Box */
.qr-frame.payment-check {
  background: linear-gradient(155deg, #DCFCE7 0%, #FFFBEB 100%);
  border: 2.2px solid #1E293B;
  border-radius: 22px;
  padding: 1.15rem 1rem;
  text-align: center;
  color: #14532D;
  box-shadow: 0 5px 0 #1E293B;
  animation: payment-check-enter 320ms ease-out both;
}

.shield-illust-wrap {
  width: 58px;
  height: 58px;
  margin: 0 auto 0.5rem auto;
}

.shield-check-svg {
  width: 100%;
  height: 100%;
  animation: floatSimple 2.8s ease-in-out infinite;
}

.guide-comic-title {
  display: block;
  font-family: 'Baloo 2', var(--font-family);
  font-size: 1.12rem;
  font-weight: 800;
  color: #1E293B;
  line-height: 1.2;
}

.payment-check p {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #374151;
}

.payment-check #payment-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #FEF08A;
  color: #1E293B;
  border: 2px solid #1E293B;
  box-shadow: 0 3px 0 #1E293B;
  font-family: 'Baloo 2', var(--font-family);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.payment-check #payment-source:hover {
  background: #FDE047;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #1E293B;
}

.payment-check #payment-source:focus-visible {
  outline: 2px solid #14532D;
  outline-offset: 3px;
}

.payment-check #payment-source.case-source-button {
  padding: 0.42rem 0.85rem;
  font-size: 0.88rem;
}

#payment-qr:not([hidden]) {
  display: block;
  width: min(100%, 14.5rem);
  height: auto;
  margin: 0.85rem auto 0;
  padding: 0.45rem;
  background: #FFFFFF;
  border: 2px solid #1E293B;
  border-radius: 16px;
  box-shadow: 0 3px 0 #1E293B;
}

/* Payment Info Comic Rows */
.payment-details {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

#payment-details[hidden] {
  display: none;
}

.info-row {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  padding: 0.62rem 0.95rem;
  border-radius: 16px;
  border: 2px solid #1E293B;
  box-shadow: 0 3px 0 rgba(30, 41, 59, 0.12);
  position: relative;
}

.info-row.highlight-amount-row {
  background: linear-gradient(90deg, #F0FDF4 0%, #FEF9C3 100%);
  border-color: #15803D;
}

.info-label {
  font-size: 0.75rem;
  color: #4B5563;
  font-weight: 800;
  margin-bottom: 0.12rem;
}

.info-val-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.info-val {
  font-family: 'Baloo 2', var(--font-family);
  font-size: 1.14rem;
  font-weight: 800;
  line-height: 1.2;
  color: #1E293B;
  word-break: break-all;
}

.info-val.amount {
  color: #15803D;
  font-size: 1.5rem;
}

.btn-copy {
  background: #FEF08A;
  color: #1E293B;
  border: 1.8px solid #1E293B;
  box-shadow: 0 2px 0 #1E293B;
  padding: 0.25rem 0.7rem;
  font-family: 'Baloo 2', var(--font-family);
  font-size: 0.84rem;
  font-weight: 800;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-copy:hover {
  background: #FDE047;
  transform: translateY(-2px);
  box-shadow: 0 4px 0 #1E293B;
}

.btn-copy:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #1E293B;
}

/* Custom Amount & Wish Inputs */
.custom-amount-box {
  background: #FFFBEB;
  border: 2px dashed #F59E0B;
  border-radius: 16px;
  padding: 0.65rem 0.9rem;
}

.wish-inputs-box .wish-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.wish-inputs-box small {
  font-size: 0.75rem;
  color: #6B7280;
}

.custom-input {
  width: 100%;
  padding: 0.52rem 0.75rem;
  border: 2px solid #1E293B;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 700;
  outline: none;
  font-family: inherit;
  background: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-input:focus {
  border-color: #16A34A;
  box-shadow: 0 3px 0 #16A34A;
}

#payment-wish-row[hidden],
#transfer-note-row[hidden] {
  display: none;
}

/* Payment Actions */
.payment-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.comic-finish-btn {
  width: 100%;
  font-family: 'Baloo 2', var(--font-family);
  font-size: 1.15rem;
  font-weight: 800;
  border: 2.5px solid #1E293B;
  box-shadow: 0 5px 0 #1E293B;
}

.comic-finish-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #1E293B;
}

.comic-finish-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #1E293B;
}

.payment-micro-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6B7280;
  text-align: center;
}

/* Sổ Vàng Truyền Cảm Hứng (Donation & Demo Inspiration Board) */
.donation-board {
  max-width: 840px;
  margin: 0 auto 3.25rem auto;
  padding: 1.5rem;
  border: 2.5px solid #1E293B;
  border-radius: 26px;
  background: linear-gradient(145deg, #FFFBEB 0%, #FFFFFF 100%);
  box-shadow: 0 6px 0 #1E293B;
}

.board-cartoon-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  text-align: left;
  flex-wrap: wrap;
}

.board-head-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.board-shuffle-btn {
  border: 2px solid #1E293B;
  box-shadow: 0 3px 0 #1E293B;
  background: #FEF08A;
  color: #1E293B;
  font-family: 'Baloo 2', var(--font-family);
  font-size: 0.92rem;
  font-weight: 800;
}

.board-shuffle-btn:hover {
  background: #FDE047;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #1E293B;
}

.trophy-cartoon-svg {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.trophy-cup-bob {
  animation: floatSimple 2.6s ease-in-out infinite;
}

.board-cartoon-title {
  font-family: 'Baloo 2', var(--font-family);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.12;
  color: #1E293B;
}

.board-mini-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #92400E;
  background: #FEF08A;
  border: 1.5px solid #1E293B;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  margin-top: 0.2rem;
}

.donation-empty-pill {
  background: #FFFFFF;
  border: 2px dashed #F59E0B;
  border-radius: 18px;
  padding: 0.9rem 1.1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #92400E;
}

.donation-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.donation-comic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 1rem;
  border-radius: 18px;
  background: #FFFFFF;
  border: 2px solid #1E293B;
  box-shadow: 0 3px 0 #1E293B;
  animation: cardCartoonPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: calc(var(--card-idx, 0) * 0.04s);
}

.donation-comic-row.is-user-entry {
  background: linear-gradient(90deg, #F0FDF4 0%, #FEF9C3 100%);
  border-color: #15803D;
  box-shadow: 0 4px 0 #15803D;
}

.donation-row-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.donation-medal-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FEF3C7;
  border: 1.8px solid #1E293B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.donation-row-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
  min-width: 0;
}

.donation-name-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.donation-row-info strong {
  font-family: 'Baloo 2', var(--font-family);
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.15;
  color: #1E293B;
}

.entry-role-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.08rem 0.48rem;
  border-radius: 999px;
  border: 1.4px solid #1E293B;
  white-space: nowrap;
}

.entry-role-tag.tag-demo {
  background: #F3F4F6;
  color: #4B5563;
}

.entry-role-tag.tag-own {
  background: #16A34A;
  color: #FFFFFF;
}

.donation-row-info > span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #4B5563;
  overflow-wrap: anywhere;
}

.donation-row-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.donation-amount-pill {
  background: #DCFCE7;
  color: #15803D;
  border: 1.8px solid #1E293B;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-family: 'Baloo 2', var(--font-family);
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.demo-follow-btn {
  background: #FFFBEB;
  color: #B45309;
  border: 1.8px solid #1E293B;
  box-shadow: 0 2px 0 #1E293B;
  border-radius: 999px;
  padding: 0.22rem 0.68rem;
  font-family: 'Baloo 2', var(--font-family);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.demo-follow-btn:hover {
  background: #FEF08A;
  color: #1E293B;
  transform: translateY(-2px);
  box-shadow: 0 4px 0 #1E293B;
}

@media (max-width: 640px) {
  .donation-comic-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .donation-row-right {
    width: 100%;
    justify-content: space-between;
    padding-left: 2.9rem;
  }
}

/* Lắc Ống Xăm Ăn Xin (Fortune Cylinder Stage) */
.fun-section {
  max-width: 840px;
  margin: 0 auto 3.25rem auto;
  background: linear-gradient(135deg, #FEF9C3 0%, #FFFFFF 55%, #DCFCE7 100%);
  border-radius: 26px;
  border: 2.5px solid #1E293B;
  box-shadow: 0 7px 0 #1E293B;
  padding: 1.65rem 1.5rem;
}

.fortune-stage-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.35rem;
  align-items: center;
}

.fortune-illust-col {
  display: flex;
  justify-content: center;
}

.fortune-cylinder-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fortune-cylinder-btn:hover {
  transform: scale(1.07) rotate(-4deg);
}

.fortune-cylinder-svg {
  width: 126px;
  height: 136px;
  display: block;
}

.sticks-peek {
  animation: sticksIdleBob 2.2s ease-in-out infinite;
}

.fortune-cylinder-btn.is-shaking .cylinder-shake-group {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: cylinderShakeAnim 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.fortune-content-col {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.fortune-box {
  width: 100%;
  background: #FFFFFF;
  border: 2.2px solid #1E293B;
  border-radius: 18px;
  padding: 0.95rem 1.15rem;
  box-shadow: 0 4px 0 #1E293B;
}

.fortune-box.fortune-pop {
  animation: cardCartoonPop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fortune-title {
  font-family: 'Baloo 2', var(--font-family);
  font-weight: 800;
  color: #D97706;
  font-size: 1.18rem;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.fortune-text {
  color: #1E293B;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.48;
}

.comic-fortune-btn {
  font-family: 'Baloo 2', var(--font-family);
  font-size: 1.05rem;
  font-weight: 800;
  color: #1E293B;
  background: #FDE047;
  border: 2.2px solid #1E293B;
  box-shadow: 0 4px 0 #1E293B;
}

.comic-fortune-btn:hover {
  background: #FACC15;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #1E293B;
}

/* Hỏi Nhanh Đáp Gọn (Cartoon FAQ Accordion) */
.faq-section {
  margin-bottom: 3.75rem;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item {
  background: #FFFFFF;
  border: 2.2px solid #1E293B;
  border-radius: 18px;
  box-shadow: 0 4px 0 #1E293B;
  overflow: hidden;
  transition: background-color 0.2s ease, transform 0.18s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
}

.faq-item.is-open {
  background: #FFFDF5;
}

.faq-trigger {
  width: 100%;
  padding: 0.95rem 1.15rem;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Baloo 2', var(--font-family);
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.25;
  color: #1E293B;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.faq-icon-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #FEF08A;
  border: 2px solid #1E293B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
}

.faq-item.is-open .faq-icon-badge {
  background: #86EFAC;
  transform: rotate(90deg);
}

.faq-content {
  padding: 0 1.15rem 1.05rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.55;
}

.faq-content a {
  color: #15803D;
  font-weight: 800;
}

/* Unified Cartoon Footer */
.site-footer {
  border-top: 2.5px solid #1E293B;
  padding: 2rem 0 2.25rem 0;
  background: linear-gradient(180deg, #F0FDF4 0%, #FFFBEB 100%);
  text-align: center;
}

.footer-cartoon-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Baloo 2', var(--font-family);
  font-size: 1.2rem;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 0.95rem;
}

.footer-mini-logo {
  width: 32px;
  height: 32px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #FFFFFF;
  color: #1E293B;
  border: 2px solid #1E293B;
  box-shadow: 0 3px 0 #1E293B;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 800;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.footer-links a:hover {
  background: #FEF08A;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #1E293B;
}

.footer-caption {
  font-size: 0.82rem;
  font-weight: 600;
  color: #4B5563;
}

/* Comic Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(110px);
  background: #1E293B;
  color: #FEF08A;
  border: 2px solid #FEF08A;
  font-family: 'Baloo 2', var(--font-family);
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.98rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 999;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
}

/* Comic Certificate Modal Popup */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-card.comic-modal-card {
  background: #FFFFFF;
  border: 3px solid #1E293B;
  border-radius: 26px;
  max-width: 470px;
  width: 100%;
  padding: 1.65rem 1.5rem;
  text-align: center;
  transform: scale(0.88) rotate(-1deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 0 #1E293B, 0 25px 50px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-backdrop.show .modal-card.comic-modal-card {
  transform: scale(1) rotate(0deg);
}

.modal-medal-illust {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.35rem auto;
  animation: floatSimple 2.5s ease-in-out infinite;
}

.modal-medal-illust svg {
  width: 100%;
  height: 100%;
}

.modal-title {
  font-family: 'Baloo 2', var(--font-family);
  font-size: 1.6rem;
  font-weight: 800;
  color: #15803D;
  margin-bottom: 0.85rem;
}

.certificate-box {
  background: linear-gradient(145deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 2.2px dashed #1E293B;
  border-radius: 18px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cert-row {
  font-size: 0.88rem;
  color: #451A03;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cert-name-input {
  border: 2px solid #1E293B;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 0.25rem 0.6rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  color: #1E293B;
  width: 62%;
  outline: none;
}

.cert-name-input:focus {
  border-color: #16A34A;
}

.cert-amount-badge {
  background: #DCFCE7;
  color: #15803D;
  border: 1.5px solid #1E293B;
  border-radius: 999px;
  padding: 0.1rem 0.65rem;
  font-family: 'Baloo 2', var(--font-family);
  font-weight: 800;
  font-size: 0.96rem;
}

.modal-comic-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
}

.comic-btn {
  border: 2px solid #1E293B;
  box-shadow: 0 3px 0 #1E293B;
  font-family: 'Baloo 2', var(--font-family);
  font-weight: 800;
}

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
}

/* Shared Keyframes */
@keyframes planeGlide {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(4px, -4px) rotate(-5deg); }
}

@keyframes trailDash {
  to { stroke-dashoffset: -16; }
}

@keyframes chimneyHeartPuff {
  0%, 100% { transform: translateY(0) scale(0.92); opacity: 0.85; }
  50% { transform: translateY(-5px) scale(1.12); opacity: 1; }
}

@keyframes cardCartoonPop {
  0% { opacity: 0; transform: translateY(14px) scale(0.93); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes dotPing {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.55; }
}

@keyframes heartPopFly {
  0% { opacity: 1; transform: translateY(0) scale(0.6); }
  100% { opacity: 0; transform: translateY(-42px) scale(1.45); }
}

@keyframes steamRise {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(-4px); opacity: 1; }
}

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

@keyframes cylinderShakeAnim {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-13deg) translateY(-4px); }
  40% { transform: rotate(12deg) translateY(-6px); }
  60% { transform: rotate(-10deg) translateY(-3px); }
  80% { transform: rotate(8deg); }
}

@keyframes payment-check-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .site-header-inner {
    flex-wrap: wrap;
  }
  .header-action {
    order: 3;
    width: 100%;
    margin-top: 0.35rem;
  }
  .quick-input-group {
    width: 100%;
  }
  .quick-amount-input {
    width: 100%;
  }
  .bowl-speech-bubble {
    left: 50%;
    font-size: 0.8rem;
    top: -18px;
  }
  .cartoon-stage-footer {
    justify-content: center;
  }
  .payment-body {
    grid-template-columns: 1fr;
  }
  .wish-inputs-box .wish-grid {
    grid-template-columns: 1fr;
  }
  .fortune-stage-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .fortune-content-col {
    align-items: center;
    text-align: center;
  }
  .fortune-box {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .program-portals {
    grid-template-columns: 1fr;
  }
  .clyt-spotlight-card {
    flex-direction: column;
    text-align: center;
  }
  .spotlight-top-row,
  .spotlight-chips {
    justify-content: center;
  }
  .clyt-spotlight-card .card-pick-cta {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .word-bounce,
  .slot-emoji,
  .cartoon-stamp-100,
  .bowl-speech-bubble,
  .sun-rays,
  .cloud-1,
  .cloud-2,
  .arc-dash-line,
  .chibi-beggar-group,
  .chibi-eyes,
  .bowl-sprout,
  .tap-pill-bounce,
  .kid-jump-1,
  .heart-float-pulse,
  .flag-wave,
  .no-middleman-badge,
  .coin-spin-icon,
  .plane-body,
  .plane-trail,
  .portal-leaves-sway,
  .portal-chimney-heart,
  .clyt-spotlight-card,
  .spotlight-avatar-wrap,
  .child-card.cartoon-char-card,
  .qr-pulse-dot,
  .steam-wisp,
  .menu-card,
  .qr-frame.payment-check,
  .shield-check-svg,
  .trophy-cup-bob,
  .sticks-peek,
  .modal-medal-illust {
    animation: none !important;
  }
  .hero-brush-underline path {
    stroke-dashoffset: 0;
    animation: none;
  }
}
