/* ==========================================================================
   SpideyMC Store — Main Stylesheet
   Theme: Dark / Black / Red with spider-web motifs
   Author: SpideyMC Dev Team
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette (per brief) */
  --red: #E11D48;
  --red-dim: #9f1239;
  --red-bright: #fb3a63;
  --black: #111111;
  --white: #FFFFFF;

  /* Derived surfaces */
  --bg-0: #0a0a0c;              /* page base */
  --bg-1: #111111;              /* section base */
  --surface-1: #17171b;         /* cards */
  --surface-2: #1e1e23;         /* elevated cards / inputs */
  --surface-3: #26262c;         /* hover state */
  --border: rgba(225, 29, 72, 0.18);
  --border-strong: rgba(225, 29, 72, 0.4);
  --text-0: #f5f5f7;
  --text-1: #c8c8d0;
  --text-2: #8b8b96;
  --glow: rgba(225, 29, 72, 0.55);

  /* Typography */
  --font-display: 'Cinzel', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-pixel: 'Silkscreen', 'Courier New', monospace;

  /* Layout */
  --container: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --nav-h: 72px;

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --fast: 150ms;
  --med: 300ms;
  --slow: 600ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

/* Visible keyboard focus for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--red);
  color: var(--white); padding: 12px 18px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--white); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--text-1); }
.eyebrow {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-bright);
  display: inline-block;
  margin-bottom: 10px;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { margin-top: 12px; }
.text-gradient {
  background: linear-gradient(120deg, var(--white), var(--red-bright) 60%, var(--red-dim));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast) var(--ease), border-color var(--fast) var(--ease);
  position: relative; overflow: hidden;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red-dim));
  color: var(--white);
  box-shadow: 0 4px 20px -4px var(--glow);
}
.btn-primary:hover { box-shadow: 0 6px 28px -2px var(--glow); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--text-0);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--red-bright); background: rgba(225,29,72,0.08); transform: translateY(-2px); }
.btn-ghost { color: var(--text-1); padding: 10px 16px; }
.btn-ghost:hover { color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Shimmer sweep on primary buttons */
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-primary:hover::after { transform: translateX(120%); transition: transform 700ms var(--ease); }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 500;
  height: var(--nav-h);
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background var(--med) var(--ease), border-color var(--med) var(--ease);
}
.navbar.is-scrolled { background: rgba(8, 8, 10, 0.92); border-color: var(--border-strong); }
.navbar-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.3rem; color: var(--white); }
.logo-mark { width: 34px; height: 34px; }
.logo strong { color: var(--red-bright); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.92rem; color: var(--text-1);
  position: relative; transition: color var(--fast) var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"]::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--red-bright); border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; color: var(--text-1); position: relative;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--white); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-badge {
  position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--red); color: var(--white); border-radius: 50%;
  font-size: 0.65rem; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--bg-0);
}

.nav-toggle { display: none; width: 42px; height: 42px; place-items: center; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: none; }
.hamburger { width: 22px; height: 16px; position: relative; }
.hamburger span {
  position: absolute; left: 0; width: 100%; height: 2px; background: var(--text-0); border-radius: 2px;
  transition: transform var(--med) var(--ease), opacity var(--med) var(--ease), top var(--med) var(--ease);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 7px; }
