/* ========== DESIGN TOKENS ========== */
:root {
  --bg: #060a13;
  --bg-subtle: #0b1120;
  --surface: #111827;
  --surface-raised: #1a2332;
  --border: #1e293b;
  --border-highlight: #334155;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --success: #10b981;
  --success-hover: #059669;
  --success-glow: rgba(16, 185, 129, 0.15);
  --warning: #f59e0b;
  --danger: #475569;
  --danger-text: #f87171;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow: 0 4px 16px rgba(0,0,0,.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.4);
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* ========== HERO HEADER ========== */
.hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(59,130,246,0.07) 0%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

.hero h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero h1 .hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: radial-gradient(circle at 30% 30%, rgba(111,255,130,0.16), rgba(9,18,28,0.95) 65%);
  border-radius: 14px;
  flex-shrink: 0;
  border: 1px solid rgba(111, 255, 130, 0.28);
  box-shadow: 0 8px 22px rgba(8, 15, 22, 0.45), 0 0 18px rgba(164, 255, 75, 0.2);
  overflow: hidden;
}

.hero-mark {
  width: 100%;
  height: 100%;
  display: block;
}

.hero p {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--success);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero nav {
  display: flex;
  gap: 6px;
}

.hero nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

.hero nav a:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

/* ========== TICKER BANNER ========== */
.ticker-wrap {
  background: linear-gradient(90deg, rgba(245,158,11,0.10) 0%, rgba(245,158,11,0.06) 50%, rgba(245,158,11,0.10) 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  height: 38px;
}

.ticker-wrap::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(270deg, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.ticker-label {
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  background: rgba(245, 158, 11, 0.18);
  border-right: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 6px;
  z-index: 3;
}

.ticker-container {
  overflow: hidden;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 45s linear infinite;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  color: #fcd34d;
  font-size: 13px;
  font-weight: 500;
  padding: 0 28px;
  letter-spacing: 0.01em;
}

.ticker-sep {
  color: rgba(245, 158, 11, 0.45);
  font-size: 10px;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== MAIN LAYOUT ========== */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ========== PANEL / CARD ========== */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.panel:hover {
  border-color: var(--border-highlight);
}

.spotlight {
  border-color: rgba(59, 130, 246, 0.2);
  background: linear-gradient(160deg, var(--surface) 0%, rgba(59,130,246,0.03) 100%);
}

.spotlight:hover {
  border-color: rgba(59, 130, 246, 0.35);
}

.wide {
  width: 100%;
}

/* ========== PRODUCT LAYOUT ========== */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.product-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ========== TYPOGRAPHY ========== */
h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

#raffleTitle {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  animation: fadeIn 0.5s ease-out both;
}

#raffleInfo {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.raffle-info-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  animation: fadeIn 0.5s ease-out 0.1s both;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.info-badge:hover {
  border-color: var(--border-highlight);
}

.info-badge.prize-badge {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.25);
  font-weight: 700;
}

/* ========== SELECT ========== */
select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-subtle);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 36px 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  width: auto;
  max-width: 100%;
}

select:hover,
select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ========== SECTION HEADINGS ========== */
.panel:not(.spotlight) > h2:first-child,
.panel:not(.spotlight) > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 15px;
  flex-shrink: 0;
}

.section-icon.blue {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.section-icon.green {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.section-icon.gold {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ========== MESSAGE BOXES ========== */
.msg-box {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 12px;
  line-height: 1.5;
  border: 1px solid transparent;
  animation: fadeIn 0.25s ease-out both;
}

.msg-success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--success);
}

.msg-error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: var(--danger-text);
}

.msg-info {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
  color: var(--accent);
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.empty-state .empty-icon {
  font-size: 38px;
  display: block;
  margin-bottom: 12px;
  opacity: 0.45;
}

.empty-state p {
  margin: 0;
}

/* ========== SUBPRIZES CHIPS ========== */
.subprizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,0.2);
  transition: var(--transition);
}

.chip:hover {
  background: rgba(59,130,246,0.2);
}

/* ========== IMAGE ========== */
.image-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  background: var(--bg-subtle);
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.4s ease;
}

.image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.image-wrap:hover {
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.image-wrap:hover::before {
  opacity: 1;
}

.image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}

.image-wrap:hover img {
  transform: scale(1.02);
}

/* ========== PROGRESS BAR ========== */
.progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, rgba(59,130,246,0.08) 0%, rgba(59,130,246,0.02) 100%);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.progress-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.progress-percent-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
}

