/* ============================================================
   RyanSFN — "Black & Gold" theme (matches the SFN logo)
   Warm near-black + metallic gold. Space Grotesk display.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --bg: #080604;
  --bg2: #0f0c07;
  --card: rgba(25, 20, 12, 0.72);
  --card-solid: #16110a;
  --border: #2b2416;
  --border-glow: #4a3d20;
  --text: #f2eee3;
  --muted: #a89f8c;
  --accent: #d9b24a;
  --volt: #f1d582;
  --gold: #e8c15c;
  --red: #f87171;
  --grad: linear-gradient(100deg, #9a7524 0%, #eccb6a 45%, #d4af37 100%);
  --radius: 16px;
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient background: faint grid + glow orbs */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}
.orb {
  position: fixed; border-radius: 50%; filter: blur(90px); z-index: -1;
  opacity: 0.35; pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb-1 { width: 420px; height: 420px; background: #5c460f; top: -140px; left: -100px; }
.orb-2 { width: 360px; height: 360px; background: #4d3a10; top: 30%; right: -140px; animation-delay: -6s; }
.orb-3 { width: 300px; height: 300px; background: #3d2f0c; bottom: -100px; left: 30%; animation-delay: -12s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.15); }
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px 90px; }

::selection { background: rgba(212, 175, 55, 0.35); }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 6, 4, 0.75);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; letter-spacing: 0.5px;
  text-decoration: none; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #1a1204; letter-spacing: 0;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a.nav-link {
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600;
  padding: 8px 14px; border-radius: 10px; transition: color .15s, background .15s;
}
.nav-links a.nav-link:hover { color: var(--text); background: rgba(212, 175, 55, 0.08); }
.header-right { display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px; font-size: 14px;
}
.user-chip img { width: 24px; height: 24px; border-radius: 50%; }

/* ============ Buttons ============ */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: none; border-radius: 12px; cursor: pointer;
  font-family: var(--font-body); font-size: 15px; font-weight: 700; padding: 13px 24px;
  color: #1a1204; background: var(--grad);
  text-decoration: none;
  transition: transform .18s cubic-bezier(.2,.9,.3,1.4), box-shadow .18s;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 32px rgba(212, 175, 55, 0.45); }
.btn:active { transform: translateY(0) scale(0.99); }
/* shine sweep */
.btn::after {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); transition: left .5s ease;
}
.btn:hover::after { left: 130%; }
.btn.secondary {
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  box-shadow: none;
}
.btn.secondary:hover { border-color: var(--border-glow); background: var(--card-solid); box-shadow: 0 6px 24px rgba(0,0,0,0.4); }
.btn.ghost {
  background: transparent; border: 1px solid var(--border-glow); color: var(--accent);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(212, 175, 55, 0.08); box-shadow: 0 0 24px rgba(212, 175, 55, 0.18); }
.btn.danger { background: transparent; border: 1px solid rgba(248, 113, 113, 0.35); color: var(--red); box-shadow: none; }
.btn.danger:hover { background: rgba(248, 113, 113, 0.08); box-shadow: 0 0 20px rgba(248, 113, 113, 0.15); }
.btn.discord { background: #5865F2; color: #fff; box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35); }
.btn.discord:hover { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.55); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.small { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn.big { padding: 16px 32px; font-size: 16.5px; border-radius: 14px; }

/* ============ Hero ============ */
.hero { text-align: center; padding: 90px 20px 60px; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-glow); border-radius: 999px;
  padding: 7px 16px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--accent); text-transform: uppercase;
  background: rgba(212, 175, 55, 0.06);
  margin-bottom: 26px;
  animation: pulse-border 3s ease-in-out infinite;
}
@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.25); }
  50% { box-shadow: 0 0 22px 2px rgba(212, 175, 55, 0.18); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04; font-weight: 700; letter-spacing: -1px;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 28px rgba(212, 175, 55, 0.35));
}
.hero .lede {
  color: var(--muted); font-size: 18px; line-height: 1.6;
  max-width: 620px; margin: 0 auto 34px;
}
.hero .lede b { color: var(--text); }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

