/* ==========================================================================
   MINEMATES SMP - MASTER PRODUCTION DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Brand Palette derived directly from MineMatesSMP Visual Identity */
  --bg-dark: #080a0f;
  --bg-surface: #0e121a;
  --bg-card: rgba(16, 21, 31, 0.75);
  --bg-glass: rgba(22, 28, 44, 0.55);

  --color-purple: #8b5cf6;
  --color-purple-glow: rgba(139, 92, 246, 0.4);
  --color-purple-accent: #a855f7;

  --color-emerald: #10b981;
  --color-emerald-glow: rgba(16, 185, 129, 0.4);
  
  --color-cyan: #06b6d4;
  --color-cyan-glow: rgba(6, 182, 212, 0.4);
  
  --color-gold: #f59e0b;
  --color-red: #ef4444;

  --text-white: #ffffff;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;

  --border-subtle: rgba(139, 92, 246, 0.2);
  --border-bright: rgba(168, 85, 247, 0.55);

  --font-body: 'Outfit', sans-serif;
  --font-serif: 'Cinzel', serif;
  --font-pixel: 'Press Start 2P', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

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

/* Atmospheric Overlays */
.scanline-grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 1;
}

.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(140px);
  opacity: 0.16;
}
.glow-top { top: -180px; left: 15%; background: var(--color-purple); }
.glow-bottom { bottom: 10%; right: 10%; background: var(--color-cyan); }

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 90px 0;
  position: relative;
  z-index: 2;
}

.section-header-center {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 55px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--color-purple-accent);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-title-sm {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
}

.gradient-text {
  background: linear-gradient(135deg, #c084fc 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   MINECRAFT BUTTON SYSTEM (MODERN BEVELS)
   ========================================================================== */
.btn-mc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  border: none;
  white-space: nowrap;
}

.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-md { padding: 12px 22px; font-size: 0.95rem; }
.btn-xl { padding: 16px 32px; font-size: 1.05rem; }
.btn-full { width: 100%; }

.btn-primary-mc {
  background: linear-gradient(180deg, #9333ea 0%, #6b21a8 100%);
  color: var(--text-white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 18px var(--color-purple-glow);
  border-bottom: 3px solid #4c1d95;
}
.btn-primary-mc:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 26px rgba(139, 92, 246, 0.6);
}

.btn-bedrock-mc {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  color: var(--text-white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 18px rgba(2, 132, 199, 0.4);
  border-bottom: 3px solid #075985;
}
.btn-bedrock-mc:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-discord-mc {
  background: linear-gradient(180deg, #5865f2 0%, #4752c4 100%);
  color: var(--text-white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 18px rgba(88, 101, 242, 0.4);
  border-bottom: 3px solid #373e98;
}
.btn-discord-mc:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-glass-mc {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-glass-mc:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 78px;
  z-index: 1000;
  background: rgba(8, 10, 15, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}
.site-header.scrolled {
  height: 68px;
  background: rgba(8, 10, 15, 0.96);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo-img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--color-purple);
  box-shadow: 0 0 12px var(--color-purple-glow);
}
.brand-name {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-white);
}
.brand-accent { color: var(--color-purple-accent); }
.brand-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-left: 6px;
}

.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition);
  padding: 6px 0;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text-white); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-purple-accent);
  box-shadow: 0 0 8px var(--color-purple);
}

.nav-cta-group { display: flex; align-items: center; gap: 10px; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.mobile-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--text-white);
  transition: var(--transition);
}

/* ==========================================================================
   CINEMATIC HERO
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 130px;
  padding-bottom: 90px;
  text-align: center;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.15);
  z-index: 1;
}
.hero-container {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 18, 26, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.status-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.status-pulse-dot.online {
  background: var(--color-emerald);
  box-shadow: 0 0 10px var(--color-emerald);
}
.status-pulse-dot.offline {
  background: var(--color-red);
  box-shadow: 0 0 10px var(--color-red);
}
.status-pill-text { font-size: 0.84rem; font-weight: 700; color: var(--text-white); }
.pill-divider { color: rgba(255, 255, 255, 0.3); }
.version-label { font-size: 0.8rem; color: var(--text-muted); }

.hero-brand-centerpiece {
  margin-bottom: 16px;
  animation: floatMates 4s ease-in-out infinite;
}
.hero-logo-img {
  max-width: 360px;
  width: 82%;
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 25px var(--color-purple-glow));
}
@keyframes floatMates {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.hero-headline {
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-white);
  margin-bottom: 14px;
}
.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 34px;
}
.bullet-gem { color: var(--color-purple-accent); font-size: 0.75rem; margin: 0 6px; }

.hero-action-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-quickbar {
  display: flex;
  align-items: center;
  background: rgba(14, 18, 26, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  gap: 20px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
  flex-wrap: wrap;
  justify-content: center;
}
.quickbar-entry { display: flex; align-items: center; gap: 10px; }
.quickbar-divider { width: 1px; height: 26px; background: rgba(255, 255, 255, 0.12); }
.platform-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.platform-tag.java { background: rgba(139, 92, 246, 0.2); color: var(--color-purple-accent); }
.platform-tag.bedrock { background: rgba(6, 182, 212, 0.2); color: var(--color-cyan); }
.ip-code {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-white);
}
.port-accent { color: var(--color-cyan); }
.btn-icon-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-icon-copy:hover {
  background: var(--color-purple);
  border-color: var(--color-purple-accent);
}

/* ==========================================================================
   1. LIVE SERVER DASHBOARD
   ========================================================================== */
