/* ==========================================================================
   DESIGN SYSTEM: Industrial Modernity (Void-Plus Palette)
   ========================================================================== */

:root {
  /* Colors */
  --bg-color: #0d0d0d;
  --surface-0: #0d0d0d;
  --surface-1: #141414;
  --surface-2: #1f1f1f;
  --surface-bright: #3a3939;
  
  --primary-color: #ffffff;
  --on-primary: #1c1b1b;
  --accent-color: #a2d2ff; /* Brand sky blue */
  --accent-dim: #9bcbf8;
  --accent-glow: rgba(162, 210, 255, 0.15);
  
  --border-color: #262626;
  --border-glow: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #e5e2e1;
  --text-dim: #a1a1a1;
  --grid-dot: #222222;
  
  /* Glassmorphism Defaults */
  --glass-bg: rgba(20, 20, 20, 0.6);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-glow-bg: rgba(255, 255, 255, 0.03);
  --glass-blur: 14px;

  --font-family: 'Neometric Alt', sans-serif;
}

/* Base resets & typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-secondary);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  font-style: normal;
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.custom-cursor.is-active {
  opacity: 1;
}

.custom-cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.09) 0%,
    rgba(162, 210, 255, 0.05) 28%,
    rgba(162, 210, 255, 0.02) 48%,
    transparent 72%
  );
  will-change: transform;
}

.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #6ec8f5;
  box-shadow:
    0 0 10px rgba(110, 200, 245, 0.85),
    0 0 22px rgba(110, 200, 245, 0.35);
  will-change: transform;
  transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease, box-shadow 0.2s ease;
}

.custom-cursor.is-pointer .custom-cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  box-shadow:
    0 0 14px rgba(110, 200, 245, 1),
    0 0 28px rgba(110, 200, 245, 0.45);
}

@media (hover: hover) and (pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor * {
    cursor: none !important;
  }
}

em,
i {
  font-style: normal;
}

/* ==========================================================================
   AMBIENT BACKGROUNDS
   ========================================================================== */

/* Global Mouse Glow (placed behind all elements) */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    600px circle at var(--global-x, 50%) var(--global-y, 50%),
    rgba(162, 210, 255, 0.035) 0%,
    rgba(162, 210, 255, 0.01) 40%,
    transparent 80%
  );
  transition: background 0.1s ease;
}

/* Dot Matrix Grid Overlay */
.dot-matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.2px);
  background-size: 24px 24px;
  opacity: 0.85;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(13, 13, 13, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 24px;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

button.nav-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-primary);
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.is-active {
  color: #6ec8f5;
}

.nav-link.is-active::after {
  width: 100%;
  background-color: #6ec8f5;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-block;
  cursor: default;
  user-select: none;
}

.nav-dropdown-trigger::after {
  width: 0;
}

.nav-dropdown:hover .nav-dropdown-trigger {
  color: var(--text-primary);
}

.nav-dropdown:hover .nav-dropdown-trigger::after {
  width: 100%;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  padding: 8px;
  background: rgba(17, 17, 17, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease;
}

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

.nav-dropdown-item-name {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

.nav-dropdown-item-tag {
  font-family: var(--font-family);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(110, 200, 245, 0.7);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  box-sizing: border-box;
  z-index: 2;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(13, 13, 13, 0.2) 0%, var(--bg-color) 80%),
              url('images/hero-bg.jpg') no-repeat center center / cover;
}

/* Overlay for the hero image to keep the text readable and void style */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 13, 13, 0.4) 0%, var(--bg-color) 95%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.2px);
  background-size: 24px 24px;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.7) 8%,
    rgba(0, 0, 0, 0.35) 18%,
    rgba(0, 0, 0, 0.08) 28%,
    rgba(0, 0, 0, 0) 38%
  );
  mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.7) 8%,
    rgba(0, 0, 0, 0.35) 18%,
    rgba(0, 0, 0, 0.08) 28%,
    rgba(0, 0, 0, 0) 38%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Active dev badge */