/* Live stats */
.stats-row {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.stat-pill {
  min-width: 170px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 26px; text-align: center;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.stat-pill:hover { transform: translateY(-4px); border-color: var(--border-glow); box-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 0 24px rgba(212,175,55,0.08); }
.stat-pill .num {
  font-family: var(--font-display); font-size: 34px; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-pill .lbl { color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 4px; letter-spacing: 0.4px; }

/* ============ Ticker ============ */
.ticker {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(212, 175, 55, 0.04);
  overflow: hidden; white-space: nowrap; padding: 13px 0; margin: 10px 0 70px;
}
.ticker-track { display: inline-block; animation: ticker 22s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent);
  margin: 0 26px;
}
.ticker-track span.alt { color: var(--gold); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section { padding: 30px 0 70px; }
.section-title {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  text-align: center; margin-bottom: 10px; letter-spacing: -0.5px;
}
.section-sub { color: var(--muted); text-align: center; font-size: 16px; max-width: 560px; margin: 0 auto 44px; line-height: 1.6; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============ Deal card (3D tilt + spotlight) ============ */
.deal-wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; perspective: 1100px; }
.deal-card {
  width: 100%; max-width: 460px; flex: 1 1 380px;
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: 22px;
  padding: 34px; position: relative; overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color .2s, box-shadow .2s;
  will-change: transform;
}
.deal-card:hover { border-color: var(--border-glow); box-shadow: 0 24px 70px rgba(0,0,0,0.55), 0 0 50px rgba(212, 175, 55, 0.12); }
/* cursor spotlight */
.glow-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 175, 55, 0.14), transparent 65%);
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.glow-card:hover::before { opacity: 1; }
.deal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; transform: translateZ(30px); }
.deal-logo {
  width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #3b4956, #0b0f14 70%);
  border: 1px solid #2a3540; flex-shrink: 0;
  box-shadow: inset -4px -6px 14px rgba(0,0,0,0.7), 0 0 20px rgba(212,175,55,0.12);
}
.deal-logo { overflow: hidden; display: flex; align-items: center; justify-content: center; }
.deal-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.deal-logo.ts {
  background: #fff;
  border-color: #3d5fd0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4), 0 0 20px rgba(79, 125, 249, 0.25);
}
.deal-logo.ts img { object-fit: contain; padding: 9px; border-radius: 0; }
.deal-name { font-family: var(--font-display); font-size: 23px; font-weight: 700; }
.deal-tag { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.deal-highlight {
  font-family: var(--font-display); font-size: 42px; font-weight: 700; text-align: center;
  background: linear-gradient(100deg, var(--gold), #fde68a);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin: 8px 0 4px; transform: translateZ(40px);
  filter: drop-shadow(0 0 24px rgba(251, 191, 36, 0.25));
}
.deal-highlight-sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 24px; }
.code-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(8, 6, 4, 0.65); border: 1.5px dashed var(--border-glow);
  border-radius: 13px; padding: 14px 18px; margin-bottom: 22px;
  cursor: pointer; transition: border-color .2s, box-shadow .2s; transform: translateZ(25px);
}
.code-chip:hover { border-color: var(--accent); box-shadow: 0 0 24px rgba(212, 175, 55, 0.2); }
.code-chip .code-label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.code-chip .code-value {
  font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: 4px;
  color: var(--volt);
}
.code-chip .copy-hint { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.deal-perks { list-style: none; margin-bottom: 26px; transform: translateZ(20px); }
.deal-perks { flex: 1; }
.deal-perks li {
  display: flex; align-items: flex-start; gap: 10px;
  color: #d6cfc0; font-size: 14.5px; line-height: 1.5; margin-bottom: 10px;
}
.deal-perks .tick {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; margin-top: 1px;
  background: rgba(212, 175, 55, 0.12); border: 1px solid var(--border-glow);
  color: var(--accent); font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.deal-card .btn { width: 100%; transform: translateZ(30px); }

/* ============ Steps ============ */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.step-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; position: relative; overflow: hidden;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 18px 44px rgba(0,0,0,0.5), 0 0 30px rgba(212, 175, 55, 0.1);
}
.step-num {
  font-family: var(--font-display); font-size: 52px; font-weight: 700; line-height: 1;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.9), rgba(212, 175, 55, 0.06));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 14px; transition: filter .22s;
}
.step-card:hover .step-num { filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.5)); }
.step-card h3 { font-family: var(--font-display); font-size: 17.5px; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.step-card p b { color: #d6cfc0; }

/* ============ CTA banner ============ */
.cta-banner {
  text-align: center; border-radius: 24px; padding: 60px 30px;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(212, 175, 55, 0.14), transparent),
    var(--card);
  border: 1px solid var(--border-glow);
  position: relative; overflow: hidden;
}
.cta-banner h2 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; }
.cta-banner p { color: var(--muted); margin-bottom: 28px; font-size: 16px; }

