/* ═══════════════════════════════════════════════════════════════════════════
   VoteNation — Main Stylesheet
   Dark luxury theme: near-black backgrounds, refined gold (#D4AF37), cream text
   Fonts: Playfair Display (headings) + Outfit (body)
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;0,800;1,400;1,700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── Custom properties ─────────────────────────────────────────────────────── */
:root {
  --gold:        #D4AF37;
  --gold-light:  #E8D4A8;
  --gold-dark:   #B8860B;
  --gold-glow:   rgba(212,175,55,0.15);
  --bg-0:        #050505;   /* deepest black */
  --bg-1:        #0a0a0a;   /* card background */
  --bg-2:        #111111;   /* input / surface */
  --bg-3:        #1a1a1a;   /* hover surface */
  --cream:       #F5F0E8;
  --text-primary: #F0EBE0;
  --text-muted:  #9A9080;
  --text-dim:    #5A5248;
  --border:      rgba(212,175,55,0.18);
  --border-strong: rgba(212,175,55,0.4);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --shadow-card: 0 4px 32px rgba(0,0,0,0.6), 0 1px 0 rgba(212,175,55,0.08);
  --shadow-glow: 0 0 40px rgba(212,175,55,0.12);
  --transition:  0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg-0);
  color: var(--text-primary);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--gold);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: 1.2rem; font-family: 'Outfit', sans-serif; font-weight: 600; color: var(--gold-light); }

.vn-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Layout ────────────────────────────────────────────────────────────────── */
.vn-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .vn-container { padding: 0 48px; } }

.vn-section { padding: 80px 0; }
.vn-section--lg { padding: 120px 0; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.vn-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(5,5,5,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.vn-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.vn-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.vn-logo img { height: 36px; width: auto; }
.vn-logo span { color: var(--cream); font-weight: 300; }

.vn-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.vn-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 50px;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.vn-nav a:hover, .vn-nav a.active {
  color: var(--gold);
  background: var(--gold-glow);
}

.vn-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vn-balance-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  cursor: pointer;
  transition: all var(--transition);
}
.vn-balance-pill:hover { border-color: var(--border-strong); background: var(--bg-3); }
.vn-balance-pill__icon { font-size: 14px; }

/* Hamburger */
.vn-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.vn-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--gold);
  transition: all var(--transition);
}
@media (max-width: 900px) {
  .vn-nav { display: none; }
  .vn-hamburger { display: flex; }
}

/* Mobile menu */
.vn-mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(5,5,5,0.98);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
}
.vn-mobile-menu.open { transform: translateX(0); }
.vn-mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--cream);
  transition: color var(--transition);
}
.vn-mobile-menu a:hover { color: var(--gold); }
.vn-mobile-menu__close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  color: var(--gold); font-size: 2rem;
  cursor: pointer;
}

/* Page offset for fixed header */
.vn-page { padding-top: 68px; min-height: 100vh; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.vn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 50px;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.vn-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.vn-btn--gold {
  background: var(--gold);
  color: #000;
}
.vn-btn--gold:hover:not(:disabled) {
  background: var(--gold-light);
  box-shadow: 0 0 24px rgba(212,175,55,0.35);
  transform: translateY(-1px);
}

.vn-btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-strong);
}
.vn-btn--outline:hover:not(:disabled) {
  background: var(--gold-glow);
  border-color: var(--gold);
}

.vn-btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.vn-btn--ghost:hover:not(:disabled) {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-2);
}

.vn-btn--sm { font-size: 0.8rem; padding: 8px 18px; }
.vn-btn--lg { font-size: 1rem; padding: 16px 40px; }

.vn-btn--loading::after {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: vn-spin 0.7s linear infinite;
}

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.vn-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}
.vn-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transform: translateY(-2px);
}

/* ── Candidate cards ────────────────────────────────────────────────────────── */
.vn-candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
@media (min-width: 768px) {
  .vn-candidates-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

.vn-candidate-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.vn-candidate-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,175,55,0.15);
  transform: translateY(-4px);
}

.vn-candidate-card__photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
  background: var(--bg-2);
}
.vn-candidate-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.vn-candidate-card:hover .vn-candidate-card__photo img {
  transform: scale(1.04);
}
.vn-candidate-card__number {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(0,0,0,0.75);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  backdrop-filter: blur(8px);
}

.vn-candidate-card__body {
  padding: 14px 16px;
}
.vn-candidate-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 6px;
  line-height: 1.3;
}
.vn-candidate-card__votes {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
}
.vn-candidate-card__votes span { color: var(--text-muted); font-weight: 400; }