.status-badge-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 9999px;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}

.status-badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-color);
  animation: pulse 2s infinite;
}

.status-badge-text {
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-dim);
}

.hero-title {
  font-family: 'Neometric Alt Black', var(--font-family);
  font-size: 72px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: center;
  width: 100%;
}

.hero-subtitle {
  font-family: var(--font-family);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 650px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* ==========================================================================
   BUTTONS (with advanced Glassmorphism & Mouse Tracking)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 16px; /* rounded-xl */
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
}

/* Primary Glass Button: Solid feel but with glass details */
.btn-primary {
  background: var(--text-primary);
  color: var(--on-primary);
  border: 1px solid var(--text-primary);
}

.btn-primary:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 24px rgba(162, 210, 255, 0.4);
  transform: translateY(-2px);
}

/* Secondary Glass Border Button */
.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.btn-secondary:hover {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(162, 210, 255, 0.1);
  transform: translateY(-2px);
}

/* CTA Glassmorphic Button (Enlarged with Pure Glass Effect) */
.btn-glass-cta {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  padding: 18px 40px; /* Increased padding */
  font-size: 19px; /* Increased font size */
  border-radius: 18px; /* Slightly larger radius */
}

.btn-glass-cta:hover {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 25px rgba(162, 210, 255, 0.15);
  transform: translateY(-2px);
}

/* Card primary — solid white CTA */
.btn-card-play {
  background: #ffffff;
  color: #141414;
  border: 1px solid #ffffff;
  padding: 18px 24px;
  min-height: 52px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  font-style: normal;
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.btn-card-play:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-color);
  color: var(--text-primary);
  box-shadow: 0 0 25px rgba(162, 210, 255, 0.15);
  transform: translateY(-2px);
}

.flex-1 {
  flex: 1;
}

/* Card glass buttons — compact variant of hero CTA */
.btn-card-glass {
  gap: 8px;
  padding: 0 18px;
  min-height: 52px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 14px;
  min-width: 0;
}

.btn-card-glass-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  padding: 0;
  border-radius: 14px;
  flex-shrink: 0;
}

.btn-discord-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.btn-card-video:hover {
  border-color: rgba(210, 125, 120, 0.52);
  background: rgba(185, 85, 80, 0.1);
  color: #e8b4af;
  box-shadow: 0 0 22px rgba(200, 105, 100, 0.16);
  transform: translateY(-2px);
}

.btn-card-video.btn-glass-border:hover::before {
  background: radial-gradient(
    80px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(215, 130, 125, 0.22) 0%,
    transparent 100%
  );
}

.btn-card-video:hover svg {
  color: #e8b4af;
}

/* Icon button style (glass container) */
.btn-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  backdrop-filter: blur(var(--glass-blur));
  transition: all 0.25s ease;
}

.btn-icon:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* Glass Glow Overlay on Button (Mouse Tracking Spot) */
.btn-glass-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    80px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.25) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.btn-glass-glow:hover::before {
  opacity: 1;
}

/* For secondary / outline glass buttons */
.btn-glass-border::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    80px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(162, 210, 255, 0.2) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.btn-glass-border:hover::before {
  opacity: 1;
}

.w-full {
  width: 100%;
}

/* ==========================================================================
   PROJECTS SECTION & CARDS (with Border Mouse Glow)
   ========================================================================== */

.projects-section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 96px 24px 96px;
  box-sizing: border-box;
}

.projects-section .section-container {
  width: 100%;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-family);
  font-size: 42px;
  font-weight: 600;
  font-style: normal;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.project-card {
  position: relative;
  border-radius: 24px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, #181818 100%);
  pointer-events: none;
  z-index: 1;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(15, 15, 15, 0.32);
  color: #ffffff;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 2;
}

