/* ============================================================
   ARTICRAFT — styles.css
   Dark + Arctic/Ice Theme | Professional Minecraft Server
   ============================================================ */

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

:root {
  --bg-deep:      #050b18;
  --bg-dark:      #0a1628;
  --bg-card:      #0f1f3d;
  --bg-card2:     #111a30;
  --bg-glass:     rgba(15, 31, 61, 0.75);
  --border:       rgba(100, 180, 255, 0.12);
  --border-glow:  rgba(100, 180, 255, 0.3);

  --accent:       #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow:  rgba(59, 130, 246, 0.35);
  --ice:          #a5f3fc;
  --ice-dim:      #67e8f9;
  --cyan:         #06b6d4;
  --purple:       #8b5cf6;
  --green:        #22c55e;
  --red:          #ef4444;
  --orange:       #f97316;
  --yellow:       #eab308;
  --gold:         #f59e0b;

  --text-primary:   #f0f9ff;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  --font-main: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 20px rgba(59,130,246,0.25);

  --nav-h: 72px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Section common ─── */
.section { padding: 90px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 20px;
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--ice-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}
.btn-lg { padding: 13px 26px; font-size: 1rem; }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  color: #fff;
  box-shadow: 0 0 18px rgba(59,130,246,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(59,130,246,0.55);
  background: linear-gradient(135deg, #60a5fa, var(--accent));
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(59,130,246,0.25));
  border-color: rgba(139,92,246,0.4);
  color: #c4b5fd;
}
.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(139,92,246,0.45), rgba(59,130,246,0.4));
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(100,180,255,0.35);
  color: var(--text-secondary);
}
.btn-outline:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  transform: translateY(-2px);
}

.btn-telegram {
  background: linear-gradient(135deg, #0088cc, #006bad);
  color: #fff;
}
.btn-telegram:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,136,204,0.4); }

.btn-discord {
  background: linear-gradient(135deg, #5865f2, #4752c4);
  color: #fff;
}
.btn-discord:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(88,101,242,0.4); }

.btn-ip {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.3);
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.btn-ip:hover { background: rgba(59,130,246,0.22); border-color: var(--accent); }

.btn-sort {
  background: rgba(100,180,255,0.1);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  padding: 9px 16px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-sort:hover { border-color: var(--accent); color: var(--accent-light); }

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card2));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  color: var(--text-primary);
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(59,130,246,0.2);
  pointer-events: none;
  max-width: 300px;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ════════════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(5, 11, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(5, 11, 24, 0.97);
  box-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.5rem; }
.logo-text {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}
.logo-accent { color: var(--accent-light); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(59,130,246,0.12);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 0%, rgba(59,130,246,0.12) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 80% 80%, rgba(6,182,212,0.08) 0%, transparent 60%),
              linear-gradient(to bottom, transparent 60%, var(--bg-deep) 100%);
}

/* Particles canvas */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 24px;
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  animation: pulse-border 2.5s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(59,130,246,0.25); }
  50% { border-color: rgba(59,130,246,0.6); }
}

.hero-title {
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero-title-main {
  display: block;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, var(--ice) 40%, var(--accent-light) 70%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(59,130,246,0.4));
}
.hero-title-sub {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  margin-top: 8px;
}

.hero-ip-display {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(15,31,61,0.8);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.ip-label { color: var(--text-muted); font-size: 0.85rem; }
.ip-value {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ice);
  letter-spacing: 0.04em;
}
.ip-copy-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(59,130,246,0.2);
  border: 1px solid rgba(59,130,246,0.35);
  border-radius: var(--radius-sm);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.ip-copy-btn:hover { background: rgba(59,130,246,0.35); transform: scale(1.05); }

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Features */
.hero-features {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(12px);
}
.features-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ice);
  margin-bottom: 20px;
}
.features-list { display: flex; flex-direction: column; gap: 16px; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.feature-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.feature-item p { font-size: 0.82rem; color: var(--text-muted); }

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  animation: bounce 2s ease-in-out infinite;
  z-index: 2;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ════════════════════════════════════════════════════════════
   STATUS BAR
════════════════════════════════════════════════════════════ */
.status-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  backdrop-filter: blur(12px);
}
.status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background 0.3s;
}
.status-dot.online { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse-dot 2s infinite; }
.status-dot.offline { background: var(--red); }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 4px var(--green); }
  50% { box-shadow: 0 0 14px var(--green); }
}
.status-label { color: var(--text-muted); font-size: 0.82rem; }
.status-value { color: var(--text-primary); font-weight: 600; font-size: 0.9rem; font-family: var(--font-mono); }
.status-icon { font-size: 1rem; }
.status-divider { width: 1px; height: 24px; background: var(--border); }
.status-api-note { margin-left: 12px; }
.api-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(234,179,8,0.12);
  border: 1px solid rgba(234,179,8,0.25);
  border-radius: 12px;
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════
   MODES
