/* ============================
   RESET & BASE — SPECTRA RUST (Light Blue Theme)
   ============================ */
:root {
  --bg: #e8f0fa;
  --bg-elevated: #ffffff;
  --bg-body: #dce8f5;
  --text: #1a2a3a;
  --text-bright: #0d1b2e;
  --text-dim: #5a7a9a;
  --text-muted: #7a99b8;
  --text-mid: #3a5a7a;
  --text-body: #2a4a6a;
  --border: #c0d4e8;
  --border-light: #b0c8e0;
  --border-softer: #8ab0d0;
  --card-bg: rgba(0,80,160,0.05);
  --surface: rgba(0,80,160,0.06);
  --surface-hover: rgba(0,80,160,0.10);
  --navbar-bg: rgba(232,240,250,0.95);
  --status-dot-border: rgba(255,255,255,0.9);
  --srv-sheen: rgba(255,255,255,0.55);
  --srv-base: rgba(0,80,160,0.04);
  --coming-bg: rgba(0,80,160,0.03);
  --coming-border: rgba(0,80,160,0.15);
  --coming-color: rgba(0,60,120,0.35);
  --bar-rest: rgba(0,80,160,0.08);
  --bar-stripe: rgba(0,80,160,0.12);
  --card-shadow: rgba(0,60,140,0.10);
  --dot-color: rgba(0,60,140,0.04);
  --toggle-bg: rgba(0,80,160,0.06);
  --toggle-active: rgba(0,80,160,0.12);
  --online-bg: rgba(0,80,160,0.06);
  --accent: #2196f3;
  --accent-light: #64b5f6;
  --accent-dark: #1565c0;
  --accent-glow: rgba(33,150,243,0.4);
}
body.dark {
  --bg: #0a0e14;
  --bg-elevated: #141a22;
  --bg-body: #0d1219;
  --text: #b0c4de;
  --text-bright: #e0eaf4;
  --text-dim: #6a8aaa;
  --text-muted: #4a6a8a;
  --text-mid: #8ab0d0;
  --text-body: #9ab0cc;
  --border: #1e2a38;
  --border-light: #243444;
  --border-softer: #2a3a4a;
  --card-bg: rgba(33,150,243,0.05);
  --surface: rgba(33,150,243,0.08);
  --surface-hover: rgba(33,150,243,0.14);
  --navbar-bg: rgba(10,14,20,0.95);
  --status-dot-border: rgba(10,14,20,0.9);
  --srv-sheen: rgba(255,255,255,0.06);
  --srv-base: rgba(33,150,243,0.04);
  --coming-bg: rgba(33,150,243,0.03);
  --coming-border: rgba(33,150,243,0.15);
  --coming-color: rgba(100,181,246,0.4);
  --bar-rest: rgba(33,150,243,0.1);
  --bar-stripe: rgba(33,150,243,0.15);
  --card-shadow: rgba(0,0,0,0.3);
  --dot-color: rgba(33,150,243,0.03);
  --toggle-bg: rgba(33,150,243,0.08);
  --toggle-active: rgba(33,150,243,0.16);
  --online-bg: rgba(33,150,243,0.08);
}
body.dark {
  --bg: #0d1117;
  --bg-elevated: #161b22;
  --bg-body: #0d1117;
  --text: #c9d1d9;
  --text-bright: #f0f6fc;
  --text-dim: #8b949e;
  --text-muted: #6e7681;
  --text-mid: #b1bac4;
  --text-body: #c9d1d9;
  --border: #30363d;
  --border-light: #21262d;
  --border-softer: #484f58;
  --card-bg: rgba(255,255,255,0.03);
  --surface: rgba(255,255,255,0.05);
  --surface-hover: rgba(255,255,255,0.08);
  --navbar-bg: rgba(13,17,23,0.95);
  --status-dot-border: rgba(22,27,34,0.9);
  --srv-sheen: rgba(255,255,255,0.05);
  --srv-base: rgba(255,255,255,0.02);
  --coming-bg: rgba(255,255,255,0.02);
  --coming-border: rgba(255,255,255,0.08);
  --coming-color: rgba(255,255,255,0.25);
  --bar-rest: rgba(255,255,255,0.06);
  --bar-stripe: rgba(255,255,255,0.1);
  --card-shadow: rgba(0,0,0,0.3);
  --dot-color: rgba(255,255,255,0.02);
  --toggle-bg: rgba(255,255,255,0.06);
  --toggle-active: rgba(255,255,255,0.1);
  --online-bg: rgba(255,255,255,0.05);
  --accent: #58a6ff;
  --accent-light: #79c0ff;
  --accent-dark: #79c0ff;
  --accent-glow: rgba(88,166,255,0.4);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); background-image: radial-gradient(circle, var(--dot-color) 1px, transparent 1px); background-size: 32px 32px; color: var(--text-body); overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; }
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.06;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page-main { flex: 1; }

