/* ═══════════════════════════════════════════════════════════════════════════
   GameRating — Design System
   Dark gaming theme · Glassmorphism · Smooth animations
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────────────────── */
:root {
  --bg:          #08090e;
  --bg-2:        #0d0e16;
  --bg-3:        #12131f;
  --surface:     rgba(255,255,255,0.04);
  --surface-h:   rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.07);
  --border-h:    rgba(255,255,255,0.14);

  --primary:     #6366f1;
  --primary-2:   #8b5cf6;
  --primary-glow:rgba(99,102,241,0.35);
  --gradient:    linear-gradient(135deg, #6366f1, #8b5cf6);

  --cyan:        #06b6d4;
  --green:       #10b981;
  --yellow:      #f59e0b;
  --red:         #ef4444;

  --text:        #f1f5f9;
  --text-2:      #94a3b8;
  --text-3:      #64748b;

  --radius:      12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --transition:  0.22s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ─── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ─── Typography ────────────────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Layout ────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

/* ─── Glass Card ────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.card:hover {
  background: var(--surface-h);
  border-color: var(--border-h);
  transform: translateY(-2px);
}

.card-glow:hover {
  box-shadow: 0 8px 32px var(--primary-glow);
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 18px var(--primary-glow);
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-h);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--surface-h);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover { color: var(--text); background: var(--surface-h); }

.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

.btn-vote {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 18px rgba(16,185,129,0.35);
  transition: var(--transition);
}
.btn-vote:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16,185,129,0.5);
}
.btn-vote:active { transform: translateY(0); }

/* ─── Badges ────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-purple { background: rgba(99,102,241,0.18); color: var(--primary); border: 1px solid rgba(99,102,241,0.3); }
.badge-cyan   { background: rgba(6,182,212,0.15);  color: var(--cyan);    border: 1px solid rgba(6,182,212,0.3); }
.badge-green  { background: rgba(16,185,129,0.15); color: var(--green);   border: 1px solid rgba(16,185,129,0.3); }
.badge-yellow { background: rgba(245,158,11,0.15); color: var(--yellow);  border: 1px solid rgba(245,158,11,0.3); }
.badge-red    { background: rgba(239,68,68,0.15);  color: var(--red);     border: 1px solid rgba(239,68,68,0.3); }

.badge-live {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.3);
  animation: pulse-live 2s infinite;
}
.badge-live::before {
  content: '';
  width: 6px; height: 6px;
  background: #ef4444;
  border-radius: 50%;
  animation: blink 1.4s infinite;
}

@keyframes pulse-live {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* ─── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,9,14,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--surface-h);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: var(--transition);
}
.nav-dropdown-btn:hover, .nav-dropdown-btn.active {
  color: var(--text);
  background: var(--surface-h);
}
.nav-dropdown-btn svg { transition: var(--transition); }
.nav-dropdown-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-2);
  border: 1px solid var(--border-h);
  border-radius: var(--radius-lg);
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 200;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  transition: var(--transition);
}
.dropdown-item:hover {
  background: var(--surface-h);
  color: var(--text);
}
.dropdown-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Mobile burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.burger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,0.18) 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 80% 50%,  rgba(139,92,246,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 1; padding: 80px 0; }
.hero-sub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}
.hero-title { margin-bottom: 18px; }
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label { font-size: 0.82rem; color: var(--text-3); font-weight: 500; }

/* ─── Section Header ────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
}
.section-title span { color: var(--text-3); font-weight: 400; font-size: 0.95rem; margin-left: 10px; }

/* ─── Game Cards ────────────────────────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 16px;
}

.game-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}
.game-card:hover { transform: translateY(-4px) scale(1.02); }
.game-card:hover .game-card-overlay { opacity: 0.5; }
.game-card:hover .game-card-name { bottom: 20px; }

.game-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.game-card:hover .game-card-img { transform: scale(1.08); }

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  transition: var(--transition);
}

.game-card-name {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}
.game-card-count {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 2px;
}
.game-card-accent {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px; height: 10px;
  border-radius: 50%;
}

/* Default game card (no image) */
.game-card-default {
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}
.game-card-default:hover {
  border-color: var(--border-h);
  background: var(--surface-h);
}
.game-icon {
  font-size: 2.5rem;
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* ─── Server Cards ──────────────────────────────────────────────────────── */

/* Premium card */
.server-card-premium {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(99,102,241,0.4);
  transition: var(--transition);
  background: var(--bg-2);
}
.server-card-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.7);
}
.server-card-premium .card-banner {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.server-card-premium .card-banner-placeholder {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
}
.server-card-premium .card-body { padding: 16px 20px 20px; }
.card-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px; height: 32px;
  background: var(--gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.card-rank-top { background: linear-gradient(135deg, #f59e0b, #ef4444); box-shadow: 0 4px 12px rgba(245,158,11,0.4); }

/* Standard card */
.server-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.server-card:hover {
  background: var(--surface-h);
  border-color: var(--border-h);
  transform: translateX(4px);
}
.server-card-logo {
  width: 56px; height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-3);
  flex-shrink: 0;
}
.server-card-logo-placeholder {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.server-card-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-3);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.server-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.server-card-url {
  font-size: 0.78rem;
  color: var(--primary);
  opacity: 0.8;
}
.server-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.server-card-votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.votes-count {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
}
.votes-label { font-size: 0.72rem; color: var(--text-3); }

/* ─── Stars ─────────────────────────────────────────────────────────────── */
.stars { display: flex; gap: 2px; }
.star { color: var(--text-3); font-size: 0.85rem; }
.star.filled { color: var(--yellow); }

/* ─── Streamer Cards ────────────────────────────────────────────────────── */
.streamer-card {
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.streamer-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}
.streamer-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  background: var(--bg-3);
  transition: var(--transition);
}
.streamer-card:hover .streamer-avatar { border-color: var(--primary); }
.streamer-live-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
}
.streamer-name { font-weight: 700; margin-bottom: 4px; }
.streamer-followers {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 12px;
}
.streamer-platforms { display: flex; justify-content: center; gap: 8px; }
.platform-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition);
}
.platform-icon:hover { transform: scale(1.15); }
.platform-twitch { background: rgba(145,70,255,0.2); color: #9146ff; }
.platform-youtube { background: rgba(255,0,0,0.15); color: #ff0000; }
.platform-vk      { background: rgba(0,119,255,0.15); color: #0077ff; }

/* ─── Filters / Tabs ────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: fit-content;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
  transition: var(--transition);
}
.filter-btn:hover { color: var(--text); background: var(--surface-h); }
.filter-btn.active {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.tab-btn {
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ─── Forms ─────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 11px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--primary);
  background: var(--surface-h);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.form-input::placeholder { color: var(--text-3); }
textarea.form-input { resize: vertical; min-height: 100px; }
select.form-input { cursor: pointer; }

.form-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--red);
  margin-bottom: 20px;
}

/* ─── Server Detail Hero ────────────────────────────────────────────────── */
.server-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 32px;
}
.server-hero-banner {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.server-hero-banner-placeholder {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
}
.server-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,9,14,0.95) 0%, rgba(8,9,14,0.3) 60%, transparent 100%);
}
.server-hero-body {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: flex-end;
  gap: 20px;
}
.server-hero-logo {
  width: 80px; height: 80px;
  border-radius: 16px;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.15);
  background: var(--bg-3);
  flex-shrink: 0;
}
.server-hero-info { flex: 1; }
.server-hero-name { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.server-hero-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.server-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-2);
}
.server-hero-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ─── Sidebar ───────────────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { padding: 20px; }
.sidebar-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 16px;
}