.progress-percent-badge.goal-pending {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.35);
}

.progress-percent-badge.goal-met {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.35);
}

.progress-track {
  height: 14px;
  background: linear-gradient(180deg, #08111f 0%, #0c1526 100%);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(59,130,246,0.35);
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 45%, #10b981 100%);
  border-radius: 999px;
  width: 0%;
  transition: width 0.6s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 16px rgba(59,130,246,0.35);
  background-size: 200% 100%;
  animation: progress-shimmer 3s ease-in-out infinite;
}

@keyframes progress-shimmer {
  0% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
  100% { background-position: 100% 0; }
}

.progress-goal-marker {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 8px rgba(255,255,255,0.45);
  z-index: 2;
  transform: translateX(-1px);
}

.progress-track.goal-reached .progress-goal-marker {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16,185,129,0.6);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

small,
#progressText {
  color: var(--text-muted);
  font-size: 12px;
}

#progressGoalText {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ========== PACK GRID ========== */
.pack-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pack {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #0c1a2e 0%, #111d33 100%);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  width: 100%;
  text-align: left;
}

.pack::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(59,130,246,0.06) 0%, transparent 40%, rgba(59,130,246,0.04) 100%);
  pointer-events: none;
}

.pack:hover {
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.15), 0 2px 8px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, #0e1f38 0%, #142640 100%);
}

.pack:active {
  transform: translateY(0);
}

.pack-cart {
  width: 22px;
  height: 22px;
  color: var(--text-secondary);
  flex-shrink: 0;
  opacity: 0.7;
  transition: var(--transition);
}

.pack:hover .pack-cart {
  color: var(--accent);
  opacity: 1;
}

.pack-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pack-text strong {
  font-weight: 800;
  font-size: 15px;
  color: #fff;
}

.pack-text b {
  font-weight: 800;
  color: var(--text);
  margin-left: 4px;
  font-size: 14px;
}

.pack-hand {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0.5;
  transition: var(--transition);
}

.pack:hover .pack-hand {
  color: var(--accent);
  opacity: 0.9;
  animation: hand-tap 0.6s ease-in-out;
}

@keyframes hand-tap {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2) rotate(-8deg); }
}

.pack.popular {
  border-color: rgba(59, 130, 246, 0.3);
  background: linear-gradient(135deg, #0e1f38 0%, #142640 100%);
}

.pack.popular label {
  position: absolute;
  right: 52px;
  top: 4px;
  background: #f59e0b;
  color: #000;
  padding: 3px 10px;
  border-radius: 0 0 6px 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  z-index: 2;
}

/* ========== ACTIONS / TOOLS ========== */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ========== INPUTS ========== */
input,
textarea {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  width: 100%;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

.actions input {
  width: auto;
  min-width: 120px;
  flex: 1;
}

/* ========== BUTTONS ========== */
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent) 0%, #4f96ff 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(59,130,246,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}

button:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59,130,246,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(59,130,246,0.2);
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ========== GRID TOOLBAR ========== */
.grid-toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.grid-toolbar button {
  padding: 6px 12px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
}

.grid-toolbar button:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ========== NUMBER GRID ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  min-height: 220px;
}

.num {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 2px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 6px;
  transition: var(--transition);
  font-variant-numeric: tabular-nums;
}

.num:hover:not(:disabled) {
  background: rgba(59,130,246,0.1);
  border-color: var(--accent);
  color: var(--text);
  transform: scale(1.05);
}

.sold {
  background: var(--danger) !important;
  border-color: #334155 !important;
  color: var(--text-muted) !important;
  cursor: not-allowed;
  opacity: 0.6;
}

.selected {
  background: var(--success) !important;
  border-color: var(--success) !important;
  color: #fff !important;
  box-shadow: 0 0 8px var(--success-glow);
}

#selInfo {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding-top: 4px;
}

/* ========== QUANTITY SELECTOR ========== */
.qty-selector {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qty-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.qty-controls {
  display: flex;
  align-items: stretch;
}

.qty-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  box-shadow: none;
}

.qty-btn:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.qty-input {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  height: 48px;
  border-radius: 0;
  border-left: none;
  border-right: none;
  flex: 1;
  min-width: 0;
  letter-spacing: -0.02em;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input[type=number] {
  -moz-appearance: textfield;
}

/* ========== FORM ========== */
form {
  display: grid;
  gap: 10px;
}

form button[type="submit"] {
  margin-top: 4px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--success) 0%, #059669 50%, #047857 100%);
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(16,185,129,0.3), 0 1px 0 rgba(255,255,255,0.1) inset;
  border-radius: var(--radius);
  text-transform: uppercase;
  font-size: 13px;
}