/* ============================
   NAVBAR
   ============================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 70px;
}
.navbar__wrap {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
}
.navbar__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  margin-right: 10px;
}
.navbar__logo img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: contain;
}
.navbar__logo svg {
  width: 24px;
  height: 24px;
}
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
  cursor: pointer;
}
.nav-item:hover {
  background: var(--surface);
  color: var(--text-mid);
}
.nav-item--active {
  background: var(--surface);
  color: var(--accent-dark);
}
.nav-item--active:hover {
  background: var(--surface-hover);
  color: var(--accent);
}
.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.nav-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.nav-item span {
  display: flex;
  align-items: center;
}
.navbar__right {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toggle-group {
  display: flex;
  background: var(--toggle-bg);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
  align-items: center;
}
.toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.toggle-btn:hover {
  color: var(--text-dim);
}
.toggle-btn.active {
  background: var(--toggle-active);
  color: var(--accent-dark);
}
body.dark .toggle-btn.active {
  background: var(--toggle-active);
  color: var(--accent-light);
}
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}
.theme-toggle:hover {
  background: var(--surface);
  color: var(--accent);
}
.theme-toggle__moon { display: none; }
.theme-toggle__sun { display: block; }
body.dark .theme-toggle__moon { display: block; }
body.dark .theme-toggle__sun { display: none; }
.theme-toggle {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: var(--toggle-bg);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.theme-toggle:hover {
  background: var(--toggle-active);
  color: var(--accent-dark);
}
.theme-toggle__moon { display: block; }
.theme-toggle__sun { display: none; }
body.dark .theme-toggle__moon { display: none; }
body.dark .theme-toggle__sun { display: block; }
.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 22px;
  background: linear-gradient(135deg, #1976d2, #2196f3);
  border: none;
  border-radius: 8px;
  font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shimmer 3s infinite;
}
.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(33,150,243,0.4), 0 4px 12px rgba(33,150,243,0.25);
}
@keyframes shimmer {
  0%   { left: -100%; }
  50%  { left: 150%; }
  100% { left: 150%; }
}
body.dark .server-card:nth-child(1),
body.dark .server-card:nth-child(2) {
  background: #141a22;
  border-color: rgba(33,150,243,0.2);
}
body.dark .banner-card {
  background: #141a22;
  border-color: rgba(33,150,243,0.2);
}
body.dark .servers-heading {
  background: linear-gradient(135deg, #64b5f6, #2196f3, #1976d2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.dark .servers-badge {
  background: rgba(33,150,243,0.1);
  border-color: rgba(33,150,243,0.2);
}
body.dark .server-card__preview {
  background: rgba(33,150,243,0.05);
  border-color: rgba(33,150,243,0.1);
}
body.dark .server-card__ip {
  background: rgba(33,150,243,0.05);
  border-color: rgba(33,150,243,0.1);
}
body.dark .hero__overlay {
  background: linear-gradient(180deg, rgba(10,14,20,0.5) 0%, rgba(10,14,20,0.8) 60%, rgba(10,14,20,0.95) 100%);
}
body.dark .hero-btn--ghost {
  background: rgba(20,26,34,0.6);
  border-color: rgba(33,150,243,0.2);
}
body.dark .install-modal__box {
  background: #141a22;
}
body.dark .cookie-consent {
  background: #141a22;
  border-color: var(--border);
}
body.dark .social-card__wave path { fill: rgba(255,255,255,0.03); }
body.dark .site-footer {
  border-color: var(--border);
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 24px;
}
.hero__bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(200,220,245,0.45) 0%, rgba(220,235,250,0.75) 60%, rgba(232,240,250,0.95) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.hero__title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  color: var(--accent-dark);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero__sub {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 420px;
  margin-bottom: 32px;
}
.hero__btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.hero-btn {
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
}
.hero-btn--primary {
  background: linear-gradient(135deg, #1976d2, #2196f3);
  color: #fff;
  box-shadow: 0 6px 24px rgba(25,118,210,0.35);
}
.hero-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(25,118,210,0.5);
}
.hero-btn--ghost {
  background: rgba(255,255,255,0.5);
  color: var(--accent-dark);
  border: 1px solid rgba(0,80,160,0.15);
}
.hero-btn--ghost:hover {
  background: rgba(255,255,255,0.7);
  color: var(--accent);
  transform: translateY(-2px);
}
.accent-glow {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(33,150,243,0.4), 0 0 30px rgba(33,150,243,0.2);
}
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0,80,160,0.15);
}
.hero__ring--outer {
  width: 100%;
  height: 100%;
  animation: ringRotate 40s linear infinite;
}
.hero__ring--inner {
  width: 75%;
  height: 75%;
  border-color: rgba(0,80,160,0.1);
  animation: ringRotate 30s linear infinite reverse;
}
@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero__logo {
  position: relative;
  z-index: 2;
  width: 55%;
  height: 55%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(25,118,210,0.3));
  animation: logoFloat 4s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__items {
  flex: 0 0 auto;
}
.items-grid {
  display: grid;
  grid-template-columns: repeat(6, 62px);
  gap: 4px;
}
.item-cell {
  width: 62px;
  height: 62px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s, transform 0.18s;
}
.item-cell:hover {
  border-color: var(--border-softer);
  transform: translateY(-2px);
}
.item-cell img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* ============================
   SERVERS
   ============================ */