/* ─── Review Cards ──────────────────────────────────────────────────────── */
.review-card { padding: 20px; margin-bottom: 14px; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
}
.review-author { font-weight: 600; font-size: 0.9rem; }
.review-date { font-size: 0.78rem; color: var(--text-3); }
.review-text { font-size: 0.88rem; color: var(--text-2); line-height: 1.7; }

/* ─── Vote Block ────────────────────────────────────────────────────────── */
.vote-block {
  text-align: center;
  padding: 28px;
}
.vote-count-big {
  font-size: 3rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin: 8px 0;
}

/* ─── Toast ─────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slide-in 0.3s ease;
  min-width: 280px;
}
.toast-success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.4); color: var(--green); }
.toast-error   { background: rgba(239,68,68,0.15);  border: 1px solid rgba(239,68,68,0.4);  color: var(--red); }
.toast-info    { background: rgba(99,102,241,0.15);  border: 1px solid rgba(99,102,241,0.4); color: var(--primary); }

@keyframes slide-in {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand-desc { font-size: 0.88rem; color: var(--text-3); margin-top: 10px; max-width: 280px; }
.footer-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 14px; }
.footer-link {
  display: block;
  font-size: 0.88rem;
  color: var(--text-2);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-3);
}

/* ─── Page Header ───────────────────────────────────────────────────────── */
.page-header {
  position: relative;
  padding: 48px 0;
  overflow: hidden;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-header-content { position: relative; z-index: 1; }
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 12px;
}
.page-breadcrumb a { color: var(--text-3); transition: color var(--transition); }
.page-breadcrumb a:hover { color: var(--text); }