form button[type="submit"]:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 8px 24px rgba(16,185,129,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

/* Checkout 2-column layout */
@media (min-width: 641px) {
  #checkout {
    grid-template-columns: 1fr 1fr;
  }

  #checkout input[name="document"],
  #checkout input[name="city"],
  #checkout button[type="submit"] {
    grid-column: 1 / -1;
  }
}

/* ========== WINNERS ========== */
.winners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.wcard {
  border: 1px solid rgba(30, 41, 59, 0.8);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #151e2d 0%, #111827 60%, #0f1520 100%);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
}

.wcard:hover {
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.12), 0 4px 12px rgba(0,0,0,0.3);
}

.wcard-main {
  border-color: rgba(245, 158, 11, 0.3);
}

/* Top section with gift icon */
.wcard-visual {
  position: relative;
  width: 100%;
  padding: 24px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, rgba(245,158,11,0.06) 0%, transparent 100%);
}

/* Number badge floating at top */
.wcard-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.wcard-badge-main {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

.wcard-badge-sub {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.wcard-badge-milestone {
  background: var(--warning);
  color: #000;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.wcard-badge-number {
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Gift icon */
.wcard-gift {
  font-size: 64px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.2));
  margin-bottom: 4px;
}

/* Bottom info section */
.wcard-info {
  width: 100%;
  padding: 14px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.wcard-prize {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.wcard-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warning);
  display: flex;
  align-items: center;
  gap: 5px;
}

.wcard-owner {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
}

@media (max-width: 640px) {
  .winners {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .wcard-gift {
    font-size: 48px;
  }

  .wcard-badge {
    padding: 4px 10px;
    font-size: 10px;
  }

  .wcard-badge-number {
    font-size: 14px;
  }

  .wcard-prize {
    font-size: 15px;
  }

  .wcard-owner {
    font-size: 12px;
  }

  .wcard-visual {
    padding: 16px 10px 10px;
  }

  .wcard-info {
    padding: 10px 10px 16px;
  }
}

@media (max-width: 380px) {
  .winners {
    grid-template-columns: 1fr;
  }
}

/* ========== LOOKUP ========== */
ul {
  padding-left: 0;
  margin: 0;
  color: var(--text-secondary);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

ul li {
  padding: 12px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: var(--transition);
  line-height: 1.5;
}

ul li:hover {
  border-color: var(--border-highlight);
  background: var(--surface-raised);
}

.order-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-id {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.order-count {
  font-size: 11px;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.order-numbers {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

/* ========== STICKY CART ========== */
.sticky-cart {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 10, 19, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), opacity 0.3s ease;
}

.sticky-cart::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--success), transparent);
  opacity: 0.35;
}

.sticky-cart-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sticky-cart-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.sticky-cart-total {
  font-size: 12px;
  color: var(--text-muted);
}

#stickyInfo {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.sticky-cart button {
  background: linear-gradient(135deg, var(--success) 0%, #059669 50%, #047857 100%);
  padding: 11px 26px;
  font-weight: 800;
  font-size: 13px;
  border-radius: var(--radius);
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255,255,255,0.12);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.sticky-cart button:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

/* ========== UTILITY ========== */
.hidden {
  display: none !important;
}

#msg, #checkoutMsg {
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
}

/* Status tag */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.status-active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-closed {
  background: rgba(100, 116, 139, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(100, 116, 139, 0.2);
}

/* ========== CONTACT / SUPPORT SECTION ========== */
.contact-panel .contact-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.contact-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
}

.contact-whatsapp-btn:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
}

.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  transition: var(--transition);
}

.contact-email-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ========== FLOATING WHATSAPP BUTTON ========== */
.floating-whatsapp {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
  z-index: 98;
  text-decoration: none;
}

.floating-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
}