.servers {
  max-width: 1200px;
  margin: 0 auto;
  padding: 160px 24px 80px;
}
.section-head {
  margin-bottom: 36px;
}
.section-head--center {
  text-align: center;
}
.section-title {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.online-total {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-mid);
  flex-wrap: wrap;
  justify-content: center;
  background: var(--online-bg);
  padding: 8px 18px;
  border-radius: 8px;
  margin-top: 4px;
}
.online-total__label {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}
.online-total__icon {
  flex-shrink: 0;
}
.online-total__num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 18px;
}
.servers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: stretch;
}

/* Server Card */
.srv-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 18px;
  border: none;
  transition: transform 0.18s, box-shadow 0.2s;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
}
.srv-card--blue  {
  background:
    linear-gradient(155deg, var(--srv-sheen) 0%, transparent 42%),
    linear-gradient(145deg, rgba(33,150,243,0.18) 0%, rgba(33,150,243,0.06) 40%, transparent 72%),
    var(--srv-base);
  border: 1px solid rgba(33,150,243,0.12);
}
.srv-card--red  {
  background:
    linear-gradient(155deg, var(--srv-sheen) 0%, transparent 42%),
    linear-gradient(145deg, rgba(212,106,106,0.18) 0%, rgba(212,106,106,0.06) 40%, transparent 72%),
    var(--srv-base);
  border: 1px solid rgba(212,106,106,0.12);
}
.srv-card--green {
  background:
    linear-gradient(155deg, var(--srv-sheen) 0%, transparent 42%),
    linear-gradient(145deg, rgba(76,175,80,0.18) 0%, rgba(76,175,80,0.06) 40%, transparent 72%),
    var(--srv-base);
  border: 1px solid rgba(76,175,80,0.12);
}
.srv-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--card-shadow);
}
.srv-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}
.srv-logo {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}
.srv-logo__icon {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--srv-sheen);
}
.srv-logo__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.srv-logo__status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow:
    0 0 0 1.5px var(--status-dot-border),
    0 0 0 3.5px var(--bg-elevated);
}
.srv-meta {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}
.srv-name {
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.srv-wipe {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-dim);
}
.srv-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex: 1 1 auto;
}
.srv-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}
.srv-figure {
  display: grid;
  grid-auto-flow: column;
  align-items: start;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.srv-figure strong {
  display: block;
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent-dark);
}
.srv-figure-max {
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-dim);
}
.srv-joining {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-dim);
  white-space: nowrap;
}
.srv-meter {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding-bottom: 2px;
}
.srv-bar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 4px;
  background: transparent;
}
.srv-bar-rest {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  background: var(--bar-rest);
  pointer-events: none;
}
.srv-bar-rest::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent 0 8px,
    var(--bar-stripe) 8px 16px
  );
  background-size: 22px 22px;
  opacity: 0;
  pointer-events: none;
}
.srv-bar--ready .srv-bar-rest::before {
  opacity: 1;
  animation: srv-stripes 2.2s linear infinite;
}
@keyframes srv-stripes {
  0%   { background-position: 0 0; }
  100% { background-position: 22px 0; }
}
.srv-bar-fill {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  height: 100%;
}
.srv-seg {
  position: relative;
  display: block;
  height: 100%;
  flex: 0 0 auto;
  min-width: 0;
  overflow: hidden;
  transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.srv-seg--online    { background: #4caf50; }
.srv-seg--connecting { background: #42a5f5; }
.srv-seg--reserved  { background: #ffc107; }
.srv-seg--queue     { background: #ef5350; }

/* Coming Soon card */
.srv-card--coming {
  background: var(--coming-bg);
  border: 1px dashed var(--coming-border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}
.srv-coming {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--coming-color);
}
.srv-coming__icon {
  width: 32px;
  height: 32px;
}
.srv-coming__text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================
   EVENTS / CALENDAR
   ============================ */
.events {
  background: var(--bg-body);
  padding: 48px 24px 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.events .section-head {
  margin-bottom: 28px;
}
.section-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.calendar {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-softer) transparent;
}
.calendar::-webkit-scrollbar { height: 4px; }
.calendar::-webkit-scrollbar-thumb { background: var(--border-softer); border-radius: 2px; }
.cal-day {
  flex: 0 0 96px;
  min-height: 96px;
  border-radius: 10px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  border: 1px solid transparent;
  background: var(--bg-elevated);
  position: relative;
}
.cal-day:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
}
.cal-day--today {
  background: rgba(33,150,243,0.08);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(33,150,243,0.15);
}
.cal-day--active {
  background: rgba(33,150,243,0.06);
  border-color: var(--accent-dark);
  box-shadow: 0 0 10px rgba(25,118,210,0.12);
}
.cal-day--highlighted {
  background: rgba(76,175,80,0.06);
  border-color: rgba(76,175,80,0.3);
}
.cal-day--dimmed {
  opacity: 0.35;
}
.cal-day__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.cal-day--today  .cal-day__label { color: var(--accent); }
.cal-day--active .cal-day__label { color: var(--accent-dark); }
.cal-day--highlighted .cal-day__label { color: #4caf50; }
.cal-day__num {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-body);
  line-height: 1;
}
.cal-day--today  .cal-day__num { color: var(--accent-dark); }
.cal-day--active .cal-day__num { color: var(--accent-dark); }
.cal-day--highlighted .cal-day__num { color: #4caf50; }
.cal-day__dots {
  display: flex;
  gap: 3px;
  position: absolute;
  top: 9px;
  right: 9px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.dot--orange { background: #ff9800; }
.dot--yellow { background: #ffeb3b; }
.dot--green  { background: #4caf50; }

/* ============================
   SERVERS SECTION
   ============================ */
.servers-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 56px;
  text-align: center;
}
.servers-badge {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, rgba(33,150,243,0.12) 0%, rgba(25,118,210,0.06) 100%);
  border: 1px solid rgba(33,150,243,0.2);
  border-radius: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.servers-heading {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  background: linear-gradient(135deg, #1565c0, #2196f3, #64b5f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 40px;
  text-shadow: none;
}
.servers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
}
.server-card {
  background: #fff;
  border: 2px dashed rgba(33,150,243,0.25);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.server-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(33,150,243,0.15);
  border-color: rgba(33,150,243,0.45);
}
.server-card__status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}
.status-dot--online {
  background: #4caf50;
  box-shadow: 0 0 12px rgba(76,175,80,0.6);
  animation: pulse 2s ease-in-out infinite;
}
.status-dot--offline {
  background: #ef5350;
  box-shadow: 0 0 12px rgba(239,83,80,0.6);
}
.status-dot--yellow {
  background: #ffc107;
  box-shadow: 0 0 12px rgba(255,193,7,0.7);
  animation: pulse-yellow 2s ease-in-out infinite;
}
@keyframes pulse-yellow {
  0%, 100% { box-shadow: 0 0 12px rgba(255,193,7,0.7); }
  50% { box-shadow: 0 0 20px rgba(255,193,7,1); }
}
.status-text--yellow {
  color: #ffc107;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(76,175,80,0.6); }
  50% { box-shadow: 0 0 20px rgba(76,175,80,0.8); }
}
.status-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.server-card__name {
  font-family: 'Unbounded', sans-serif;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #1565c0, #2196f3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.server-card__preview {
  width: 100%;
  height: 180px;
  background: linear-gradient(145deg, rgba(33,150,243,0.08) 0%, rgba(25,118,210,0.04) 100%);
  border: 1px solid rgba(33,150,243,0.12);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.server-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.server-card__img-label {
  position: relative;
  z-index: 1;
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 0 40px rgba(0,0,0,0.3);
  letter-spacing: 0.03em;
}
.server-card__bar-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.server-card__bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.server-card__bar {
  width: 100%;
  height: 8px;
  background: rgba(0,80,160,0.1);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.server-card__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1976d2, #2196f3, #64b5f6, #2196f3, #1976d2);
  background-size: 200% 100%;
  border-radius: 3px;
  transition: width 0.5s;
  animation: barShimmer 2s linear infinite;
}
@keyframes barShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.server-card__ip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(33,150,243,0.06) 0%, rgba(25,118,210,0.03) 100%);
  border: 1px solid rgba(33,150,243,0.12);
  border-radius: 12px;
}
.server-card__ip-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: linear-gradient(135deg, #1565c0, #1976d2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.server-card__copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #1976d2, #2196f3);
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(25,118,210,0.3);
}
.server-card__copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(25,118,210,0.4);
}
.server-card__copy:active {
  transform: scale(0.97);
}

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

.server-card:nth-child(1) { animation: cardSlide 0.5s ease 0.1s both; }
.server-card:nth-child(2) { animation: cardSlide 0.5s ease 0.2s both; }
@keyframes cardSlide {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================
   BANNER CARD
   ============================ */
.banner-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
}
.banner-card {
  width: 100%;
  height: 200px;
  background: #fff;
  border: 2px dashed rgba(33,150,243,0.25);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.banner-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,20,40,0.7) 0%, rgba(0,20,40,0.3) 50%, transparent 100%);
}
.banner-card__content {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #1976d2, #2196f3);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(25,118,210,0.4);
  text-decoration: none;
  width: fit-content;
}
.banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(25,118,210,0.5);
}
.banner-btn:hover .banner-btn__arrow {
  transform: translateX(4px);
}
.banner-btn__arrow {
  transition: transform 0.25s;
}
.banner-card__desc {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 340px;
}

/* ============================
   INSTALL MODAL
   ============================ */
.install-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.install-modal.active {
  opacity: 1;
  visibility: visible;
}
.install-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,20,40,0.5);
  backdrop-filter: blur(6px);
}
.install-modal__box {
  position: relative;
  width: 90%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-elevated, #ffffff);
  border: 1px solid var(--border, rgba(33,150,243,0.25));
  border-radius: 20px;
  padding: 28px;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.install-modal.active .install-modal__box {
  transform: scale(1);
}
.install-modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: rgba(0,80,160,0.06);
  border: none;
  border-radius: 8px;
  font-size: 22px;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.install-modal__close:hover {
  background: rgba(239,83,80,0.1);
  color: #ef5350;
}
.install-modal__title {
  font-family: 'Unbounded', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-bright, #1565c0);
  margin-bottom: 20px;
  text-align: center;
}
.install-modal__section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent, #2196f3);
  margin: 16px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.install-modal__reqs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 16px;
}
.install-modal__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.install-modal__sub {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.install-modal__row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-body);
}
.install-modal__label {
  font-weight: 700;
  color: var(--text-dim);
}
.install-modal__downloads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 600px) {
  .install-modal__downloads {
    grid-template-columns: repeat(2, 1fr);
  }
}
.install-modal__downloads--yt {
  grid-template-columns: repeat(2, 1fr);
}
.install-modal__dl {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  background: linear-gradient(135deg, #1976d2, #2196f3);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(25,118,210,0.25);
}
.install-modal__dl:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25,118,210,0.4);
}
.install-modal__dl--mail {
  background: linear-gradient(135deg, #005ff9, #00b0ff);
  box-shadow: 0 4px 14px rgba(0,95,249,0.3);
}
.install-modal__dl--mail:hover {
  box-shadow: 0 6px 20px rgba(0,95,249,0.5);
}
.install-modal__dl--yt {
  background: linear-gradient(135deg, #e53935, #ff5252);
  box-shadow: 0 4px 14px rgba(229,57,53,0.3);
}
.install-modal__dl--yt:hover {
  box-shadow: 0 6px 20px rgba(229,57,53,0.5);
}

/* ============================
   SOCIAL CARDS
   ============================ */
.socials {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 56px;
}
.socials-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.social-card {
  position: relative;
  border-radius: 16px;
  padding: 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.social-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  background: rgba(255,255,255,0.1);
  transition: opacity 0.3s;
}
.social-card:hover::before {
  opacity: 1;
}
.social-card:hover {
  transform: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.social-card:hover .social-card__icon {
  transform: scale(1.15);
}
.social-card:active {
  transform: none;
}
.social-card--vk {
  background: linear-gradient(135deg, #2688eb 0%, #1a6dd1 100%);
}
.social-card--tg {
  background: linear-gradient(135deg, #2aabee 0%, #1e96c8 100%);
}
.social-card--dc {
  background: linear-gradient(135deg, #7289da 0%, #5b6eae 100%);
}
.social-card__name {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  position: relative;
  z-index: 2;
}
.social-card__icon {
  width: 80px;
  height: 80px;
  position: absolute;
  bottom: 20px;
  right: 24px;
  opacity: 0.9;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.social-card__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

@media (max-width: 700px) {
  .socials-cards { grid-template-columns: 1fr; }
  .social-card { min-height: 120px; }
  .social-card__icon { width: 60px; height: 60px; }
}
.bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 56px;
}
.download-section {
  padding: 80px 24px;
  display: flex;
  justify-content: center;
}
.download-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.download-card:hover {
  border-color: rgba(33,150,243,0.3);
  box-shadow: 0 8px 40px rgba(33,150,243,0.08);
}
.download-card__header {
  height: 8px;
  background: linear-gradient(90deg, #2196f3 0%, #1976d2 100%);
}
.download-card__body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.download-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(33,150,243,0.1);
  border: 1px solid rgba(33,150,243,0.2);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
  margin-bottom: -4px;
}
.download-card__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-dark);
  margin: 0;
}
.download-card__desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}
.download-card__stats {
  display: flex;
  gap: 16px;
}
.download-card__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  background: rgba(0,80,160,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  flex: 1;
}
.download-card__stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.download-card__stat-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-dark);
}
.download-card__ip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(0,80,160,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.download-card__ip-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  background: rgba(0,80,160,0.06);
  border-radius: 6px;
}
.download-card__ip-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
  font-family: 'SF Mono', 'Fira Code', monospace;
  flex: 1;
}
.download-card__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0,80,160,0.06);
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s;
}
.download-card__copy:hover {
  background: rgba(0,80,160,0.1);
  color: var(--accent-dark);
}
.download-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .3s;
}
.download-card__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(25,118,210,0.3);
}
/* ============================
   INSTALL MODAL
   ============================ */
