/* ═══════════════════════════════════════════════════════════════
   SoloKing.gg — "Cyber Forge" Theme
   Premium Rust Game Server Dashboard
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* ─── Design Tokens ────────────────────────────────────────── */
:root {
  /* Core palette */
  --bg-void:       #050a14;
  --bg-deep:       #0a1020;
  --bg-surface:    #0d1528;
  --bg-elevated:   #111d35;
  --bg-card:       rgba(13, 21, 40, 0.75);

  /* Accent — neon cyan / electric blue */
  --neon:          #00d4ff;
  --neon-dim:      #0099cc;
  --neon-glow:     rgba(0, 212, 255, 0.35);
  --neon-subtle:   rgba(0, 212, 255, 0.08);

  /* Secondary accent — warm amber */
  --amber:         #f59e0b;
  --amber-glow:    rgba(245, 158, 11, 0.25);

  /* Borders */
  --border:        rgba(0, 212, 255, 0.1);
  --border-hover:  rgba(0, 212, 255, 0.3);
  --border-strong: rgba(0, 212, 255, 0.5);

  /* Text */
  --text-1:  #e8f4f8;
  --text-2:  #8ba3b8;
  --text-3:  #4a6478;

  /* Status */
  --green:   #00e676;
  --red:     #ff3d5a;
  --yellow:  #ffd600;

  /* Gradients */
  --grad-neon:   linear-gradient(135deg, #00d4ff 0%, #0066ff 50%, #7c3aed 100%);
  --grad-card:   linear-gradient(160deg, rgba(0, 212, 255, 0.06) 0%, rgba(0, 0, 0, 0) 60%);
  --grad-hero:   linear-gradient(180deg, transparent 0%, var(--bg-void) 100%);

  /* Layout */
  --max-w: 1240px;
  --gap: 4rem;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  /* Easing */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-void);
  color: var(--text-1);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 500;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ─── Animated Cyber Background ────────────────────────────── */
.cyber-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cyber-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.cyber-bg__glow {
  position: absolute;
  border-radius: 50%;
  -webkit-filter: blur(100px);
  filter: blur(100px);
}

.cyber-bg__glow--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
  top: -250px; left: -200px;
  animation: drift1 25s ease-in-out infinite;
}

.cyber-bg__glow--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
  top: 50%; right: -200px;
  animation: drift2 30s ease-in-out infinite;
}

.cyber-bg__glow--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  bottom: -150px; left: 40%;
  animation: drift3 20s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(100px, 80px); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-80px, -60px); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(60px, -40px); }
}

.cyber-bg__scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 212, 255, 0.008) 2px,
    rgba(0, 212, 255, 0.008) 4px
  );
}

/* ─── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 10, 20, 0.85);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s ease;
}

.nav--scrolled {
  background: rgba(5, 10, 20, 0.96);
  border-bottom-color: var(--border-hover);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 255, 0.05);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 68px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
}

.nav__logo-badge {
  width: 42px; height: 42px; min-width: 42px;
  border-radius: var(--r-md);
  background: var(--grad-neon);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800; font-size: 0.85rem; color: #fff;
  box-shadow: 0 0 20px var(--neon-glow);
  flex-shrink: 0;
}

.nav__logo-img {
  height: 44px; width: auto; max-width: 64px;
  object-fit: contain; flex-shrink: 0;
}

.nav__name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  background: var(--grad-neon);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.nav__name-img {
  height: 38px; width: auto; max-width: 240px;
  object-fit: contain; flex-shrink: 1; min-width: 0;
}

.nav__menu {
  display: flex; align-items: center; gap: 0.25rem;
  flex-shrink: 0;
}

.nav__link {
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem; font-weight: 600;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: all 0.25s ease;
  position: relative;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav__link:hover {
  color: var(--neon);
  background: var(--neon-subtle);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon-glow);
  border-radius: 1px;
  transition: all 0.3s var(--ease);
  transform: translateX(-50%);
}

.nav__link:hover::after { width: 70%; }

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  -webkit-appearance: none; appearance: none;
}

.nav__toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-2); border-radius: 2px;
  transition: all 0.3s ease;
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; z-index: 1;
  text-align: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 120px;
  background: var(--grad-hero);
  pointer-events: none;
}

.hero__container {
  position: relative; z-index: 1;
  max-width: 800px; margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 1.2rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--neon);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 100px;
  background: rgba(0, 212, 255, 0.06);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero__title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--text-1);
  margin-bottom: 1.25rem;
  text-shadow: 0 0 60px rgba(0, 212, 255, 0.2);
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero__desc {
  max-width: 580px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.8;
}

.hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-3);
}

.hero__divider span {
  display: block;
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.hero__divider svg {
  opacity: 0.4;
  animation: rotateSlow 12s linear infinite;
}

@keyframes rotateSlow {
  to { transform: rotate(360deg); }
}

/* ─── Section Heading ──────────────────────────────────────── */
.section-heading {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.35rem; font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--text-1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  position: relative; z-index: 1;
  letter-spacing: 0.04em;
}