.card-body {
  padding: 32px 32px 36px;
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: -8px;
  position: relative;
  z-index: 2;
}

.card-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.card-description {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 26px;
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.stat-box {
  background: #222222;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-label {
  font-family: var(--font-family);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

.stat-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-val--online {
  font-variant-numeric: tabular-nums;
  transition: opacity 0.25s ease;
}

.stat-max {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.card-actions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: auto;
}

.card-sub-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.card-requirements {
  margin-top: 32px;
  padding: 20px 22px 22px;
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.requirements-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.requirements-heading {
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-bottom: 0;
  padding-bottom: 12px;
  line-height: 1.2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.requirements-heading span {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.requirements-heading--min {
  color: #6ec8f5;
}

.requirements-heading--rec {
  color: #f2f2f2;
}

.requirements-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 14px;
}

.requirements-list li {
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.req-label {
  color: rgba(255, 255, 255, 0.42);
  font-weight: 600;
  flex-shrink: 0;
}

.req-value {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.margin-right-xs {
  margin-right: 6px;
}

.margin-right-xxs {
  margin-right: 4px;
}

/* Rust Video Guide button style — base; overridden in community section */

/* ==========================================================================
   COMMUNITY & STATISTICS SECTION
   ========================================================================== */

.community-section {
  position: relative;
  z-index: 2;
  margin-top: 120px;
  padding: 72px 24px 96px;
}

.community-panel {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 368px;
  gap: 0;
  align-items: stretch;
  min-height: 432px;
}

.community-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px 56px 60px;
}

.community-title {
  font-family: var(--font-family);
  font-size: 46px;
  font-weight: 600;
  font-style: normal;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.community-description {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 50px;
  max-width: 460px;
}

.community-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  max-width: 640px;
}

.metric-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.metric-number {
  font-family: var(--font-family);
  font-size: 52px;
  font-weight: 700;
  color: #6ec8f5;
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric-label {
  font-family: var(--font-family);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  margin-top: 8px;
  margin-bottom: 22px;
}

.btn-metric-action {
  gap: 10px;
  width: auto;
  max-width: none;
  padding: 12px 22px !important;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 8px !important;
  color: #6ec8f5;
  border-color: rgba(110, 200, 245, 0.35);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
}

.btn-metric-action svg {
  width: 16px;
  height: 16px;
  color: #6ec8f5;
  opacity: 1;
  flex-shrink: 0;
}

.btn-metric-action:hover {
  border-color: rgba(110, 200, 245, 0.55);
  background: rgba(110, 200, 245, 0.08);
  color: #8ed4f7;
  box-shadow: none;
  transform: none;
}

.btn-metric-action:hover svg {
  color: #8ed4f7;
}

.community-right {
  display: flex;
  align-items: stretch;
  background: #1a1d23;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

.cta-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 48px 32px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 100%;
  box-shadow: none;
}

.cta-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(110, 200, 245, 0.08);
  border: 1px solid rgba(110, 200, 245, 0.16);
  color: #8ecff5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.cta-card-icon svg {
  width: 20px;
  height: 20px;
}

.cta-card-title {
  font-family: var(--font-family);
  font-size: 34px;
  font-weight: 600;
  font-style: normal;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.1;
}

.cta-card-subtitle {
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 26px;
  max-width: 228px;
}

.cta-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 252px;
}

.community-panel-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.15);
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #5eb6ff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(94, 182, 255, 0.75);
  animation: pulse 3s infinite;
  flex-shrink: 0;
}

.status-text {
  font-family: var(--font-family);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(94, 182, 255, 0.62);
  text-transform: uppercase;
}

/* ==========================================================================
   SITE MODAL
   ========================================================================== */

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.site-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: min(90vh, 720px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(17, 17, 17, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 32px 28px 28px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.site-modal-dialog--download {
  max-width: 640px;
  max-height: 94vh;
  padding: 36px 34px 34px;
}

.site-modal-dialog--download #modalContent {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  margin-right: -6px;
  padding-right: 6px;
  padding-bottom: 2px;
}

.site-modal-dialog--download .site-modal-body-scroll {
  overflow: visible;
  flex: none;
  margin: 0;
  padding: 0;
}

.site-modal-dialog--download .site-modal-subtitle {
  margin-bottom: 18px;
}

.site-modal-body-scroll {
  overflow-y: auto;
  margin-right: -8px;
  padding-right: 8px;
  flex: 1;
  min-height: 0;
}

.site-modal.is-open .site-modal-dialog {
  transform: translateY(0) scale(1);
}

.site-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.site-modal-title {
  font-family: var(--font-family);
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
  padding-right: 40px;
  letter-spacing: -0.02em;
}

.site-modal-subtitle {
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 22px;
}

.site-modal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-modal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.site-modal-item-info {
  min-width: 0;
}

.site-modal-item-name {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.site-modal-item-tag {
  font-family: var(--font-family);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(110, 200, 245, 0.75);
}

.site-modal-item .btn {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 10px;
  white-space: nowrap;
  font-family: var(--font-family);
  cursor: pointer;
}

.site-modal-item .btn-modal-action {
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.site-modal-item .btn-modal-action:hover {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(162, 210, 255, 0.12);
  transform: translateY(-1px);
}

.site-modal-item .btn-modal-download {
  background: #ffffff;
  color: #141414;
  border: 1px solid #ffffff;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.site-modal-item .btn-modal-download:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-color);
  color: var(--text-primary);
  box-shadow: 0 0 25px rgba(162, 210, 255, 0.15);
  transform: translateY(-2px);
}

.site-modal-download-group {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.site-modal-download-group + .site-modal-download-group {
  margin-top: 16px;
}

.site-modal-download-project {
  padding: 4px 2px 2px;
}

.site-modal-download-project + .site-modal-download-group,
.site-modal-download-group + .site-modal-download-project {
  margin-top: 8px;
}

.site-modal-download-project .site-modal-item-name {
  font-family: var(--font-family);
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.site-modal-download-project .site-modal-item-tag {
  font-family: var(--font-family);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(110, 200, 245, 0.75);
  margin-bottom: 10px;
}

.site-modal-download-heading {
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.site-modal-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.site-modal-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 11px 12px;
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  color: #141414;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 10px;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.site-modal-link-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-color);
  color: var(--text-primary);
  box-shadow: 0 0 25px rgba(162, 210, 255, 0.15);
  transform: translateY(-2px);
}

.site-modal-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.58);
}

.site-modal-note strong {
  color: rgba(255, 200, 120, 0.95);
  font-weight: 600;
}

.site-modal-note a {
  color: #6ec8f5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-modal-note a:hover {
  color: #8ed4f7;
}

body.modal-open {
  overflow: hidden;
}

/* ==========================================================================
   INTERACTIVE TOAST & UTILS
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--surface-2);
  border: 1px solid var(--accent-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 15px;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(162, 210, 255, 0.15);
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Keyframe animations */
@keyframes pulse {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

/* ==========================================================================
   RESPONSIVE LAYOUT (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 56px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .community-panel {
    border-radius: 22px;
  }

  .community-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .community-left {
    text-align: center;
    padding: 44px 36px 40px;
    align-items: center;
  }

  .community-description {
    margin: 0 auto 40px;
  }

  .community-stats-grid {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
    gap: 24px;
  }

  .metric-box {
    align-items: flex-start;
    text-align: left;
  }

  .community-right {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
  }

  .cta-card {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 32px 36px;
  }

  .cta-card-actions {
    max-width: 100%;
  }
}

/* ==========================================================================
   STORE SECTION
   ========================================================================== */

.header-container--store {
  justify-content: space-between;
  gap: 24px;
}

.header-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  cursor: pointer;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.header-login-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.header-login-btn.is-logged-in .header-login-icon {
  display: none;
}

.header-login-btn:hover {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(162, 210, 255, 0.12);
  transform: translateY(-2px);
}

.header-login-btn.is-logged-in {
  border-color: rgba(110, 200, 245, 0.35);
  color: #6ec8f5;
}

.store-section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 96px 24px;
  box-sizing: border-box;
}

.store-section .section-container {
  width: 100%;
}

.store-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.store-server-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.store-server-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.store-server-hint-icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.4);
}

.store-server-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.store-server-segment {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  flex-shrink: 0;
}

.store-server-tab {
  padding: 12px 28px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.store-server-tab:hover:not(.is-active) {
  color: rgba(255, 255, 255, 0.85);
}

.store-server-tab.is-active {
  color: #141414;
  background: #6ec8f5;
  box-shadow: 0 4px 20px rgba(110, 200, 245, 0.35);
}

.store-server-online-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
}

.store-server-online-item {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 6px;
  align-items: center;
  min-width: 140px;
  transition: opacity 0.2s ease;
}

.store-server-online-item.is-active {
  opacity: 1;
}

.store-server-online-item:not(.is-active) {
  opacity: 0.55;
}

.store-server-online-name {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

.store-server-online-item.is-active .store-server-online-name {
  color: rgba(110, 200, 245, 0.8);
}

.store-server-online-value {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.25s ease;
  white-space: nowrap;
}

.store-server-online-value.is-loading {
  opacity: 0.45;
}

.store-server-online-max {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
}

.store-server-online-bar {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.store-server-online-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4a9ec9 0%, #6ec8f5 100%);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.store-server-online-item.is-active .store-server-online-fill {
  background: #6ec8f5;
  box-shadow: 0 0 8px rgba(110, 200, 245, 0.5);
}

.store-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.store-filter {
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.store-filter:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
}

.store-filter.is-active {
  color: #6ec8f5;
  border-color: rgba(110, 200, 245, 0.45);
  background: rgba(110, 200, 245, 0.08);
}

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

.store-filters--hidden {
  display: none;
}

.store-prompt {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 24px;
}

.store-prompt-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(110, 200, 245, 0.08);
  border: 1px solid rgba(110, 200, 245, 0.16);
  color: #6ec8f5;
  margin-bottom: 20px;
}

.store-prompt-title {
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.store-prompt-text {
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.4);
  max-width: 360px;
}

.store-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 16px;
  padding: 48px 24px;
}

.product-card {
  position: relative;
  border-radius: 24px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card .card-image-wrapper {
  height: auto;
  aspect-ratio: 1 / 1;
}

.product-card .card-image-wrapper::after {
  background: linear-gradient(to bottom, transparent 55%, #181818 100%);
}

.product-card .card-image {
  object-fit: cover;
  object-position: center center;
  transform: scale(0.82);
}

.product-card .card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .card-title {
  font-size: 19px;
  margin-bottom: 8px;
}

.product-card .card-description {
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-buy-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}

.product-card .product-amount-btn,
.product-card .product-price-btn {
  width: auto;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: pointer;
}

.product-card .product-amount-btn {
  flex: 0 0 92px;
  padding: 0 14px;
}

.product-card .product-price-btn {
  flex: 1 1 auto;
  min-width: 0;
}

/* Cart & Checkout modals */
.site-modal-dialog--cart,
.site-modal-dialog--checkout,
.site-modal-dialog--login {
  max-width: 520px;
}

.login-profile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  text-align: center;
}

.login-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px;
  border: 2px solid rgba(110, 200, 245, 0.35);
}

.login-profile-name {
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.login-profile-label {
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 6px;
}

.login-profile-value {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  word-break: break-all;
}

.login-logout-btn {
  min-height: 48px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-form {
  margin-top: 4px;
}

.login-steam-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-steam-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1f3044 0%, #171a21 100%);
  border: 1px solid rgba(102, 192, 244, 0.35);
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-steam-login:hover {
  border-color: rgba(102, 192, 244, 0.65);
  box-shadow: 0 0 24px rgba(102, 192, 244, 0.18);
  transform: translateY(-1px);
}

.btn-steam-login-icon {
  flex-shrink: 0;
}

.checkout-steam-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.checkout-steam-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.checkout-steam-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.checkout-steam-name {
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.checkout-steam-id {
  font-family: var(--font-family);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  word-break: break-all;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.cart-item-name {
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.cart-item-meta {
  font-family: var(--font-family);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cart-qty-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cart-qty {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  color: #ffffff;
}

.cart-remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 100, 100, 0.25);
  background: rgba(255, 100, 100, 0.08);
  color: #ff8888;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  margin-left: 4px;
}

.cart-remove-btn:hover {
  background: rgba(255, 100, 100, 0.15);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.cart-total-price {
  font-size: 24px;
  font-weight: 700;
  color: #6ec8f5;
}

.cart-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  padding: 24px 0;
}

.cart-checkout-btn {
  margin-top: 4px;
}

.checkout-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-family);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.checkout-total {
  margin-bottom: 20px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.checkout-input {
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease;
}

.checkout-input:focus {
  border-color: rgba(110, 200, 245, 0.5);
}

.checkout-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 1200px) {
  .store-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-container--store {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .store-server-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .store-server-segment {
    width: 100%;
    justify-content: center;
  }

  .store-server-online-row {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .store-server-online-item {
    min-width: 160px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 16px 20px;
  }
  
  .nav {
    gap: 16px;
  }

  .hero-title {
    font-size: 42px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .community-left {
    padding: 32px 24px 28px;
  }

  .community-title {
    font-size: 36px;
  }

  .community-description {
    margin-bottom: 32px;
  }

  .metric-number {
    font-size: 44px;
  }

  .metric-label {
    margin-bottom: 18px;
  }

  .community-stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-modal-link-grid {
    grid-template-columns: 1fr;
  }

  .site-modal-dialog--download {
    max-width: 100%;
    max-height: 96vh;
    padding: 28px 22px 24px;
  }

  .store-server-segment {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 8px;
  }

  .store-server-tab {
    flex: 1;
    min-width: 120px;
    padding: 11px 20px;
    text-align: center;
  }

  .store-server-online-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .store-server-online-item {
    min-width: 0;
  }

  .store-server-online-value {
    font-size: 15px;
  }
  
  .store-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .toast {
    left: 20px;
    right: 20px;
    bottom: 20px;
    text-align: center;
  }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.scroll-reveal {
  --reveal-delay: 0ms;
  --reveal-duration: 0.85s;
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
    filter: blur(8px);
    transition:
      opacity var(--reveal-duration) var(--reveal-ease),
      transform var(--reveal-duration) var(--reveal-ease),
      filter var(--reveal-duration) var(--reveal-ease);
    transition-delay: var(--reveal-delay);
    will-change: opacity, transform, filter;
  }

  .scroll-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }

  .scroll-reveal--scale {
    transform: translate3d(0, 28px, 0) scale(0.96);
  }

  .scroll-reveal--scale.is-visible {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .hero-content .scroll-reveal--hero:nth-child(1) { --reveal-delay: 0ms; }
  .hero-content .scroll-reveal--hero:nth-child(2) { --reveal-delay: 120ms; }
  .hero-content .scroll-reveal--hero:nth-child(3) { --reveal-delay: 240ms; }
  .hero-content .scroll-reveal--hero:nth-child(4) { --reveal-delay: 360ms; }

  .community-stats-grid .scroll-reveal:nth-child(1) { --reveal-delay: 0ms; }
  .community-stats-grid .scroll-reveal:nth-child(2) { --reveal-delay: 100ms; }
  .community-stats-grid .scroll-reveal:nth-child(3) { --reveal-delay: 200ms; }

  .product-card.scroll-reveal {
    transform: translate3d(0, 36px, 0) scale(0.97);
  }

  .product-card.scroll-reveal.is-visible {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .store-prompt.scroll-reveal,
  .store-empty.scroll-reveal {
    transform: translate3d(0, 24px, 0) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ==========================================================================
   PAGE TRANSITIONS (Store ↔ Download)
   ========================================================================== */

.nav-page-tabs {
  display: flex;
  align-items: center;
  gap: 32px;
}

.page-main {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  html.page-enter .page-main {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    filter: blur(6px);
  }

  html.page-enter-active .page-main {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
    transition:
      opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
      filter 0.58s cubic-bezier(0.22, 1, 0.36, 1);
  }

  html.page-leave .page-main {
    opacity: 0;
    transform: translate3d(0, -14px, 0);
    filter: blur(4px);
    transition:
      opacity 0.42s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.42s cubic-bezier(0.4, 0, 0.2, 1),
      filter 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  }

  html.page-leave .ambient-glow,
  html.page-leave .dot-matrix {
    opacity: 0.72;
    transition: opacity 0.42s ease;
  }
}

@media (max-width: 768px) {
  .nav-page-tabs {
    gap: 16px;
  }
}

/* ==========================================================================
   ADMIN PANEL
   ========================================================================== */

.admin-page {
  min-height: 100vh;
  padding: 96px 24px 48px;
  position: relative;
  z-index: 2;
}

.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.admin-card {
  background: rgba(20, 20, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.admin-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.admin-subtitle {
  color: var(--text-dim);
  margin-bottom: 24px;
}

.admin-form {
  display: grid;
  gap: 14px;
  max-width: 420px;
}

.admin-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.admin-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: var(--font-family);
}

.admin-error,
.admin-message {
  color: rgba(255, 255, 255, 0.55);
  margin-top: 12px;
}

.admin-error {
  color: #ff8f8f;
}

.admin-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.admin-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-family);
  font-weight: 600;
  cursor: pointer;
}

.admin-tab.is-active {
  color: #6ec8f5;
  border-color: rgba(110, 200, 245, 0.35);
  background: rgba(110, 200, 245, 0.08);
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.is-active {
  display: block;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.admin-stat-box {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-stat-box.is-active {
  border-color: rgba(110, 200, 245, 0.35);
  background: rgba(110, 200, 245, 0.06);
}

.admin-stat-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.admin-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.admin-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 16px;
}

.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.admin-filter-btn.is-active {
  color: #6ec8f5;
  border-color: rgba(110, 200, 245, 0.35);
}

.admin-summary-line {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}

.admin-popular-box {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(110, 200, 245, 0.06);
  border: 1px solid rgba(110, 200, 245, 0.18);
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
}

.admin-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.admin-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.02);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.admin-page-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
}

.admin-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.admin-page-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.admin-user-link {
  background: none;
  border: none;
  padding: 0;
  color: #6ec8f5;
  font-family: var(--font-family);
  font-weight: 600;
  cursor: pointer;
}

.admin-code {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.admin-row-btn {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 11px;
  margin-right: 8px;
}

.admin-hidden {
  display: none !important;
}

.admin-user-modal .site-modal-dialog {
  max-width: 640px;
}

.admin-user-modal-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-user-modal-head {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.admin-user-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-balance-row,
.admin-balance-edit {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-balance-edit {
  flex-direction: row;
  align-items: center;
}

.admin-balance-edit .admin-input {
  max-width: 180px;
}

.admin-block-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.admin-mini-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-mini-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.admin-mini-item--empty {
  color: rgba(255, 255, 255, 0.4);
}

.admin-cart-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 1024px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-balance-edit {
    flex-direction: column;
    align-items: stretch;
  }
}