.install-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.install-modal.active {
  opacity: 1;
  visibility: visible;
}
.install-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,10,30,0.6);
  backdrop-filter: blur(8px);
}
.install-modal__card {
  position: relative;
  width: 90%;
  max-width: 560px;
  background: #fff;
  border: 2px dashed rgba(33,150,243,0.25);
  border-radius: 20px;
  padding: 36px;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.install-modal.active .install-modal__card {
  transform: translateY(0) scale(1);
}
.install-modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(33,150,243,0.08);
  border-radius: 10px;
  font-size: 22px;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.install-modal__close:hover {
  background: rgba(33,150,243,0.15);
  color: var(--accent-dark);
}
.install-modal__title {
  font-family: 'Unbounded', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-dark);
  margin-bottom: 24px;
}
.install-modal__subtitle {
  font-family: 'Unbounded', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-top: 28px;
  margin-bottom: 16px;
}
.install-modal__reqs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.install-modal__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.install-modal__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.install-modal__row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-body);
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,80,160,0.06);
}
.install-modal__row span:first-child {
  color: var(--text-dim);
  font-weight: 600;
}
.install-modal__row span:last-child {
  font-weight: 600;
  color: var(--accent-dark);
}
.install-modal__downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.install-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #1976d2, #2196f3);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(25,118,210,0.3);
}
.install-dl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(25,118,210,0.4);
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  margin-top: 0;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.02em;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-dev {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-dev__name {
  color: var(--text-dim);
  font-weight: 600;
}

/* ============================
   NEWS FEED
   ============================ */
.news {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 56px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 0;
  color: var(--text-muted);
  font-size: 14px;
}
.news-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--card-shadow);
}
.news-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}
.news-card__body {
  padding: 20px;
}
.news-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.news-card__desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 12px;
}
.news-card__date {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================
   USER AREA / AVATAR DROPDOWN
   ============================ */
.user-area {
  position: relative;
}
.user-menu {
  display: flex;
  align-items: center;
}
.user-menu.hidden {
  display: none;
}
.user-avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(0,80,160,0.15);
  transition: border-color 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
}
.user-avatar-btn:hover {
  border-color: rgba(33,150,243,0.5);
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(33,150,243,0.2);
}
.user-avatar-btn:active {
  transform: scale(0.95);
}
.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.2s;
  box-shadow: 0 12px 40px rgba(0,60,140,0.12);
  z-index: 200;
}
.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.user-dropdown__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 8px;
}
.user-dropdown__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(0,80,160,0.08);
}
.user-dropdown__info {
  min-width: 0;
}
.user-dropdown__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-dropdown__steam {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Consolas', monospace;
}
.user-dropdown__divider {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}
.user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s cubic-bezier(0.22, 1, 0.36, 1), color 0.15s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
}
.user-dropdown__item:hover {
  background: var(--surface);
  color: var(--accent-dark);
}
.user-dropdown__item:active {
  background: var(--surface-hover);
}
.user-dropdown__item svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.user-dropdown__item--red {
  color: #ef5350;
}
.user-dropdown__item--red:hover {
  background: rgba(239,83,80,0.08);
  color: #ef5350;
}
.user-dropdown__item--admin {
  color: #7c4dff;
}
.user-dropdown__item--admin:hover {
  background: rgba(124,77,255,0.08);
  color: #b388ff;
}
.user-dropdown__item.hidden {
  display: none;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 960px) {
  .servers-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero__content { align-items: center; }
  .hero__btns { justify-content: center; }
  .hero__visual { max-width: 280px; }
  .items-grid { grid-template-columns: repeat(6, 54px); }
  .item-cell { width: 54px; height: 54px; }
  .item-cell img { width: 44px; height: 44px; }
}
@media (max-width: 700px) {
  .navbar__nav { display: none; }
  .btn-login span { display: none; }
  .bottom-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 24px; }
  .items-grid { grid-template-columns: repeat(6, 46px); }
  .item-cell { width: 46px; height: 46px; }
  .item-cell img { width: 38px; height: 38px; }
  .cal-day { flex: 0 0 72px; min-height: 76px; }
  .cal-day__num { font-size: 22px; }
}