.status-primary-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.dash-server-meta { display: flex; align-items: center; gap: 14px; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--color-emerald);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
}
.dash-server-name { font-size: 1.25rem; font-weight: 800; color: var(--text-white); }
.refresh-indicator { font-size: 0.8rem; color: var(--text-muted); }

.motd-box {
  background: rgba(8, 10, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}
.motd-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.motd-text {
  font-family: 'Courier New', monospace;
  font-size: 1.05rem;
  color: #38bdf8;
  font-weight: 600;
}

.dash-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.metric-item {
  background: rgba(14, 18, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 14px;
}
.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--color-purple-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.metric-title { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 700; }
.metric-value { font-size: 1.15rem; font-weight: 800; color: var(--text-white); }
.metric-sub { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }
.text-emerald { color: var(--color-emerald) !important; }
.text-cyan { color: var(--color-cyan) !important; }

/* ==========================================================================
   2. LIVE WORLD MAP
   ========================================================================== */
.map-frame-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}
.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(14, 18, 26, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 12px;
}
.map-toolbar-info { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-muted); }
.radar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 8px var(--color-emerald);
}
.map-display-container {
  position: relative;
  width: 100%;
  height: 520px;
  background: #05070a;
}
.map-display-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.map-fallback-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.map-fallback-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.25) blur(3px);
}
.map-fallback-card {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 500px;
  padding: 30px;
  background: rgba(14, 18, 26, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 35px rgba(0,0,0,0.6);
}
.map-icon-pulse {
  font-size: 2.2rem;
  color: var(--color-cyan);
  margin-bottom: 14px;
}
.map-fallback-card h3 { font-size: 1.4rem; color: var(--text-white); margin-bottom: 10px; }
.map-fallback-card p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 22px; }
.map-btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   3. PLAYER LEADERBOARD
   ========================================================================== */
