:root {
  color-scheme: dark;

  --bg: #0F172A;
  --card: #1E293B;
  --border: rgba(148, 163, 184, 0.15);
  --text: #E2E8F0;

  --primary: #22C55E;
  --primary-glow: rgba(34, 197, 94, 0.4);

  --neon: #22D3EE;
  --aurora: #A855F7;
}

/* =========================
   BASE
========================= */
body {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: radial-gradient(circle at top, #020617, #0F172A);
  color: var(--text);
  overflow-x: hidden;
}

* {
  scroll-behavior: smooth;
}

a, button {
  transition: all 0.25s ease;
}

/* =========================
   GLASS (UPGRADED)
========================= */
.glass {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 10px 40px rgba(0,0,0,0.4),
    0 0 40px rgba(34,197,94,0.08);

  transition: all 0.3s ease;
}

.glass:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 40px rgba(34,197,94,0.25),
    0 0 80px rgba(34,197,94,0.1);
}

/* =========================
   TEXT BRAN
   ========================= */
   .text-brand,
.text-green-400 {
  text-shadow: 0 0 10px rgba(34,197,94,0.5);
}
/* =========================
   NAV
========================= */
.nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: 0.9rem;
  transition: 0.25s;
}

.nav-link:hover {
  background: rgba(30, 41, 59, 0.9);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(34,197,94,0.2);
}

/* ==========================
 active glow
 ========================== */
.glow-active {
  text-shadow: 0 0 10px rgba(34,197,94,0.6);
}

/* mobile menu animation */
#navMenu {
  transition: all 0.3s ease;
}

#navMenu.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px;
  right: 1rem;
  width: calc(100% - 2rem);
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 1rem;
}

/* footer hover glow */
footer a:hover {
  text-shadow: 0 0 8px rgba(34,197,94,0.5);
}

/* ===================
    VOTE
    ====================
    /* optional (if not using Tailwind fully) */
.vote-loading {
  opacity: 0.6;
  pointer-events: none;
}

.vote-success {
  background: linear-gradient(to right, #22c55e, #16a34a);
}

.vote-cooldown {
  background: #1e293b;
  color: #94a3b8;
}

/* =========================
   INPUT (PREMIUM)
========================= */
.input {
  width: 100%;
  border-radius: 14px;
  background: rgba(30,41,59,0.7);
  padding: 0.75rem;
  border: 1px solid var(--border);
  transition: 0.25s;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow:
    0 0 0 1px var(--primary),
    0 0 15px var(--primary-glow);
}

/* =========================
   BUTTONS
========================= */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  opacity: 0;
  transition: 0.4s;
}

.btn-primary:hover::before {
  opacity: 1;
  animation: shine 1s linear;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.btn-secondary {
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 14px;
  padding: .65rem 1rem;
  transition: 0.25s;
}

.btn-secondary:hover {
  background: rgba(34,197,94,0.08);
  box-shadow: 0 0 10px rgba(34,197,94,0.2);
}

/* =========================
   CARDS
========================= */
.stat-card,
.premium-stat {
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(34,197,94,0.15), transparent 70%);
  opacity: 0;
  transition: 0.3s;
}

.stat-card:hover::after {
  opacity: 1;
}

/* =========================
   VOTE BUTTON
========================= */
.vote-btn {
  background: rgba(15,23,42,.8);
  border: 1px solid var(--border);
  border-radius: .75rem;
  font-size: .85rem;
  padding: .35rem .6rem;
  transition: 0.2s;
}

.vote-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* =========================
   THEMES
========================= */

/* 🔵 NEON */
.theme-neon .glass {
  box-shadow:
    0 0 30px rgba(34,211,238,0.2),
    0 0 60px rgba(34,211,238,0.1);
}

.theme-neon .btn-primary {
  background: linear-gradient(135deg, #22D3EE, #0EA5E9);
}

/* 🟣 AURORA */
.theme-aurora .glass {
  box-shadow:
    0 0 30px rgba(168,85,247,0.25),
    0 0 60px rgba(168,85,247,0.1);
}

.theme-aurora .btn-primary {
  background: linear-gradient(135deg, #A855F7, #7C3AED);
}

/* =========================
   SCROLLBAR (PREMIUM)
========================= */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: rgba(34,197,94,0.4);
  border-radius: 10px;
}

/* =========================
   MOBILE MENU
========================= */
#navMenu {
  display: none;
}

@media (min-width: 768px) {
  #navMenu {
    display: flex;
  }
}

@media (max-width: 767px) {
  #navMenu {
    position: absolute;
    right: 1rem;
    top: 4rem;
    width: calc(100% - 2rem);
    flex-direction: column;
    padding: .75rem;
    background: rgba(15,23,42,.97);
    border: 1px solid var(--border);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
  }

  #navMenu.open {
    display: flex;
  }
}

/* 🌌 Animated Gradient Background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(34,197,94,0.15), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(168,85,247,0.15), transparent 40%);
  z-index: -1;
  animation: bgMove 12s infinite alternate ease-in-out;
}

@keyframes bgMove {
  0% { transform: translate(0,0); }
  100% { transform: translate(-40px, -30px); }
}