.hamburger span:nth-child(3) { top: 14px; }
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 0%, #1a0a10 0%, var(--bg-0) 60%);
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, var(--bg-0) 92%);
}
.hero-content { position: relative; z-index: 2; max-width: 780px; padding: 0 24px; }
.hero-content .eyebrow { animation: fadeUp var(--slow) var(--ease) both; }
.hero-content h1 { animation: fadeUp var(--slow) var(--ease) 100ms both; text-shadow: 0 0 40px rgba(225,29,72,0.35); }
.hero-content .subtitle { margin: 20px auto 34px; max-width: 560px; font-size: 1.1rem; color: var(--text-1); animation: fadeUp var(--slow) var(--ease) 200ms both; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeUp var(--slow) var(--ease) 300ms both; }
.hero-stats { display: flex; gap: 34px; justify-content: center; margin-top: 56px; flex-wrap: wrap; animation: fadeUp var(--slow) var(--ease) 400ms both; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-family: var(--font-pixel); font-size: 1.4rem; color: var(--white); }
.hero-stat span { font-size: 0.78rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* Spider crawling on a thread accent (decorative, used across pages) */
.spider-crawler { position: absolute; width: 26px; height: 26px; opacity: 0.85; pointer-events: none; }

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  position: relative; padding: 90px 0 60px; text-align: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% -10%, #1a0a10 0%, var(--bg-0) 65%);
  border-bottom: 1px solid var(--border);
}
.page-header canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; }
.page-header .container { position: relative; z-index: 2; }
.breadcrumb { font-size: 0.85rem; color: var(--text-2); margin-top: 10px; }
.breadcrumb a:hover { color: var(--red-bright); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(225,29,72,0.03), transparent); }

