@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Bebas+Neue&family=Share+Tech+Mono&family=Exo+2:wght@300;400;600;800&display=swap');

:root {
  --blood:       #c0392b;
  --blood-dark:  #8b0000;
  --blood-glow:  rgba(192,57,43,0.6);
  --gold:        #d4a820;
  --gold-dim:    #a07810;
  --bg-void:     #040507;
  --bg-dark:     #080b0f;
  --bg-mid:      #0e1318;
  --bg-panel:    #111820;
  --bg-card:     #151d28;
  --border:      rgba(255,255,255,0.07);
  --border-red:  rgba(192,57,43,0.4);
  --text-white:  #e8eaed;
  --text-muted:  #6b7280;
  --text-dim:    #9ca3af;
  --scan-line:   rgba(255,255,255,0.015);
  --glow-red:    0 0 20px rgba(192,57,43,0.5), 0 0 40px rgba(192,57,43,0.2);
  --glow-gold:   0 0 15px rgba(212,168,32,0.4);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Exo 2', sans-serif;
  --font-mono:    'Share Tech Mono', monospace;
  --font-ui:      'Rajdhani', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-void);
  color: var(--text-white);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
  line-height: 1.6;
}

/* SCANLINE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    var(--scan-line) 2px,
    var(--scan-line) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ─── SCROLLBAR ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--blood-dark); border-radius: 3px; }

/* ─── TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: 0.05em; line-height: 1.1; }
.ui-text { font-family: var(--font-ui); font-weight: 600; letter-spacing: 0.08em; }
.mono { font-family: var(--font-mono); }

/* ─── NAVBAR ─────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(4,5,7,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-red);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s;
}

#navbar.scrolled {
  background: rgba(4,5,7,0.98);
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--blood);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  animation: pulse-icon 3s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { box-shadow: 0 0 10px var(--blood-glow); }
  50% { box-shadow: 0 0 25px var(--blood-glow), 0 0 50px rgba(192,57,43,0.2); }
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-white);
  letter-spacing: 0.15em;
}

.nav-logo-text span { color: var(--blood); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  transition: all 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--blood);
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--text-white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  left: 0.8rem;
  right: 0.8rem;
}

.nav-links a.active { color: var(--blood); }

.nav-discord-btn {
  background: #5865F2 !important;
  color: white !important;
  padding: 0.4rem 1rem !important;
  border-radius: 4px;
}

.nav-discord-btn::after { display: none !important; }

.nav-discord-btn:hover {
  background: #4752c4 !important;
  transform: translateY(-1px);
}

.nav-cta {
  background: var(--blood) !important;
  color: white !important;
  padding: 0.4rem 1rem !important;
  border-radius: 4px;
  border: 1px solid var(--blood) !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #e74c3c !important; }

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text-white);
  transition: all 0.3s;
  display: block;
}

/* ─── HERO ───────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-void);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,5,7,0.55) 0%, rgba(4,5,7,0.45) 40%, rgba(4,5,7,0.82) 100%),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(192,57,43,0.15) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(192,57,43,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192,57,43,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-drift 20s linear infinite;
}

@keyframes grid-drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(60px); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--blood);
  border-radius: 50%;
  animation: particle-float linear infinite;
  opacity: 0;
}

@keyframes particle-float {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-20vh) translateX(var(--drift)); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--blood);
  letter-spacing: 0.25em;
  border: 1px solid var(--border-red);
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease forwards;
  opacity: 0;
  background: rgba(192,57,43,0.05);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0.05em;
  animation: fadeInUp 1s 0.2s ease forwards;
  opacity: 0;
}

.hero-title .line1 { color: var(--text-white); display: block; }
.hero-title .line2 { color: var(--blood); display: block; text-shadow: var(--glow-red); }

.hero-tagline {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 1.5rem 0 2rem;
  animation: fadeInUp 1s 0.4s ease forwards;
  opacity: 0;
}

.hero-tagline span { color: var(--gold); }

.hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s 0.6s ease forwards;
  opacity: 0;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--blood);
  display: block;
  text-shadow: var(--glow-red);
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-divider {
  width: 2px;
  background: var(--border);
  align-self: stretch;
  opacity: 0.5;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s 0.8s ease forwards;
  opacity: 0;
}

.btn {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-primary {
  background: var(--blood);
  color: white;
}

.btn-primary:hover {
  background: #e74c3c;
  transform: translateY(-2px);
  box-shadow: var(--glow-red);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 1px solid rgba(255,255,255,0.2);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-secondary:hover {
  border-color: var(--blood);
  color: var(--blood);
  transform: translateY(-2px);
}

.btn-discord {
  background: #5865F2;
  color: white;
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: #111;
}

.btn-gold:hover {
  background: #e6b822;
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: fadeInUp 1s 1.2s ease forwards, bounce-hint 2s 2s ease-in-out infinite;
  opacity: 0;
}

.hero-scroll-hint span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--blood);
  border-bottom: 2px solid var(--blood);
  transform: rotate(45deg);
  margin: 0 auto;
}

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

/* ─── SERVER STATUS BAR ──────────────────────── */
#status-bar {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.status-ticker {
  display: flex;
  gap: 3rem;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
  flex: 1;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.status-item { display: flex; align-items: center; gap: 0.5rem; }
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  flex-shrink: 0;
  animation: blink-dot 2s ease-in-out infinite;
}