.leaderboard-tabs-wrapper { display: flex; justify-content: center; margin-bottom: 24px; }
.leaderboard-tabs {
  display: inline-flex;
  background: rgba(14, 18, 26, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 5px;
  gap: 6px;
}
.lb-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.lb-tab-btn.active, .lb-tab-btn:hover {
  background: var(--color-purple);
  color: var(--text-white);
  box-shadow: 0 2px 12px var(--color-purple-glow);
}

.leaderboard-table-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.table-responsive { width: 100%; overflow-x: auto; }
.lb-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.lb-table th {
  padding: 16px 24px;
  background: rgba(14, 18, 26, 0.9);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lb-table td {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.95rem;
  color: var(--text-main);
}
.lb-table tr:hover td { background: rgba(255,255,255,0.02); }

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.9rem;
}
.rank-1 { background: rgba(245, 158, 11, 0.2); color: var(--color-gold); border: 1px solid rgba(245, 158, 11, 0.4); }
.rank-2 { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.4); }
.rank-3 { background: rgba(180, 83, 9, 0.2); color: #d97706; border: 1px solid rgba(180, 83, 9, 0.4); }
.rank-other { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }

.lb-player-cell { display: flex; align-items: center; gap: 12px; }
.lb-avatar { width: 32px; height: 32px; border-radius: 4px; image-rendering: pixelated; }
.lb-name { font-weight: 700; color: var(--text-white); }
.lb-score-val { font-weight: 800; font-family: 'Courier New', monospace; color: var(--color-cyan); }
.lb-footer-note {
  padding: 14px 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(8, 10, 15, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   4. FEATURES GRID
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 28px 22px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-bright);
  box-shadow: 0 14px 30px rgba(0,0,0,0.5), 0 0 20px var(--color-purple-glow);
}
.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.purple-glow { background: rgba(139, 92, 246, 0.15); color: var(--color-purple-accent); border: 1px solid rgba(139, 92, 246, 0.3); }
.cyan-glow { background: rgba(6, 182, 212, 0.15); color: var(--color-cyan); border: 1px solid rgba(6, 182, 212, 0.3); }
.green-glow { background: rgba(16, 185, 129, 0.15); color: var(--color-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.gold-glow { background: rgba(245, 158, 11, 0.15); color: var(--color-gold); border: 1px solid rgba(245, 158, 11, 0.3); }
.red-glow { background: rgba(239, 68, 68, 0.15); color: var(--color-red); border: 1px solid rgba(239, 68, 68, 0.3); }

.feature-title { font-size: 1.2rem; font-weight: 700; color: var(--text-white); margin-bottom: 10px; }
.feature-desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.55; }

/* ==========================================================================
   5. WORLD GALLERY & CATEGORY FILTERS
   ========================================================================== */
.gallery-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.filter-btn {
  background: rgba(14, 18, 26, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--color-purple);
  color: var(--text-white);
  border-color: var(--color-purple-accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 10, 15, 0.95) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px;
  transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-category { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; color: var(--color-cyan); display: block; }
.gallery-caption { font-size: 1.05rem; font-weight: 700; color: var(--text-white); }
.zoom-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
}

/* ==========================================================================
   6. SERVER NEWS & EVENTS
   ========================================================================== */
.events-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  transition: var(--transition);
}
.event-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
}
.event-date-badge {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-sm);
  width: 60px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.event-day { font-size: 1.4rem; font-weight: 900; color: var(--text-white); line-height: 1; }
.event-month { font-size: 0.68rem; font-weight: 800; color: var(--color-purple-accent); }
.event-tag { font-size: 0.68rem; font-weight: 800; color: var(--color-cyan); margin-bottom: 4px; display: block; }
.event-tag.red { color: var(--color-red); }
.event-heading { font-size: 1.15rem; font-weight: 700; color: var(--text-white); margin-bottom: 6px; }
.event-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

.news-entry {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 20px;
  transition: var(--transition);
}
.news-entry:hover { border-color: var(--border-bright); transform: translateY(-3px); }
.news-meta { font-size: 0.76rem; color: var(--text-muted); display: block; margin-bottom: 6px; }
.news-title { font-size: 1.15rem; font-weight: 700; color: var(--text-white); margin-bottom: 8px; }
.news-snippet { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

/* ==========================================================================
   7. STAFF SECTION
   ========================================================================== */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.staff-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 24px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.staff-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.55);
}
.card-owner:hover { border-color: var(--color-gold); }
.card-builder:hover { border-color: var(--color-cyan); }
.card-media:hover { border-color: var(--color-purple-accent); }

.staff-card-header { margin-bottom: 20px; }
.avatar-pedestal {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  margin: 0 auto 14px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-surface);
}
.gold-pedestal { border: 2px solid var(--color-gold); box-shadow: 0 0 24px rgba(245, 158, 11, 0.4); }
.cyan-pedestal { border: 2px solid var(--color-cyan); box-shadow: 0 0 24px var(--color-cyan-glow); }
.purple-pedestal { border: 2px solid var(--color-purple-accent); box-shadow: 0 0 24px var(--color-purple-glow); }

.staff-skin-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  transition: transform 0.3s ease;
}
.staff-card:hover .staff-skin-img { transform: scale(1.08); }

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
}
.role-owner { background: rgba(245, 158, 11, 0.15); color: var(--color-gold); border: 1px solid rgba(245, 158, 11, 0.4); }
.role-builder { background: rgba(6, 182, 212, 0.15); color: var(--color-cyan); border: 1px solid rgba(6, 182, 212, 0.4); }
.role-media { background: rgba(168, 85, 247, 0.15); color: var(--color-purple-accent); border: 1px solid rgba(168, 85, 247, 0.4); }

.staff-name { font-size: 1.38rem; font-weight: 800; color: var(--text-white); margin-bottom: 4px; }
.staff-tagline { font-size: 0.85rem; color: var(--color-purple-accent); margin-bottom: 14px; display: block; font-weight: 600; }
.staff-bio { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 24px; }
.staff-card-footer {
  margin-top: auto;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}
.staff-specialty { font-size: 0.78rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }

