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

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }

:root {
  --bg: #06060e;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-border: rgba(255, 255, 255, 0.09);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --blur: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --accent: #6c7bff;
  --accent2: #b47aff;
  --green: #34d399;
  --red: #f87171;
  --gold: #fbbf24;
  --text: #e8eaed;
  --text-dim: rgba(255, 255, 255, 0.55);
  --text-faint: rgba(255, 255, 255, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-transform: lowercase;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === GRID BACKGROUND === */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 30%, black 10%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 30%, black 10%, transparent 100%);
}

/* === 3D SHAPES === */

.bg-shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  perspective: 800px;
}

.bg-shape {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.shape-cube { border-radius: 3px; animation: shapeRotate3D var(--dur) linear infinite; animation-delay: var(--delay); }
.shape-ring { border-radius: 50%; animation: shapeSpin var(--dur) ease-in-out infinite; animation-delay: var(--delay); }
.shape-diamond { border-radius: 3px; animation: shapeDiamond var(--dur) ease-in-out infinite; animation-delay: var(--delay); }
.shape-cross { border: none; animation: shapeCross var(--dur) ease-in-out infinite; animation-delay: var(--delay); }
.shape-cross::before, .shape-cross::after { content: ''; position: absolute; background: rgba(255, 255, 255, 0.05); }
.shape-cross::before { width: 1px; height: 100%; left: 50%; }
.shape-cross::after { width: 100%; height: 1px; top: 50%; }

@keyframes shapeRotate3D {
  0% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
  25% { transform: translateY(-20px) rotateX(90deg) rotateY(90deg); }
  50% { transform: translateY(-8px) rotateX(180deg) rotateY(180deg); }
  75% { transform: translateY(-25px) rotateX(270deg) rotateY(270deg); }
  100% { transform: translateY(0) rotateX(360deg) rotateY(360deg); }
}

@keyframes shapeSpin {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-25px) rotate(180deg) scale(0.95); }
}

@keyframes shapeDiamond {
  0%, 100% { transform: rotate(45deg) translateY(0) scale(1); }
  50% { transform: rotate(45deg) translateY(-20px) scale(1.08); }
}

@keyframes shapeCross {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(90deg); }
}

/* ambient glows — bigger and brighter */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 700px;
  background:
    radial-gradient(ellipse 60% 50% at 40% 40%, rgba(108, 123, 255, 0.09) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 65% 35%, rgba(180, 122, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: ambientShift 20s ease-in-out infinite;
}

@keyframes ambientShift {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.7; }
  50% { transform: translateX(-50%) scale(1.15); opacity: 1; }
}

/* grain — very subtle */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.012;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}

/* === LOADING SCREEN === */

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 1s var(--ease), visibility 1s;
}

.loader.fade-out { opacity: 0; visibility: hidden; }

.loader-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  animation: loaderPulse 1.8s ease-in-out infinite, loaderFloat 3s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(108, 123, 255, 0.1), 0 0 60px rgba(180, 122, 255, 0.06); }
  50% { box-shadow: 0 0 60px rgba(108, 123, 255, 0.3), 0 0 120px rgba(180, 122, 255, 0.15); }
}

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

.loader-text {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  animation: loaderTextFade 2s ease-in-out infinite;
}

@keyframes loaderTextFade {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.9; }
}

.loader-bar { width: 140px; height: 2px; background: rgba(255, 255, 255, 0.06); border-radius: 2px; overflow: hidden; }

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
  background-size: 200% 100%;
  animation: loaderFill 1.8s ease-out forwards, loaderShimmer 1.5s ease-in-out infinite;
}

@keyframes loaderFill { 0% { width: 0%; } 40% { width: 60%; } 80% { width: 90%; } 100% { width: 100%; } }
@keyframes loaderShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* === TITLE ANIMATION === */

.main-title { font-size: 1.5rem; font-weight: 300; color: #fff; letter-spacing: 0.06em; position: relative; }
.main-title.float-to-nav { position: fixed; z-index: 60; }

/* === NAV BAR === */

.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(6, 6, 14, 0.8);
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-bar::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108, 123, 255, 0.2) 30%, rgba(180, 122, 255, 0.15) 50%, rgba(108, 123, 255, 0.2) 70%, transparent);
}