/* ---------- Category chips / filters ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  margin-bottom: 32px; padding: 18px; background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-1); background: var(--surface-2);
  transition: all var(--fast) var(--ease);
}
.chip:hover { border-color: var(--border-strong); color: var(--white); }
.chip.is-active { background: var(--red); border-color: var(--red); color: var(--white); }

.search-box { position: relative; flex: 1; min-width: 220px; max-width: 340px; }
.search-box input {
  width: 100%; padding: 10px 16px 10px 40px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-0); font-size: 0.9rem;
  transition: border-color var(--fast) var(--ease);
}
.search-box input::placeholder { color: var(--text-2); }
.search-box input:focus { border-color: var(--red-bright); }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-2); }

.sort-select select {
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-1); font-size: 0.85rem;
}

/* ---------- Product Grid & Cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 26px; }

.card {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; position: relative; display: flex; flex-direction: column;
  transition: transform var(--med) var(--ease), border-color var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 20px 40px -16px rgba(0,0,0,0.6), 0 0 0 1px var(--border-strong); }
.card:hover .card-web { opacity: 1; }

.card-web {
  position: absolute; top: -6px; right: -6px; width: 70px; height: 70px; opacity: 0; z-index: 1;
  transition: opacity var(--med) var(--ease); pointer-events: none;
}

.card-media {
  aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 30% 20%, rgba(225,29,72,0.18), transparent 60%), var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.card-media img { width: 62%; height: 62%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(225,29,72,0.25)); transition: transform var(--med) var(--ease); }
.card:hover .card-media img { transform: scale(1.08) rotate(-2deg); }
.card-badge {
  position: absolute; top: 12px; left: 12px; font-family: var(--font-pixel); font-size: 0.6rem;
  padding: 5px 10px; border-radius: 4px; background: var(--red); color: var(--white); letter-spacing: 0.05em; z-index: 2;
}
.card-badge.badge-outline { background: var(--surface-1); border: 1px solid var(--border-strong); color: var(--text-0); }

.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card-title-row h3 { font-size: 1.1rem; }
.card-price { font-family: var(--font-pixel); color: var(--red-bright); font-size: 0.95rem; white-space: nowrap; }
.card-price small { color: var(--text-2); text-decoration: line-through; font-size: 0.7rem; margin-right: 6px; }
.card-desc { font-size: 0.88rem; color: var(--text-2); }
.card-features { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; font-size: 0.82rem; }
.card-features li { display: flex; gap: 8px; align-items: flex-start; color: var(--text-1); }
.card-features svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; color: var(--red-bright); }
.card-footer { margin-top: auto; display: flex; gap: 10px; }

/* ---------- Feature / value cards (home) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.feature-card {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px; transition: transform var(--med) var(--ease), border-color var(--med) var(--ease);
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(225,29,72,0.25), rgba(225,29,72,0.05)); margin-bottom: 16px;
  color: var(--red-bright);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.feature-card p { font-size: 0.88rem; }

/* ---------- Category tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.tile {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 22px; text-align: center; transition: all var(--med) var(--ease); position: relative; overflow: hidden;
}
.tile:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: 0 14px 30px -14px var(--glow); }
.tile-icon { font-size: 2rem; margin-bottom: 10px; }
.tile h3 { font-size: 1rem; margin-bottom: 4px; }
.tile p { font-size: 0.8rem; color: var(--text-2); }

/* ---------- Widgets (Discord / Server status) ---------- */
.widget-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.widget-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.widget-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.widget-head .dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.widget-head .dot.offline { background: var(--text-2); box-shadow: none; }
.widget-stat-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 0.9rem; }
.widget-stat-row:last-child { border-bottom: none; }
.widget-stat-row span:last-child { color: var(--white); font-family: var(--font-pixel); font-size: 0.78rem; }
.server-ip { display: flex; gap: 8px; margin-top: 16px; }
.server-ip input { flex: 1; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-0); padding: 10px 14px; border-radius: var(--radius-sm); font-family: var(--font-pixel); font-size: 0.78rem; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-1); border-top: 1px solid var(--border); padding: 64px 0 24px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr 1.3fr; gap: 32px; margin-bottom: 44px; }
.footer-brand p { font-size: 0.88rem; margin: 14px 0 18px; max-width: 280px; }
.footer h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 16px; font-family: var(--font-body); letter-spacing: 0.03em; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 0.87rem; color: var(--text-2); transition: color var(--fast) var(--ease); }
.footer ul a:hover { color: var(--red-bright); }
.social-row { display: flex; gap: 10px; margin-top: 6px; }
.social-row a {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-1);
  transition: all var(--fast) var(--ease);
}
.social-row a:hover { background: var(--red); border-color: var(--red); color: var(--white); transform: translateY(-3px); }
.social-row svg { width: 17px; height: 17px; }
.newsletter-form { display: flex; gap: 8px; margin-top: 8px; }
.newsletter-form input {
  flex: 1; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-0); font-size: 0.85rem; min-width: 0;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-2);
}
.footer-bottom ul { display: flex; gap: 18px; flex-wrap: wrap; }
.payment-icons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.payment-icons span {
  font-family: var(--font-pixel); font-size: 0.6rem; padding: 6px 10px; border: 1px solid var(--border);
  border-radius: 4px; color: var(--text-2);
}

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed; bottom: 26px; right: 26px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: var(--white); display: grid; place-items: center; z-index: 400;
  box-shadow: 0 8px 24px -6px var(--glow); opacity: 0; pointer-events: none; transform: translateY(16px) scale(0.9);
  transition: all var(--med) var(--ease);
}
.scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.scroll-top:hover { transform: translateY(-4px) scale(1.05); }
.scroll-top svg { width: 20px; height: 20px; }

