/* ============================================================
   TI.LI.CHES — LIGHT PASTEL GIRLY THEME 🐰🌸✨
   Blush pink · Lavender · Cream · White
   ============================================================ */


@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Pacifico&display=swap');

/* ─── RESET & TOKENS ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ─ Background & Surfaces ─ */
  --c-bg:        #fdf5f9;
  --c-surface:   #ffffff;
  --c-surface2:  #fff0f6;
  --c-border:    rgba(236,100,163,.18);

  /* ─ Text ─ */
  --c-text:      #3d1a2e;
  --c-muted:     #b07898;

  /* ─ Brand colors ─ */
  --c-primary:   #e91e8c;
  --c-primary-l: #f472b6;
  --c-accent:    #c084fc;
  --c-accent2:   #fbbf24;

  /* ─ Number states ─ */
  --c-available: #ec4899;
  --c-pending:   #f59e0b;
  --c-sold:      #d1a8c4;
  --c-selected:  #e91e8c;

  /* ─ Misc ─ */
  --radius:      18px;
  --radius-sm:   12px;
  --transition:  .2s ease;
  --shadow-glow: 0 0 28px rgba(233,30,140,.18);
  --shadow-soft: 0 8px 32px rgba(180,50,100,.1);
  --shadow-card: 0 4px 24px rgba(220,100,160,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── CANVAS (background layer) ─────────────────────────── */
#particleCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ─── AURORA BACKGROUND ──────────────────────────────────── */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  animation: auroraMove 14s ease-in-out infinite alternate;
}
.aurora-blob.a1 {
  width: 800px; height: 600px;
  background: radial-gradient(circle, #fce4ec, #f8bbd0);
  top: -200px; left: -150px;
  animation-duration: 16s;
}
.aurora-blob.a2 {
  width: 600px; height: 700px;
  background: radial-gradient(circle, #ede7f6, #e1bee7);
  top: 40%; right: -180px;
  animation-duration: 12s;
  animation-delay: -6s;
}
.aurora-blob.a3 {
  width: 550px; height: 450px;
  background: radial-gradient(circle, #fce4ec, #fff9c4);
  bottom: -120px; left: 25%;
  animation-duration: 18s;
  animation-delay: -9s;
}
@keyframes auroraMove {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(60px,-40px) scale(1.1); }
  66%  { transform: translate(-40px,60px) scale(.9); }
  100% { transform: translate(30px,30px) scale(1.05); }
}

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #fce4ec; }
::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, #f48fb1, #ce93d8); border-radius: 3px; }

/* ─── ENTRANCE ANIMATION UTILITY ─────────────────────────── */
.anim-fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp .7s cubic-bezier(.34,1.56,.64,1) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── HERO HEADER ────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #fff0f6 0%, #fce4ec 50%, #f3e5f5 100%);
  border-bottom: 1.5px solid rgba(236,100,163,.18);
  position: relative; overflow: hidden; z-index: 2;
}
.hero::after {
  content: '❦  ❧  ❦  ❧  ❦  ❧  ❦  ❧  ❦';
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%);
  font-size: 9px; color: rgba(233,30,140,.3);
  letter-spacing: 22px; pointer-events: none; white-space: nowrap;
  animation: glitterRow 3s ease-in-out infinite alternate;
}
@keyframes glitterRow { 0%{ opacity:.3; } 100%{ opacity:.7; } }

/* Floating hero decorations */
.hero-deco-layer { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hdeco {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: calc(18px * var(--s, 1));
  animation: floatHDeco 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  opacity: .45;
  filter: drop-shadow(0 0 8px rgba(233,30,140,.5));
}
@keyframes floatHDeco {
  0%,100% { transform: translateY(0) rotate(-8deg) scale(1); }
  50%      { transform: translateY(-18px) rotate(8deg) scale(1.15); }
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 28px 40px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
}

/* ─── HERO BADGE ─────────────────────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(233,30,140,.18);
  border: 1px solid rgba(233,30,140,.45);
  color: var(--c-primary-l);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 99px;
  margin-bottom: 14px;
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100%{ box-shadow: 0 0 0 0 rgba(233,30,140,0); }
  50%    { box-shadow: 0 0 0 6px rgba(233,30,140,.12); }
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-primary-l); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:.3; transform:scale(1.7); } }

/* ─── TITLE ──────────────────────────────────────────────── */
.site-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 4px;
}
.bunny-mascot {
  font-size: 52px;
  animation: bunnyBounce 2.5s cubic-bezier(.36,.07,.19,.97) infinite;
  filter: drop-shadow(0 0 16px rgba(233,30,140,.5));
  flex-shrink: 0;
  margin-top: 6px;
}
@keyframes bunnyBounce {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  20%     { transform: translateY(-16px) rotate(4deg); }
  40%     { transform: translateY(-8px) rotate(-2deg); }
  60%     { transform: translateY(-20px) rotate(5deg); }
  80%     { transform: translateY(-4px) rotate(-1deg); }
}