footer {
  border-top: 1px solid var(--border); padding: 30px 24px 40px;
  text-align: center; color: var(--muted); font-size: 13px; line-height: 1.8;
}
footer .logo { justify-content: center; margin-bottom: 8px; font-size: 18px; }

/* ============ Cards (giveaway/admin shared) ============ */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; margin-bottom: 20px;
  backdrop-filter: blur(8px);
  transition: border-color .2s;
}
.card:hover { border-color: var(--border-glow); }
.card h2 { font-family: var(--font-display); font-size: 19px; margin-bottom: 4px; }
.card .sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; line-height: 1.6; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.card-head h2 { margin-bottom: 0; }

.page-head { text-align: center; padding: 54px 20px 34px; }
.page-head h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 46px); margin-bottom: 12px; letter-spacing: -0.5px; }
.page-head h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-head p { color: var(--muted); font-size: 16px; max-width: 540px; margin: 0 auto; line-height: 1.6; }
.page-head .code-inline {
  display: inline-block; margin-top: 16px;
  background: var(--card); border: 1.5px dashed var(--border-glow);
  padding: 9px 20px; border-radius: 12px; font-size: 15px;
}
.page-head .code-inline b { color: var(--volt); letter-spacing: 2px; }

/* Entry list */
.entry-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(8, 6, 4, 0.5); border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 16px; margin-bottom: 8px;
  font-size: 14px; gap: 12px; flex-wrap: wrap;
  transition: border-color .18s, transform .18s;
}
.entry-row:hover { border-color: var(--border-glow); transform: translateX(3px); }
.entry-row .size, .size {
  background: rgba(212, 175, 55, 0.12); color: var(--accent);
  border-radius: 7px; padding: 3px 11px; font-weight: 700; font-size: 13px;
}
.entry-row .order { color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 26px 0; font-size: 14px; }