/* ---------- Toasts ---------- */
.toast-region { position: fixed; top: 90px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.toast {
  background: var(--surface-2); border: 1px solid var(--border-strong); border-left: 4px solid var(--red);
  padding: 14px 16px; border-radius: var(--radius-sm); color: var(--text-0); font-size: 0.88rem;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.7); display: flex; align-items: center; gap: 10px;
  animation: toastIn var(--med) var(--ease) both;
}
.toast.success { border-left-color: #22c55e; }
.toast.error { border-left-color: #ef4444; }
.toast.leaving { animation: toastOut var(--fast) var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------- Loading overlay ---------- */
.loader-overlay {
  position: fixed; inset: 0; background: var(--bg-0); z-index: 2000;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px;
  transition: opacity var(--slow) var(--ease), visibility var(--slow) var(--ease);
}
.loader-overlay.is-hidden { opacity: 0; visibility: hidden; }
.loader-web { width: 84px; height: 84px; animation: spin 2.2s linear infinite; }
.loader-overlay p { font-family: var(--font-pixel); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--text-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cart Drawer ---------- */
.cart-drawer-backdrop, .wishlist-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 800; opacity: 0; pointer-events: none;
  transition: opacity var(--med) var(--ease);
}
.cart-drawer-backdrop.is-open, .wishlist-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--bg-1);
  border-left: 1px solid var(--border-strong); z-index: 801; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform var(--med) var(--ease);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: flex; gap: 12px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.cart-item img { width: 52px; height: 52px; object-fit: contain; background: var(--surface-2); border-radius: 6px; padding: 6px; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: 0.9rem; color: var(--white); font-family: var(--font-body); font-weight: 600; }
.cart-item-info .price { font-family: var(--font-pixel); font-size: 0.75rem; color: var(--red-bright); margin-top: 4px; }
.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-control button { width: 22px; height: 22px; border: 1px solid var(--border); border-radius: 4px; color: var(--text-1); }
.qty-control button:hover { border-color: var(--red-bright); color: var(--white); }
.remove-item { color: var(--text-2); font-size: 0.75rem; margin-top: 6px; }
.remove-item:hover { color: var(--red-bright); }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-2); }
.cart-foot { border-top: 1px solid var(--border); padding: 18px 22px 22px; }
.discount-row { display: flex; gap: 8px; margin-bottom: 14px; }
.discount-row input {
  flex: 1; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-0); font-size: 0.85rem;
}
.summary-row { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 6px; color: var(--text-1); }
.summary-row.total { font-size: 1.05rem; color: var(--white); font-weight: 700; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.summary-row.discount span:last-child { color: #22c55e; }

/* ---------- Checkout modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 900; display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity var(--med) var(--ease); padding: 20px;
}
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface-1); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  width: min(520px, 100%); max-height: 88vh; overflow-y: auto; transform: scale(0.92); transition: transform var(--med) var(--ease);
}
.modal-backdrop.is-open .modal { transform: scale(1); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 24px; }
.pay-note { font-size: 0.78rem; color: var(--text-2); margin-top: 14px; line-height: 1.5; }
.checkout-contact-line { display: block; text-align: center; font-size: 0.78rem; color: var(--text-2); margin: 8px 0 4px; }

/* ---------- Forms (generic) ---------- */
.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; gap: 8px; }
.form-row.two-col { grid-template-columns: 1fr 1fr; }
label { font-size: 0.85rem; color: var(--text-1); font-weight: 500; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], textarea, select.form-input {
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-0); font-size: 0.92rem; width: 100%;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
input:focus, textarea:focus, select:focus { border-color: var(--red-bright); box-shadow: 0 0 0 3px rgba(225,29,72,0.15); }
textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.78rem; color: var(--text-2); }
.form-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; max-width: 560px; margin: 0 auto; }

/* ---------- FAQ Accordion ---------- */
.accordion { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.accordion-item { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.accordion-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; text-align: left; font-size: 0.98rem; color: var(--text-0); font-weight: 600;
}
.accordion-trigger svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--red-bright); transition: transform var(--med) var(--ease); }
.accordion-item.is-open .accordion-trigger svg { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height var(--med) var(--ease); }
.accordion-panel-inner { padding: 0 22px 20px; font-size: 0.9rem; color: var(--text-2); }
.faq-categories { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 { margin-top: 40px; margin-bottom: 14px; font-size: 1.35rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-1); font-size: 0.94rem; margin-bottom: 12px; }
.legal-content ul { padding-left: 20px; list-style: disc; }
.legal-content .updated { color: var(--text-2); font-size: 0.85rem; margin-bottom: 30px; }
.toc { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px 26px; margin-bottom: 40px; }
.toc h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 12px; }
.toc ol { padding-left: 20px; }
.toc a { color: var(--text-1); font-size: 0.88rem; }
.toc a:hover { color: var(--red-bright); }