.status-dot.red { background: var(--blood); box-shadow: 0 0 8px var(--blood-glow); }
.status-dot.gold { background: var(--gold); box-shadow: 0 0 8px var(--glow-gold); }

@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ─── SECTION STYLES ─────────────────────────── */
section {
  padding: 5rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  margin-bottom: 3rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--blood);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.05em;
  line-height: 1;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--blood);
  margin-top: 1rem;
  box-shadow: var(--glow-red);
}

/* ─── PANEL / CARD ───────────────────────────── */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-top: 2px solid var(--blood);
  padding: 1.5rem;
  position: relative;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blood), transparent);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--border-red);
  transform: translateY(-3px);
}

/* ─── GRID LAYOUTS ───────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ─── SERVER INFO ────────────────────────────── */
#server-info {
  background: var(--bg-dark);
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.info-card {
  background: var(--bg-panel);
  padding: 1.5rem;
  text-align: center;
  transition: background 0.2s;
}

.info-card:hover { background: var(--bg-card); }

.info-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.info-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--blood);
  display: block;
  line-height: 1;
}

.info-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.25rem;
  display: block;
}

/* ─── KILL LEADERBOARD ───────────────────────── */
#leaderboard {
  background: var(--bg-void);
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .leaderboard-grid { grid-template-columns: 1fr; }
}

.lb-table-wrap {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-top: 2px solid var(--blood);
  overflow: hidden;
}

.lb-header {
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.lb-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.lb-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--blood);
  border: 1px solid var(--border-red);
  padding: 0.2rem 0.6rem;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
}

.lb-table th {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.lb-table td {
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.lb-table tr:last-child td { border-bottom: none; }

.lb-table tr:hover td { background: rgba(192,57,43,0.05); }

.rank-num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-muted);
  min-width: 2rem;
}