.hero-title {
  font-family: 'Pacifico', cursive;
  font-size: clamp(26px, 4.5vw, 50px);
  line-height: 1.25;
  display: flex;
  flex-direction: column;
}
.title-line-1 { color: #fff; }
.title-line-2 {
  background: linear-gradient(135deg, #ff6ec7 0%, #e91e8c 50%, #bf6fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(233,30,140,.4));
}
.title-line-3 {
  background: linear-gradient(135deg, #ffcc66, #ff9de2, #ff6ec7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.title-accent {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, #e91e8c, #bf6fff);
  -webkit-background-clip: text;
  background-clip: text;
}
.title-star {
  display: inline-block;
  -webkit-text-fill-color: #ffcc66;
  color: #ffcc66;
  animation: spinStar 4s linear infinite;
  margin-left: 6px;
}
@keyframes spinStar { to { transform: rotate(360deg); } }

/* SHIMMER CHARACTERS */
.shimmer-char {
  display: inline-block;
  animation: charEntrance .6s cubic-bezier(.34,1.56,.64,1) both;
  animation-delay: calc(var(--i, 0) * 0.06s + 0.3s);
}
@keyframes charEntrance {
  from { opacity:0; transform:translateY(20px) scale(.5) rotate(-10deg); }
  to   { opacity:1; transform:translateY(0) scale(1) rotate(0deg); }
}

/* Shimmer sweep on title */
.hero-title::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  animation: shimmerSweep 4s ease-in-out 1.5s infinite;
  pointer-events: none;
}
@keyframes shimmerSweep { 0%{ left:-100%; } 100%{ left:200%; } }

/* ─── HERO PRIZE / CHIPS ─────────────────────────────────── */
.hero-prize { font-size: 15px; color: var(--c-muted); margin-top: 10px; font-weight: 700; }
.hero-prize span { color: #ffcc66; font-weight: 900; }

.hero-info { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,160,220,.18);
  border-radius: 99px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
  cursor: default;
}
.hero-chip:hover { background: rgba(233,30,140,.1); border-color: rgba(233,30,140,.35); transform: translateY(-2px); }
.hero-chip svg { width: 15px; height: 15px; color: var(--c-primary-l); flex-shrink: 0; }

/* ─── COUNTDOWN ──────────────────────────────────────────── */
.hero-countdown { margin-left: auto; text-align: center; }
.countdown-label {
  font-size: 11px; color: var(--c-muted); text-align: center;
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800;
}
.countdown-box { display: flex; align-items: center; gap: 6px; }
.countdown-sep {
  font-family: 'Pacifico', cursive;
  font-size: 28px;
  color: var(--c-primary-l);
  animation: sepBlink 1s step-end infinite;
  line-height: 1;
  margin-bottom: 14px;
}
@keyframes sepBlink { 0%,100%{ opacity:1; } 50%{ opacity:.2; } }

.countdown-unit {
  background: rgba(233,30,140,.10);
  border: 1px solid rgba(233,30,140,.28);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-width: 62px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .15s;
}
.countdown-unit:hover { transform: scale(1.06); }
.countdown-unit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,110,199,.1) 0%, transparent 60%);
}
.countdown-unit .num {
  font-family: 'Nunito', sans-serif; font-size: 28px; font-weight: 900;
  background: linear-gradient(135deg, #fff 20%, var(--c-primary-l));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; position: relative;
}
.countdown-unit .lbl {
  font-size: 10px; color: var(--c-muted); text-transform: uppercase;
  letter-spacing: .09em; margin-top: 3px; font-weight: 800; position: relative;
}

/* ─── STATS BAR ──────────────────────────────────────────── */
.stats-bar {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: relative;
  z-index: 2;
}
.stats-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233,30,140,.4), rgba(191,111,255,.4), transparent);
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 13px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
.stat-item { display: flex; align-items: center; gap: 9px; }
.stat-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  animation: dotGlow 2.5s ease-in-out infinite alternate;
}
.stat-dot.available { background: var(--c-available); }
.stat-dot.pending   { background: var(--c-pending); }
.stat-dot.sold      { background: var(--c-sold); animation: none; }
.stat-dot.selected  { background: var(--c-selected); }
@keyframes dotGlow {
  from { box-shadow: 0 0 0 0 currentColor; }
  to   { box-shadow: 0 0 8px 2px currentColor; }
}
.stat-label { font-size: 13px; color: var(--c-muted); font-weight: 700; }
.stat-value { font-size: 15px; font-weight: 900; color: var(--c-text); }