.section-heading__icon {
  display: flex;
  color: var(--neon);
  opacity: 0.7;
}

/* ─── Stats Section ────────────────────────────────────────── */
.stats {
  position: relative; z-index: 1;
  padding: 0 2rem var(--gap);
}

.stats__container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-neon);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stat:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 212, 255, 0.08);
}

.stat:hover::before { opacity: 1; }

.stat__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px; min-width: 48px;
  border-radius: var(--r-md);
  background: var(--neon-subtle);
  border: 1px solid var(--border);
  color: var(--neon);
  transition: all 0.3s ease;
}

.stat:hover .stat__icon {
  border-color: var(--border-hover);
  box-shadow: 0 0 15px var(--neon-glow);
}

.stat__data { min-width: 0; }

.stat__value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--text-1);
  line-height: 1.2;
}

.stat__label {
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Servers Section ──────────────────────────────────────── */
.servers {
  position: relative; z-index: 1;
  padding: 0 2rem var(--gap);
}

.servers__container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.servers__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* ─── Server Card ──────────────────────────────────────────── */
.server-card {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all 0.5s var(--ease);
  position: relative;
}

.server-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-neon);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.server-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.server-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(0, 212, 255, 0.06),
    inset 0 1px 0 rgba(0, 212, 255, 0.1);
}

.server-card:hover::before { opacity: 1; }
.server-card:hover::after  { opacity: 1; }

/* Card Header */
.server-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0;
  position: relative; z-index: 1;
}

.server-card__name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem; font-weight: 700;
  line-height: 1.35;
  color: var(--text-1);
  flex: 1;
  min-height: 2.7em;
  word-break: break-word;
  overflow-wrap: break-word;
}

.server-card__status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding-top: 0.2rem;
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot--online {
  background: var(--green);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

.status-dot--offline {
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 61, 90, 0.4);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}

.status-text {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-text--online  { color: var(--green); }
.status-text--offline { color: var(--red); }

/* Card Body */
.server-card__body {
  padding: 1.25rem 1.5rem;
  position: relative; z-index: 1;
}

/* Player Bar */
.player-bar { margin-bottom: 1.25rem; }

.player-bar__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.player-bar__label {
  font-size: 0.82rem;
  color: var(--text-2);
  font-weight: 600;
}

.player-bar__count {
  font-size: 0.85rem; font-weight: 700;
  color: var(--text-1);
  font-family: 'JetBrains Mono', monospace;
}

.player-bar__count span {
  color: var(--text-3);
  font-weight: 400;
}

.player-bar__track {
  height: 6px;
  background: rgba(0, 212, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.05);
}

.player-bar__fill {
  height: 100%;
  background: var(--grad-neon);
  border-radius: 3px;
  transition: width 0.8s var(--ease);
  min-width: 2px;
  box-shadow: 0 0 10px var(--neon-glow);
}

/* Server IP */
.server-ip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.9rem;
  background: rgba(0, 212, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
}

.server-ip:hover {
  border-color: var(--border-hover);
  background: rgba(0, 212, 255, 0.06);
}

.server-ip__icon,
.server-ip > svg {
  width: 16px; height: 16px;
  min-width: 16px; min-height: 16px;
  max-width: 16px; max-height: 16px;
  color: var(--neon-dim);
  flex-shrink: 0;
}

.server-ip__text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-2);
  -webkit-user-select: all; user-select: all;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0;
}

