/* ===========================================================================
   Event Raffle — shared design system
   Premium, mobile-first, dark aurora aesthetic
   =========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=Unbounded:wght@600;700;800&display=swap');

:root {
  /* palette */
  --bg-0: #07070f;
  --bg-1: #0c0c1a;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.10);
  --stroke-strong: rgba(255, 255, 255, 0.18);

  --text: #f4f5ff;
  --muted: #a6a9c6;
  --faint: #6f7194;

  --violet: #7c5cff;
  --violet-2: #a06bff;
  --pink: #ff5da2;
  --cyan: #45d3ff;
  --gold: #ffd15c;
  --green: #37e0a3;
  --red: #ff6b6b;

  --grad: linear-gradient(135deg, #7c5cff 0%, #a06bff 45%, #ff5da2 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 92, 255, 0.9), rgba(255, 93, 162, 0.9));

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.65);
  --glow: 0 0 40px -6px rgba(124, 92, 255, 0.55);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', var(--font);
  --hero: 'Unbounded', var(--display);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  min-height: 100dvh;
}

/* animated aurora background ------------------------------------------------ */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(1200px 800px at 50% -10%, #16163a 0%, var(--bg-1) 45%, var(--bg-0) 100%);
}
.aurora::before,
.aurora::after {
  content: '';
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora::before {
  background: radial-gradient(circle, #7c5cff 0%, transparent 60%);
  top: -20vmax; left: -15vmax;
}
.aurora::after {
  background: radial-gradient(circle, #ff5da2 0%, transparent 60%);
  bottom: -25vmax; right: -15vmax;
  animation-delay: -6s;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vmax, 4vmax, 0) scale(1.15); }
}

/* reusable atoms ------------------------------------------------------------ */
.glass {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.btn {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  color: #fff;
  background: var(--grad);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, opacity .2s;
  box-shadow: var(--glow);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 55px -4px rgba(124, 92, 255, 0.7); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  background: var(--surface-2);
  border: 1px solid var(--stroke-strong);
  box-shadow: none;
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,.14); box-shadow: none; }

.input {
  width: 100%;
  font-family: var(--font);
  font-size: 1.1rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: 1.5px solid var(--stroke-strong);
  border-radius: var(--radius-sm);
  padding: 17px 18px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--violet-2); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong);
}
.badge-pending  { color: var(--gold);  background: rgba(255, 209, 92, .12); border-color: rgba(255,209,92,.3); }
.badge-approved { color: var(--green); background: rgba(55, 224, 163, .12); border-color: rgba(55,224,163,.3); }
.badge-winner   { color: #1a1400; background: var(--gold); border-color: var(--gold); }

/* gradient text */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

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