/* ==========================================================================
   8. SERVER CODE (RULES)
   ========================================================================== */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 30px;
}
.rule-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 30px 24px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.rule-card:hover { transform: translateY(-3px); border-color: var(--border-bright); }
.rule-index {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(255,255,255,0.05);
  font-family: var(--font-serif);
}
.rule-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.rule-icon.red { background: rgba(239, 68, 68, 0.15); color: var(--color-red); }
.rule-icon.gold { background: rgba(245, 158, 11, 0.15); color: var(--color-gold); }
.rule-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--color-purple-accent); }
.rule-icon.cyan { background: rgba(6, 182, 212, 0.15); color: var(--color-cyan); }

.rule-heading { font-size: 1.2rem; font-weight: 700; color: var(--text-white); margin-bottom: 8px; }
.rule-body { font-size: 0.92rem; color: var(--text-muted); line-height: 1.55; }
.rules-warning-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px dashed rgba(239, 68, 68, 0.4);
  padding: 16px 26px;
  border-radius: 999px;
  max-width: 680px;
  margin: 0 auto;
  color: #fca5a5;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

/* ==========================================================================
   9. DISCORD CTA
   ========================================================================== */
.discord-hero-cta {
  background-size: cover;
  background-position: center;
  padding: 110px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.discord-cta-container { max-width: 780px; margin: 0 auto; }
.discord-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #5865f2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  margin: 0 auto 22px auto;
  box-shadow: 0 0 35px rgba(88, 101, 242, 0.65);
}
.discord-cta-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--text-white); margin-bottom: 14px; }
.discord-cta-sub { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 34px; line-height: 1.6; }

/* ==========================================================================
   INTERACTIVE JOIN MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.88);
  backdrop-filter: blur(16px);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-backdrop.active { opacity: 1; pointer-events: auto; }
.join-modal-window {
  background: #0e121a;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  padding: 34px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.85), 0 0 30px var(--color-purple-glow);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.modal-backdrop.active .join-modal-window { transform: translateY(0); }
.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}
.modal-close-btn:hover { color: var(--text-white); }
.modal-header { text-align: center; margin-bottom: 26px; }
.modal-logo { width: 56px; height: 56px; border-radius: 8px; margin-bottom: 10px; }
.modal-title { font-size: 1.8rem; font-weight: 800; color: var(--text-white); }
.modal-subtitle { font-size: 0.9rem; color: var(--text-muted); }

.modal-connection-cards { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.modal-card {
  background: rgba(18, 23, 34, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}
.modal-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.input-label { display: block; font-size: 0.68rem; font-weight: 800; color: var(--text-muted); letter-spacing: 0.08em; margin-bottom: 4px; }
.input-row { display: flex; gap: 8px; }
.modal-text-input {
  flex: 1;
  background: rgba(8, 10, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
}
.modal-foot-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; }
.mt-2 { margin-top: 10px; }

/* ==========================================================================
   FOOTER, TOAST, LIGHTBOX
   ========================================================================== */
.site-footer {
  background: #040609;
  padding: 75px 0 28px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 50px;
}
.footer-tagline { font-size: 0.85rem; color: var(--color-purple-accent); font-weight: 700; margin-top: 6px; }
.footer-text { font-size: 0.88rem; color: var(--text-muted); margin-top: 10px; max-width: 300px; }
.footer-col-links h4, .footer-col-ips h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-white);
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}
.footer-col-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col-links a { color: var(--text-muted); text-decoration: none; font-size: 0.88rem; transition: var(--transition); }
.footer-col-links a:hover { color: var(--color-purple-accent); }
.footer-ip-item { margin-bottom: 10px; font-size: 0.85rem; }
.footer-ip-item span { color: var(--text-muted); margin-right: 6px; }
.footer-ip-item code {
  background: rgba(255,255,255,0.06);
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--text-white);
  font-family: 'Courier New', monospace;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(14, 18, 26, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--color-emerald);
  color: var(--text-white);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7), 0 0 20px rgba(16, 185, 129, 0.3);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}
.toast-notification.show { transform: translateY(0); opacity: 1; }
.toast-notification i { color: var(--color-emerald); font-size: 1.2rem; }

.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.95);
  backdrop-filter: blur(18px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}
.lightbox-modal.active { opacity: 1; pointer-events: auto; }
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.6rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-content { max-width: 920px; width: 100%; text-align: center; }
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 60px rgba(0,0,0,0.85);
}
.lightbox-caption { margin-top: 14px; font-size: 1.05rem; color: var(--text-white); font-weight: 600; }

.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 18, 26, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--color-purple); border-color: var(--color-purple-accent); transform: translateY(-3px); }