/* Connected account card */
.connected-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.connected-app { display: flex; align-items: center; gap: 14px; }
.connected-icon {
  width: 52px; height: 52px; border-radius: 14px; overflow: hidden; flex-shrink: 0;
  background: var(--bg2); border: 1px solid var(--border-glow);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--accent);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.12);
}
.connected-icon img { width: 100%; height: 100%; object-fit: cover; }
.connected-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.connected-date { color: var(--muted); font-size: 14px; margin-top: 2px; }
.connected-badge {
  background: rgba(212, 175, 55, 0.1); border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--accent); font-size: 13px; font-weight: 700;
  border-radius: 999px; padding: 5px 14px;
  animation: pulse-border 3s ease-in-out infinite;
}
.perms-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.perm-row { display: flex; align-items: center; gap: 10px; color: #d6cfc0; font-size: 14px; margin-bottom: 8px; }
.perm-check {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
  border: 1.5px solid var(--accent); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.perm-value { color: var(--muted); }

/* ============ Modal ============ */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(4, 3, 2, 0.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 60px 16px; z-index: 50; overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg2); border: 1px solid var(--border-glow);
  border-radius: 20px; width: 100%; max-width: 620px;
  overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,0.7), 0 0 60px rgba(212, 175, 55, 0.08);
  animation: modal-in .28s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(22px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
}
.modal-header .title { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.modal-header .subtitle { color: var(--muted); font-size: 13px; }
.modal-header .close { background: none; border: none; color: var(--muted); font-size: 24px; cursor: pointer; transition: color .15s, transform .15s; }
.modal-header .close:hover { color: var(--text); transform: rotate(90deg); }
.modal-body { padding: 24px; }
.modal-note { font-size: 15px; line-height: 1.55; color: #d6cfc0; margin-bottom: 18px; }
.modal-note b { color: #fff; }

/* Step indicator */
.steps { display: flex; align-items: center; margin-bottom: 20px; }
.step-dot {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  background: rgba(8, 6, 4, 0.6); border: 1px solid var(--border); color: var(--muted);
  transition: all .25s;
}
.step-dot.active {
  background: var(--grad); border-color: transparent; color: #1a1204;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.5);
}
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 8px; }

/* Email preview (mimics the real Lucid "Order Processing" email) */
.email-preview {
  background: #fff; color: #222; border-radius: 10px; padding: 14px 18px 0;
  font-size: 13px; margin-bottom: 20px; font-family: -apple-system, Helvetica, sans-serif;
  overflow: hidden;
}
.email-preview .ep-from { color: #333; margin-bottom: 10px; font-size: 12.5px; }
.email-preview .ep-from b { color: #111; }
.email-preview .ep-bar { height: 5px; background: #555; border-radius: 2px; margin-bottom: 14px; }
.email-preview .ep-title { text-align: center; font-size: 21px; font-weight: 800; color: #111; margin-bottom: 12px; }
.email-preview .ep-body { color: #333; line-height: 1.5; margin-bottom: 8px; }
.email-preview .ep-subtitle { text-align: center; font-size: 16px; font-weight: 800; color: #111; margin: 14px 0 10px; }
.email-preview .ep-details {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.email-preview .ep-order {
  border: 2px solid #c92a2a; display: inline-block; padding: 3px 9px;
  font-style: italic; font-family: Georgia, serif; color: #666;
}
.email-preview .ep-date { font-style: italic; font-family: Georgia, serif; color: #666; }
.email-preview .ep-footer {
  background: #000; color: #ccc; text-align: center; font-size: 11px;
  padding: 10px; margin: 0 -18px;
}

/* Form */
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--muted); text-transform: uppercase; margin-bottom: 8px;
}
.field select, .field input {
  width: 100%; background: rgba(8, 6, 4, 0.6); border: 1px solid var(--border);
  color: var(--text); border-radius: 12px; padding: 13px 14px; font-size: 15px;
  outline: none; font-family: var(--font-body);
  transition: border-color .18s, box-shadow .18s;
}
.field select:focus, .field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12); }
.form-error { color: var(--red); font-size: 14px; margin-bottom: 12px; display: none; }
.form-error.show { display: block; }
.modal-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }

/* ============ Admin ============ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: transform .2s, border-color .2s;
}
.stat:hover { transform: translateY(-3px); border-color: var(--border-glow); }
.stat .num {
  font-family: var(--font-display); font-size: 32px; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .lbl { color: var(--muted); font-size: 13px; margin-top: 4px; }

.search-input {
  width: 100%; max-width: 340px; margin-bottom: 14px;
  background: rgba(8, 6, 4, 0.6); border: 1px solid var(--border);
  color: var(--text); border-radius: 11px; padding: 10px 14px; font-size: 14px;
  font-family: var(--font-body); outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.8px; padding: 10px 12px; border-bottom: 1px solid var(--border);
}
td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr { transition: background .15s; }
tbody tr:hover { background: rgba(212, 175, 55, 0.04); }
tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell img, .avatar-fallback { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.avatar-fallback {
  background: var(--grad); display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #1a1204;
}
.user-cell .uname { color: var(--muted); font-size: 12px; }
.mono { font-family: ui-monospace, Menlo, monospace; }

/* Winner picker */
.count-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.count-btn {
  background: rgba(8, 6, 4, 0.6); border: 1px solid var(--border); color: var(--text);
  border-radius: 12px; padding: 14px 0; font-family: var(--font-display);
  font-size: 18px; font-weight: 700; cursor: pointer;
  transition: all .18s;
}
.count-btn:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(212, 175, 55, 0.15); }
.count-btn.selected { background: var(--grad); border-color: transparent; color: #1a1204; box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }

.winner-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(8, 6, 4, 0.5); border: 1px solid var(--border-glow);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 8px;
  animation: winner-in .4s cubic-bezier(.2,.9,.3,1.3) backwards;
}
.winner-row:nth-child(2) { animation-delay: .08s; }
.winner-row:nth-child(3) { animation-delay: .16s; }
.winner-row:nth-child(4) { animation-delay: .24s; }
.winner-row:nth-child(5) { animation-delay: .32s; }
@keyframes winner-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.winner-row .medal { font-size: 20px; }
.winner-row .info { flex: 1; }
.winner-row .info .name { font-weight: 700; }
.winner-row .info .detail { color: var(--muted); font-size: 13px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--bg2); border: 1px solid var(--border-glow); color: var(--text);
  border-radius: 12px; padding: 13px 22px; font-size: 14px; font-weight: 600; z-index: 100;
  display: none; box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 24px rgba(212, 175, 55, 0.12);
}
.toast.show { display: block; animation: toast-in .3s cubic-bezier(.2,.9,.3,1.3) forwards; }
@keyframes toast-in { to { transform: translateX(-50%) translateY(0); } }

.dev-banner {
  background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--gold); font-size: 13px; border-radius: 12px;
  padding: 10px 14px; margin: 18px 0; text-align: center;
}

@media (max-width: 640px) {
  .hero { padding-top: 60px; }
  .nav-links a.nav-link { display: none; }
  .count-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-pill { min-width: 130px; padding: 14px 18px; }
  .stat-pill .num { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