.nav-bar.nav-visible { animation: navSlideDown 0.5s var(--ease) forwards; }
@keyframes navSlideDown { 0% { opacity: 0; transform: translateY(-100%); } 100% { opacity: 1; transform: translateY(0); } }

.nav-inner { width: 100%; margin: 0; padding: 0 1.5rem; height: 56px; display: flex; align-items: center; justify-content: space-between; }

.nav-brand { color: #fff; font-size: 0.85rem; font-weight: 600; text-decoration: none; letter-spacing: 0.04em; transition: opacity 0.3s; white-space: nowrap; }
.nav-brand:hover { opacity: 0.7; }

.nav-links { display: flex; gap: 0.2rem; margin-left: auto; flex-wrap: wrap; }

.nav-link {
  color: var(--text-faint);
  font-size: 0.75rem;
  font-weight: 400;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: color 0.25s, background 0.25s;
}

.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-link.active { color: #fff; background: var(--surface-strong); }
.nav-discord { color: rgba(108, 123, 255, 0.8); }
.nav-discord:hover { color: var(--accent); background: rgba(108, 123, 255, 0.1); }
.nav-dashboard { color: rgba(52, 211, 153, 0.8); }
.nav-dashboard:hover { color: var(--green); background: rgba(52, 211, 153, 0.1); }

/* === PAGES === */

.page-heading {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- home page --- */

.home-tagline {
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 300;
  text-align: center;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.home-cards { width: 100%; display: flex; flex-direction: column; gap: 0.7rem; }

.home-card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
  position: relative;
  overflow: hidden;
  border: none;
}

/* gradient border via pseudo-element */
.home-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.03) 50%, rgba(108,123,255,0.1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.3s;
}

.home-card:hover::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.22) 0%, rgba(108,123,255,0.15) 50%, rgba(180,122,255,0.12) 100%);
}

/* mouse-follow radial shine */
.home-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.home-card:hover::after { opacity: 1; }

.home-card:hover {
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(108, 123, 255, 0.06);
}

.home-card-title {
  display: block;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.home-card-desc {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.7;
  text-transform: none;
}

.page {
  display: none;
  width: 100%;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  padding-top: 56px;
  position: relative;
  z-index: 2;
}

.page.active { display: flex; }

/* --- container --- */

.container {
  width: 100%;
  max-width: 440px;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  animation: fadeUp 0.7s var(--ease);
}

.dash-container { max-width: 500px; }

@keyframes fadeUp { 0% { opacity: 0; transform: translateY(24px); } 100% { opacity: 1; transform: translateY(0); } }

/* --- syncsaken credit --- */

.syncsaken {
  position: fixed;
  top: 66px; right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.syncsaken.visible { opacity: 1; }
.syncsaken span { color: rgba(255, 255, 255, 0.22); font-size: 0.7rem; font-weight: 300; letter-spacing: 0.02em; transition: color 0.3s; }
.syncsaken:hover span { color: rgba(255, 255, 255, 0.5); }
.syncsaken-logo { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; opacity: 0.5; transition: transform 0.3s, opacity 0.3s; }
.syncsaken:hover .syncsaken-logo { transform: scale(1.1); opacity: 1; }

/* --- logo --- */

.logo {
  opacity: 1;
  filter: drop-shadow(0 0 30px rgba(108, 123, 255, 0.12));
  animation: logoPulse 6s ease-in-out infinite;
  transition: transform 0.5s var(--ease), filter 0.5s;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 260px; height: 200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(108, 123, 255, 0.06) 0%, rgba(180, 122, 255, 0.03) 40%, transparent 70%);
  pointer-events: none;
  animation: ambientGlow 6s ease-in-out infinite;
}

@keyframes ambientGlow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
}

.logo:hover { transform: scale(1.06) rotate(-1deg); filter: drop-shadow(0 0 40px rgba(108, 123, 255, 0.25)); }

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(108, 123, 255, 0.1)); }
  50% { filter: drop-shadow(0 0 40px rgba(108, 123, 255, 0.2)); }
}