.vn-candidate-card__actions {
  padding: 0 16px 14px;
  display: flex;
  gap: 8px;
}

/* ── Candidate modal ────────────────────────────────────────────────────────── */
.vn-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.vn-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

.vn-modal {
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.vn-modal-backdrop.open .vn-modal { transform: none; }

.vn-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
  font-size: 18px; z-index: 10;
  transition: all var(--transition);
}
.vn-modal__close:hover { color: var(--gold); border-color: var(--gold); }

.vn-modal__grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .vn-modal__grid { grid-template-columns: 300px 1fr; }
}

.vn-modal__photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}
.vn-modal__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.vn-modal__content { padding: 32px 28px; }
.vn-modal__number {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em; color: var(--gold);
  margin-bottom: 6px;
}
.vn-modal__name {
  font-size: 1.8rem; margin-bottom: 4px;
}
.vn-modal__vote-count {
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px;
}
.vn-modal__vote-count strong { color: var(--gold); font-size: 1.2rem; }
.vn-modal__bio { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }

.vn-vote-controls { display: flex; flex-direction: column; gap: 12px; }
.vn-vote-qty {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vn-vote-qty__btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.vn-vote-qty__btn:hover { background: var(--gold); color: #000; }
.vn-vote-qty__num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--cream);
  min-width: 40px;
  text-align: center;
}

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.vn-input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.vn-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}
.vn-input::placeholder { color: var(--text-dim); }

.vn-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.vn-field { display: flex; flex-direction: column; gap: 0; margin-bottom: 18px; }

.vn-otp-grid {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.vn-otp-digit {
  width: 52px; height: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--gold);
  outline: none;
  transition: border-color var(--transition);
}
.vn-otp-digit:focus { border-color: var(--gold); }

/* ── Auth card ─────────────────────────────────────────────────────────────── */
.vn-auth-page {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: radial-gradient(ellipse 60% 50% at 50% -10%, rgba(212,175,55,0.06) 0%, transparent 70%), var(--bg-0);
}
.vn-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.vn-auth-card__logo {
  text-align: center;
  margin-bottom: 28px;
}
.vn-auth-card__logo h1 {
  font-size: 1.6rem;
}

/* ── Vote pack selector ─────────────────────────────────────────────────────── */
.vn-packs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.vn-pack {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  background: var(--bg-2);
}
.vn-pack:hover { border-color: var(--border-strong); }
.vn-pack.selected {
  border-color: var(--gold);
  background: var(--gold-glow);
  box-shadow: 0 0 0 1px var(--gold);
}
.vn-pack__votes { font-size: 1.5rem; font-weight: 700; color: var(--gold); font-family: 'Playfair Display', serif; }
.vn-pack__label { font-size: 0.75rem; color: var(--text-muted); }
.vn-pack__price { font-size: 0.9rem; font-weight: 600; color: var(--cream); margin-top: 4px; }
.vn-pack__per   { font-size: 0.7rem; color: var(--text-dim); }

/* ── Pageant cards ─────────────────────────────────────────────────────────── */
.vn-pageants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.vn-pageant-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  cursor: pointer;
  display: block;
}
.vn-pageant-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.vn-pageant-card:hover img { transform: scale(1.06); }
.vn-pageant-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.vn-pageant-card__title {
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 4px;
}
.vn-pageant-card__meta {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.vn-hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% -5%, rgba(212,175,55,0.07) 0%, transparent 65%), var(--bg-0);
}
.vn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4AF37' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.vn-hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.vn-hero__eyebrow {
  margin-bottom: 20px;
}
.vn-hero h1 {
  margin-bottom: 20px;
  text-shadow: 0 0 80px rgba(212,175,55,0.15);
}
.vn-hero__sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 52ch;
}
.vn-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Decorative diagonal line */
.vn-hero::after {
  content: '';
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border: 1px solid rgba(212,175,55,0.06);
  border-radius: 50%;
  pointer-events: none;
}

/* ── Section divider ──────────────────────────────────────────────────────── */
.vn-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 16px 0;
}
.vn-divider--center { margin: 16px auto; }

/* ── Stats bar ────────────────────────────────────────────────────────────── */
.vn-stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.vn-stat {
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.vn-stat:nth-child(2n) { border-right: none; }
.vn-stat:nth-last-child(-n+2) { border-bottom: none; }
.vn-stat__val {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 5vw, 2rem);
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 4px;
}
.vn-stat__label { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.05em; }