.rank-1 .rank-num { color: var(--gold); }
.rank-2 .rank-num { color: #a8a9ad; }
.rank-3 .rank-num { color: #cd7f32; }

.player-name {
  font-weight: 600;
  color: var(--text-white);
}

.kill-count {
  font-family: var(--font-mono);
  color: var(--blood);
  font-weight: bold;
}

.kd-ratio {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.kd-high { color: #22c55e; }
.kd-mid { color: var(--gold); }

/* Kill bar graph */
.bar-chart-wrap {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-top: 2px solid var(--blood);
  padding: 1.5rem;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 50px;
  align-items: center;
  gap: 0.75rem;
}

.bar-label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  background: rgba(255,255,255,0.05);
  height: 20px;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blood-dark), var(--blood));
  border-radius: 2px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: rgba(255,255,255,0.4);
}

.bar-value {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

/* Kill timeline chart */
.kill-timeline {
  margin-top: 2rem;
}

canvas#killChart {
  width: 100% !important;
  max-height: 200px;
}

/* ─── MAP SECTION ────────────────────────────── */
#map-section {
  background: var(--bg-dark);
}

.map-container {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-top: 2px solid var(--blood);
  overflow: hidden;
}

.map-toolbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.map-toolbar h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  flex: 1;
}

.map-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.map-btn:hover, .map-btn.active {
  color: var(--blood);
  border-color: var(--border-red);
}

.map-frame-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
}

.map-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: hue-rotate(5deg) brightness(0.9) contrast(1.05);
}

.map-overlay-label {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: rgba(4,5,7,0.8);
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  text-transform: uppercase;
}

/* Our interactive map when iframe not available */
.custom-map {
  width: 100%;
  height: 600px;
  position: relative;
  background: #0a1220;
  overflow: hidden;
  cursor: crosshair;
}

/* ─── SHOP SECTION ───────────────────────────── */
#shop-section {
  background: var(--bg-void);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.shop-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}

.shop-card:hover {
  border-color: var(--border-red);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.shop-card-header {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-mid));
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.shop-icon {
  font-size: 2.5rem;
  display: block;
}

.shop-card-body {
  padding: 1.25rem;
}

.shop-card-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.shop-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.shop-items {
  list-style: none;
  margin-bottom: 1rem;
}

.shop-items li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.shop-items li::before {
  content: '▸';
  color: var(--blood);
  font-size: 0.6rem;
}

.shop-card-footer {
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  text-shadow: var(--glow-gold);
}

.shop-price span {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.shop-rarity {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border: 1px solid;
}

.rarity-common { color: var(--text-muted); border-color: var(--text-muted); }
.rarity-rare { color: #3b82f6; border-color: #3b82f6; }
.rarity-epic { color: #a855f7; border-color: #a855f7; }
.rarity-legendary { color: var(--gold); border-color: var(--gold); box-shadow: var(--glow-gold); }

.shop-how-to {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blood);
  padding: 1.5rem 2rem;
  margin-top: 2rem;
}

.shop-how-to h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.shop-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
  counter-reset: steps;
}

.shop-steps li {
  counter-increment: steps;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.shop-steps li::before {
  content: counter(steps);
  background: var(--blood);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── DISCORD SECTION ────────────────────────── */
#discord-section {
  background: var(--bg-dark);
}

.discord-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .discord-grid { grid-template-columns: 1fr; }
}

.discord-channels {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-top: 2px solid #5865F2;
  overflow: hidden;
}

.discord-channels-header {
  background: #23272a;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.discord-server-name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.discord-channel-list {
  padding: 0.75rem;
}

.channel-category {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 0.5rem 0.75rem 0.25rem;
  margin-top: 0.25rem;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: #8e9297;
  text-decoration: none;
}

.channel-item:hover {
  background: rgba(255,255,255,0.06);
  color: #dcddde;
}

.channel-item.active {
  background: rgba(255,255,255,0.1);
  color: #dcddde;
}

.channel-hash {
  font-size: 1.1rem;
  opacity: 0.6;
  line-height: 1;
}

.channel-badge {
  margin-left: auto;
  background: #ed4245;
  color: white;
  font-size: 0.6rem;
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  font-weight: bold;
}

.discord-widget-wrap {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-top: 2px solid #5865F2;
  overflow: hidden;
}

.discord-widget-wrap iframe {
  display: block;
  width: 100%;
  min-height: 350px;
}

.discord-cta {
  background: #23272a;
  padding: 1rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ─── RULES SECTION ──────────────────────────── */
#rules-section {
  background: var(--bg-void);
}

.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .rules-grid { grid-template-columns: 1fr; }
}