/* ---------- Support page ---------- */
.support-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.support-methods { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.support-method { display: flex; gap: 14px; padding: 16px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-md); align-items: flex-start; }
.support-method .icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(225,29,72,0.12); color: var(--red-bright); display: grid; place-items: center; flex-shrink: 0; }
.support-method .icon svg { width: 19px; height: 19px; }
.support-method h4 { font-size: 0.95rem; color: var(--white); margin-bottom: 4px; }
.support-method p { font-size: 0.83rem; }

/* ---------- Utilities ---------- */
.mt-1{margin-top:8px;} .mt-2{margin-top:16px;} .mt-3{margin-top:24px;} .mt-4{margin-top:40px;}
.text-center{text-align:center;}
.hidden{display:none !important;}
.badge-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background: var(--red-bright); margin-right:6px; }

/* ---------- Server Quickbar (IP / Play / Discord / player count) ---------- */
.quickbar {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(225,29,72,0.06), transparent);
}
.quickbar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 0;
}
.quickbar-ip {
  display: flex; align-items: center; gap: 10px; background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 8px 8px 18px;
}
.quickbar-ip span { font-family: var(--font-pixel); font-size: 0.8rem; color: var(--white); letter-spacing: 0.03em; }
.quickbar-ip button {
  display: flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-1); padding: 8px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  transition: all var(--fast) var(--ease);
}
.quickbar-ip button:hover { border-color: var(--red-bright); color: var(--white); }
.quickbar-ip button svg { width: 14px; height: 14px; }
.quickbar-stat {
  display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-1);
}
.quickbar-stat .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.quickbar-stat strong { color: var(--white); font-family: var(--font-pixel); font-size: 0.85rem; }
.quickbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.quickbar-actions .btn { padding: 11px 20px; font-size: 0.85rem; }
@media (max-width: 720px) {
  .quickbar-inner { justify-content: center; text-align: center; }
  .quickbar-ip, .quickbar-stat, .quickbar-actions { justify-content: center; width: 100%; }
}

/* ---------- Latest News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.news-card {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; transition: transform var(--med) var(--ease), border-color var(--med) var(--ease);
  position: relative;
}
.news-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.news-tag {
  display: inline-block; font-family: var(--font-pixel); font-size: 0.6rem; letter-spacing: 0.06em;
  padding: 5px 10px; border-radius: 4px; background: rgba(225,29,72,0.15); color: var(--red-bright);
  text-transform: uppercase; margin-bottom: 14px;
}
.news-date { font-size: 0.75rem; color: var(--text-2); float: right; margin-top: 4px; }
.news-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.news-card p { font-size: 0.88rem; }
.news-card a.news-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 0.82rem; color: var(--red-bright); font-weight: 600; }
.news-card a.news-link svg { width: 14px; height: 14px; transition: transform var(--fast) var(--ease); }
.news-card a.news-link:hover svg { transform: translateX(3px); }

/* ---------- Wishlist ---------- */
.card-wishlist {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(10,10,12,0.6); backdrop-filter: blur(4px); color: var(--white); display: grid; place-items: center;
  transition: all var(--fast) var(--ease);
}
.card-wishlist svg { width: 17px; height: 17px; transition: transform var(--fast) var(--ease); }
.card-wishlist:hover { background: rgba(225,29,72,0.85); }
.card-wishlist.is-active { color: var(--red-bright); }
.card-wishlist.is-active svg { fill: currentColor; transform: scale(1.1); }
.card-rating { display: flex; align-items: center; gap: 6px; }
.card-rating .stars { display: flex; gap: 1px; color: var(--red-bright); }
.card-rating .rating-num { font-family: var(--font-pixel); font-size: 0.72rem; color: var(--text-0); }
.card-rating .rating-count { font-size: 0.75rem; color: var(--text-2); }
.wishlist-drawer .cart-head h3::before { content: '\\2764\\FE0F  '; }