/* ─── MAIN LAYOUT ────────────────────────────────────────── */
.main-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 24px 130px; position: relative; z-index: 2; }

/* ─── CONTROLS ───────────────────────────────────────────── */
.controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; align-items: center; }

.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: 99px; padding: 10px 18px;
  flex: 1; min-width: 200px; max-width: 300px;
  transition: all var(--transition);
}
.search-box:focus-within {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(233,30,140,.15), 0 0 20px rgba(233,30,140,.12);
}
.search-box svg { width: 15px; height: 15px; color: var(--c-primary-l); flex-shrink: 0; }
.search-box input {
  background: none; border: none; outline: none;
  color: var(--c-text); font-size: 13px; font-family: inherit; font-weight: 700; width: 100%;
}
.search-box input::placeholder { color: var(--c-muted); }

.filter-tabs {
  display: flex; background: var(--c-surface);
  border: 1.5px solid var(--c-border); border-radius: 99px;
  overflow: hidden; padding: 3px; gap: 2px;
}
.filter-tab {
  padding: 7px 16px; font-size: 13px; font-weight: 800; color: var(--c-muted);
  cursor: pointer; border: none; background: none; font-family: inherit;
  border-radius: 99px; transition: all var(--transition); white-space: nowrap;
}
.filter-tab:hover { color: var(--c-text); background: rgba(233,30,140,.06); }
.filter-tab.active {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-l));
  color: #fff; box-shadow: 0 2px 14px rgba(233,30,140,.3);
}

.random-btn {
  display: flex; align-items: center; gap: 6px; padding: 9px 18px;
  background: rgba(192,132,252,.1); border: 1.5px solid rgba(192,132,252,.3);
  color: #9333ea; border-radius: 99px; cursor: pointer;
  font-size: 13px; font-weight: 800; font-family: inherit; transition: all var(--transition);
}
.random-btn:hover { background: rgba(192,132,252,.2); transform: translateY(-3px) rotate(-2deg); box-shadow: 0 6px 20px rgba(192,132,252,.25); }
.random-btn:active { transform: scale(.95); }
.random-btn svg { width: 14px; height: 14px; }

.clear-btn {
  padding: 9px 16px; background: rgba(233,30,140,.08);
  border: 1.5px solid rgba(233,30,140,.22); color: var(--c-primary-l);
  border-radius: 99px; cursor: pointer; font-size: 13px; font-weight: 800;
  font-family: inherit; transition: all var(--transition);
}
.clear-btn:hover { background: rgba(233,30,140,.18); transform: translateY(-2px); }