/* ============================
   ANIMATIONS
   ============================ */

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

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

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.navbar {
  animation: fadeDown 0.4s ease both;
}

.navbar__logo {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.navbar__logo:hover {
  transform: scale(1.08);
}

.nav-item {
  transition: background 0.2s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-item:active {
  transform: scale(0.96);
}

.btn-login {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-login:hover {
  transform: translateY(-2px);
}
.btn-login:active {
  transform: translateY(0) scale(0.97);
}
.btn-login.hidden {
  display: none;
}

.toggle-btn {
  transition: background 0.2s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.toggle-btn:active {
  transform: scale(0.92);
}

.hero {
  animation: fadeIn 0.5s ease 0.1s both;
}
.hero__title {
  animation: fadeUp 0.6s ease 0.15s both;
}
.hero__sub {
  animation: fadeUp 0.6s ease 0.25s both;
}

.accent-glow {
  animation: glowBreath 3s ease-in-out infinite;
}
@keyframes glowBreath {
  0%, 100% { text-shadow: 0 0 10px rgba(33,150,243,0.4), 0 0 30px rgba(33,150,243,0.2); }
  50% { text-shadow: 0 0 14px rgba(33,150,243,0.6), 0 0 40px rgba(33,150,243,0.3); }
}

.srv-card {
  animation: fadeUp 0.5s ease both;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.srv-card:nth-child(1) { animation-delay: 0.08s; }
.srv-card:nth-child(2) { animation-delay: 0.16s; }
.srv-card:nth-child(3) { animation-delay: 0.24s; }
.srv-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 40px var(--card-shadow);
}
.srv-card:active {
  transform: translateY(-1px) scale(0.99);
}

.srv-logo__status {
  transition: background 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.srv-seg {
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.online-total {
  animation: scaleIn 0.4s ease 0.3s both;
}

.srv-card--coming {
  animation: fadeUp 0.5s ease 0.3s both;
}
.srv-coming__icon {
  animation: float 3s ease-in-out infinite;
}

.cal-day {
  animation: fadeUp 0.35s ease both;
  transition: background 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.cal-day:hover {
  transform: translateY(-2px);
}
.cal-day:active {
  transform: translateY(0) scale(0.96);
}

.site-footer {
  animation: fadeIn 0.5s ease 0.4s both;
}

.news-card {
  animation: fadeUp 0.4s ease both;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px var(--card-shadow);
}

.feed-card {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.feed-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px var(--card-shadow);
}

.section-title {
  animation: fadeUp 0.5s ease both;
}

html {
  scroll-behavior: smooth;
}

body {
  animation: fadeIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

::selection {
  background: rgba(33, 150, 243, 0.25);
  color: var(--accent-dark);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-softer);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
button, a {
  -webkit-tap-highlight-color: transparent;
}
img {
  user-select: none;
}

/* ============================
   DARK THEME OVERRIDES
   ============================ */
body.dark {
  background-image: radial-gradient(circle, rgba(255,255,255,0.02) 1px, transparent 1px);
}
body.dark .hero__overlay {
  background: linear-gradient(180deg, rgba(13,17,23,0.5) 0%, rgba(13,17,23,0.75) 60%, rgba(13,17,23,0.95) 100%);
}
body.dark .hero__grid {
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
}
body.dark .servers-badge {
  background: rgba(88,166,255,0.1);
  border-color: rgba(88,166,255,0.2);
  color: var(--accent);
}
body.dark .server-card {
  background: var(--bg-elevated);
  border-color: var(--border);
}
body.dark .server-card__preview {
  background: rgba(255,255,255,0.03);
  border-color: var(--border);
}
body.dark .server-card__bar {
  background: var(--bar-rest);
}
body.dark .server-card__ip {
  background: rgba(255,255,255,0.03);
  border-color: var(--border);
}
body.dark .social-card__wave path { fill: rgba(0,0,0,0.1); }
body.dark .banner-card {
  background: var(--bg-elevated);
  border-color: var(--border);
}
body.dark .banner-card__overlay {
  background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}
body.dark .install-modal__box {
  background: var(--bg-elevated);
  border-color: var(--border);
}
body.dark .site-footer {
  border-color: var(--border);
}
body.dark .cookie-consent {
  background: var(--bg-elevated);
  border-color: var(--border);
}