/* ---------- Dark / Light theme toggle ---------- */
.icon-btn .icon-sun, .icon-btn .icon-moon { width: 20px; height: 20px; }
html[data-theme="light"] {
  --bg-0: #f5f5f7; --bg-1: #ffffff; --surface-1: #ffffff; --surface-2: #f0eef0; --surface-3: #e8e6e9;
  --border: rgba(225,29,72,0.22); --border-strong: rgba(225,29,72,0.45);
  --text-0: #16161a; --text-1: #3f3f46; --text-2: #6b6b74;
}
html[data-theme="light"] .navbar { background: rgba(255,255,255,0.85); }
html[data-theme="light"] .navbar.is-scrolled { background: rgba(255,255,255,0.96); }
html[data-theme="light"] .loader-overlay { background: var(--bg-0); }
html[data-theme="light"] .hero { background: radial-gradient(ellipse at 50% 0%, #ffe4ea 0%, var(--bg-0) 60%); }

/* ---------- Countdown Timer / Flash Sale ---------- */
.countdown-banner {
  background: linear-gradient(120deg, #3a0c18, #111111 60%); border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.countdown-inner { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; text-align: center; }
.countdown-label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-0); font-weight: 600; }
.countdown-label svg { width: 18px; height: 18px; color: var(--red-bright); }
.countdown-units { display: flex; gap: 10px; }
.countdown-unit { background: var(--surface-1); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 12px; min-width: 58px; }
.countdown-unit strong { display: block; font-family: var(--font-pixel); font-size: 1.15rem; color: var(--white); }
.countdown-unit span { font-size: 0.62rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; }
.countdown-cta { margin-left: 4px; }

/* ---------- Daily Reward Wheel ---------- */
.wheel-section { text-align: center; }
.wheel-wrap { position: relative; width: 280px; height: 280px; margin: 30px auto 0; }
.wheel-svg { width: 100%; height: 100%; transition: transform 4s cubic-bezier(.17,.67,.29,1); transform-origin: 50% 50%; filter: drop-shadow(0 10px 30px rgba(225,29,72,0.35)); }
.wheel-pointer {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent;
  border-top: 20px solid var(--red-bright); z-index: 3; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
}
.wheel-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px;
  border-radius: 50%; background: var(--black); border: 3px solid var(--red-bright); display: grid; place-items: center;
  font-size: 1.3rem; z-index: 2;
}
.wheel-status { margin-top: 22px; font-size: 0.85rem; color: var(--text-2); min-height: 20px; }
.wheel-result { margin-top: 10px; font-family: var(--font-pixel); font-size: 1rem; color: var(--red-bright); min-height: 24px; }

/* ---------- Server Trailer ---------- */
.trailer-frame {
  position: relative; max-width: 860px; margin: 0 auto; aspect-ratio: 16/9; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border-strong); background: var(--surface-1);
}
.trailer-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.trailer-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; cursor: pointer; background: radial-gradient(circle at 50% 40%, rgba(225,29,72,0.18), var(--surface-1) 70%);
  transition: background var(--fast) var(--ease);
}
.trailer-placeholder:hover { background: radial-gradient(circle at 50% 40%, rgba(225,29,72,0.28), var(--surface-1) 70%); }
.trailer-play {
  width: 78px; height: 78px; border-radius: 50%; background: var(--red); display: grid; place-items: center;
  box-shadow: 0 10px 30px -6px var(--glow); transition: transform var(--fast) var(--ease);
}
.trailer-placeholder:hover .trailer-play { transform: scale(1.08); }
.trailer-play svg { width: 26px; height: 26px; color: var(--white); margin-left: 3px; }
.trailer-placeholder p { color: var(--text-0); font-size: 0.9rem; font-weight: 600; }