/* ─── NUMBER GRID ────────────────────────────────────────── */
.grid-container {
  background: #fff;
  border: 1.5px solid rgba(236,100,163,.18);
  border-radius: var(--radius);
  padding: 16px; height: 520px; overflow-y: auto; position: relative;
  box-shadow: 0 2px 24px rgba(236,100,163,.08), inset 0 0 40px rgba(252,228,236,.3);
}
.grid-container::before {
  content: '';
  position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(ellipse 80% 30% at 50% 0%, rgba(252,228,236,.6) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
.number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 4px;
  position: relative;
  z-index: 1;
}

/* Individual cells */
.num-cell {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  font-size: 10.5px; font-weight: 900;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .13s cubic-bezier(.34,1.56,.64,1), background .13s, border-color .13s, box-shadow .13s;
  user-select: none;
  position: relative;
  letter-spacing: .02em;
  will-change: transform;
}
.num-cell.available {
  background: #fdf2f8;
  border-color: rgba(236,100,163,.22);
  color: #9d174d;
}
.num-cell.available:hover {
  background: #fce7f3;
  border-color: #ec4899;
  transform: scale(1.18) translateZ(0);
  z-index: 3;
  box-shadow: 0 0 14px rgba(236,72,153,.25), 0 4px 10px rgba(180,50,100,.1);
}
/* Selected cell: heart badge + glow */
.num-cell.selected {
  background: linear-gradient(135deg, rgba(233,30,140,.14), rgba(244,114,182,.09));
  border-color: var(--c-primary);
  color: #9d174d;
  transform: scale(1.12) translateZ(0);
  box-shadow: 0 0 14px rgba(233,30,140,.2), 0 4px 10px rgba(233,30,140,.1);
  z-index: 3;
  animation: cellPop .3s cubic-bezier(.34,1.56,.64,1);
}
.num-cell.selected::after {
  content: '♥';
  position: absolute; top: -5px; right: -3px;
  font-size: 9px; color: var(--c-primary-l);
  animation: heartPop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes cellPop   { from{ transform:scale(.7); } to{ transform:scale(1.12); } }
@keyframes heartPop  { from{ transform:scale(0) rotate(-30deg); opacity:0; } to{ transform:scale(1) rotate(0); opacity:1; } }

.num-cell.pending {
  background: rgba(245,158,11,.07); border-color: rgba(245,158,11,.2);
  color: #92400e; cursor: not-allowed;
}
.num-cell.sold {
  background: rgba(209,168,196,.18); border-color: rgba(209,168,196,.35);
  color: #9d6b8a; cursor: not-allowed;
}
.num-cell.hidden { display: none; }

/* ─── PURCHASE BAR ───────────────────────────────────────── */
.purchase-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,.94);
  border-top: 1.5px solid rgba(236,100,163,.25);
  backdrop-filter: blur(20px);
  z-index: 100;
  transform: translateY(110%);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 -4px 30px rgba(233,30,140,.1);
}
.purchase-bar.visible { transform: translateY(0); }
.purchase-bar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--c-primary) 25%, var(--c-primary-l) 50%, var(--c-accent) 75%, transparent 100%);
  animation: shimmerLine 2.5s linear infinite;
  background-size: 200% 100%;
}
@keyframes shimmerLine { 0%{ background-position:200% 0; } 100%{ background-position:-200% 0; } }

.purchase-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.purchase-summary { flex: 1; }
.purchase-summary .count { font-size: 13px; color: var(--c-muted); font-weight: 800; }
.purchase-summary .amount {
  font-family: 'Nunito', sans-serif; font-size: 28px; font-weight: 900;
  background: linear-gradient(135deg, var(--c-primary), #9333ea);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.purchase-summary .nums-preview { font-size: 12px; color: var(--c-muted); margin-top: 2px; font-weight: 700; }

.buy-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-l) 50%, var(--c-accent) 100%);
  background-size: 200% 100%;
  color: #fff; border: none; border-radius: 99px;
  font-size: 15px; font-weight: 900; font-family: inherit;
  cursor: pointer; transition: all var(--transition);
  box-shadow: var(--shadow-glow);
  position: relative; overflow: hidden;
  animation: gradientShift 3s ease-in-out infinite;
}
@keyframes gradientShift {
  0%,100%{ background-position: 0% 50%; }
  50%    { background-position: 100% 50%; }
}
.buy-btn::before {
  content: '';
  position: absolute; top: -50%; left: -60%; width: 40%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transform: skewX(-20deg);
  animation: btnShine 2.5s ease-in-out infinite;
}
@keyframes btnShine {
  0%   { left: -60%; opacity: 0; }
  30%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}
.buy-btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 0 50px rgba(233,30,140,.65); }
.buy-btn:active { transform: scale(.96); }
.buy-btn svg { width: 18px; height: 18px; position: relative; z-index: 1; }

/* ─── MODAL ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(180,80,130,.22);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: #ffffff;
  border: 1.5px solid rgba(236,100,163,.2);
  border-radius: 26px;
  width: 100%; max-width: 540px; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 8px 40px rgba(233,30,140,.12), 0 0 60px rgba(192,132,252,.08);
  transform: scale(.88) translateY(24px);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  position: relative;
}
.modal::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-l), var(--c-accent), var(--c-primary));
  background-size: 200% 100%;
  border-radius: 26px 26px 0 0;
  animation: gradientShift 3s linear infinite;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-header {
  padding: 24px 24px 16px; border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 19px; font-weight: 900; }
.modal-close {
  width: 34px; height: 34px;
  background: rgba(233,30,140,.1); border: 1px solid rgba(233,30,140,.25); border-radius: 50%;
  color: var(--c-primary-l); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-family: inherit; transition: all var(--transition);
}
.modal-close:hover { background: rgba(233,30,140,.25); transform: rotate(90deg) scale(1.1); }

.modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(85vh - 130px); /* leave room for header + footer */
  overscroll-behavior: contain;
}
.modal-footer {
  padding: 16px 24px 24px; border-top: 1px solid var(--c-border);
  display: flex; gap: 12px; justify-content: flex-end;
  flex-shrink: 0;
}