h1 { font-size: 1.5rem; font-weight: 300; color: #fff; letter-spacing: 0.06em; }
h2 { font-size: 0.95rem; font-weight: 300; color: var(--text-dim); letter-spacing: 0.04em; }

/* --- yippee toast --- */

.yippee {
  position: fixed;
  top: 68px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(240, 240, 255, 0.97));
  backdrop-filter: blur(16px);
  color: #000;
  padding: 0.6rem 2.5rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 0 60px rgba(108, 123, 255, 0.25), 0 0 120px rgba(180, 122, 255, 0.1), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.yippee-in { animation: yippeeIn 0.4s var(--ease) forwards; }
.yippee-out { animation: yippeeOut 0.5s ease-in forwards; }

@keyframes yippeeIn {
  0% { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(0.85); }
  50% { transform: translateX(-50%) translateY(3px) scale(1.03); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes yippeeOut {
  0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(0.9); }
}

/* --- already in --- */

.already-in {
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 400;
  text-align: center;
  padding: 0.9rem;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.15);
  border-radius: var(--radius);
  width: 100%;
  backdrop-filter: blur(var(--blur));
  animation: slideIn 0.3s var(--ease);
}

@keyframes slideIn { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }

/* --- countdown --- */

.countdown {
  font-size: 2.2rem;
  font-weight: 300;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  text-shadow: 0 0 40px rgba(108, 123, 255, 0.3);
  animation: countdownPulse 2s ease-in-out infinite;
}

@keyframes countdownPulse {
  0%, 100% { text-shadow: 0 0 25px rgba(108, 123, 255, 0.2); opacity: 0.9; }
  50% { text-shadow: 0 0 60px rgba(108, 123, 255, 0.45); opacity: 1; }
}

/* --- giveaway info --- */

.giveaway-info { text-align: center; animation: slideIn 0.3s var(--ease); }
.giveaway-title { color: #fff; font-size: 1.15rem; font-weight: 500; margin-bottom: 0.3rem; letter-spacing: 0.02em; }
.entry-count { color: var(--text-faint); font-size: 0.78rem; font-weight: 300; }

/* --- public winner --- */

.public-winner {
  text-align: center;
  background: rgba(52, 211, 153, 0.05);
  border: 1px solid rgba(52, 211, 153, 0.15);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  animation: winnerReveal 0.6s var(--ease);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(var(--blur));
}

.public-winner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(52, 211, 153, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.public-winner-label { color: rgba(52, 211, 153, 0.8); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; margin-bottom: 0.6rem; position: relative; }

.public-winner-name {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 300;
  text-transform: none;
  text-shadow: 0 0 40px rgba(52, 211, 153, 0.3);
  position: relative;
  animation: winnerGlow 3s ease-in-out infinite;
  letter-spacing: 0.02em;
}

@keyframes winnerGlow {
  0%, 100% { text-shadow: 0 0 25px rgba(52, 211, 153, 0.2); }
  50% { text-shadow: 0 0 60px rgba(52, 211, 153, 0.5); }
}

/* === INPUTS & BUTTONS === */

.input-section { width: 100%; display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }

input[type="text"],
input[type="password"],
input[type="number"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 400;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.4s var(--ease), background 0.3s;
  font-family: inherit;
  text-transform: none;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  letter-spacing: 0.01em;
}

input:focus {
  border-color: rgba(108, 123, 255, 0.35);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(108, 123, 255, 0.08), 0 0 30px rgba(108, 123, 255, 0.06);
}

input::placeholder { color: var(--text-faint); font-weight: 300; transition: color 0.3s; }
input:focus::placeholder { color: var(--text-dim); }
input:disabled { opacity: 0.3; cursor: not-allowed; }

button {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 0.8rem 1.6rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  font-family: inherit;
  text-transform: lowercase;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(var(--blur));
  letter-spacing: 0.02em;
}

/* radial glow follow */
button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

button:hover::after { opacity: 1; }
button:hover { background: var(--surface-hover); border-color: rgba(255, 255, 255, 0.15); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35); }
button:active { transform: translateY(0); box-shadow: none; }
button:disabled { opacity: 0.25; cursor: not-allowed; transform: none; }

#enter-btn {
  width: 100%;
  background: linear-gradient(135deg, #fff, #eef0ff);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #0a0a0a;
  font-weight: 600;
  letter-spacing: 0.05em;
}

#enter-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #fff, #e8ebff);
  box-shadow: 0 0 60px rgba(108, 123, 255, 0.2), 0 0 120px rgba(255, 255, 255, 0.08), 0 14px 36px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

#enter-btn:active:not(:disabled) { transform: translateY(0); box-shadow: 0 0 30px rgba(108, 123, 255, 0.12); }

.entry-msg, .owner-msg {
  font-size: 0.75rem; font-weight: 300; color: var(--text-faint); text-align: center; min-height: 1.2em; transition: color 0.2s;
}

.entry-msg.ok { color: var(--green); }
.entry-msg.err { color: var(--red); }
.owner-msg.ok { color: var(--green); }
.owner-msg.err { color: var(--red); }

/* --- status messages --- */
.status-msg { color: var(--text-dim); font-size: 0.82rem; font-weight: 300; text-align: center; animation: slideIn 0.3s var(--ease); }

/* === DASHBOARD === */

.dash-role { color: var(--text-faint); font-size: 0.75rem; font-weight: 300; letter-spacing: 0.04em; }

.dash-tabs {
  display: flex; gap: 0.25rem; width: 100%;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 0.3rem;
  backdrop-filter: blur(var(--blur));
}

.dash-tab { flex: 1; background: transparent; border: none; border-radius: var(--radius-sm); padding: 0.6rem; color: var(--text-faint); font-size: 0.78rem; cursor: pointer; transition: all 0.25s; backdrop-filter: none; }
.dash-tab:hover { color: rgba(255, 255, 255, 0.7); background: var(--surface); transform: none; }
.dash-tab.active { color: #fff; background: var(--surface-strong); font-weight: 600; }

.dash-panel { display: none; width: 100%; flex-direction: column; gap: 0.75rem; }
.dash-panel.active { display: flex; animation: fadeUp 0.3s var(--ease); }

.dashboard-setup { display: flex; flex-direction: column; gap: 0.65rem; }

.time-row { display: flex; align-items: center; gap: 0.5rem; }
.time-row label { color: var(--text-faint); font-size: 0.75rem; font-weight: 300; white-space: nowrap; }
.time-row input { flex: 1; }

#create-btn {
  width: 100%;
  background: linear-gradient(135deg, #fff, #eef0ff);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #0a0a0a;
  font-weight: 600;
  margin-top: 0.3rem;
}

#create-btn:hover { background: linear-gradient(135deg, #fff, #e8ebff); box-shadow: 0 0 50px rgba(108, 123, 255, 0.18), 0 14px 36px rgba(0, 0, 0, 0.4); }

/* live dashboard */

.dashboard-live { display: flex; flex-direction: column; gap: 0.75rem; }
.live-stats { display: flex; gap: 0.75rem; }

.stat {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
  backdrop-filter: blur(var(--blur));
}

.stat:hover { border-color: rgba(255, 255, 255, 0.15); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); transform: translateY(-2px); }
.stat-label { display: block; color: var(--text-faint); font-size: 0.65rem; font-weight: 500; letter-spacing: 0.08em; margin-bottom: 0.4rem; }
.stat-value { display: block; color: #fff; font-size: 1.3rem; font-weight: 300; font-variant-numeric: tabular-nums; }

.owner-actions { display: flex; gap: 0.5rem; }
.owner-actions button { flex: 1; font-size: 0.75rem; }

#draw-btn { background: linear-gradient(135deg, #fff, #eef0ff); border-color: rgba(255,255,255,0.3); color: #0a0a0a; font-weight: 600; }
#draw-btn:hover { background: linear-gradient(135deg, #fff, #e8ebff); box-shadow: 0 0 40px rgba(108,123,255,0.18); }
#reset-btn { border-color: rgba(248,113,113,0.2); color: var(--red); }
#reset-btn:hover { background: rgba(248,113,113,0.06); border-color: rgba(248,113,113,0.35); }

/* winner result */

.winner-result {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  display: flex; flex-direction: column; gap: 0.5rem; align-items: center;
  animation: winnerReveal 0.5s var(--ease);
  backdrop-filter: blur(var(--blur));
}

@keyframes winnerReveal { 0% { opacity: 0; transform: scale(0.95); } 60% { transform: scale(1.01); } 100% { opacity: 1; transform: scale(1); } }

.winner-label { color: var(--text-faint); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; }
.winner-name { color: #fff; font-size: 1.3rem; font-weight: 300; text-transform: none; text-shadow: 0 0 25px rgba(108, 123, 255, 0.2); }
.reset-after-btn { margin-top: 0.5rem; font-size: 0.75rem; }

.entries-list { font-size: 0.72rem; font-weight: 300; color: var(--text-faint); max-height: 100px; overflow-y: auto; text-transform: none; }

/* === MOD MANAGEMENT === */

.mod-add-row { display: flex; gap: 0.5rem; }
.mod-add-row input { flex: 1; }
.mod-add-row button { white-space: nowrap; }
.mod-list { display: flex; flex-direction: column; gap: 0.4rem; }

.mod-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: border-color 0.3s, transform 0.25s var(--ease);
  backdrop-filter: blur(var(--blur));
}

.mod-item:hover { border-color: rgba(255, 255, 255, 0.15); transform: translateY(-1px); }
.mod-info { display: flex; flex-direction: column; gap: 0.15rem; }
.mod-name { color: #fff; font-size: 0.82rem; font-weight: 400; text-transform: none; }
.mod-status { font-size: 0.65rem; font-weight: 500; }
.mod-status.linked { color: var(--green); }
.mod-status.pending { color: var(--gold); }
.mod-code-display { font-size: 0.78rem; color: #fff; font-family: 'Consolas', 'SF Mono', monospace; text-transform: none; user-select: all; }
.mod-section-title { color: var(--text-dim); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; margin-top: 0.6rem; }

.mod-remove { background: transparent; border: 1px solid rgba(248,113,113,0.2); color: var(--red); font-size: 0.68rem; padding: 0.35rem 0.7rem; border-radius: 8px; backdrop-filter: none; }
.mod-remove:hover { background: rgba(248,113,113,0.06); border-color: rgba(248,113,113,0.35); }

/* qwerty role */
.qwerty-role-item {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(251, 191, 36, 0.04);
  border: 1px solid rgba(251, 191, 36, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.qwerty-role-name { color: var(--gold); font-size: 0.82rem; font-weight: 500; text-transform: none; }
.qwerty-role-status { font-size: 0.65rem; color: var(--gold); font-weight: 500; }

/* === INFO CARD (keys) === */

.info-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.7rem;
  display: flex; flex-direction: column; gap: 1rem;
  line-height: 1.8;
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  animation: slideIn 0.4s var(--ease);
  transition: border-color 0.3s, box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(var(--blur));
  border: none;
}

.info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03) 50%, rgba(108,123,255,0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.info-card:hover { box-shadow: 0 14px 48px rgba(0, 0, 0, 0.35); transform: translateY(-2px); }

.highlight { color: #fff; font-weight: 500; }
.dim { color: var(--text-faint); }

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.35s var(--ease);
  text-transform: lowercase;
  border: 1px solid rgba(108, 123, 255, 0.25);
}

.cta-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(108, 123, 255, 0.3), 0 0 100px rgba(180, 122, 255, 0.1), 0 14px 36px rgba(0, 0, 0, 0.4);
}

.cta-row { display: flex; gap: 0.65rem; width: 100%; }
.cta-row .cta-btn { flex: 1; text-align: center; }

.cta-btn-secondary { background: var(--surface); border-color: var(--surface-border); color: rgba(255, 255, 255, 0.8); }
.cta-btn-secondary:hover { background: var(--surface-hover); border-color: rgba(255,255,255,0.15); box-shadow: 0 14px 36px rgba(0,0,0,0.4); filter: none; }

/* === FAQ === */

.faq-item {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  animation: slideIn 0.4s var(--ease);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(var(--blur));
  border: none;
}

.faq-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03) 60%, rgba(108,123,255,0.07));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.faq-item:hover { transform: translateY(-3px); box-shadow: 0 14px 48px rgba(0, 0, 0, 0.4); }

.faq-q { color: #fff; font-size: 0.85rem; font-weight: 500; text-transform: none; }
.faq-a { color: var(--text-dim); font-size: 0.82rem; font-weight: 300; line-height: 1.7; text-transform: none; }

.faq-a code {
  background: var(--surface-strong);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  font-size: 0.76rem;
  color: #fff;
  font-family: 'Consolas', 'SF Mono', monospace;
}

.inline-link { color: var(--accent); text-decoration: none; transition: color 0.2s; }
.inline-link:hover { color: var(--accent2); text-decoration: underline; }

/* === QWERTY SHRINE === */

.qwerty-shrine { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

.qwerty-pfp {
  width: 130px; height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 60px rgba(108, 123, 255, 0.12), 0 0 120px rgba(180, 122, 255, 0.06);
  animation: qwertyGlow 5s ease-in-out infinite;
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}

.qwerty-pfp:hover { transform: scale(1.08); box-shadow: 0 0 80px rgba(108, 123, 255, 0.22), 0 0 140px rgba(180, 122, 255, 0.1); }

@keyframes qwertyGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(108, 123, 255, 0.08), 0 0 80px rgba(180, 122, 255, 0.04); }
  50% { box-shadow: 0 0 60px rgba(108, 123, 255, 0.18), 0 0 120px rgba(180, 122, 255, 0.09); }
}

.qwerty-text { color: var(--text-dim); font-size: 0.88rem; font-weight: 300; line-height: 1.7; }

/* --- made by --- */

.made-by { color: rgba(255, 255, 255, 0.15); font-size: 0.68rem; font-weight: 300; text-align: center; margin-top: 0.5rem; letter-spacing: 0.03em; transition: color 0.3s; }
.made-by:hover { color: rgba(255, 255, 255, 0.4); }

/* --- utility --- */

.hidden { display: none !important; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 2px; }

/* === CUSTOM CURSOR === */

.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 18px; height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s, background 0.25s, opacity 0.25s;
  mix-blend-mode: difference;
}

.cursor.cursor-hover {
  width: 48px; height: 48px;
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.07);
}

.cursor.cursor-click {
  width: 12px; height: 12px;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.25);
}

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 5px; height: 5px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
}