@media (min-width: 600px) {
  .vn-stats-bar { grid-template-columns: repeat(4, 1fr); }
  .vn-stat { border-bottom: none; }
  .vn-stat:nth-child(2n) { border-right: 1px solid var(--border); }
  .vn-stat:last-child { border-right: none; }
}

/* ── Breadcrumb ────────────────────────────────────────────────────────────── */
.vn-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.vn-breadcrumb a { color: var(--text-muted); }
.vn-breadcrumb a:hover { color: var(--gold); }
.vn-breadcrumb__sep { color: var(--text-dim); }
.vn-breadcrumb__current { color: var(--gold); }

/* Back button */
.vn-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
  margin-bottom: 24px;
}
.vn-back-btn:hover { color: var(--gold); }
.vn-back-btn::before { content: '←'; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.vn-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  margin-top: 80px;
}
.vn-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .vn-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .vn-footer__grid { grid-template-columns: 1fr; }
}
.vn-footer__brand h3 { font-size: 1.2rem; margin-bottom: 8px; }
.vn-footer__brand p { font-size: 0.83rem; color: var(--text-dim); max-width: 30ch; }
.vn-footer__col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.vn-footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.vn-footer__col a { font-size: 0.85rem; color: var(--text-muted); }
.vn-footer__col a:hover { color: var(--gold); }
.vn-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Alert / Toast ─────────────────────────────────────────────────────────── */
.vn-alert {
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.vn-alert--error   { background: rgba(220,50,50,0.12); border: 1px solid rgba(220,50,50,0.3); color: #f87878; }
.vn-alert--success { background: rgba(45,180,100,0.12); border: 1px solid rgba(45,180,100,0.3); color: #6ee7a0; }
.vn-alert--info    { background: var(--gold-glow); border: 1px solid var(--border); color: var(--gold-light); }

.vn-toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
}
.vn-toast {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.85rem;
  box-shadow: var(--shadow-card);
  animation: vn-slide-up 0.3s ease;
  cursor: pointer;
}
.vn-toast--success { border-left: 3px solid #4ade80; }
.vn-toast--error   { border-left: 3px solid #f87171; }
.vn-toast--info    { border-left: 3px solid var(--gold); }

/* ── Loading skeleton ─────────────────────────────────────────────────────── */
.vn-skeleton {
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%);
  background-size: 200% 100%;
  animation: vn-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ── Vote count badge ─────────────────────────────────────────────────────── */
.vn-vote-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
}

/* ── Section header ────────────────────────────────────────────────────────── */
.vn-section-header { margin-bottom: 48px; }
.vn-section-header h2 { margin-bottom: 10px; }
.vn-section-header p { color: var(--text-muted); max-width: 55ch; }

/* ── Page header ────────────────────────────────────────────────────────────── */
.vn-page-header {
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}
.vn-page-header h1 { margin-bottom: 8px; }
.vn-page-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ── Table ─────────────────────────────────────────────────────────────────── */
.vn-table-wrap { overflow-x: auto; }
.vn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.vn-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.vn-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(212,175,55,0.05);
  color: var(--text-muted);
}
.vn-table tr:hover td { background: rgba(212,175,55,0.02); }

/* ── Animations ─────────────────────────────────────────────────────────────── */
@keyframes vn-spin    { to { transform: rotate(360deg); } }
@keyframes vn-shimmer { to { background-position: -200% 0; } }
@keyframes vn-slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes vn-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.vn-fade-in { animation: vn-fade-in 0.4s ease both; }

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.vn-text-gold   { color: var(--gold); }
.vn-text-muted  { color: var(--text-muted); }
.vn-text-center { text-align: center; }
.vn-mt-8  { margin-top: 8px; }
.vn-mt-16 { margin-top: 16px; }
.vn-mt-24 { margin-top: 24px; }
.vn-mb-8  { margin-bottom: 8px; }
.vn-mb-16 { margin-bottom: 16px; }
.vn-mb-24 { margin-bottom: 24px; }
.vn-flex  { display: flex; align-items: center; gap: 12px; }
.vn-hidden { display: none !important; }

/* ── Input accessibility fix ─────────────────────────────────────────────── */
.vn-auth-page { position: relative; z-index: 1; }
.vn-auth-card { position: relative; z-index: 2; }
.vn-input, .vn-otp-digit { position: relative; z-index: 3; }
.vn-btn { position: relative; z-index: 3; }