/* ─── STEPS ──────────────────────────────────────────────── */
.steps { display: flex; gap: 0; margin-bottom: 28px; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 13px; left: 14px; right: 14px;
  height: 2px; background: var(--c-border); z-index: 0;
}
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; z-index: 1; }
.step-circle {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-surface); border: 2px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; transition: all .35s cubic-bezier(.34,1.56,.64,1);
}
.step.active .step-circle {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-l));
  border-color: transparent; color: #fff;
  box-shadow: 0 0 16px rgba(233,30,140,.5);
  transform: scale(1.15);
}
.step.done .step-circle {
  background: linear-gradient(135deg, #ff85c2, #e91e8c);
  border-color: transparent; color: #fff; transform: scale(1.05);
}
.step-label { font-size: 11px; color: var(--c-muted); text-align: center; font-weight: 800; }
.step.active .step-label, .step.done .step-label { color: var(--c-primary-l); }

/* ─── FORM ───────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 800; color: var(--c-muted); margin-bottom: 6px; }
.form-control {
  width: 100%; background: #fdf5f9;
  border: 1.5px solid rgba(236,100,163,.2);
  border-radius: var(--radius-sm); padding: 11px 16px;
  color: var(--c-text); font-size: 14px; font-family: inherit; font-weight: 700;
  outline: none; transition: all var(--transition);
}
.form-control:focus {
  border-color: var(--c-primary); background: #fce4ec;
  box-shadow: 0 0 0 3px rgba(233,30,140,.1);
}
.form-control::placeholder { color: var(--c-muted); }

/* Summary box */
.summary-box {
  background: rgba(233,30,140,.06);
  border: 1.5px solid rgba(233,30,140,.2);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13px; color: var(--c-muted); line-height: 1.8; font-weight: 700;
  margin-top: 8px;
}
.summary-box-title { font-weight: 900; color: var(--c-text); margin-bottom: 6px; font-size: 14px; }

/* ─── PAYMENT METHOD CARDS ───────────────────────────────── */
.payment-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pay-card {
  border: 2px solid rgba(255,160,220,.14);
  border-radius: var(--radius);
  padding: 18px 12px; cursor: pointer; text-align: center;
  transition: all var(--transition);
  background: rgba(233,30,140,.04);
  position: relative; overflow: hidden;
}
.pay-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(233,30,140,.06) 0%, transparent 60%);
  opacity: 0; transition: opacity var(--transition);
}
.pay-card:hover { border-color: rgba(233,30,140,.5); transform: translateY(-4px); box-shadow: 0 10px 28px rgba(233,30,140,.18); }
.pay-card:hover::before { opacity: 1; }
.pay-card.selected { border-color: var(--c-primary); background: rgba(233,30,140,.13); box-shadow: 0 0 24px rgba(233,30,140,.28); }
.pay-card.selected::before { opacity: 1; }
.pay-card-icon { font-size: 30px; margin-bottom: 10px; filter: drop-shadow(0 0 8px rgba(233,30,140,.4)); }
.pay-card-label { font-size: 13px; font-weight: 900; }
.pay-card-sub { font-size: 11px; color: var(--c-muted); margin-top: 4px; font-weight: 700; }