/* ─── Animations ────────────────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up  { animation: fade-up 0.5s ease both; }
.animate-fade-in  { animation: fade-in 0.4s ease both; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-h) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Pagination ────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 40px;
}
.page-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.page-btn:hover { background: var(--surface-h); color: var(--text); border-color: var(--border-h); }
.page-btn.active { background: var(--gradient); color: #fff; border-color: transparent; }

/* ─── Uptime indicator ──────────────────────────────────────────────────── */
.uptime-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.uptime-up   { background: var(--green); box-shadow: 0 0 6px var(--green); }
.uptime-down { background: var(--red); }

/* ─── Dashboard ─────────────────────────────────────────────────────────── */
.dashboard-sidebar {
  width: 240px;
  flex-shrink: 0;
}
.dashboard-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: var(--transition);
  margin-bottom: 2px;
}
.dashboard-nav-item:hover { background: var(--surface-h); color: var(--text); }
.dashboard-nav-item.active { background: rgba(99,102,241,0.12); color: var(--primary); }

/* ─── Stat Box ──────────────────────────────────────────────────────────── */
.stat-box {
  padding: 20px 24px;
  text-align: center;
}
.stat-num { font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.stat-label { font-size: 0.8rem; color: var(--text-3); font-weight: 500; }

/* ─── Empty state ───────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-3);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state-title { font-size: 1.1rem; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.empty-state-desc { font-size: 0.88rem; margin-bottom: 24px; }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .games-grid { grid-template-columns: repeat(3,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }

  .nav-menu, .nav-actions { display: none; }
  .nav-actions.open, .nav-menu.open { display: flex; }
  .burger { display: flex; }

  .navbar-mobile-menu {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    flex-direction: column;
    gap: 4px;
    z-index: 99;
  }

  .games-grid { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .server-hero-body { flex-direction: column; align-items: flex-start; }
  .server-hero-actions { width: 100%; }
  .dashboard-sidebar { width: 100%; }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: 1fr 1fr; }
  .server-card { grid-template-columns: 48px 1fr; }
  .server-card .server-card-votes { display: none; }
}

/* ─── Advertising page ─────────────────────────────────────────────────────── */
.adv-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-2);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.adv-feature:last-child { border-bottom: none; }
.adv-feature-no { color: var(--text-3); opacity: .6; }

@media (max-width: 900px) {
  .adv-pricing-grid { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 600px) {
  .adv-pricing-grid { grid-template-columns: 1fr !important; }
}
