:root {
  /* Unified Accent & Brand Colors (aliased for consistency) */
  --accent-purple: #7c4dff;
  --accent-purple-glow: rgba(124, 77, 255, 0.4);
  --accent-red: var(--accent-purple);
  --accent-red-glow: var(--accent-purple-glow);
  --dota-red: var(--accent-purple);
  --dota-red-glow: var(--accent-purple-glow);
  --text-muted: #8b93a1;
}

/* Language visibility */
html[lang="ru"] .lang-en { display: none !important; }
html[lang="en"] .lang-ru { display: none !important; }

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-badge {
  /* AFKey transparent mark (white "AFK+eye", no background) — header only, on
   * the site's dark header. The "AFK" text stays as accessible fallback but is
   * visually hidden. */
  display: inline-block;
  width: 40px;
  height: 40px;
  background-image: url("brand/afkey-simple.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  font-size: 0;
  color: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.logo-text {
  font-family: var(--font-outfit);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-btn:hover,
.nav-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-support {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff !important;
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-support:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
}

/* User menu (authorized) */
.user-menu-container {
  position: relative;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 30px;
  transition: all 0.2s ease;
}

.user-profile:hover {
  background: rgba(255, 255, 255, 0.06);
}

.user-avatar-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.status-badge-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  border: 1.5px solid #101215;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.user-avatar-img.premium-border {
  border: 1.5px solid #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.user-avatar-img.default-border {
  border: 1.5px solid #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #101215;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4px;
  min-width: 140px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 100;
  display: none;
}

.user-dropdown.active {
  display: block;
}

.dropdown-item {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 8px 12px;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: rgba(255,255,255,0.05);
}

.dropdown-item.logout-btn {
  color: #ff4d4d;
}

.dropdown-item.logout-btn:hover {
  background: rgba(255, 77, 77, 0.1);
}

/* Header responsive */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
  }
  .header-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ---- Shared legal footer -------------------------------------------------
   Present on every public page. The Valve attribution is static markup rather
   than something site.js injects: a legal notice must not disappear when a
   script fails to load. */
.legal-footer {
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  margin-top: 64px;
  padding: 40px 24px;
  text-align: center;
}

.legal-footer .legal-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.legal-footer a {
  color: var(--text-muted, #8b93a1);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.legal-footer a:hover {
  color: var(--text-main, #fff);
}

.footer-disclaimer {
  margin: 0 auto;
  max-width: 780px;
  /* Muted, but not below the readability floor — this has to be legible. */
  color: #8b93a1;
  font-size: 11px;
  line-height: 1.6;
}