/* ─── DISABLED PAY CARD (Soon) ───────────────────────────── */
.pay-card-disabled {
  opacity: .55;
  cursor: not-allowed !important;
  pointer-events: none;
  position: relative;
  overflow: hidden;
}
.pay-card-disabled::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(180,50,100,.04) 0px,
    rgba(180,50,100,.04) 4px,
    transparent 4px,
    transparent 10px
  );
  border-radius: inherit;
  pointer-events: none;
}
.pay-card-soon {
  position: absolute; top: 7px; right: 7px; z-index: 3;
  background: linear-gradient(135deg, #c084fc, #e91e8c);
  color: #fff; font-size: 10px; font-weight: 900;
  padding: 3px 10px; border-radius: 99px;
  letter-spacing: .04em; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(233,30,140,.3);
}


/* ─── PAYMENT PANELS ─────────────────────────────────────── */
.pay-panel { display: none; }
.pay-panel.active { display: block; animation: fadeUp .4s ease; }

.info-box {
  background: rgba(192,132,252,.07);
  border: 1.5px solid rgba(192,132,252,.2);
  border-radius: var(--radius); padding: 14px 16px;
  font-size: 13px; color: #7c3aed; margin-bottom: 16px; line-height: 1.7; font-weight: 700;
}
.info-box strong { display: block; font-size: 14px; margin-bottom: 6px; color: var(--c-text); font-weight: 900; }
.info-box .copy-field {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(192,132,252,.1); border-radius: 8px; padding: 8px 12px;
  margin-top: 8px; font-family: monospace; font-size: 13px; color: var(--c-text);
}
.copy-btn {
  background: rgba(233,30,140,.2); border: 1px solid rgba(233,30,140,.35);
  border-radius: 7px; padding: 3px 11px; color: var(--c-primary-l);
  font-size: 11px; cursor: pointer; font-family: inherit; font-weight: 800;
  transition: all var(--transition);
}
.copy-btn:hover { background: rgba(233,30,140,.38); transform: scale(1.05); }

.upload-area {
  border: 2px dashed rgba(233,30,140,.28); border-radius: var(--radius);
  padding: 30px; text-align: center; cursor: pointer;
  transition: all var(--transition); position: relative; background: rgba(233,30,140,.03);
}
.upload-area:hover { border-color: var(--c-primary); background: rgba(233,30,140,.07); transform: scale(1.01); }
.upload-area input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload-icon { font-size: 38px; margin-bottom: 10px; animation: floatHDeco 3s ease-in-out infinite; --d:0s; }
.upload-text { font-size: 14px; color: var(--c-muted); font-weight: 700; }
.upload-text span { color: var(--c-primary-l); font-weight: 900; }
.upload-preview { max-width: 100%; max-height: 160px; border-radius: 12px; margin-top: 12px; object-fit: contain; }

/* ─── CARD ───────────────────────────────────────────────── */
.card-logo-row { display: flex; gap: 8px; margin-bottom: 16px; }
.card-logo {
  background: #fdf2f8; border: 1px solid rgba(236,100,163,.2);
  border-radius: 8px; padding: 5px 12px; font-size: 12px; font-weight: 900; color: var(--c-muted);
}

/* ─── SUCCESS VIEW ───────────────────────────────────────── */
.success-view { text-align: center; padding: 20px 0; position: relative; }
.success-icon {
  width: 88px; height: 88px;
  background: rgba(233,30,140,.12); border: 2px solid var(--c-primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 40px;
  animation: successPop .6s cubic-bezier(.34,1.56,.64,1), successGlow 2s ease-in-out infinite .6s;
}
@keyframes successPop  { from{ transform:scale(0) rotate(-30deg); opacity:0; } to{ transform:scale(1) rotate(0); opacity:1; } }
@keyframes successGlow { 0%,100%{ box-shadow:0 0 0 0 rgba(233,30,140,0); } 50%{ box-shadow:0 0 0 12px rgba(233,30,140,.15); } }

.success-view h2 { font-size: 24px; font-weight: 900; margin-bottom: 8px; color: var(--c-primary-l); }
.success-view p  { color: var(--c-muted); font-size: 14px; line-height: 1.6; margin-bottom: 4px; font-weight: 700; }
.purchase-code {
  display: inline-block;
  background: rgba(233,30,140,.12); border: 1.5px solid var(--c-primary);
  border-radius: 12px; padding: 10px 24px;
  font-family: monospace; font-size: 16px; font-weight: 700;
  color: var(--c-primary-l); margin: 16px 0; letter-spacing: .08em;
  animation: codeGlow 2s ease-in-out infinite;
}
@keyframes codeGlow { 0%,100%{ box-shadow:0 0 0 0 rgba(233,30,140,0); } 50%{ box-shadow:0 0 16px 4px rgba(233,30,140,.2); } }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px; border-radius: 99px;
  font-size: 14px; font-weight: 900; font-family: inherit;
  cursor: pointer; border: none; transition: all var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-l));
  color: #fff; box-shadow: 0 4px 18px rgba(233,30,140,.38);
}
.btn-primary:hover { opacity: .9; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(233,30,140,.5); }
.btn-ghost { background: rgba(233,30,140,.06); color: var(--c-text); border: 1.5px solid rgba(236,100,163,.22); }
.btn-ghost:hover { background: rgba(233,30,140,.12); }