.server-ip__copy {
  margin-left: auto;
  font-size: 0.7rem; font-weight: 600;
  color: var(--neon-dim);
  opacity: 0;
  transition: opacity 0.2s ease;
  flex-shrink: 0; white-space: nowrap;
}

.server-ip:hover .server-ip__copy { opacity: 1; }

/* Map Button */
.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: transparent;
  color: var(--neon);
  font-size: 0.82rem; font-weight: 700;
  border-radius: var(--r-sm);
  border: 1px solid rgba(0, 212, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1.25rem;
  -webkit-appearance: none; appearance: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.map-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--neon);
  box-shadow: 0 0 20px var(--neon-glow);
  transform: translateY(-1px);
}

.map-btn svg, .map-btn .map-icon {
  width: 14px; height: 14px;
  min-width: 14px; max-width: 14px;
  min-height: 14px; max-height: 14px;
  flex-shrink: 0;
}

/* Wipe Section */
.wipe-section {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.wipe-section__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-2);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wipe-section__title svg,
.wipe-section__title .wipe-icon {
  width: 16px; height: 16px;
  min-width: 16px; max-width: 16px;
  min-height: 16px; max-height: 16px;
  color: var(--neon-dim);
  flex-shrink: 0;
}

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.countdown__unit {
  background: rgba(0, 212, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.8rem 0.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.countdown__unit:hover {
  border-color: var(--border-hover);
  background: rgba(0, 212, 255, 0.06);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.05);
}

.countdown__number {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--neon);
  line-height: 1;
  margin-bottom: 0.3rem;
  text-shadow: 0 0 20px var(--neon-glow);
}

.countdown__label {
  font-size: 0.65rem; font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.wipe-text {
  text-align: center;
  padding: 1rem 0;
  color: var(--text-3);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Connect Button */
.connect-btn {
  display: block;
  width: 100%;
  padding: 0.9rem;
  background: var(--grad-neon);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  text-align: center;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  -webkit-appearance: none; appearance: none;
  position: relative;
  overflow: hidden;
}

.connect-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.connect-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3), 0 0 40px rgba(0, 212, 255, 0.15);
}

.connect-btn:hover::before { opacity: 1; }

.connect-btn:active {
  transform: translateY(0);
}

/* Card Footer / Tags */
.server-card__footer {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  position: relative; z-index: 1;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem; font-weight: 600;
  color: var(--text-3);
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.tag:hover {
  border-color: var(--border-hover);
  color: var(--neon);
}

/* ─── Loading ──────────────────────────────────────────────── */
.loading {
  text-align: center;
  padding: 3rem 0;
}

.loading__ring {
  width: 44px; height: 44px;
  border: 2px solid var(--border);
  border-top-color: var(--neon);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 15px var(--neon-glow);
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading__text {
  color: var(--text-3);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.loading--hidden { display: none; }

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer {
  position: relative; z-index: 1;
  padding: 0 2rem;
}

.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 0;
  text-align: center;
}

.site-footer__line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
  margin-bottom: 2rem;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .servers__grid {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root { --gap: 3rem; }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(5, 10, 20, 0.98);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease);
  }

  .nav__menu--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }

  .nav__logo-img { height: 36px; max-width: 50px; }
  .nav__name-img { height: 30px; max-width: 170px; }
  .nav__name { font-size: 1rem; }

  .hero { padding: 4rem 1.5rem 2.5rem; }
  .hero__title { font-size: clamp(1.6rem, 5.5vw, 2.8rem); }
  .hero__desc { font-size: 0.95rem; }
  .hero__badge { font-size: 0.65rem; }

  .section-heading { font-size: 1.15rem; }
}