@media (max-width: 640px) {
  .floating-whatsapp {
    bottom: 76px;
    right: 16px;
    width: 48px;
    height: 48px;
  }

  .contact-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========== DB EXPLORER TABLE ========== */
.db-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.db-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.db-table th {
  background: var(--surface-raised);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.db-table td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  color: var(--text-secondary);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.db-table tbody tr:hover td {
  background: var(--surface-raised);
  color: var(--text);
}

/* ========== ADMIN SPECIFIC ========== */
header:not(.hero) {
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(59,130,246,0.05) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

header:not(.hero) > div:first-child h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
}

header:not(.hero) h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

header:not(.hero) p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 2px;
}

header:not(.hero) nav {
  display: flex;
  gap: 6px;
}

header:not(.hero) nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

header:not(.hero) nav a:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

#adminMsg {
  font-size: 13px;
  padding-top: 6px;
}

/* Admin sub-sections */
.admin-section {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 20px;
}

.admin-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-section h3 .sub-icon {
  font-size: 16px;
  opacity: 0.7;
}

.subwinner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.subwinner-head label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#addSubwinnerBtn {
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--border-highlight);
  box-shadow: none;
  padding: 8px 12px;
}

#addSubwinnerBtn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.subwinner-rows {
  display: grid;
  gap: 8px;
}

.subwinner-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.remove-subwinner-btn {
  background: var(--surface-raised);
  color: var(--danger-text);
  border: 1px solid rgba(239,68,68,0.35);
  box-shadow: none;
  padding: 10px 14px;
}

.remove-subwinner-btn:hover:not(:disabled) {
  background: rgba(239,68,68,0.18);
}