════════════════════════════════════════════════════════════ */
.modes-section { background: var(--bg-deep); }

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

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.mode-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.mode-card-wide {
  grid-column: span 4;
  flex-direction: row;
}
.mode-card-wide .mode-card-header {
  min-width: 180px;
  height: auto;
}
.mode-card-wide .mode-card-body {
  flex: 1;
}

.mode-card-header {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.mode-card-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(15,31,61,0.8) 100%);
}
.anarchy1 { background: linear-gradient(135deg, #1a0000, #3d0000, #7f1d1d); }
.anarchy2 { background: linear-gradient(135deg, #0d0a00, #3d2c00, #92400e); }
.br1      { background: linear-gradient(135deg, #0a001f, #2d0060, #6d28d9); }
.br2      { background: linear-gradient(135deg, #001414, #003d3d, #0e7490); }
.smp      { background: linear-gradient(135deg, #001a0d, #00421a, #15803d); }

.mode-icon {
  font-size: 3rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.3));
}
.mode-badge-wrap {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}
.mode-badge-tag {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
}
.mode-badge-tag.hot   { background: rgba(239,68,68,0.2); border: 1px solid rgba(239,68,68,0.4); color: #fca5a5; }
.mode-badge-tag.new   { background: rgba(59,130,246,0.2); border: 1px solid rgba(59,130,246,0.4); color: var(--accent-light); }
.mode-badge-tag.active{ background: rgba(34,197,94,0.2); border: 1px solid rgba(34,197,94,0.4); color: #86efac; }
.mode-badge-tag.premium{background: rgba(234,179,8,0.2); border: 1px solid rgba(234,179,8,0.4); color: #fde68a; }

.mode-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.mode-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}
.mode-desc { color: var(--text-secondary); font-size: 0.87rem; line-height: 1.55; }
.mode-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 3px 10px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 10px;
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 600;
}
.mode-info { display: flex; flex-direction: column; gap: 4px; }
.mode-info-item { display: flex; justify-content: space-between; align-items: center; }
.info-label { color: var(--text-muted); font-size: 0.8rem; }
.info-val { color: var(--text-secondary); font-size: 0.8rem; font-weight: 600; }
.btn-mode {
  margin-top: auto;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.25s;
  text-align: center;
  border: none;
  cursor: pointer;
}
.btn-mode:hover { transform: translateY(-1px); box-shadow: 0 0 16px rgba(59,130,246,0.4); }

/* ════════════════════════════════════════════════════════════
   DONATE
════════════════════════════════════════════════════════════ */
.donate-section {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 50%, var(--bg-deep) 100%);
}

/* Tabs */
.donate-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}
.tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: rgba(15,31,61,0.6);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s;
}
.tab-btn:hover { border-color: var(--border-glow); color: var(--text-primary); }
.tab-btn.active {
  background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(6,182,212,0.15));
  border-color: rgba(59,130,246,0.5);
  color: var(--accent-light);
  box-shadow: 0 0 12px rgba(59,130,246,0.2);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeTabIn 0.35s ease; }
@keyframes fadeTabIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Ranks grid */
.ranks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.ranks-grid-small { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.rank-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s;
}
.rank-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* Rank color accents */
.rank-emperor { border-top: 3px solid #f59e0b; }
.rank-general  { border-top: 3px solid #94a3b8; }
.rank-legend   { border-top: 3px solid #8b5cf6; }
.rank-elite    { border-top: 3px solid #eab308; }
.rank-titan    { border-top: 3px solid #3b82f6; }
.rank-alpomish { border-top: 3px solid #06b6d4; }
.rank-knight   { border-top: 3px solid #64748b; }
.rank-hero     { border-top: 3px solid #22c55e; }
.rank-soldier  { border-top: 3px solid #6b7280; }
.rank-art      { border-top: 3px solid #a78bfa; }

.rank-header { display: flex; align-items: center; gap: 10px; }
.rank-emoji { font-size: 1.5rem; }
.rank-name { font-size: 1rem; font-weight: 800; color: var(--text-primary); }
.rank-prices { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
}
.price-row.best { background: rgba(59,130,246,0.1); }
.price-label { color: var(--text-muted); font-size: 0.8rem; }
.price-val { color: var(--green); font-weight: 700; font-size: 0.88rem; font-family: var(--font-mono); }
.btn-rank {
  background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(6,182,212,0.2));
  border: 1px solid rgba(59,130,246,0.35);
  color: var(--accent-light);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  display: block;
}
.btn-rank:hover { background: linear-gradient(135deg, rgba(59,130,246,0.45), rgba(6,182,212,0.35)); transform: scale(1.02); }

/* Simple cards */
.simple-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.simple-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
}
.simple-card:hover { transform: translateY(-4px); border-color: var(--border-glow); box-shadow: var(--shadow-md); }
.simple-card-icon { font-size: 2.2rem; }
.simple-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.simple-price { color: var(--green); font-weight: 800; font-size: 1.05rem; font-family: var(--font-mono); }
.simple-note { color: var(--text-muted); font-size: 0.78rem; line-height: 1.4; }
.simple-save { color: var(--orange); font-size: 0.78rem; font-weight: 600; }
.simple-card-best { border-color: rgba(234,179,8,0.4); }
.best-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 10px;
  background: linear-gradient(135deg, #b45309, #d97706);
  border-radius: 0 0 10px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.unban-card { border-top: 3px solid var(--red); }

/* SMP Donate */
.smp-donate-grid { display: flex; flex-direction: column; gap: 40px; }
.smp-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ice);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Keys grid */
.keys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.key-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: all 0.3s;
}
.key-card:hover { transform: translateY(-3px); border-color: var(--border-glow); }
.key-icon { font-size: 1.6rem; }
.key-name { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.key-price { color: var(--green); font-weight: 700; font-size: 0.9rem; font-family: var(--font-mono); }
.key-common   { border-top: 3px solid #94a3b8; }
.key-crimson  { border-top: 3px solid #ef4444; }
.key-prime    { border-top: 3px solid #8b5cf6; }
.key-gold     { border-top: 3px solid #f59e0b; }
.key-amethyst { border-top: 3px solid #a78bfa; }

/* Donate CTA */
.donate-cta {
  margin-top: 48px;
  text-align: center;
  padding: 32px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
}
.donate-cta-text { color: var(--text-secondary); margin-bottom: 20px; font-size: 1rem; font-weight: 500; }
.donate-cta-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════════
   PLAYERS
════════════════════════════════════════════════════════════ */
.players-section { background: var(--bg-deep); }

.players-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  align-items: center;
}
.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
#playerSearch {
  width: 100%;
  padding: 10px 12px 10px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
#playerSearch:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
#playerSearch::placeholder { color: var(--text-muted); }

.filter-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
#rankFilter, #banFilter {
  padding: 9px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}
#rankFilter:focus, #banFilter:focus { border-color: var(--accent); }
#rankFilter option, #banFilter option { background: var(--bg-card2); }

/* Players Table */
.players-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: block;
}
.players-table {
  width: 100%;
  border-collapse: collapse;
}
.players-table th {
  padding: 14px 16px;
  text-align: left;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(15,31,61,0.8);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.players-table td {
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(100,180,255,0.05);
  vertical-align: middle;
}
.players-table tr:last-child td { border-bottom: none; }
.players-table tbody tr { transition: background 0.2s; }
.players-table tbody tr:hover { background: rgba(59,130,246,0.05); }

/* Nickname cell */
.player-nick {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.player-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Rank badge */
.rank-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Ban status */
.ban-ok   { color: var(--green); font-weight: 700; font-size: 0.82rem; }
.ban-bad  { color: var(--red); font-weight: 700; font-size: 0.82rem; }

/* Token display */
.token-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--yellow);
  font-weight: 700;
}

/* Last seen */
.last-seen { color: var(--text-muted); font-size: 0.8rem; }

/* Mobile cards */
.players-cards-mobile { display: none; }

.player-mobile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.2s;
}
.player-mobile-card:hover { border-color: var(--border-glow); }
.player-mobile-info { flex: 1; }
.player-mobile-nick { font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.player-mobile-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; }

.players-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.players-note {
  text-align: center;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 10px 16px;
  background: rgba(234,179,8,0.06);
  border: 1px solid rgba(234,179,8,0.15);
  border-radius: var(--radius-md);
  display: inline-block;
  width: 100%;
}

/* ════════════════════════════════════════════════════════════
   HOW TO JOIN
════════════════════════════════════════════════════════════ */
.howtojoin-section {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 100%);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  z-index: 0;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}
.step-card:hover { transform: translateY(-4px); border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.step-num {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  border: 2px solid var(--bg-deep);
}
.step-icon { font-size: 2.2rem; margin-bottom: 12px; }
.step-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--text-secondary); font-size: 0.83rem; }
.step-ip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  margin: 6px 0;
}
.step-ip code { font-family: var(--font-mono); color: var(--ice); font-size: 0.88rem; font-weight: 700; }
.step-copy-btn {
  background: rgba(59,130,246,0.2);
  border: none;
  border-radius: 4px;
  padding: 3px 5px;
  color: var(--accent-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}
.step-copy-btn:hover { background: rgba(59,130,246,0.4); }
.join-cta { text-align: center; }

/* ════════════════════════════════════════════════════════════
   NEWS
════════════════════════════════════════════════════════════ */
.news-section { background: var(--bg-deep); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s;
}
.news-card:hover { transform: translateY(-4px); border-color: var(--border-glow); box-shadow: var(--shadow-md); }
.news-date { color: var(--text-muted); font-size: 0.78rem; }
.news-category {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 10px;
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 700;
  align-self: flex-start;
}
.news-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.news-desc { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.55; flex: 1; }
.news-link { color: var(--accent-light); font-size: 0.85rem; font-weight: 600; margin-top: auto; }
.news-link:hover { color: var(--ice); }

/* ════════════════════════════════════════════════════════════
   STAFF
════════════════════════════════════════════════════════════ */
.staff-section { background: var(--bg-dark); }
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.staff-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}
.staff-card:hover { transform: translateY(-4px); border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.staff-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 4px;
}
.staff-role {
  padding: 3px 12px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.admin-role { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.mod-role   { background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.3); color: var(--accent-light); }
.builder-role{background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.staff-name { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.staff-desc { color: var(--text-secondary); font-size: 0.82rem; line-height: 1.45; }

/* ════════════════════════════════════════════════════════════
   GALLERY
════════════════════════════════════════════════════════════ */
.gallery-section { background: var(--bg-deep); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.gallery-item {
  background: var(--gal-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.35s;
  border: 1px solid var(--border);
}
.gallery-item:hover { transform: scale(1.02); border-color: var(--border-glow); box-shadow: var(--shadow-lg); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,11,24,0.7);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}
.gallery-label {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 1;
}
.gallery-icon { font-size: 3rem; filter: drop-shadow(0 0 12px rgba(255,255,255,0.2)); }
.gallery-ph-text { color: rgba(255,255,255,0.35); font-size: 0.75rem; font-weight: 500; }

/* ════════════════════════════════════════════════════════════
   RULES
════════════════════════════════════════════════════════════ */
.rules-section { background: var(--bg-dark); }
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rule-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s;
}
.rule-card:hover { transform: translateY(-3px); border-color: var(--border-glow); }
.rule-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}
.rule-red    { background: rgba(239,68,68,0.12); }
.rule-orange { background: rgba(249,115,22,0.12); }
.rule-blue   { background: rgba(59,130,246,0.12); }
.rule-green  { background: rgba(34,197,94,0.12); }
.rule-purple { background: rgba(139,92,246,0.12); }
.rule-yellow { background: rgba(234,179,8,0.12); }
.rule-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.rule-desc { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.55; }

/* ════════════════════════════════════════════════════════════
   FAQ
════════════════════════════════════════════════════════════ */
.faq-section { background: var(--bg-deep); }
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item.open { border-color: var(--border-glow); }
.faq-question {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.faq-question:hover { background: rgba(59,130,246,0.06); }
.faq-arrow {
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: transform 0.3s, color 0.2s;
  flex-shrink: 0;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--accent-light); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-answer p {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}
.faq-answer a { color: var(--accent-light); }
.faq-answer a:hover { color: var(--ice); }
.faq-item.open .faq-answer { max-height: 300px; }

/* ════════════════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════════════════ */
.contact-section { background: var(--bg-dark); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: all 0.3s;
  position: relative;
}
.contact-card:hover { transform: translateY(-6px); border-color: var(--border-glow); box-shadow: var(--shadow-lg), var(--shadow-glow); }
.contact-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.telegram-icon { background: rgba(0,136,204,0.15); color: #0088cc; }
.discord-icon  { background: rgba(88,101,242,0.15); color: #5865f2; }
.contact-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.contact-handle { color: var(--accent-light); font-family: var(--font-mono); font-size: 0.9rem; font-weight: 600; }
.contact-desc { color: var(--text-secondary); font-size: 0.83rem; }
.contact-arrow {
  position: absolute;
  bottom: 16px;
  right: 20px;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all 0.2s;
}
.contact-card:hover .contact-arrow { color: var(--accent-light); transform: translateX(4px); }

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-card2);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo { margin-bottom: 14px; }
.footer-desc { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(100,180,255,0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.25s;
}
.social-link:hover { background: rgba(59,130,246,0.2); border-color: var(--accent); color: var(--accent-light); transform: translateY(-2px); }
.footer-links-title { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text-secondary); font-size: 0.87rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-light); }
.footer-ip { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.footer-ip-code {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ice);
  background: rgba(165,243,252,0.08);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(165,243,252,0.15);
}
.footer-copy-btn {
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--accent-light);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.footer-copy-btn:hover { background: rgba(59,130,246,0.3); }
.footer-version { color: var(--text-muted); font-size: 0.8rem; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer-copy { color: var(--text-muted); font-size: 0.82rem; }
.footer-disclaimer { color: var(--text-muted); font-size: 0.75rem; opacity: 0.65; max-width: 500px; }

/* ════════════════════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}
.fade-in-delay.visible { opacity: 1; transform: translateX(0); }

/* Stagger children */
.fade-in:nth-child(1) { transition-delay: 0s; }
.fade-in:nth-child(2) { transition-delay: 0.07s; }
.fade-in:nth-child(3) { transition-delay: 0.14s; }
.fade-in:nth-child(4) { transition-delay: 0.21s; }
.fade-in:nth-child(5) { transition-delay: 0.28s; }
.fade-in:nth-child(6) { transition-delay: 0.35s; }
.fade-in:nth-child(7) { transition-delay: 0.42s; }
.fade-in:nth-child(8) { transition-delay: 0.49s; }
.fade-in:nth-child(9) { transition-delay: 0.56s; }

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

/* ─── Tablet (≤1024px) ─── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-actions .btn span:last-child { display: none; }
  .nav-actions .btn { padding: 9px 11px; }

  .modes-grid { grid-template-columns: repeat(2, 1fr); }
  .mode-card-wide { grid-column: span 2; flex-direction: column; }
  .mode-card-wide .mode-card-header { min-width: unset; height: 100px; }

  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ─── Mobile (≤768px) ─── */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding: 60px 0; }

  .nav-actions .btn:not(.btn-ip) { display: none; }

  /* Mobile nav drawer */
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(5,11,24,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 6px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 999;
  }
  .nav-links.open {
    display: flex;
    transform: translateY(0);
  }
  .nav-link { padding: 12px 16px; font-size: 1rem; border-radius: var(--radius-md); }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; padding-top: 40px; }
  .hero-cta { justify-content: center; }
  .hero-ip-display { justify-content: center; }
  .hero-badge { font-size: 0.78rem; }
  .hero-features { width: 100%; }

  /* Modes */
  .modes-grid { grid-template-columns: 1fr; }
  .mode-card-wide { grid-column: span 1; }

  /* Steps */
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }

  /* Ranks */
  .ranks-grid { grid-template-columns: repeat(2, 1fr); }

  /* Players */
  .players-table-wrap { display: none; }
  .players-cards-mobile { display: flex; flex-direction: column; gap: 12px; }

  /* News */
  .news-grid { grid-template-columns: 1fr; }

  /* Staff */
  .staff-grid { grid-template-columns: repeat(2, 1fr); }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr; }

  /* Rules */
  .rules-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; max-width: 400px; }

  /* Status */
  .status-bar { gap: 6px 16px; }
  .status-divider { display: none; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { font-size: 0.78rem; }

  /* Donate tabs */
  .donate-tabs { gap: 6px; }
  .tab-btn { padding: 8px 14px; font-size: 0.82rem; }

  /* Simple cards */
  .simple-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .keys-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Small Mobile (≤480px) ─── */
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr; }
  .ranks-grid { grid-template-columns: 1fr; }
  .simple-cards-grid { grid-template-columns: 1fr; }
  .keys-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .donate-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .donate-tabs::-webkit-scrollbar { height: 3px; }
  .tab-btn { white-space: nowrap; }
}

/* ─── Focus styles for keyboard navigation ─── */
*:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}