@media (max-width: 480px) {
  :root { --gap: 2.5rem; }

  .nav__inner { padding: 0 1rem; height: 60px; }
  .nav__brand { gap: 0.5rem; }
  .nav__logo-img { height: 30px; max-width: 42px; }
  .nav__name-img { height: 24px; max-width: 130px; }
  .nav__name { font-size: 0.85rem; }

  .nav__menu { top: 60px; }

  .stats__grid { gap: 0.75rem; }
  .stat { padding: 1rem; gap: 0.75rem; }
  .stat__icon { width: 40px; height: 40px; min-width: 40px; }
  .stat__value { font-size: 1.3rem; }
  .stat__label { font-size: 0.7rem; }

  .hero { padding: 3rem 1rem 2rem; }
  .hero__title { font-size: clamp(1.3rem, 6vw, 2rem); }
  .hero__desc { font-size: 0.85rem; padding: 0 0.5rem; }

  .server-card__header { padding: 1.25rem 1.25rem 0; }
  .server-card__name { font-size: 0.92rem; }
  .server-card__body { padding: 1rem 1.25rem; }
  .server-card__footer { padding: 0.75rem 1.25rem; }

  .countdown__number { font-size: 1.05rem; }
  .countdown__label { font-size: 0.6rem; }
  .server-ip__text { font-size: 0.72rem; }

  .section-heading { font-size: 1rem; }
  .servers__grid { max-width: 100%; }

  .stats, .servers, .hero { padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 360px) {
  .nav__inner { padding: 0 0.75rem; }
  .nav__logo-img { height: 26px; max-width: 36px; }
  .nav__name-img { height: 20px; max-width: 100px; }
  .nav__name { font-size: 0.75rem; }

  .stat { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .stat__icon { width: 36px; height: 36px; min-width: 36px; }
  .stat__value { font-size: 1.15rem; }

  .countdown { gap: 0.35rem; }
  .countdown__unit { padding: 0.5rem 0.25rem; }
  .countdown__number { font-size: 0.9rem; }
}

@media (min-width: 1400px) {
  .nav__logo-img { height: 50px; max-width: 72px; }
  .nav__name-img { height: 44px; max-width: 280px; }
  .nav__name { font-size: 1.3rem; }
}

/* ─── Animations ───────────────────────────────────────────── */
.fade-in {
  animation: fadeIn 0.6s var(--ease) forwards;
  opacity: 0;
}

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

.server-card {
  animation: fadeIn 0.5s var(--ease) forwards;
  opacity: 0;
}

.server-card:nth-child(1) { animation-delay: 0.05s; }
.server-card:nth-child(2) { animation-delay: 0.15s; }
.server-card:nth-child(3) { animation-delay: 0.25s; }
.server-card:nth-child(4) { animation-delay: 0.35s; }
.server-card:nth-child(5) { animation-delay: 0.45s; }
.server-card:nth-child(6) { animation-delay: 0.55s; }

/* ─── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 212, 255, 0.3); }

::selection {
  background: rgba(0, 212, 255, 0.25);
  color: #fff;
}

/* ─── iOS Safe Area ────────────────────────────────────────── */
@supports (padding: env(safe-area-inset-bottom)) {
  .site-footer__inner {
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
  }
  .nav__inner {
    padding-left: calc(2rem + env(safe-area-inset-left));
    padding-right: calc(2rem + env(safe-area-inset-right));
  }
}

/* ─── Reduced Motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