/* ─── ADMIN LINK ─────────────────────────────────────────── */
.admin-link {
  position: fixed; top: 16px; right: 20px; z-index: 50;
  background: rgba(255,255,255,.88); border: 1.5px solid rgba(236,100,163,.2);
  border-radius: 99px; padding: 7px 16px; color: var(--c-muted);
  text-decoration: none; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; gap: 6px;
  backdrop-filter: blur(8px); transition: all var(--transition);
  box-shadow: 0 2px 12px rgba(233,30,140,.08);
}
.admin-link:hover { color: var(--c-primary); border-color: rgba(233,30,140,.35); box-shadow: 0 4px 16px rgba(233,30,140,.15); }

/* ─── TOAST ──────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 100px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #ffffff; border: 1.5px solid rgba(236,100,163,.2);
  border-radius: var(--radius-sm); padding: 12px 18px; font-size: 13px;
  min-width: 240px; box-shadow: 0 4px 20px rgba(180,50,100,.12);
  animation: slideIn .35s cubic-bezier(.34,1.56,.64,1);
  display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--c-text);
}
.toast.success { border-color: #34d399; }
.toast.error   { border-color: #f472b6; }
.toast.info    { border-color: var(--c-primary); }
@keyframes slideIn { from{ transform:translateX(120%) scale(.8); opacity:0; } to{ transform:translateX(0) scale(1); opacity:1; } }

/* ─── ADMIN ───────────────────────────────────────────────── */
.admin-header {
  background: linear-gradient(135deg, #fff0f6, #f3e5f5);
  border-bottom: 1.5px solid rgba(236,100,163,.18);
  padding: 20px 24px; position: relative; overflow: hidden;
}
.admin-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 0% 50%, rgba(252,228,236,.8) 0%, transparent 60%);
  pointer-events: none;
}
.admin-header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; position: relative;
}
.admin-logo { display: flex; align-items: center; gap: 12px; }
.admin-logo .icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-l));
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: 0 4px 18px rgba(233,30,140,.45);
}
.admin-logo-text { font-size: 18px; font-weight: 900; color: var(--c-text); }
.admin-logo-sub  { font-size: 12px; color: var(--c-muted); font-weight: 700; }
.logout-btn {
  padding: 8px 18px; background: rgba(233,30,140,.07);
  border: 1.5px solid rgba(233,30,140,.22); color: var(--c-primary);
  border-radius: 99px; cursor: pointer; font-size: 13px; font-family: inherit; font-weight: 900; transition: all var(--transition);
}
.logout-btn:hover { background: rgba(233,30,140,.15); }
.admin-main { max-width: 1200px; margin: 0 auto; padding: 28px 24px; position: relative; z-index: 2; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 14px; margin-bottom: 28px; }
.admin-stat-card {
  background: #ffffff; border: 1.5px solid rgba(236,100,163,.14); border-radius: var(--radius);
  padding: 18px 20px; position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 14px rgba(233,30,140,.06);
}
.admin-stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(233,30,140,.12); }
.admin-stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-l), var(--c-accent));
}
.admin-stat-card .label { font-size: 12px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.admin-stat-card .value { font-family: 'Nunito', sans-serif; font-size: 28px; font-weight: 900; margin-top: 4px; }
.admin-stat-card.revenue .value   { color: var(--c-primary); }
.admin-stat-card.pending-s .value { color: #d97706; }
.admin-stat-card.sold-s .value    { color: #9333ea; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.section-title { font-size: 17px; font-weight: 900; }
.tabs { display: flex; background: var(--c-surface); border: 1.5px solid var(--c-border); border-radius: 99px; overflow: hidden; padding: 3px; gap: 2px; }
.tab { padding: 7px 16px; font-size: 13px; font-weight: 800; color: var(--c-muted); cursor: pointer; border: none; background: none; font-family: inherit; border-radius: 99px; transition: all var(--transition); }
.tab:hover { color: var(--c-primary); background: rgba(233,30,140,.06); }
.tab.active { background: linear-gradient(135deg, var(--c-primary), var(--c-primary-l)); color: #fff; box-shadow: 0 2px 14px rgba(233,30,140,.28); }
.purchases-table-wrap { overflow-x: auto; background: #fff; border: 1.5px solid rgba(236,100,163,.14); border-radius: var(--radius); }
.purchases-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.purchases-table th {
  text-align: left; padding: 12px 16px; color: var(--c-muted);
  font-weight: 900; font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
  border-bottom: 1.5px solid rgba(236,100,163,.14); background: #fdf5f9;
}
.purchases-table td { padding: 13px 16px; border-bottom: 1px solid rgba(236,100,163,.08); vertical-align: middle; color: var(--c-text); }
.purchases-table tr:hover td { background: #fff0f6; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 99px; font-size: 11px; font-weight: 900; }
.status-badge.pending  { background: rgba(245,158,11,.1);  color: #b45309; }
.status-badge.approved { background: rgba(233,30,140,.1);  color: #be185d; }
.status-badge.rejected { background: rgba(192,132,252,.12); color: #7c3aed; }
.action-btn { padding: 5px 14px; border-radius: 99px; font-size: 12px; font-weight: 900; font-family: inherit; cursor: pointer; border: none; transition: all var(--transition); }
.action-btn.approve { background: rgba(233,30,140,.1); color: #be185d; }
.action-btn.approve:hover { background: rgba(233,30,140,.2); transform: scale(1.05); }
.action-btn.reject  { background: rgba(192,132,252,.12); color: #7c3aed; }
.action-btn.reject:hover  { background: rgba(192,132,252,.22); transform: scale(1.05); }
.action-btn.view    { background: rgba(244,114,182,.1); color: #db2777; }
.action-btn.view:hover    { background: rgba(244,114,182,.2); transform: scale(1.05); }
.no-data { text-align: center; padding: 52px 20px; color: var(--c-muted); font-size: 14px; font-weight: 700; }
.no-data::before { content: '🌸'; display: block; font-size: 40px; margin-bottom: 12px; animation: floatHDeco 3s ease-in-out infinite; --d:0s; --s:1; }
.login-screen {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(252,228,236,.95) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(237,233,254,.8) 0%, transparent 60%),
    #fdf5f9;
  z-index: 400; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.login-card {
  background: #ffffff; border: 1.5px solid rgba(236,100,163,.22);
  border-radius: 26px; padding: 46px 38px; width: 100%; max-width: 400px; text-align: center;
  box-shadow: 0 8px 40px rgba(233,30,140,.1), 0 0 60px rgba(192,132,252,.08);
  position: relative; overflow: hidden;
  animation: fadeUp .6s cubic-bezier(.34,1.56,.64,1) both;
}
.login-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-l), var(--c-accent));
  border-radius: 26px 26px 0 0;
}
.login-icon { font-size: 48px; margin-bottom: 16px; animation: bunnyBounce 2.5s ease-in-out infinite; }
.login-card h2 { font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.login-card p  { color: var(--c-muted); font-size: 14px; margin-bottom: 24px; font-weight: 700; }
.receipt-img { width: 100%; border-radius: 14px; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-inner { padding: 30px 16px 26px; }
  .payment-methods { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .countdown-box { gap: 4px; }
  .countdown-unit { min-width: 48px; padding: 8px 10px; }
  .countdown-unit .num { font-size: 22px; }
  .purchase-bar-inner { padding: 12px 16px; }
  .main-wrap { padding: 16px 12px 120px; }
  .admin-main { padding: 20px 16px; }
  .bunny-mascot { font-size: 36px; }
  .hero-title { font-size: clamp(22px, 8vw, 36px); }
  .countdown-sep { font-size: 20px; }
}

/* ─── CELL RIPPLE EFFECT ─────────────────────────────────── */
.num-cell { overflow: hidden; }
.cell-ripple {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255,110,199,.5) 0%, transparent 70%);
  animation: rippleOut .55s cubic-bezier(.4,0,.2,1) forwards;
  pointer-events: none;
}
@keyframes rippleOut {
  from { opacity: 1; transform: scale(0); }
  to   { opacity: 0; transform: scale(2.5); }
}

/* ─── COUNTDOWN FLIP ─────────────────────────────────────── */
@keyframes cdFlip {
  0%   { transform: rotateX(0deg); opacity: 1; }
  40%  { transform: rotateX(-90deg); opacity: 0; }
  60%  { transform: rotateX(90deg); opacity: 0; }
  100% { transform: rotateX(0deg); opacity: 1; }
}
.cd-flip { animation: cdFlip .35s ease-in-out; }

/* ─── GRID ENTRANCE (set by JS) ──────────────────────────── */
.num-cell {
  opacity: 1;
  transform: scale(1);
}