.rules-category {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-top: 2px solid var(--blood);
  overflow: hidden;
}

.rules-cat-header {
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.rules-cat-icon { font-size: 1.3rem; }

.rules-cat-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.rules-list {
  list-style: none;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255,255,255,0.02);
  border-left: 2px solid transparent;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: all 0.2s;
}

.rule-item:hover {
  border-left-color: var(--blood);
  background: rgba(192,57,43,0.05);
  color: var(--text-white);
}

.rule-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--blood);
  flex-shrink: 0;
  padding-top: 2px;
}

/* ─── DONATIONS SECTION ──────────────────────── */
#donate-section {
  background: var(--bg-dark);
}

.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .donate-grid { grid-template-columns: 1fr; }
}

.donate-intro {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.donate-tiers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.donate-tier {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-red);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.2s;
}

.donate-tier:hover {
  border-left-color: var(--blood);
  background: var(--bg-card);
}

.donate-tier.featured {
  border-left-color: var(--gold);
  background: linear-gradient(135deg, var(--bg-card), rgba(212,168,32,0.05));
}

.tier-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--blood);
  line-height: 1;
  white-space: nowrap;
}

.donate-tier.featured .tier-amount { color: var(--gold); text-shadow: var(--glow-gold); }

.tier-info { flex: 1; }

.tier-name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.tier-perks {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.donate-form-wrap {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  padding: 2rem;
}

.donate-form-wrap h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-white);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus { border-color: var(--blood); }

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.amount-btn {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.amount-btn:hover, .amount-btn.selected {
  background: var(--blood);
  color: white;
  border-color: var(--blood);
}

.paypal-note {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ─── EVENTS / NEWS ──────────────────────────── */
#events-section {
  background: var(--bg-void);
}

.events-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .events-grid { grid-template-columns: 1fr; }
}

.news-feed { display: flex; flex-direction: column; gap: 1px; background: var(--border); }

.news-item {
  background: var(--bg-panel);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1.25rem;
  transition: background 0.2s;
  cursor: pointer;
}

.news-item:hover { background: var(--bg-card); }

.news-date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--blood);
  white-space: nowrap;
  min-width: 70px;
  padding-top: 2px;
}

.news-content { flex: 1; }

.news-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.news-title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

.news-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.upcoming-events { display: flex; flex-direction: column; gap: 0.75rem; }

.event-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blood);
  padding: 1rem 1.25rem;
}

.event-date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--blood);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.event-name {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.event-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─── FOOTER ─────────────────────────────────── */
#footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 1rem 0;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}

.social-btn:hover {
  border-color: var(--blood);
  color: var(--blood);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-family: var(--font-ui);
}

.footer-links a:hover { color: var(--text-white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer-server-ip {
  color: var(--blood);
  cursor: pointer;
  transition: opacity 0.2s;
}

.footer-server-ip:hover { opacity: 0.7; }

/* ─── ANIMATIONS ─────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── UTILITY ────────────────────────────────── */
.text-red { color: var(--blood); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-full { width: 100%; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(4,5,7,0.98);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .hero-stats { gap: 1rem; }
  .leaderboard-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .donate-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(2,1fr); }
}

/* ─── TOOLTIP ────────────────────────────────── */
.tooltip-wrap { position: relative; display: inline-block; }
.tooltip-text {
  visibility: hidden;
  background: var(--bg-card);
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s;
}
.tooltip-wrap:hover .tooltip-text { visibility: visible; opacity: 1; }

/* ─── MODAL ──────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-top: 2px solid var(--blood);
  max-width: 500px;
  width: 90%;
  padding: 2rem;
  position: relative;
  animation: fadeInUp 0.3s ease;
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text-white); }