/* ========== SALES STATUS ========== */
.stat-card {
  flex: 1;
  min-width: 80px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
}
.stat-card-sold {
  border-color: rgba(59,130,246,0.35);
  background: rgba(59,130,246,0.08);
}
.stat-card-avail {
  border-color: rgba(16,185,129,0.35);
  background: rgba(16,185,129,0.08);
}
.stat-card-pct {
  border-color: rgba(245,158,11,0.35);
  background: rgba(245,158,11,0.08);
}
.stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat-card-sold .stat-value  { color: #60a5fa; }
.stat-card-avail .stat-value { color: #34d399; }
.stat-card-pct .stat-value   { color: #fbbf24; }
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.avail-numbers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 260px;
  overflow-y: auto;
  padding: 10px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.avail-numbers-grid::-webkit-scrollbar { width: 5px; }
.avail-numbers-grid::-webkit-scrollbar-thumb { background: var(--border-highlight); border-radius: 4px; }

.avail-num {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  color: #34d399;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 12px;
  font-family: monospace;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ========== TOGGLE CHECKBOX ========== */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 0;
}
.toggle-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--success);
  cursor: pointer;
  flex-shrink: 0;
}

/* ========== MILESTONE PREVIEW (PUBLIC PAGE) ========== */
.milestone-preview-wrap {
  margin: 14px 0;
  background: rgba(245,158,11,0.05);
  border: 1px solid rgba(245,158,11,0.18);
  border-radius: 14px;
  padding: 14px 16px;
}
.milestone-preview-title {
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.milestone-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ms-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(245,158,11,0.22);
  background: rgba(245,158,11,0.07);
  position: relative;
  transition: transform 0.2s;
}
.ms-item:hover { transform: translateY(-2px); }
.ms-number {
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fbbf24;
}
.ms-won-badge {
  font-size: 10px;
  font-weight: 700;
  color: #fbbf24;
  margin-top: 4px;
  white-space: nowrap;
}
.ms-locked .ms-number { color: #94a3b8; }
.ms-locked {
  border-color: rgba(148,163,184,0.18);
  background: rgba(148,163,184,0.06);
}
.ms-unlocked {
  border-color: rgba(52,211,153,0.35);
  background: rgba(52,211,153,0.08);
  animation: pulseUnlocked 2.5s ease-in-out infinite;
}
.ms-unlocked .ms-number { color: #34d399; }
.ms-won {
  border-color: rgba(245,158,11,0.5);
  background: rgba(245,158,11,0.12);
}
@keyframes pulseUnlocked {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
  50% { box-shadow: 0 0 12px 3px rgba(52,211,153,0.2); }
}

/* ========== MILESTONE NUMBER ROWS ========== */
.milestone-num-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
}
.milestone-num-pct {
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  min-width: 52px;
}
.milestone-num-input {
  flex: 1;
  font-family: monospace;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-align: center;
  max-width: 110px;
  background: var(--surface);
  border: 1px solid var(--border-highlight);
  border-radius: 8px;
  color: var(--text);
  padding: 6px 10px;
}
.milestone-num-hint {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.milestone-num-row:has(.milestone-num-input:not([value=''])) .milestone-num-hint {
  color: var(--success);
}

/* ========== PACKAGE ADMIN ROWS ========== */
.package-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.package-row input[type="number"] {
  width: 120px;
  flex-shrink: 0;
}

.package-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
}

.package-row label input[type="checkbox"] {
  width: auto;
  accent-color: var(--warning);
}

.package-row .pkg-price-preview {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}

.package-row .remove-package-btn {
  background: var(--surface-raised);
  color: var(--danger-text);
  border: 1px solid rgba(239,68,68,0.35);
  box-shadow: none;
  padding: 6px 10px;
  font-size: 11px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .package-row {
    flex-wrap: wrap;
  }
  .package-row input[type="number"] {
    flex: 1;
    min-width: 80px;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 20px 4px var(--accent-glow); }
}

.panel {
  animation: fadeIn 0.4s ease-out both;
}

.panel:nth-child(1) { animation-delay: 0s; }
.panel:nth-child(2) { animation-delay: 0.08s; }
.panel:nth-child(3) { animation-delay: 0.16s; }
.panel:nth-child(4) { animation-delay: 0.24s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    flex-wrap: wrap;
  }

  .hero > div {
    flex: 1;
    min-width: 240px;
  }

  .hero nav {
    margin-left: auto;
  }

  main {
    padding: 16px;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .actions {
    flex-direction: column;
  }

  .actions input {
    width: 100%;
  }

  header:not(.hero) {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
  }
}

@media (max-width: 640px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero nav {
    margin-left: 0;
  }

  .hero h1 .hero-icon {
    width: 42px;
    height: 42px;
  }

  .grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  /* Pack responsive */
  .pack-grid {
    gap: 8px;
  }

  .pack {
    padding: 14px 14px;
    gap: 10px;
  }

  .pack-cart {
    width: 20px;
    height: 20px;
  }

  .pack-text {
    font-size: 13px;
    gap: 4px;
  }

  .pack-text strong {
    font-size: 14px;
  }

  .pack-text b {
    font-size: 13px;
  }

  .pack-hand {
    width: 20px;
    height: 20px;
  }

  .pack.popular label {
    right: 42px;
    top: 2px;
    font-size: 8px;
    padding: 2px 8px;
  }

  .sticky-cart {
    padding: 10px 16px;
  }

  #stickyInfo {
    font-size: 12px;
  }

  .sticky-cart button {
    padding: 9px 16px;
    font-size: 12px;
  }

  h2 {
    font-size: 16px;
  }

  #raffleTitle {
    font-size: 20px;
  }

  #checkout {
    grid-template-columns: 1fr !important;
  }

  #checkout input[name="document"],
  #checkout input[name="city"],
  #checkout button[type="submit"] {
    grid-column: auto !important;
  }

  .subwinner-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .pack {
    padding: 12px 10px;
    gap: 8px;
  }

  .pack-text {
    font-size: 12px;
    flex-wrap: wrap;
    white-space: normal;
    gap: 2px;
  }

  .pack-text strong {
    font-size: 13px;
  }

  .pack-text b {
    font-size: 12px;
  }

  .pack-cart {
    width: 18px;
    height: 18px;
  }

  .pack-hand {
    width: 18px;
    height: 18px;
  }
}

/* ========== WINNER ALERT MODAL ========== */
.winner-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes floatPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.winner-modal {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border: 2px solid #f59e0b;
  border-radius: 20px;
  padding: 40px 32px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 60px rgba(245, 158, 11, 0.25), 0 0 120px rgba(245, 158, 11, 0.1);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.winner-modal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12), transparent 60%);
  pointer-events: none;
}

.winner-modal-icon {
  font-size: 64px;
  margin-bottom: 12px;
  animation: floatPulse 2s ease-in-out infinite;
}

.winner-modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #f59e0b;
  margin: 0 0 16px;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.winner-modal-body {
  color: #e2e8f0;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.winner-modal-body .win-item {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.winner-modal-body .win-item-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.winner-modal-body .win-item-text {
  text-align: left;
}

.winner-modal-body .win-item-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f59e0b;
}

.winner-modal-body .win-item-label {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 2px;
}

.winner-modal-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  border: none;
  padding: 14px 40px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.winner-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(245, 158, 11, 0.4);
}

@media (max-width: 480px) {
  .winner-modal {
    padding: 32px 20px 24px;
  }
  .winner-modal-icon {
    font-size: 48px;
  }
  .winner-modal-title {
    font-size: 1.3rem;
  }
}