/* ---------- Reviews / Testimonials ---------- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.review-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.review-stars { display: flex; gap: 2px; color: var(--red-bright); margin-bottom: 12px; }
.review-stars svg { width: 15px; height: 15px; }
.review-card p.review-text { font-size: 0.9rem; color: var(--text-1); margin-bottom: 16px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--red-bright), var(--red-dim));
  display: grid; place-items: center; color: var(--white); font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.review-author strong { display: block; font-size: 0.85rem; color: var(--white); }
.review-author span { font-size: 0.75rem; color: var(--text-2); }

/* ---------- Changelog ---------- */
.changelog-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; position: relative; }
.changelog-list::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.changelog-entry { position: relative; padding: 0 0 36px 40px; }
.changelog-entry::before {
  content: ''; position: absolute; left: 2px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--red); border: 3px solid var(--bg-0); box-shadow: 0 0 0 1px var(--border-strong);
}
.changelog-version { font-family: var(--font-pixel); font-size: 0.78rem; color: var(--red-bright); margin-bottom: 4px; display: inline-block; }
.changelog-date { font-size: 0.78rem; color: var(--text-2); margin-left: 10px; }
.changelog-entry h3 { font-size: 1.05rem; margin: 6px 0 10px; }
.changelog-entry ul { padding-left: 18px; list-style: disc; }
.changelog-entry li { font-size: 0.88rem; color: var(--text-1); margin-bottom: 6px; }
.changelog-tag {
  display: inline-block; font-size: 0.65rem; font-family: var(--font-pixel); padding: 3px 8px; border-radius: 4px;
  margin-left: 8px; vertical-align: middle;
}
.changelog-tag.tag-feature { background: rgba(34,197,94,.15); color: #4ade80; }
.changelog-tag.tag-fix { background: rgba(245,158,11,.15); color: #fbbf24; }
.changelog-tag.tag-store { background: rgba(225,29,72,.15); color: var(--red-bright); }

/* ---------- Site-wide Login Gate ---------- */
.auth-gate {
  position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 20%, #1a0a10 0%, var(--bg-0) 65%); padding: 20px;
}
.auth-gate-card {
  background: var(--surface-1); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 44px 36px; width: min(400px, 100%); text-align: center;
}
.auth-gate-card img { margin-bottom: 16px; }
.auth-gate-card h1 { font-size: 1.5rem; margin-bottom: 8px; }
.auth-gate-card p.auth-gate-sub { font-size: 0.88rem; color: var(--text-2); margin-bottom: 28px; }
.username-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.username-form input {
  padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-0); font-size: 0.95rem; text-align: center;
}
.username-form input:focus { border-color: var(--red-bright); outline: none; }
.username-error { color: #f87171; font-size: 0.78rem; }
.bedrock-warning {
  font-size: 0.76rem; color: #fbbf24; background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.25);
  border-radius: var(--radius-sm); padding: 8px 12px; text-align: left; line-height: 1.4;
}
.bedrock-warning code { background: rgba(0,0,0,0.3); padding: 1px 5px; border-radius: 3px; color: #fff; }
.auth-gate-note { margin-top: 24px; font-size: 0.74rem; color: var(--text-2); line-height: 1.5; }
.auth-gate-note a { color: var(--red-bright); }
body.auth-locked { overflow: hidden; }
body.auth-locked .navbar, body.auth-locked main, body.auth-locked .footer { display: none; }

/* Signed-in account chip replaces the login icon once authenticated */
.account-chip {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); transition: border-color var(--fast) var(--ease);
}
.account-chip:hover { border-color: var(--border-strong); }
.account-chip .avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.account-chip .avatar.provider-username { background: var(--red); }
.account-chip span { font-size: 0.78rem; color: var(--text-1); }

/* ---------- Animated Stats Strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 22px; }
.count-stat { text-align: center; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px 16px; }
.count-stat strong { display: block; font-family: var(--font-pixel); font-size: 1.8rem; color: var(--white); margin-bottom: 6px; }
.count-stat span { font-size: 0.78rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Staff List ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.staff-card { display: flex; align-items: center; gap: 14px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; }
.staff-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex-shrink: 0; font-size: 0.9rem; }
.staff-info h4 { font-size: 0.92rem; color: var(--white); margin-bottom: 2px; }
.staff-info span { font-size: 0.76rem; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.staff-info .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.staff-info .dot.away { background: #fbbf24; }

/* ---------- TPS Widget ---------- */
.tps-widget { text-align: center; }
.tps-value { font-family: var(--font-pixel); font-size: 2.4rem; color: #4ade80; margin: 10px 0 6px; }
.tps-bar-track { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 14px 0 8px; }
.tps-bar-fill { height: 100%; background: linear-gradient(90deg, #4ade80, #22c55e); border-radius: 999px; transition: width 600ms ease; }
.tps-label { font-size: 0.76rem; color: var(--text-2); }

/* ---------- Video Grids (YouTube / TikTok) ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.video-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: var(--surface-1); transition: transform var(--med) var(--ease), border-color var(--med) var(--ease); }
.video-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.video-thumb {
  aspect-ratio: 16/9; position: relative; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(circle at 50% 40%, rgba(225,29,72,0.25), var(--surface-2) 75%);
}
.video-card.tiktok .video-thumb { aspect-ratio: 9/16; }
.video-play { width: 52px; height: 52px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 8px 20px -6px var(--glow); transition: transform var(--fast) var(--ease); }
.video-card:hover .video-play { transform: scale(1.1); }
.video-play svg { width: 20px; height: 20px; color: #fff; margin-left: 2px; }
.video-meta { padding: 12px 14px; }
.video-meta h4 { font-size: 0.86rem; color: var(--white); margin-bottom: 4px; }
.video-meta span { font-size: 0.74rem; color: var(--text-2); }

/* ---------- Top Donors ---------- */
.donor-list { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.donor-row { display: flex; align-items: center; gap: 14px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; }
.donor-rank { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-pixel); font-size: 0.78rem; font-weight: 700; flex-shrink: 0; }
.donor-rank.rank-1 { background: linear-gradient(135deg,#ffd166,#e8a800); color: #3a2a00; }
.donor-rank.rank-2 { background: linear-gradient(135deg,#e5e7eb,#9ca3af); color: #1f2937; }
.donor-rank.rank-3 { background: linear-gradient(135deg,#d18a5c,#a85c2e); color: #2a1200; }
.donor-rank.rank-other { background: var(--surface-2); color: var(--text-2); }
.donor-name { flex: 1; font-size: 0.9rem; color: var(--white); font-weight: 600; }
.donor-amount { font-family: var(--font-pixel); font-size: 0.78rem; color: var(--red-bright); }

/* ---------- Supporter Goal ---------- */
.goal-card { max-width: 560px; margin: 0 auto; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.goal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; flex-wrap: wrap; gap: 6px; }
.goal-head strong { font-family: var(--font-pixel); color: var(--white); font-size: 1rem; }
.goal-bar-track { height: 16px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.goal-bar-fill { height: 100%; background: linear-gradient(90deg, var(--red-bright), var(--red)); border-radius: 999px; transition: width 1200ms cubic-bezier(.4,0,.2,1); position: relative; }
.goal-bar-fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); animation: marquee 2.4s linear infinite; }
.goal-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.76rem; color: var(--text-2); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .support-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; background: var(--bg-1);
    flex-direction: column; align-items: stretch; padding: 20px; gap: 4px; transform: translateX(100%);
    transition: transform var(--med) var(--ease); overflow-y: auto; border-top: 1px solid var(--border); }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { padding: 16px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: grid; place-items: center; }
  .nav-actions .btn-outline.login-btn span { display: none; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-row.two-col { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-box { max-width: none; }
  .wheel-wrap { width: 220px; height: 220px; }
  .countdown-units { gap: 6px; }
  .countdown-unit { min-width: 46px; padding: 6px 8px; }
}