.cursor-trail {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  background: rgba(108, 123, 255, 0.5);
  transform: translate(-50%, -50%) scale(1);
  animation: trailFade 0.6s ease-out forwards;
}

@keyframes trailFade {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.1); }
}

/* === SMOOTH PAGE TRANSITIONS === */

.page .container {
  animation: pageReveal 0.8s var(--ease);
}

@keyframes pageReveal {
  0% { opacity: 0; transform: translateY(30px) scale(0.98); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* === FOCUS RING === */

input:focus-visible, button:focus-visible {
  outline: 2px solid rgba(108, 123, 255, 0.45);
  outline-offset: 2px;
}

/* === SELECTION === */

::selection {
  background: rgba(108, 123, 255, 0.35);
  color: #fff;
}

/* --- profile --- */

.profile-card {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.7rem;
  display: flex; flex-direction: column; gap: 1.2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(var(--blur));
  animation: slideIn 0.4s var(--ease);
}

.profile-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03) 50%, rgba(108,123,255,0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.profile-username { color: #fff; font-size: 1.1rem; font-weight: 500; text-transform: none; text-align: center; }

.profile-stats-grid { display: flex; gap: 0.75rem; }
.profile-stats-grid .stat { flex: 1; }

.referral-section { display: flex; flex-direction: column; gap: 0.5rem; }
.referral-label { color: var(--text-faint); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; }

.referral-link-row { display: flex; gap: 0.5rem; }
.referral-link-input {
  flex: 1;
  font-size: 0.72rem;
  font-family: 'Consolas', 'SF Mono', monospace;
  text-transform: none;
  user-select: all;
}

.referral-hint { color: var(--text-faint); font-size: 0.68rem; font-weight: 300; text-transform: none; }

/* --- mobile --- */

@media (max-width: 500px) {
  * { cursor: auto; }
  .cursor, .cursor-dot, .cursor-trail { display: none !important; }
  .nav-inner { padding: 0 0.75rem; }
  .nav-brand { font-size: 0.72rem; }
  .nav-link { font-size: 0.68rem; padding: 0.3rem 0.5rem; }
  .syncsaken { top: 60px; right: 12px; }
  .loader-logo { width: 56px; height: 56px; }
  .container { padding: 1.5rem 1rem; }
  .cta-row { flex-direction: column; }
}
