﻿/* ==========================================================================
   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: #c0392b; /* Brand burgundy-red */
  --accent-dim: #922b21;
  --accent-glow: rgba(192, 57, 43, 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);
  /* clip avoids the overflow-x:hidden → overflow-y:auto trap that can crop glows */
  overflow-x: clip;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  font-style: normal;
}

em,
i {
  font-style: normal;
}

/* ==========================================================================
   AMBIENT BACKGROUNDS
   ========================================================================== */

/* Static ambient glow (no mouse tracking for better performance) */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    600px circle at 50% 35%,
    rgba(192, 57, 43, 0.035) 0%,
    rgba(192, 57, 43, 0.01) 40%,
    transparent 80%
  );
}

/* 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: #c0392b;
}

.nav-link.is-active::after {
  width: 100%;
  background-color: #c0392b;
}

.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(192, 57, 43, 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;
  /* No z-index: keep hero in normal flow so catalog glows are not trapped under a layer edge */
  overflow: visible;
  background: transparent;
}

/* Photo + veil extend below the hero box so the catalog seam has no hard cut */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -280px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(13, 13, 13, 0.28) 0%,
      rgba(13, 13, 13, 0.5) 32%,
      rgba(13, 13, 13, 0.82) 48%,
      rgba(13, 13, 13, 0.96) 60%,
      rgba(13, 13, 13, 0.7) 75%,
      rgba(13, 13, 13, 0.25) 88%,
      transparent 100%
    ),
    radial-gradient(circle at center, rgba(13, 13, 13, 0.12) 0%, transparent 70%),
    url('images/hero-bg.jpg') no-repeat center top / cover;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 36%,
    rgba(0, 0, 0, 0.85) 50%,
    rgba(0, 0, 0, 0.45) 64%,
    rgba(0, 0, 0, 0.15) 78%,
    rgba(0, 0, 0, 0.04) 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 36%,
    rgba(0, 0, 0, 0.85) 50%,
    rgba(0, 0, 0, 0.45) 64%,
    rgba(0, 0, 0, 0.15) 78%,
    rgba(0, 0, 0, 0.04) 90%,
    transparent 100%
  );
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -280px;
  z-index: 1;
  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 bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 24%,
    rgba(0, 0, 0, 0.55) 42%,
    rgba(0, 0, 0, 0.45) 58%,
    rgba(0, 0, 0, 0.25) 72%,
    rgba(0, 0, 0, 0.1) 85%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 24%,
    rgba(0, 0, 0, 0.55) 42%,
    rgba(0, 0, 0, 0.45) 58%,
    rgba(0, 0, 0, 0.25) 72%,
    rgba(0, 0, 0, 0.1) 85%,
    transparent 100%
  );
}

.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: none;
  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 ExtraBold', 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(192, 57, 43, 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(192, 57, 43, 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(192, 57, 43, 0.15);
  transform: translateY(-2px);
}

/* Hero CTA — soft backdrop blur (not the full glass-blur) */
.hero-actions .btn-glass-cta {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* 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(192, 57, 43, 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(192, 57, 43, 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: 3;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 96px 24px 96px;
  box-sizing: border-box;
  overflow: visible;
}

.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;
  position: relative;
  z-index: 2;
  /* Room for text glow / blur bloom above the title */
  padding-top: 12px;
  margin-top: -12px;
}

.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: #c0392b;
}

.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: #c0392b;
  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: #c0392b;
  border-color: rgba(192, 57, 43, 0.35);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
}

.btn-metric-action svg {
  width: 16px;
  height: 16px;
  color: #c0392b;
  opacity: 1;
  flex-shrink: 0;
}

.btn-metric-action:hover {
  border-color: rgba(192, 57, 43, 0.55);
  background: rgba(192, 57, 43, 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(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 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.35s ease,
    visibility 0.35s ease;
}

.site-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.45s ease-out;
}

.site-modal.is-open .site-modal-backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.site-modal.is-open:has(.site-modal-dialog--product-detail) .site-modal-backdrop {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-modal-dialog {
  position: relative;
  z-index: 1;
  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(12px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 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(192, 57, 43, 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(192, 57, 43, 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(192, 57, 43, 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(192, 57, 43, 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(192, 57, 43, 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: #c0392b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-modal-note a:hover {
  color: #8ed4f7;
}

body.modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .site-modal,
  .site-modal-backdrop,
  .site-modal-dialog {
    transition-duration: 0.01ms !important;
  }

  .site-modal.is-open .site-modal-backdrop {
    opacity: 1;
  }
}

/* ==========================================================================
   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(192, 57, 43, 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-auth {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-auth[hidden] {
  display: none !important;
}

.header-user-panel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-user-panel[hidden] {
  display: none;
}

.header-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 6px 0 16px;
  border-radius: 999px;
  background: rgba(18, 22, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.header-balance-pill[hidden] {
  display: none;
}

.header-balance-value {
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
  color: #8fd4ff;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.header-balance-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #8fd4ff, #5eb8e8);
  color: #081018;
  flex-shrink: 0;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.header-balance-pill:hover .header-balance-add {
  transform: scale(1.04);
  filter: brightness(1.06);
}

.header-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.header-profile-btn:hover {
  border-color: rgba(192, 57, 43, 0.35);
  box-shadow: 0 0 18px rgba(192, 57, 43, 0.12);
  transform: translateY(-1px);
}

.header-profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.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-btn[hidden] {
  display: none;
}

.header-login-btn:hover {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(192, 57, 43, 0.12);
  transform: translateY(-2px);
}

.store-section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  /* Sit inside the extended hero fade — no hard section edge behind the title */
  margin-top: -180px;
  padding: 180px 24px 96px;
  box-sizing: border-box;
  overflow: visible;
}

.store-section .section-container {
  width: 100%;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.store-section .section-title {
  position: relative;
  z-index: 2;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
}

.store-section .section-title::before {
  display: none;
}

.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: #c0392b;
  box-shadow: 0 4px 20px rgba(192, 57, 43, 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(192, 57, 43, 0.95);
  text-shadow: 0 0 12px rgba(192, 57, 43, 0.35);
}

.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, #3a7fa8 0%, #5aafd8 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-bar {
  background: rgba(192, 57, 43, 0.12);
  box-shadow: inset 0 0 0 1px rgba(192, 57, 43, 0.08);
}

.store-server-online-item.is-active .store-server-online-fill {
  background: linear-gradient(
    90deg,
    #3d8bb8 0%,
    #c0392b 22%,
    #c0392b 45%,
    #e8f6ff 55%,
    #c0392b 72%,
    #4a9ec9 100%
  );
  background-size: 220% 100%;
  animation: store-online-fill-shimmer 3.2s ease-in-out infinite;
  box-shadow:
    0 0 10px rgba(192, 57, 43, 0.55),
    0 0 18px rgba(192, 57, 43, 0.25);
}

@keyframes store-online-fill-shimmer {
  0% {
    background-position: 100% 0;
  }
  50% {
    background-position: 0% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-server-online-item.is-active .store-server-online-fill {
    animation: none;
    background-position: 40% 0;
  }
}

.store-server-online-item.is-active .store-server-online-fill {
  background: #c0392b;
  box-shadow: 0 0 8px rgba(192, 57, 43, 0.5);
}

.store-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.store-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  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 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.store-filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.store-filter-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.store-filter-icon--all {
  color: #c0392b;
}

.store-filter-icon--privilege {
  color: #e8c547;
}

.store-filter-icon--items {
  color: #7ed492;
}

.store-filter-label {
  line-height: 1;
}

.store-filter:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
}

.store-filter.is-active {
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.45);
  background: rgba(192, 57, 43, 0.08);
}

.store-filter.is-active .store-filter-icon--all {
  color: #8fd8ff;
}

.store-filter.is-active .store-filter-icon--privilege {
  color: #f0d36b;
}

.store-filter.is-active .store-filter-icon--items {
  color: #95e8a8;
}

.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(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.16);
  color: #c0392b;
  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;
  z-index: 1;
  border-radius: 24px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.28s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 0.28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    z-index: 3;
    transform: scale(1.045);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
      0 22px 50px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  }

  .product-card:hover .card-image {
    transform: scale(calc(var(--product-image-scale, 0.82) * 1.073));
  }
}

.product-card .card-image-wrapper {
  position: relative;
  height: auto;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.02);
}

.product-price-btn--discount {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 12px;
  line-height: 1.1;
}

.product-price-stack,
.product-price-line {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.1;
}

.product-price-old {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
  text-decoration: line-through;
}

.product-price-new {
  font-size: 15px;
  font-weight: 800;
  color: #f0c96b;
  font-variant-numeric: tabular-nums;
}

.product-card .card-image-wrapper::after {
  background: linear-gradient(to bottom, transparent 70%, #181818 100%);
}

.product-card .card-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: scale(var(--product-image-scale, 0.82));
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.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-amount-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
}

.product-amount-x {
  font-size: 0.78em;
  font-weight: 600;
  margin-right: 1px;
  opacity: 0.9;
}

.product-amount-value {
  font-size: 1em;
  font-weight: 700;
}

.product-card .product-price-btn {
  flex: 1 1 auto;
  min-width: 0;
}

.product-card .product-price-btn.is-disabled,
.product-card .product-amount-btn:disabled,
.product-card .product-price-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Cart & Checkout modals */
.site-modal-dialog--cart,
.site-modal-dialog--login {
  max-width: 520px;
}

.site-modal-dialog--profile {
  max-width: 560px;
  max-height: min(92vh, 780px);
}

.site-modal-dialog--checkout {
  max-width: 600px;
  max-height: min(94vh, 860px);
}

.site-modal-dialog--checkout #modalContent,
.site-modal-body-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(192, 57, 43, 0.42) rgba(255, 255, 255, 0.05);
}

.site-modal-dialog--checkout #modalContent::-webkit-scrollbar,
.site-modal-body-scroll::-webkit-scrollbar {
  width: 8px;
}

.site-modal-dialog--checkout #modalContent::-webkit-scrollbar-track,
.site-modal-body-scroll::-webkit-scrollbar-track {
  margin: 6px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.site-modal-dialog--checkout #modalContent::-webkit-scrollbar-thumb,
.site-modal-body-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background: linear-gradient(180deg, rgba(192, 57, 43, 0.62), rgba(146, 43, 33, 0.38));
  background-clip: padding-box;
}

.site-modal-dialog--checkout #modalContent::-webkit-scrollbar-thumb:hover,
.site-modal-body-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(192, 57, 43, 0.78), rgba(146, 43, 33, 0.52));
  background-clip: padding-box;
}

.site-modal-dialog--checkout #modalContent {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  margin-right: -6px;
  padding-right: 6px;
}

.checkout-modal {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.checkout-products {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout-product {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.018) 100%);
}

.checkout-product-hero {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.checkout-product-image-wrap {
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkout-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: scale(var(--product-image-scale, 0.82));
}

.checkout-product-name {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.checkout-product-qty {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #8fd4ff;
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.16);
}

.checkout-product-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
}

.checkout-product-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-product-content-block {
  margin-top: 0;
}

.checkout-product--showcase {
  padding: 0;
  gap: 14px;
  border: none;
  background: transparent;
  box-shadow: none;
}

.product-showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-showcase-head-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 7px 14px 7px 7px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.product-showcase-head-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background:
    radial-gradient(circle at 50% 20%, rgba(192, 57, 43, 0.16), transparent 62%),
    rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(192, 57, 43, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-showcase-head-image {
  width: 30px;
  height: 30px;
  object-fit: contain;
  transform: scale(var(--product-image-scale, 0.82));
}

.product-showcase-head-title {
  margin: 0;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.01em;
}

.checkout-product-showcase {
  display: grid;
  grid-template-columns: minmax(140px, 168px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.checkout-product-showcase-media {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(192, 57, 43, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.checkout-product-showcase-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  box-sizing: border-box;
  transform: scale(var(--product-image-scale, 0.82));
}

.checkout-product-showcase-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.checkout-product-showcase-desc {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.checkout-product-showcase-desc--empty {
  color: rgba(255, 255, 255, 0.38);
  font-style: italic;
}

.checkout-duration {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-duration-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.checkout-duration-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.checkout-duration-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.checkout-duration-option-label {
  font-size: 0.86rem;
  font-weight: 600;
}

.checkout-duration-option-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: #8fd4ff;
}

.checkout-duration-option.is-active,
.checkout-duration-option:hover {
  border-color: rgba(192, 57, 43, 0.28);
  background: rgba(192, 57, 43, 0.08);
  color: #fff;
}

.checkout-duration-option.is-active {
  box-shadow: inset 0 0 0 1px rgba(192, 57, 43, 0.18);
}

.checkout-duration-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.checkout-duration-stepper-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-family);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease;
}

.checkout-duration-stepper-btn:hover:not(:disabled) {
  background: rgba(192, 57, 43, 0.12);
  border-color: rgba(192, 57, 43, 0.22);
  color: #fff;
}

.checkout-duration-stepper-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.checkout-duration-stepper-value {
  min-width: 92px;
  padding: 0 10px;
  text-align: center;
  font-family: var(--font-family);
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.checkout-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.checkout-footer-duration {
  flex: 0 1 auto;
  min-width: 0;
}

.checkout-buy-btn {
  position: relative;
  overflow: hidden;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  background: #ffffff;
  color: #141414;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.12);
  transition:
    transform 0.22s ease,
    opacity 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.checkout-buy-btn > * {
  position: relative;
  z-index: 3;
}

.checkout-buy-btn:hover:not(:disabled):not(.checkout-buy-btn--insufficient) {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 0 25px rgba(192, 57, 43, 0.15);
  transform: translateY(-2px);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.checkout-buy-btn:disabled,
.checkout-buy-btn.checkout-buy-btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.checkout-buy-btn.checkout-buy-btn--insufficient {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.checkout-buy-btn-label {
  white-space: nowrap;
}

.checkout-buy-btn-price-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.checkout-buy-btn-price {
  font-size: 0.98rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.checkout-buy-btn-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%);
  opacity: 0.78;
  transition: filter 0.22s ease, opacity 0.22s ease;
}

.checkout-buy-btn:hover:not(:disabled):not(.checkout-buy-btn--insufficient) .checkout-buy-btn-icon {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

@media (max-width: 520px) {
  .checkout-footer {
    flex-wrap: wrap;
  }

  .checkout-footer-duration,
  .checkout-buy-btn {
    width: 100%;
  }

  .checkout-buy-btn {
    margin-left: 0;
  }

  .checkout-duration-stepper {
    width: 100%;
    justify-content: space-between;
  }

  .checkout-duration-stepper-value {
    flex: 1;
  }
}

.checkout-pricing {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-pricing-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.checkout-pricing-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.checkout-pricing-row--after .checkout-pricing-label {
  color: rgba(255, 255, 255, 0.42);
}

.checkout-pricing-value--after {
  font-size: 0.98rem;
  font-weight: 700;
  color: #8fd4ff;
}

.checkout-pricing-value--discount {
  color: #95e8a8;
}

.checkout-promo-field {
  margin-bottom: 14px;
}

.checkout-promo-btn {
  flex-shrink: 0;
  min-width: 108px;
}

.checkout-bottom-dock .checkout-promo-field {
  margin-bottom: 12px;
}

.checkout-pricing-value--after.is-negative {
  color: #ff8f8f;
}
  color: #ff9f9f;
}

.checkout-recipient-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-recipient-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-recipient-switch-btn {
  min-width: 88px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--font-family);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.checkout-recipient-switch-btn.is-active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.checkout-recipient-switch-btn:hover:not(.is-active) {
  color: rgba(255, 255, 255, 0.72);
}

.checkout-submit-btn--insufficient {
  opacity: 0.72;
  cursor: not-allowed;
}

/* Product detail modal — Dark Game UI (site palette) */
.site-modal-dialog--product-detail {
  --game-bg: #1a1a1a;
  --game-panel: #232323;
  --game-card: #343434;
  --game-elevated: #2d2d2d;
  --game-text-muted: #909090;
  --game-text-dim: #7e7e7e;
  --game-text-sub: #606060;
  --game-accent: var(--accent-color);
  width: min(96vw, 640px);
  max-width: 640px;
  height: min(96vh, 910px);
  max-height: min(96vh, 910px);
  padding: 24px 36px 0 24px;
  background: var(--game-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.site-modal-dialog--product-detail .site-modal-close {
  display: none;
}

.site-modal-dialog--product-detail .site-modal-title:empty,
.site-modal-dialog--product-detail .site-modal-subtitle:empty {
  display: none;
  margin: 0;
}

.site-modal-dialog--product-detail #modalContent {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.site-modal-dialog--product-detail .checkout-modal--showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  gap: 0;
  overflow: hidden;
}

.site-modal-dialog--product-detail .checkout-modal--showcase .checkout-products {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding-right: 0;
  margin-right: 0;
}

.site-modal-dialog--product-detail .checkout-modal--showcase:has(.product-detail-kits) .checkout-products,
.site-modal-dialog--product-detail .checkout-modal--showcase:has(.product-detail-bundle) .checkout-products {
  display: flex;
  flex-direction: column;
}

.site-modal-dialog--product-detail .checkout-modal--showcase .checkout-products .checkout-product--showcase.product-game-ui {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.site-modal-dialog--product-detail .checkout-modal--showcase .checkout-products .checkout-product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.site-modal-dialog--product-detail .checkout-modal--showcase .checkout-products .product-detail-kits,
.site-modal-dialog--product-detail .checkout-modal--showcase .checkout-products .product-detail-bundle {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.site-modal-dialog--product-detail .product-detail-kit-grid-wrap {
  position: relative;
  flex: 0 0 auto;
}

.site-modal-dialog--product-detail .product-detail-kit-grid-wrap .product-detail-scroll {
  top: 0;
  height: 100%;
}

.site-modal-dialog--product-detail .checkout-modal--showcase .checkout-products .product-detail-kit-grid.product-detail-scroll-area {
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 10px;
  margin-right: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site-modal-dialog--product-detail .checkout-modal--showcase .checkout-products.product-detail-scroll-area::-webkit-scrollbar,
.site-modal-dialog--product-detail .checkout-modal--showcase .checkout-products .product-detail-kit-grid.product-detail-scroll-area::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.site-modal-dialog--product-detail .product-detail-scroll {
  position: absolute;
  right: 2px;
  width: 3px;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.site-modal-dialog--product-detail .product-detail-scroll.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.site-modal-dialog--product-detail .product-detail-scroll-track {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
}

.site-modal-dialog--product-detail .product-detail-scroll-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  will-change: transform;
}

.site-modal-dialog--product-detail .checkout-form--showcase {
  flex-shrink: 0;
  margin-top: auto;
}

.site-modal-dialog--product-detail .checkout-product--showcase-item {
  gap: 14px;
}

.site-modal-dialog--product-detail .product-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 2px;
}

.site-modal-dialog--product-detail .product-item-head-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.site-modal-dialog--product-detail .product-item-name-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  height: 36px;
  padding: 0 12px 0 8px;
  border-radius: 10px;
  background: var(--game-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-modal-dialog--product-detail .product-item-name-pill-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.site-modal-dialog--product-detail .product-item-name-pill-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(var(--product-image-scale, 1));
  transform-origin: center center;
}

.site-modal-dialog--product-detail .product-item-name-pill-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.site-modal-dialog--product-detail .product-item-fav-btn {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: var(--game-card);
  color: var(--game-text-dim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: not-allowed;
  opacity: 0.72;
}

.site-modal-dialog--product-detail .product-item-close-btn {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--game-text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.site-modal-dialog--product-detail .product-item-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.site-modal-dialog--product-detail .product-item-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 18px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.055) 1px, transparent 0) 0 0 / 14px 14px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%),
    var(--game-panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.site-modal-dialog--product-detail .product-item-hero-image {
  width: min(78%, 220px);
  height: min(180px, 42vw);
  object-fit: contain;
  transform: scale(var(--product-image-scale, 1));
  transform-origin: center center;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.site-modal-dialog--product-detail .product-item-desc {
  margin: 0;
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--game-text-muted);
}

.site-modal-dialog--product-detail:has(.checkout-modal--showcase-item) {
  width: min(92vw, 400px);
  max-width: 400px;
  height: auto;
  max-height: min(94vh, 560px);
  padding: 18px 18px 0;
}

.site-modal-dialog--product-detail:has(.checkout-modal--showcase-item) .checkout-modal--showcase {
  flex: 0 0 auto;
}

.site-modal-dialog--product-detail:has(.checkout-modal--showcase-item) .checkout-modal--showcase .checkout-products {
  flex: 0 0 auto;
  overflow: hidden;
  padding-right: 0;
}

.site-modal-dialog--product-detail:has(.checkout-modal--showcase-item) .product-detail-scroll {
  display: none;
}

.site-modal-dialog--product-detail:has(.checkout-modal--showcase-item) .checkout-bottom-dock {
  margin: 12px -18px 0;
  padding: 14px 18px 18px;
  border-top: none;
  background: transparent;
}

.site-modal-dialog--product-detail:has(.checkout-modal--showcase-item) .checkout-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-modal-dialog--product-detail:has(.checkout-modal--showcase-item) .checkout-item-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--game-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #fff;
  white-space: nowrap;
}

.site-modal-dialog--product-detail:has(.checkout-modal--showcase-item) .checkout-item-qty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--game-text-muted);
}

.site-modal-dialog--product-detail:has(.checkout-modal--showcase-item) .checkout-item-qty-value {
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.site-modal-dialog--product-detail:has(.checkout-modal--showcase-item) .checkout-bottom-dock .checkout-buy-btn {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.site-modal-dialog--product-detail .checkout-product--showcase {
  gap: 12px;
}

.site-modal-dialog--product-detail .product-showcase-head {
  padding: 0;
  margin: 0 0 6px;
}

.site-modal-dialog--product-detail:has(.product-game-ui--bundle) {
  height: auto;
  max-height: min(96vh, 720px);
}

.site-modal-dialog--product-detail:has(.product-game-ui--bundle) .checkout-modal--showcase .checkout-products,
.site-modal-dialog--product-detail:has(.product-game-ui--bundle) .checkout-products .checkout-product--showcase.product-game-ui,
.site-modal-dialog--product-detail:has(.product-game-ui--bundle) .checkout-product-content,
.site-modal-dialog--product-detail:has(.product-game-ui--bundle) .product-detail-bundle {
  flex: 0 0 auto;
}

.site-modal-dialog--product-detail .product-detail-bundle-grid {
  max-height: none;
  overflow: visible;
}

.site-modal-dialog--product-detail .product-game-ui:has(.product-detail-kits) .product-showcase-head,
.site-modal-dialog--product-detail .product-game-ui--bundle .product-showcase-head {
  display: block;
}

.site-modal-dialog--product-detail .product-showcase-head-title {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  font-family: var(--font-family);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  letter-spacing: 0.01em;
}

.site-modal-dialog--product-detail .product-detail-perks {
  background: var(--game-panel);
  border: none;
  border-radius: 12px;
}

.site-modal-dialog--product-detail .product-detail-perk {
  padding: 9px 12px;
  font-size: 0.8rem;
  color: var(--game-text-muted);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.site-modal-dialog--product-detail .product-detail-kits {
  gap: 10px;
}

.site-modal-dialog--product-detail .product-detail-bundle {
  gap: 0;
}

.site-modal-dialog--product-detail .product-detail-kit-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border: none;
  border-radius: 10px;
  background: #252525;
  overflow: visible;
}

.site-modal-dialog--product-detail .product-detail-kit-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 calc((100% - 8px) / 3);
  min-width: calc((100% - 8px) / 3);
  max-width: calc((100% - 8px) / 3);
  min-height: 52px;
  padding: 8px 10px 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #6d6d6d;
  font-family: var(--font-family);
  font-size: inherit;
  line-height: 1.15;
  cursor: pointer;
  text-align: center;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.site-modal-dialog--product-detail .product-detail-kit-tab-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
}

.site-modal-dialog--product-detail .product-detail-kit-tab-name {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.1;
  color: inherit;
}

.site-modal-dialog--product-detail .product-detail-kit-tab-time {
  font-size: 0.66rem;
  font-weight: 400;
  line-height: 1.1;
  color: #585858;
}

.site-modal-dialog--product-detail .product-detail-kit-tab-indicator {
  display: none;
}

.site-modal-dialog--product-detail .product-detail-kit-tab:hover:not(.is-active) {
  color: #8a8a8a;
  background: transparent;
}

.site-modal-dialog--product-detail .product-detail-kit-tab:hover:not(.is-active) .product-detail-kit-tab-time {
  color: #707070;
}

.site-modal-dialog--product-detail .product-detail-kit-tab.is-active {
  color: #fff;
  background: #181818;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.site-modal-dialog--product-detail .product-detail-kit-tab.is-active .product-detail-kit-tab-name {
  font-weight: 700;
  color: #fff;
}

.site-modal-dialog--product-detail .product-detail-kit-tab.is-active .product-detail-kit-tab-time {
  color: rgba(255, 255, 255, 0.52);
}

.site-modal-dialog--product-detail .product-detail-kit-grid {
  --kit-grid-row-size: 76px;
  --kit-grid-gap: 8px;
  --kit-grid-visible-rows: 4;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--kit-grid-gap);
  max-height: calc(
    var(--kit-grid-row-size) * var(--kit-grid-visible-rows) +
    var(--kit-grid-gap) * (var(--kit-grid-visible-rows) - 1)
  );
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.site-modal-dialog--product-detail .product-detail-item {
  width: 100%;
  max-width: 76px;
  height: 76px;
  margin: 0 auto;
  aspect-ratio: auto;
  border-radius: 10px;
  background: var(--game-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.site-modal-dialog--product-detail .product-detail-item--empty {
  background-color: #2b2b2b;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.028) 0,
    rgba(255, 255, 255, 0.028) 1px,
    transparent 1px,
    transparent 9px
  );
  border-color: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.site-modal-dialog--product-detail .product-detail-item img {
  width: 46px;
  height: 46px;
  margin: 10px auto 0;
  display: block;
  object-fit: contain;
  padding: 0;
}

.site-modal-dialog--product-detail .product-detail-item-qty {
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  padding: 0;
  border: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.site-modal-dialog--product-detail .checkout-bottom-dock {
  margin: 16px -36px 0 -24px;
  padding: 16px 36px 22px 24px;
  background: var(--game-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0 0 18px 18px;
  box-shadow: none;
}

.site-modal-dialog--product-detail .checkout-bottom-dock .checkout-recipient-panel {
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.site-modal-dialog--product-detail .checkout-bottom-dock .checkout-recipient-head {
  margin: 0;
  align-items: center;
}

.site-modal-dialog--product-detail .checkout-bottom-dock .checkout-label-text {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--game-text-sub);
}

.site-modal-dialog--product-detail .checkout-bottom-dock .checkout-recipient-switch {
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.site-modal-dialog--product-detail .checkout-bottom-dock .checkout-recipient-switch-btn {
  min-width: 74px;
  height: 34px;
  padding: 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  color: var(--game-text-dim);
  background: transparent;
  box-shadow: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.site-modal-dialog--product-detail .checkout-bottom-dock .checkout-recipient-switch-btn.is-active {
  background: var(--game-card);
  color: #fff;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.site-modal-dialog--product-detail .checkout-bottom-dock .checkout-recipient-switch-btn:hover:not(.is-active) {
  color: var(--game-text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.site-modal-dialog--product-detail .checkout-bottom-dock .checkout-recipient-switch-btn:active {
  transform: scale(0.98);
}

.site-modal-dialog--product-detail .checkout-bottom-dock .checkout-steam-user {
  display: none;
}

.site-modal-dialog--product-detail .checkout-bottom-dock .checkout-footer {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  gap: 14px;
  flex-wrap: nowrap;
  align-items: center;
}

.site-modal-dialog--product-detail .checkout-bottom-dock .checkout-duration-stepper {
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.site-modal-dialog--product-detail .checkout-bottom-dock .checkout-duration-stepper-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--game-elevated);
  color: #fff;
  font-size: 1.1rem;
}

.site-modal-dialog--product-detail .checkout-bottom-dock .checkout-duration-stepper-btn:hover:not(:disabled) {
  background: #383838;
}

.site-modal-dialog--product-detail .checkout-bottom-dock .checkout-duration-stepper-value {
  min-width: 72px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
}

.site-modal-dialog--product-detail .checkout-bottom-dock .checkout-buy-btn {
  min-width: 175px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 560px) {
  .site-modal-dialog--product-detail {
    width: min(96vw, 640px);
    padding-right: 48px;
  }

  .site-modal-dialog--product-detail .product-detail-kit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .site-modal-dialog--product-detail .product-detail-item {
    max-width: none;
    height: auto;
    aspect-ratio: 1;
  }

  .site-modal-dialog--product-detail .product-detail-item img {
    width: 70%;
    height: auto;
    margin-top: 8px;
  }

  .site-modal-dialog--product-detail .checkout-bottom-dock {
    margin-right: -48px;
    padding-right: 48px;
  }

  .site-modal-dialog--product-detail .checkout-bottom-dock .checkout-footer {
    flex-wrap: wrap;
  }

  .site-modal-dialog--product-detail .checkout-bottom-dock .checkout-buy-btn {
    min-width: 0;
    width: 100%;
    margin-left: 0;
  }
}

.product-detail-modal {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-detail-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.product-detail-image {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-detail-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.product-detail-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
}

.product-detail-subtitle {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.product-detail-perks {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
}

.product-detail-perk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.product-detail-perk:last-child {
  border-bottom: none;
}

.product-detail-perk strong {
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
}

.product-detail-kits {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-detail-kit-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: visible;
}

.product-detail-kit-tab {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  cursor: pointer;
  text-align: center;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.product-detail-kit-tab-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.product-detail-kit-tab-name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.15;
  color: inherit;
}

.product-detail-kit-tab-time {
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.36);
}

.product-detail-kit-tab:hover {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
}

.product-detail-kit-tab.is-active {
  color: #fff;
  background: rgba(192, 57, 43, 0.12);
  border-color: rgba(192, 57, 43, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.product-detail-kit-tab.is-active .product-detail-kit-tab-time {
  color: rgba(192, 57, 43, 0.72);
}

.product-detail-kit-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.product-detail-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.product-detail-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px 8px 22px;
  box-sizing: border-box;
}

.product-detail-item-qty {
  position: absolute;
  left: 50%;
  bottom: 6px;
  z-index: 2;
  transform: translateX(-50%);
  padding: 2px 9px;
  border-radius: 999px;
  font-family: var(--font-family);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  background: rgba(8, 12, 18, 0.72);
  border: 1px solid rgba(192, 57, 43, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .product-detail-kit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-detail-kit-tab {
    font-size: 0.72rem;
    padding: 8px 10px;
  }
}

.product-detail-bundle-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-detail-bundle-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}

.product-detail-bundle-row img {
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.product-detail-bundle-row strong {
  color: #fff;
  font-weight: 700;
}

.product-detail-buy {
  margin-top: 4px;
}

.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(192, 57, 43, 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: 12px 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.checkout-recipient {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-recipient-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.checkout-label-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.checkout-recipient-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-recipient-tab {
  height: 34px;
  padding: 0 14px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.checkout-recipient-tab.is-active {
  background: rgba(192, 57, 43, 0.14);
  color: #dff3ff;
  box-shadow: inset 0 0 0 1px rgba(192, 57, 43, 0.18);
}

.checkout-recipient-gift {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-recipient-gift.is-hidden {
  display: none;
}

.checkout-recipient-search {
  padding: 12px 14px;
  font-size: 0.92rem;
}

.checkout-recipient-gift .checkout-input:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.checkout-recipient-gift .checkout-input:focus {
  border-color: rgba(255, 255, 255, 0.45);
}

.checkout-recipient-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
}

.checkout-recipient-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.checkout-recipient-option:hover,
.checkout-recipient-option:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.checkout-recipient-option-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.checkout-recipient-option-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.checkout-recipient-option-name {
  font-size: 0.88rem;
  font-weight: 600;
}

.checkout-recipient-option-id {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.42);
  word-break: break-all;
}

.checkout-recipient-empty {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.checkout-payer-note {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(192, 57, 43, 0.06);
  border: 1px solid rgba(192, 57, 43, 0.12);
}

.checkout-steam-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.checkout-order-note {
  margin: 0;
}

.checkout-steam-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  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: 0.98rem;
  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: #c0392b;
}

.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(192, 57, 43, 0.5);
}

.checkout-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

/* Deposit modal (GameStores layout, site colors) */
.site-modal-dialog--deposit {
  max-width: min(1058px, 96vw);
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.site-modal-dialog--deposit .site-modal-title,
.site-modal-dialog--deposit .site-modal-subtitle,
.site-modal-dialog--deposit > .site-modal-close {
  display: none;
}

.site-modal-dialog--deposit #modalContent {
  overflow: visible;
  min-height: 0;
  flex: 1;
  margin: 0;
  padding: 0;
}

.deposit-modal {
  width: 100%;
  user-select: none;
}

.deposit-gs-window {
  width: 100%;
  max-width: 1058px;
  min-height: 638px;
  background: var(--surface-1);
  border-radius: 25px;
  padding: 30px 40px;
  box-sizing: border-box;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: left;
}

.deposit-gs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  gap: 16px;
}

.deposit-gs-title {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.2;
  color: #fff;
}

.deposit-gs-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.deposit-gs-future-bal {
  font-weight: 500;
  font-size: 15px;
  color: #fff;
  opacity: 0.5;
  white-space: nowrap;
}

.deposit-gs-balance-box {
  min-width: 84px;
  padding: 0 12px;
  height: 35px;
  background: var(--surface-2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}

.deposit-gs-balance-box--left {
  justify-content: flex-start;
}

.deposit-gs-bal-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  object-fit: contain;
  opacity: 0.8;
}

.deposit-gs-close {
  width: 35px;
  height: 35px;
  padding: 0;
  border: none;
  background: var(--surface-2);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deposit-gs-close img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.deposit-gs-close:hover {
  background: var(--surface-bright);
}

.deposit-gs-close:hover img {
  opacity: 1;
  transform: rotate(90deg);
}

.deposit-gs-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.deposit-gs-left {
  width: 470px;
  max-width: 100%;
  height: 565px;
  background: var(--surface-2);
  border-radius: 15px;
  padding: 20px 10px 20px 20px;
  box-sizing: border-box;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.deposit-gs-left::-webkit-scrollbar {
  width: 4px;
}

.deposit-gs-left::-webkit-scrollbar-track {
  background: transparent;
  margin: 20px 0;
}

.deposit-gs-left::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
}

.deposit-gs-sec-title {
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  color: #fff;
  opacity: 0.75;
  margin-top: 25px;
  margin-bottom: 10px;
}

.deposit-gs-sec-title--first {
  margin-top: 0;
}

.deposit-gs-sec-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  object-fit: contain;
}

.deposit-gs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.deposit-gs-method-btn {
  width: 125px;
  height: 85px;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  border-radius: 15px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.deposit-gs-method-btn:hover {
  background: rgba(255, 255, 255, 0.07);
}

.deposit-gs-method-btn.is-active {
  background: rgba(192, 57, 43, 0.08);
  border-color: rgba(192, 57, 43, 0.35);
}

.deposit-gs-btn-img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  pointer-events: none;
}

.deposit-gs-btn-img--small {
  width: 55px;
  height: 55px;
}

.deposit-gs-vert-sep {
  width: 2px;
  height: 488px;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0.25;
  flex-shrink: 0;
}

.deposit-gs-right {
  width: 468px;
  max-width: 100%;
  min-height: 488px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.deposit-gs-selected-box {
  width: 100%;
  height: 75px;
  background: var(--surface-2);
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  box-sizing: border-box;
  margin-bottom: 15px;
  flex-shrink: 0;
}

.deposit-gs-sel-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.deposit-gs-sel-label {
  font-weight: 500;
  font-size: 14px;
  opacity: 0.5;
  color: #fff;
  line-height: 1;
}

.deposit-gs-sel-val {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: #fff;
  opacity: 0.75;
  margin-top: 12px;
}

.deposit-gs-sel-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.deposit-gs-amount-box {
  width: 100%;
  min-height: 247px;
  background: var(--surface-2);
  border-radius: 20px;
  padding: 18px 25px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.deposit-gs-amount-title {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  opacity: 0.75;
  margin: 0;
}

.deposit-gs-input-wrap {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  margin-top: 5px;
}

.deposit-gs-input-inner {
  position: relative;
  width: 100%;
  height: 56px;
}

.deposit-gs-currency-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.9;
  z-index: 5;
}

.deposit-gs-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.7;
}

.deposit-gs-arrow-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.deposit-gs-inp {
  width: 100%;
  height: 56px;
  border-radius: 12px;
  outline: none;
  padding-left: 38px;
  box-sizing: border-box;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease;
  appearance: textfield;
  -moz-appearance: textfield;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.deposit-gs-inp--pay {
  background: var(--surface-1);
}

.deposit-gs-inp--get {
  background: var(--surface-bright);
}

.deposit-gs-inp::-webkit-outer-spin-button,
.deposit-gs-inp::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.deposit-gs-inp:focus {
  border-color: rgba(192, 57, 43, 0.45);
}

.deposit-gs-presets {
  width: 100%;
  min-height: 64px;
  background: var(--surface-1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 6px;
  box-sizing: border-box;
  gap: 8px;
}

.deposit-gs-pre {
  flex: 1;
  min-width: 0;
  height: 100%;
  min-height: 52px;
  padding: 0 4px;
  background: var(--surface-bright);
  border: 1px solid transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: clamp(12px, 1.4vw, 15px);
  color: #fff;
  opacity: 0.6;
}

.deposit-gs-pre:hover {
  opacity: 1;
}

.deposit-gs-pre.is-active {
  background: var(--accent-color) !important;
  color: var(--surface-0) !important;
  opacity: 1 !important;
  border: none !important;
}

.deposit-gs-slider-wrap {
  margin-top: 5px;
}

.deposit-gs-slider-track {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.deposit-gs-slider-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--accent-color);
  border-radius: 2px;
  transition: width 0.3s ease-out;
}

.deposit-gs-prices {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 6px;
  box-sizing: border-box;
  margin-top: 5px;
}

.deposit-gs-price-val {
  flex: 1;
  text-align: center;
  font-weight: 500;
  font-size: clamp(11px, 1.3vw, 15px);
  color: #fff;
  opacity: 0.25;
  transition: opacity 0.3s ease;
}

.deposit-gs-price-val.is-highlight {
  opacity: 1;
}

.deposit-gs-promo {
  margin-top: 12px;
  flex-shrink: 0;
}

.deposit-gs-promo-btn {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 16px;
  font-size: 13px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.deposit-gs-promo-btn:hover:not(:disabled) {
  opacity: 0.82;
}

.deposit-gs-promo-btn:active:not(:disabled) {
  opacity: 0.7;
}

.deposit-gs-bottom {
  margin-top: auto;
  width: 100%;
  padding-top: 12px;
}

.deposit-gs-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  padding: 0 25px;
  box-sizing: border-box;
  margin-bottom: 6px;
}

.deposit-gs-info-row--bonus {
  margin-bottom: 14px;
}

.deposit-gs-info-lbl {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.5;
}

.deposit-gs-info-val {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 10px;
  color: #fff;
  opacity: 0.5;
}

.deposit-gs-info-val--bonus {
  color: var(--accent-dim);
  opacity: 0.85;
}

.deposit-gs-line {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.deposit-gs-btn-pay {
  width: 100%;
  height: 67px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 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);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
  opacity: 0.5;
  pointer-events: none;
}

.deposit-gs-btn-pay.is-ready {
  opacity: 1;
  pointer-events: auto;
}

.deposit-gs-btn-pay.is-ready:hover {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 25px rgba(192, 57, 43, 0.15);
  transform: translateY(-2px);
}

.deposit-gs-btn-pay.is-ready:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.deposit-gs-btn-pay:disabled {
  cursor: wait;
}

@media (max-width: 1100px) {
  .deposit-gs-window {
    padding: 24px 20px;
    min-height: 0;
  }

  .deposit-gs-body {
    flex-direction: column;
  }

  .deposit-gs-left,
  .deposit-gs-right {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .deposit-gs-left {
    max-height: 320px;
  }

  .deposit-gs-vert-sep {
    display: none;
  }

  .deposit-gs-method-btn {
    width: calc(33.333% - 7px);
    min-width: 100px;
  }
}

@media (max-width: 640px) {
  .deposit-gs-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .deposit-gs-header-right {
    width: 100%;
    justify-content: flex-end;
  }

  .deposit-gs-method-btn {
    width: calc(50% - 5px);
  }

  .deposit-gs-input-wrap {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .deposit-gs-arrow {
    transform: rotate(90deg);
  }

  .deposit-gs-presets {
    flex-wrap: wrap;
    height: auto;
  }

  .deposit-gs-pre {
    flex: 1 1 calc(33% - 8px);
    min-height: 44px;
  }
}

@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; }

  .store-section .scroll-reveal,
  .store-section .product-card {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    will-change: auto;
  }

  @media (hover: hover) and (pointer: fine) {
    .product-card.scroll-reveal.is-visible:hover {
      transform: translate3d(0, 0, 0) scale(1.045);
    }
  }

  .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-label-required {
  color: #ff8a65;
}

.admin-field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-dim);
}

.admin-field-hint code {
  font-size: 11px;
}

.admin-staff-note {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
}

.admin-staff-note code {
  font-size: 12px;
}

.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-field select.admin-input,
select.admin-input.admin-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(8, 10, 18, 0.94);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.55)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
  color-scheme: dark;
}

.admin-field select.admin-input option,
select.admin-input.admin-select option {
  background-color: #141822;
  color: #f3f6fb;
}

.admin-field select.admin-input:focus,
select.admin-input.admin-select:focus {
  border-color: rgba(192, 57, 43, 0.42);
  outline: none;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.12);
}

.admin-field input[type="date"].admin-input,
#tabMisc input[type="date"].admin-input {
  color-scheme: dark;
}

.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: #c0392b;
  border-color: rgba(192, 57, 43, 0.35);
  background: rgba(192, 57, 43, 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(192, 57, 43, 0.35);
  background: rgba(192, 57, 43, 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: #c0392b;
  border-color: rgba(192, 57, 43, 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(192, 57, 43, 0.06);
  border: 1px solid rgba(192, 57, 43, 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: #c0392b;
  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;
}

.admin-player-dialog--cart {
  width: min(720px, calc(100vw - 32px));
}

.admin-player-dialog {
  width: min(560px, calc(100vw - 32px));
  min-height: 680px;
  max-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
}

.admin-player-dialog--wide {
  width: min(720px, calc(100vw - 32px));
  min-height: 620px;
  max-height: min(92vh, 860px);
}

.admin-player-modal--nested .site-modal-backdrop {
  background: rgba(0, 0, 0, 0.55);
}

/* Player info + side panels layout */
body.admin-player-layout-active .admin-player-modal--nested.is-open {
  pointer-events: none;
}

body.admin-player-layout-active .admin-player-modal--nested.is-open .site-modal-dialog {
  pointer-events: auto;
}

body.admin-player-layout-active .admin-player-modal--nested .site-modal-backdrop {
  display: none;
}

body.admin-player-layout-active #playerInfoModal {
  z-index: 1110;
}

body.admin-player-layout-active #playerHistoryModal,
body.admin-player-layout-active #playerCartModal {
  z-index: 1111;
}

body.admin-player-layout-active #playerInfoModal.is-open {
  justify-content: center;
  align-items: center;
}

body.admin-player-layout-active.admin-player-layout-history #playerHistoryModal.is-open {
  justify-content: flex-start;
  align-items: center;
  padding-left: max(16px, calc((100vw - 560px - 24px - 480px) / 2));
}

body.admin-player-layout-active.admin-player-layout-cart #playerCartModal.is-open {
  justify-content: flex-end;
  align-items: center;
  padding-right: max(16px, calc((100vw - 560px - 24px - 480px) / 2));
}

body.admin-player-layout-active.admin-player-layout-history.admin-player-layout-cart #playerHistoryModal.is-open {
  padding-left: max(12px, calc((100vw - 480px - 24px - 560px - 24px - 480px) / 2));
}

body.admin-player-layout-active.admin-player-layout-history.admin-player-layout-cart #playerCartModal.is-open {
  padding-right: max(12px, calc((100vw - 480px - 24px - 560px - 24px - 480px) / 2));
}

body.admin-player-layout-active.admin-player-layout-history:not(.admin-player-layout-cart) #playerInfoModal.is-open .site-modal-dialog {
  transform: translate(252px, 0) scale(1);
}

body.admin-player-layout-active.admin-player-layout-cart:not(.admin-player-layout-history) #playerInfoModal.is-open .site-modal-dialog {
  transform: translate(-252px, 0) scale(1);
}

body.admin-player-layout-active.admin-player-layout-history.admin-player-layout-cart #playerInfoModal.is-open .site-modal-dialog {
  transform: translateY(0) scale(1);
}

body.admin-player-layout-active.admin-player-layout-history #playerHistoryModal .admin-player-dialog,
body.admin-player-layout-active.admin-player-layout-cart #playerCartModal .admin-player-dialog {
  width: min(480px, calc(100vw - 32px));
  min-height: 620px;
}

body.admin-player-layout-active #playerInfoModal .admin-player-dialog {
  width: min(560px, calc(100vw - 32px));
  min-height: 680px;
}

@media (max-width: 1320px) {
  body.admin-player-layout-active.admin-player-layout-history:not(.admin-player-layout-cart) #playerInfoModal.is-open .site-modal-dialog,
  body.admin-player-layout-active.admin-player-layout-cart:not(.admin-player-layout-history) #playerInfoModal.is-open .site-modal-dialog {
    transform: translateY(0) scale(1);
  }

  body.admin-player-layout-active.admin-player-layout-history #playerHistoryModal.is-open {
    justify-content: center;
    align-items: flex-start;
    padding: 72px 16px 0;
  }

  body.admin-player-layout-active.admin-player-layout-cart #playerCartModal.is-open {
    justify-content: center;
    align-items: flex-start;
    padding: 72px 16px 0;
  }

  body.admin-player-layout-active.admin-player-layout-history.admin-player-layout-cart #playerHistoryModal.is-open {
    justify-content: flex-start;
    align-items: flex-start;
    padding: 72px 16px 0;
  }

  body.admin-player-layout-active.admin-player-layout-history.admin-player-layout-cart #playerCartModal.is-open {
    justify-content: flex-end;
    align-items: flex-start;
    padding: 72px 16px 0;
  }

  body.admin-player-layout-active.admin-player-layout-history #playerHistoryModal .admin-player-dialog,
  body.admin-player-layout-active.admin-player-layout-cart #playerCartModal .admin-player-dialog {
    width: min(420px, calc(100vw - 32px));
    max-height: min(78vh, 760px);
  }
}

.admin-cart-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 4px;
}

.admin-cart-modal-copy .site-modal-title {
  margin-bottom: 6px;
}

.admin-cart-modal-copy .site-modal-subtitle {
  margin-bottom: 0;
}

.admin-cart-modal-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  margin-top: 2px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #8fd4ff;
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.18);
  flex-shrink: 0;
}

.admin-cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(72vh, 680px);
  overflow: auto;
  margin-top: 16px;
  padding-right: 4px;
}

.admin-cart-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.018) 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.admin-cart-card:hover {
  border-color: rgba(192, 57, 43, 0.16);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(192, 57, 43, 0.04) inset;
}

.admin-cart-card--pending {
  border-left: 3px solid rgba(255, 213, 154, 0.75);
}

.admin-cart-card--claimed {
  border-left: 3px solid rgba(125, 255, 176, 0.55);
}

.admin-cart-card--cancelled {
  border-left: 3px solid rgba(255, 140, 140, 0.55);
}

.admin-cart-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-cart-card-main {
  min-width: 0;
}

.admin-cart-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: #f4fbff;
  word-break: break-word;
}

.admin-cart-card-meta {
  margin: 5px 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.admin-cart-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  flex-shrink: 0;
}

.admin-cart-card-amount {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

.admin-cart-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.admin-cart-badge--pending {
  color: #ffd59a;
  background: rgba(255, 190, 92, 0.1);
  border-color: rgba(255, 190, 92, 0.24);
}

.admin-cart-badge--claimed {
  color: #9dffc4;
  background: rgba(125, 255, 176, 0.1);
  border-color: rgba(125, 255, 176, 0.22);
}

.admin-cart-badge--cancelled {
  color: #ffb4b4;
  background: rgba(255, 120, 120, 0.1);
  border-color: rgba(255, 120, 120, 0.22);
}

.admin-cart-badge--unknown {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.admin-cart-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-cart-card-actions--single {
  grid-template-columns: 1fr;
}

.admin-cart-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.admin-cart-action-btn svg {
  flex-shrink: 0;
}

.admin-cart-action-btn--cancel {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.admin-cart-action-btn--cancel:hover {
  color: #dff3ff;
  background: rgba(192, 57, 43, 0.1);
  border-color: rgba(192, 57, 43, 0.28);
  transform: translateY(-1px);
}

.admin-cart-action-btn--delete {
  color: #ffd0d0;
  background: rgba(255, 120, 120, 0.08);
  border-color: rgba(255, 120, 120, 0.22);
}

.admin-cart-action-btn--delete:hover {
  color: #ffe3e3;
  background: rgba(255, 120, 120, 0.16);
  border-color: rgba(255, 120, 120, 0.38);
  transform: translateY(-1px);
}

.admin-cart-action-btn--reissue {
  color: #071018;
  background: linear-gradient(145deg, #8fd4ff, #5eb8e8);
  border-color: rgba(192, 57, 43, 0.45);
  box-shadow: 0 8px 20px rgba(146, 43, 33, 0.18);
}

.admin-cart-action-btn--reissue:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.admin-cart-card-hint {
  margin: -2px 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.38);
}

.admin-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  padding: 28px 20px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.admin-cart-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 4px;
  border-radius: 18px;
  color: rgba(192, 57, 43, 0.72);
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.16);
}

.admin-cart-empty-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

.admin-cart-empty-text {
  margin: 0;
  max-width: 280px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.42);
}

@media (max-width: 1024px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-balance-edit {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-link-row {
    grid-template-columns: 1fr;
  }
}

.admin-download-editor {
  display: grid;
  gap: 18px;
}

.admin-project-block {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-project-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.admin-group-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-link-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 10px;
  align-items: end;
}

.admin-field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.admin-field .admin-input {
  width: 100%;
}

.admin-textarea {
  min-height: 84px;
  resize: vertical;
}

.admin-link-remove {
  margin-bottom: 2px;
  white-space: nowrap;
}

.admin-discord-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.admin-categories-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-panel-block--compact {
  margin-top: 20px;
  padding: 14px 16px;
}

.admin-panel-block--compact .admin-section-head {
  margin-bottom: 10px;
}

.admin-products-page {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-products-head {
  margin-bottom: 6px;
}

.admin-products-save-btn {
  min-height: 44px;
  white-space: nowrap;
}

.admin-panel-block--products {
  margin-top: 18px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(192, 57, 43, 0.1);
  background:
    linear-gradient(145deg, rgba(192, 57, 43, 0.05) 0%, rgba(255, 255, 255, 0.02) 42%, rgba(8, 10, 18, 0.55) 100%);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-section-head-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #8fd4ff;
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.18);
  flex-shrink: 0;
}

.admin-section-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.admin-section-action:hover {
  border-color: rgba(192, 57, 43, 0.28);
  color: #dff3ff;
  background: rgba(192, 57, 43, 0.08);
}

.admin-section-action--primary {
  color: #071018;
  background: linear-gradient(145deg, #8fd4ff, #5eb8e8);
  border-color: rgba(192, 57, 43, 0.45);
}

.admin-section-action--primary:hover {
  color: #071018;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.admin-section-badge--accent {
  color: #8fd4ff;
  background: rgba(192, 57, 43, 0.1);
  border-color: rgba(192, 57, 43, 0.18);
}

.admin-products-server-bar {
  margin-top: 4px;
}

.admin-products-server-segment {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.admin-products-server-tab {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-family);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.admin-products-server-tab:hover {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.04);
}

.admin-products-server-tab.is-active {
  color: #8fd4ff;
  background: rgba(192, 57, 43, 0.12);
  border-color: rgba(192, 57, 43, 0.32);
  box-shadow: 0 0 18px rgba(192, 57, 43, 0.08);
}

.admin-toggle-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.admin-toggle-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.admin-toggle-check-box {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.admin-toggle-check-box::after {
  content: '';
  display: block;
  width: 6px;
  height: 10px;
  margin: 3px auto 0;
  border-right: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(45deg);
}

.admin-toggle-check input:checked + .admin-toggle-check-box {
  background: linear-gradient(145deg, #8fd4ff, #5eb8e8);
  border-color: rgba(192, 57, 43, 0.55);
  box-shadow: 0 0 14px rgba(192, 57, 43, 0.18);
}

.admin-toggle-check input:checked + .admin-toggle-check-box::after {
  border-color: #071018;
}

.admin-icon-btn--danger:hover {
  background: rgba(255, 120, 120, 0.15);
  color: #ffd0d0;
  border-color: rgba(255, 120, 120, 0.32);
}

.admin-category-input {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.admin-category-input:focus {
  border-color: rgba(192, 57, 43, 0.38);
  box-shadow: 0 0 0 1px rgba(192, 57, 43, 0.08);
}

.admin-category-row-compact {
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.admin-category-row-compact:hover {
  border-color: rgba(192, 57, 43, 0.14);
  background: rgba(192, 57, 43, 0.04);
}

.admin-products-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(62vh, 720px);
  overflow: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}

.admin-products-list.is-sorting {
  scroll-behavior: auto;
}

body.admin-products-sorting {
  cursor: grabbing;
  user-select: none;
}

.admin-products-sort-hint {
  margin: 0 0 12px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.42);
}

.admin-product-card {
  display: grid;
  grid-template-columns: 36px 72px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.018) 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.admin-product-card-sort-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.admin-product-card-sort {
  min-width: 18px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.34);
  font-variant-numeric: tabular-nums;
}

.admin-product-card-placeholder {
  border-radius: 16px;
  border: 2px dashed rgba(192, 57, 43, 0.28);
  background: rgba(192, 57, 43, 0.04);
  box-shadow: inset 0 0 0 1px rgba(192, 57, 43, 0.06);
}

.admin-product-card.is-sort-ghost {
  opacity: 0.96;
  transform: scale(1.01);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(192, 57, 43, 0.18);
  transition: none;
}

.admin-product-card-reorder {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-product-card-move {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.admin-product-card-move:hover:not(:disabled) {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(192, 57, 43, 0.24);
  background: rgba(192, 57, 43, 0.08);
  transform: translateY(-1px);
}

.admin-product-card-move:disabled {
  opacity: 0.28;
  cursor: default;
}

.admin-product-card-drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.28);
  cursor: grab;
  touch-action: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.admin-product-card-drag:hover {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
}

.admin-product-card-drag:active {
  cursor: grabbing;
}

.admin-product-card.is-dragging {
  opacity: 1;
}

.admin-product-card.is-sort-ghost:hover {
  transform: scale(1.01);
}

.admin-product-card.is-drag-over {
  border-color: rgba(192, 57, 43, 0.42);
  box-shadow:
    0 0 0 1px rgba(192, 57, 43, 0.18) inset,
    0 10px 28px rgba(0, 0, 0, 0.16);
}

.admin-product-card.is-drag-over--after {
  transform: translateY(4px);
}

.admin-product-card.is-drag-over:not(.is-drag-over--after) {
  transform: translateY(-4px);
}

.admin-product-card:hover:not(.is-sort-ghost) {
  border-color: rgba(192, 57, 43, 0.18);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(192, 57, 43, 0.05) inset;
  transform: translateY(-1px);
}

.admin-product-card.is-disabled {
  opacity: 0.62;
}

.admin-product-card-thumb-wrap,
.admin-product-card-body {
  cursor: grab;
}

.admin-product-card-thumb-wrap:active,
.admin-product-card-body:active {
  cursor: grabbing;
}

.admin-product-card-thumb-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 20%, rgba(192, 57, 43, 0.08), transparent 55%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-product-card-thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.admin-product-card-body {
  min-width: 0;
}

.admin-product-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.admin-product-card-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #f4fbff;
  word-break: break-word;
}

.admin-product-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-product-card-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: #8fd4ff;
}

.admin-product-card-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-product-card-chip--muted {
  color: rgba(255, 255, 255, 0.48);
}

.admin-product-card-edit {
  align-self: center;
}

.admin-product-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
}

.admin-product-card-copy {
  color: rgba(192, 57, 43, 0.72);
}

.admin-product-card-copy:hover {
  color: #b8e4ff;
}

.site-modal-dialog--copy-product {
  max-width: 520px;
}

.admin-copy-product-modal {
  z-index: 1125;
}

.admin-copy-product-modal .site-modal-backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.admin-copy-product-modal .site-modal-dialog {
  transform: translateY(12px) scale(0.98);
}

.admin-copy-product-modal.is-open .site-modal-dialog {
  transform: translateY(0) scale(1);
}

.admin-copy-server-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(52vh, 360px);
  margin-top: 18px;
  padding-right: 4px;
}

.admin-copy-server-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.admin-copy-server-option:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(192, 57, 43, 0.28);
  transform: translateY(-1px);
}

.admin-copy-server-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.admin-copy-server-name {
  font-size: 0.98rem;
  font-weight: 700;
}

.admin-copy-server-meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.46);
}

.admin-copy-server-arrow {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: rgba(192, 57, 43, 0.72);
}

.admin-product-modal-actions--with-copy {
  grid-template-columns: 1fr 1.1fr 1.4fr;
}

.admin-products-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  padding: 28px 20px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.admin-products-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 4px;
  border-radius: 18px;
  color: rgba(192, 57, 43, 0.72);
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.16);
}

.admin-products-empty-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

.admin-products-empty-text {
  margin: 0;
  max-width: 280px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.42);
}

.admin-btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.admin-categories-compact-head {
  display: grid;
  grid-template-columns: 28px minmax(120px, 1fr) 36px 32px;
  gap: 8px;
  align-items: center;
  padding: 0 8px 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.38);
}

.admin-category-row-compact {
  display: grid;
  grid-template-columns: 28px minmax(120px, 1fr) 36px 32px;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-category-row-num {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.admin-input--sm {
  padding: 7px 10px;
  font-size: 0.88rem;
  min-height: 34px;
}

.admin-checkbox--inline {
  justify-content: center;
  margin: 0;
}

.admin-icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-icon-btn:hover {
  background: rgba(255, 120, 120, 0.15);
  color: #ff9f9f;
  border-color: rgba(255, 120, 120, 0.3);
}

.admin-empty-note--compact {
  padding: 14px;
  font-size: 0.88rem;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.admin-section-head .admin-section-title {
  margin: 0;
}

.admin-section-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-block-hint {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
}

.admin-status-badge {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.admin-status-badge.is-active {
  color: #9dffc4;
  background: rgba(125, 255, 176, 0.12);
  border: 1px solid rgba(125, 255, 176, 0.25);
}

.admin-status-badge.is-inactive {
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-product-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto 40px;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.admin-product-row.is-disabled {
  opacity: 0.65;
}

.admin-product-row-thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-product-row-main {
  min-width: 0;
}

.admin-product-row-name {
  display: block;
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.admin-product-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.58);
}

.admin-product-row-price {
  color: #8fd4ff;
  font-weight: 700;
}

.admin-product-row-category,
.admin-product-row-amount {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.admin-product-dialog {
  max-width: min(1040px, calc(100vw - 40px));
  width: min(1040px, calc(100vw - 40px));
  min-height: auto;
  max-height: min(94vh, 960px);
  padding: 28px 36px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-product-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-right: 36px;
}

.admin-product-modal-head-copy {
  min-width: 0;
}

.admin-product-modal-title {
  margin: 0 0 6px;
}

.admin-product-modal-subtitle {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.48);
}

.admin-product-modal-type {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #8fd4ff;
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.18);
}

.admin-product-modal-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  padding-bottom: 20px;
  margin-right: 0;
}

.admin-product-modal-footer-slot {
  flex-shrink: 0;
  padding: 18px 0 24px;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.94) 0%, rgba(17, 17, 17, 0.98) 100%);
}

.admin-product-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
}

.admin-product-form-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-bottom: 14px;
  padding-bottom: 14px;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.98) 0%, rgba(17, 17, 17, 0.92) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-product-form-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 4px;
}

.admin-product-form-section {
  padding: 0;
  border-bottom: none;
}

.admin-product-form-section--panel {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.018) 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.admin-product-form-section:first-child,
.admin-product-form-section--panel:first-child {
  padding-top: 18px;
}

.admin-product-form-title {
  margin: 0 0 14px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
}

.admin-product-form-layout {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.admin-product-form-aside {
  position: sticky;
  top: 0;
}

.admin-product-form-fields,
.admin-product-form-fields--full {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.admin-product-form-description {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-product-form-description .admin-textarea {
  min-height: 108px;
}

.admin-product-form-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-product-form-hero {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-product-form-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.admin-product-form-row-3,
.admin-product-form-row-2 {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.admin-product-form-row-2--wide {
  margin-top: 4px;
}

.admin-product-form-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-product-form-row-2 {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 16px;
}

.admin-product-form .admin-field {
  min-width: 0;
}

.admin-product-form .admin-input,
.admin-product-form .admin-select,
.admin-product-form .admin-textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.admin-product-form .admin-textarea {
  min-height: 92px;
  resize: vertical;
}

.admin-product-modal-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-product-upload-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 34px;
  margin-top: 2px;
}

.admin-product-upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.admin-product-upload-wrap.is-uploading .admin-product-upload-input {
  pointer-events: none;
  cursor: wait;
}

.admin-product-upload-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  color: #8fd4ff;
  cursor: pointer;
  text-align: center;
  transition: color 0.15s ease, opacity 0.15s ease;
  pointer-events: none;
}

.admin-product-upload-wrap:hover .admin-product-upload-link {
  color: #b8e4ff;
}

.admin-product-upload-wrap.is-uploading .admin-product-upload-link {
  opacity: 0.6;
}

.admin-product-preview-frame {
  width: 128px;
  height: 128px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-product-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.15s ease;
  transform-origin: center center;
}

.admin-product-image-scale {
  width: 100%;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-product-image-scale-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-product-image-scale-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: #8fd4ff;
  white-space: nowrap;
}

.admin-product-image-scale-input {
  width: 100%;
  accent-color: #8fd4ff;
  cursor: pointer;
}

.admin-product-image-scale .admin-product-form-hint--inline {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
}

.admin-product-form-hint--inline {
  margin: -6px 0 12px;
}

.admin-bundle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.admin-content-builder-head {
  margin-bottom: 14px;
}

.admin-content-block {
  min-height: 220px;
}

.admin-product-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
}

.admin-product-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 12px;
}

.admin-product-type-picker {
  padding: 12px 4px 8px;
}

.admin-product-type-lead {
  margin: 0 0 18px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.admin-product-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-product-type-card {
  min-height: 128px;
  padding: 20px 18px;
}

.admin-select {
  appearance: none;
  background-color: rgba(8, 10, 18, 0.94);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  text-overflow: ellipsis;
  color-scheme: dark;
  cursor: pointer;
}

.admin-product-status {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-btn-danger {
  color: #ff9f9f;
  border-color: rgba(255, 120, 120, 0.35);
  background: rgba(255, 120, 120, 0.08);
}

.admin-btn-danger:hover {
  background: rgba(255, 120, 120, 0.16);
  border-color: rgba(255, 120, 120, 0.5);
}

.admin-product-form-hint {
  margin: 10px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.42);
}

.admin-product-form-main--full {
  width: 100%;
}

.admin-field--spaced {
  margin-top: 4px;
}

.admin-product-type-picker {
  padding: 8px 0 4px;
}

.admin-product-type-lead {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.admin-product-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-product-type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 108px;
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.admin-product-type-card:hover {
  background: rgba(192, 57, 43, 0.08);
  border-color: rgba(192, 57, 43, 0.28);
  transform: translateY(-1px);
}

.admin-product-type-card-label {
  font-size: 1rem;
  font-weight: 700;
}

.admin-product-type-card-desc {
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.48);
}

.admin-product-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-product-type-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-product-type-tab.is-active,
.admin-product-type-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.admin-product-type-tab.is-active {
  box-shadow: inset 0 0 0 1px rgba(192, 57, 43, 0.2);
}

.admin-rust-item-search {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-rust-item-results {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 220px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 18, 18, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.admin-rust-item-results:not(:empty):not(.admin-hidden) {
  padding: 6px;
}

.admin-rust-item-option {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.admin-rust-item-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.admin-rust-item-option img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.admin-rust-item-option-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-rust-item-option-copy strong {
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-rust-item-option-copy span {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.42);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-rust-item-empty {
  margin: 0;
  padding: 12px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.admin-rust-item-selected {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(192, 57, 43, 0.06);
  border: 1px solid rgba(192, 57, 43, 0.18);
}

.admin-rust-item-selected-thumb {
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}

.admin-rust-item-selected-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-rust-item-selected-copy strong {
  font-size: 0.92rem;
}

.admin-rust-item-selected-copy span {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
}

.admin-content-builder-head {
  margin-bottom: 12px;
}

.admin-content-builder-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-content-block {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-content-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-content-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-content-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: center;
}

.admin-content-kits {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-content-kit {
  padding: 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-content-kit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-content-kit-index {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.admin-content-kit-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 14px;
  margin-bottom: 14px;
}

.admin-content-kit-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-content-kit-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-content-kit-empty {
  margin: 0;
}

.admin-content-add-kit-btn {
  width: 100%;
  margin-top: 4px;
}

.admin-content-kit-sort-hint {
  margin: -2px 0 6px;
}

.admin-content-kit-item {
  display: grid;
  grid-template-columns: 24px 40px minmax(0, 1fr) minmax(110px, 150px) 32px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.admin-content-kit-item-drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.28);
  cursor: grab;
  touch-action: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.admin-content-kit-item-drag:hover {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
}

.admin-content-kit-item-drag:active {
  cursor: grabbing;
}

.admin-content-kit-item.is-dragging {
  opacity: 0.45;
  transform: scale(0.985);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.admin-content-kit-item.is-drag-over {
  border-color: rgba(192, 57, 43, 0.42);
  box-shadow:
    0 0 0 1px rgba(192, 57, 43, 0.18) inset,
    0 8px 20px rgba(0, 0, 0, 0.14);
}

.admin-content-kit-item.is-drag-over--after {
  transform: translateY(3px);
}

.admin-content-kit-item.is-drag-over:not(.is-drag-over--after) {
  transform: translateY(-3px);
}

.admin-content-kit-item img {
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.admin-content-kit-item-name {
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-content-kit-add {
  position: relative;
}

.admin-content-kit-add .admin-rust-item-results {
  top: calc(100% + 4px);
}

.admin-bundle-selected {
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-bundle-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 72px 32px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-bundle-row + .admin-bundle-row {
  margin-top: 6px;
}

.admin-bundle-row img {
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.admin-bundle-row-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-bundle-row-copy strong {
  font-size: 0.88rem;
}

.admin-bundle-row-copy span {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.42);
}

.admin-bundle-catalog {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-bundle-option {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.admin-bundle-option:hover {
  background: rgba(192, 57, 43, 0.08);
  border-color: rgba(192, 57, 43, 0.22);
}

.admin-bundle-option img {
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.admin-bundle-option-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-bundle-option-copy strong {
  font-size: 0.88rem;
}

.admin-bundle-option-copy span {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.42);
}

.admin-product-card-chip--type {
  color: #8fd4ff;
  border-color: rgba(192, 57, 43, 0.22);
  background: rgba(192, 57, 43, 0.08);
}

.admin-product-card-chip--warn {
  color: #ffd59a;
  border-color: rgba(255, 196, 110, 0.28);
  background: rgba(255, 196, 110, 0.1);
}

.admin-product-modal-layout {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
}

.admin-product-modal-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-field--full {
  grid-column: 1 / -1;
}

.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.admin-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 900px) {
  .admin-categories-compact-head,
  .admin-category-row-compact {
    grid-template-columns: 24px minmax(0, 1fr) 32px 28px;
  }

  .admin-product-dialog {
    max-width: calc(100vw - 24px);
    width: calc(100vw - 24px);
    max-height: min(96vh, 960px);
    padding: 22px 18px 0;
  }

  .admin-product-modal-head {
    padding-right: 28px;
  }

  .admin-product-form-layout,
  .admin-product-form-columns,
  .admin-bundle-layout,
  .admin-product-form-hero,
  .admin-product-form-row-3,
  .admin-product-form-row-2,
  .admin-product-modal-layout,
  .admin-product-modal-fields {
    grid-template-columns: 1fr;
  }

  .admin-product-form-aside {
    position: static;
  }

  .admin-product-modal-actions {
    grid-template-columns: 1fr;
  }

  .admin-product-type-grid {
    grid-template-columns: 1fr;
  }

  .admin-content-row,
  .admin-content-kit-head,
  .admin-content-kit-item,
  .admin-bundle-row {
    grid-template-columns: 1fr;
  }

  .admin-product-card {
    grid-template-columns: 32px 60px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 14px;
  }

  .admin-product-card-reorder {
    display: none;
  }

  .admin-product-card-drag {
    width: 24px;
    height: 40px;
  }

  .admin-product-card-thumb-wrap {
    width: 60px;
    height: 60px;
  }

  .admin-product-card-thumb {
    width: 46px;
    height: 46px;
  }

  .admin-product-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .admin-products-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-products-save-btn {
    width: 100%;
  }
}

.admin-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.admin-audit-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.admin-audit-toolbar-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.admin-audit-toolbar-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.admin-audit-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 88px;
  overflow: auto;
  padding-right: 4px;
}

.admin-audit-filter {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.admin-audit-filter:hover {
  border-color: rgba(192, 57, 43, 0.24);
}

.admin-audit-filter.is-active {
  border-color: rgba(192, 57, 43, 0.45);
  background: rgba(192, 57, 43, 0.12);
  color: #8fd4ff;
}

.admin-audit-sort-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.admin-audit-sort {
  min-width: 170px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 18, 0.94);
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  color-scheme: dark;
}

.admin-audit-sort option {
  background-color: #141822;
  color: #f3f6fb;
}

.admin-audit-sort:focus {
  border-color: rgba(192, 57, 43, 0.4);
}

.admin-audit-summary {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.42);
}

.admin-rollback-panel {
  margin: 18px 0 22px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(192, 57, 43, 0.06) 0%, rgba(255, 255, 255, 0.02) 48%, rgba(255, 255, 255, 0.015) 100%);
}

.admin-rollback-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.admin-rollback-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex-shrink: 0;
  color: #8fd4ff;
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.18);
}

.admin-rollback-copy {
  min-width: 0;
}

.admin-rollback-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.admin-rollback-desc {
  margin: 4px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.48);
}

.admin-rollback-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-rollback-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 112px;
  flex-shrink: 0;
}

.admin-rollback-input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  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);
  font-size: 0.92rem;
  font-weight: 600;
  appearance: textfield;
  -moz-appearance: textfield;
}

.admin-rollback-input::-webkit-outer-spin-button,
.admin-rollback-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.admin-rollback-input:focus {
  outline: none;
  border-color: rgba(192, 57, 43, 0.45);
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.1);
}

.admin-rollback-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-rollback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.admin-rollback-btn:hover {
  border-color: rgba(192, 57, 43, 0.35);
  background: rgba(192, 57, 43, 0.1);
  color: #dff3ff;
}

.admin-rollback-btn--danger {
  color: #ffc8c8;
  border-color: rgba(255, 120, 120, 0.28);
  background: rgba(255, 120, 120, 0.08);
}

.admin-rollback-btn--danger:hover {
  border-color: rgba(255, 120, 120, 0.45);
  background: rgba(255, 120, 120, 0.14);
  color: #ffe0e0;
}

.admin-rollback-preview {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.16);
}

.admin-rollback-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.admin-rollback-preview-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.admin-rollback-preview-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8fd4ff;
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.18);
}

.admin-rollback-preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow: auto;
}

.admin-rollback-preview-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.admin-rollback-preview-item--empty {
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.84rem;
}

.admin-rollback-preview-item-label {
  font-size: 0.84rem;
  line-height: 1.35;
}

.admin-rollback-preview-item-date {
  flex-shrink: 0;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.4);
}

.admin-rollback-result {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(125, 255, 176, 0.16);
  background: rgba(125, 255, 176, 0.05);
}

.admin-rollback-result-head {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.admin-rollback-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-rollback-result-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.admin-rollback-result-card--ok {
  border-color: rgba(125, 255, 176, 0.2);
}

.admin-rollback-result-card--skip {
  border-color: rgba(255, 196, 112, 0.2);
}

.admin-rollback-result-card--fail {
  border-color: rgba(255, 120, 120, 0.2);
}

.admin-rollback-result-value {
  font-size: 1.05rem;
  font-weight: 800;
}

.admin-rollback-result-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.admin-rollback-result-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #ffb4b4;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .admin-rollback-toolbar {
    align-items: stretch;
  }

  .admin-rollback-field {
    width: 100%;
  }

  .admin-rollback-actions {
    width: 100%;
  }

  .admin-rollback-btn {
    flex: 1;
  }

  .admin-rollback-result-grid {
    grid-template-columns: 1fr;
  }
}

.admin-panel-block {
  margin-top: 28px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 18, 0.45);
}

.admin-stats-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-donors-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-donors-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-donors-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-donors-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-donor-row {
  display: grid;
  grid-template-columns: 32px 40px minmax(180px, 1.4fr) minmax(110px, 0.8fr) minmax(110px, 0.8fr) 40px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.admin-donor-rank {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.admin-donor-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.admin-donor-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-donor-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.92rem;
}

.admin-donor-meta--spent {
  color: #8fd4ff;
}

.admin-donor-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.42);
}

.admin-pencil-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.admin-pencil-btn:hover {
  background: rgba(192, 57, 43, 0.12);
  border-color: rgba(192, 57, 43, 0.35);
}

.admin-pencil-icon {
  display: block;
}

.admin-players-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.admin-players-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.admin-players-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 320px;
  min-width: min(100%, 280px);
  max-width: 520px;
}

.admin-players-search-icon {
  position: absolute;
  left: 14px;
  display: inline-flex;
  color: rgba(255, 255, 255, 0.38);
  pointer-events: none;
}

.admin-players-search-input {
  width: 100%;
  padding-left: 42px;
  padding-right: 42px;
  min-height: 46px;
}

.admin-players-search-clear {
  position: absolute;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.62);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-players-search-clear:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-players-search-summary {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

.admin-player-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.admin-player-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

.admin-player-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-player-card-name {
  font-size: 1.05rem;
  font-weight: 600;
}

.admin-player-card-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
}

.admin-purchases-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.admin-purchases-toolbar .admin-section-title {
  margin: 0;
}

.admin-table--purchases-popular td:last-child,
.admin-table--purchases-popular th:last-child {
  white-space: nowrap;
}

.admin-table-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  padding: 18px 12px !important;
}

.admin-purchase-status {
  display: inline-flex;
  align-items: center;
}

.admin-empty-note {
  margin: 0;
  padding: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
}

.admin-player-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

.admin-player-info-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding-bottom: 4px;
}

.admin-player-balance {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(192, 57, 43, 0.22);
  background:
    linear-gradient(145deg, rgba(192, 57, 43, 0.12) 0%, rgba(192, 57, 43, 0.04) 48%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-player-balance.is-editing {
  border-color: rgba(192, 57, 43, 0.38);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(192, 57, 43, 0.08) inset;
}

.admin-player-balance--readonly {
  opacity: 0.95;
}

.admin-player-balance--readonly .admin-player-balance-actions {
  display: none;
}

.admin-player-balance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: #8fd4ff;
  background: rgba(192, 57, 43, 0.12);
  border: 1px solid rgba(192, 57, 43, 0.24);
}

.admin-player-balance-copy {
  min-width: 0;
}

.admin-player-balance-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.52);
}

.admin-player-balance-value {
  display: block;
  margin-top: 4px;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  color: #f4fbff;
}

.admin-player-balance-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.admin-player-balance-edit-btn:hover {
  border-color: rgba(192, 57, 43, 0.45);
  background: rgba(192, 57, 43, 0.14);
  color: #dff3ff;
}

.admin-player-balance-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.admin-player-balance-edit-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-player-balance-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.admin-player-balance-action-btn--cancel {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.admin-player-balance-action-btn--cancel:hover {
  color: #ffd0d0;
  background: rgba(255, 120, 120, 0.12);
  border-color: rgba(255, 120, 120, 0.28);
}

.admin-player-balance-action-btn--save {
  color: #071018;
  background: linear-gradient(145deg, #8fd4ff, #5eb8e8);
  border-color: rgba(192, 57, 43, 0.55);
}

.admin-player-balance-action-btn--save:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.admin-player-balance-input-shell {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
  min-width: 0;
}

.admin-player-balance-input {
  width: 100%;
  min-width: 0;
  max-width: 180px;
  padding: 0;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: #f4fbff;
  font-family: var(--font-family);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  caret-color: #8fd4ff;
  appearance: textfield;
  -moz-appearance: textfield;
}

.admin-player-balance-input::-webkit-outer-spin-button,
.admin-player-balance-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.admin-player-balance-input:focus,
.admin-player-balance-input:focus-visible {
  outline: none;
  box-shadow: none;
}

.admin-player-balance-currency {
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.admin-player-mini-history {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  flex: 1;
}

.admin-player-mini-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-player-mini-history-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.admin-player-mini-history-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8fd4ff;
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.18);
}

.admin-scroll-area {
  scrollbar-width: thin;
  scrollbar-color: rgba(192, 57, 43, 0.38) rgba(255, 255, 255, 0.05);
}

.admin-scroll-area::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.admin-scroll-area::-webkit-scrollbar-track {
  margin: 4px 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.admin-scroll-area::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(192, 57, 43, 0.5), rgba(146, 43, 33, 0.28));
  border-radius: 999px;
  border: 1px solid rgba(192, 57, 43, 0.15);
}

.admin-scroll-area::-webkit-scrollbar-thumb:hover {
  background: rgba(192, 57, 43, 0.62);
}

.admin-player-mini-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 210px;
  overflow: auto;
  padding-right: 4px;
}

.admin-player-mini-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.admin-player-mini-item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.admin-player-mini-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.admin-player-mini-item-meta {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
}

.admin-player-mini-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.admin-player-mini-item-status-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-player-mini-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid rgba(255, 120, 120, 0.22);
  background: rgba(255, 120, 120, 0.08);
  color: rgba(255, 180, 180, 0.88);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.admin-player-mini-remove:hover {
  border-color: rgba(255, 120, 120, 0.42);
  background: rgba(255, 120, 120, 0.16);
  color: #ffd0d0;
  transform: translateY(-1px);
}

.admin-player-mini-item-amount {
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-player-mini-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.admin-player-mini-badge--claimed {
  color: #9dffc4;
  background: rgba(125, 255, 176, 0.1);
  border-color: rgba(125, 255, 176, 0.22);
}

.admin-player-mini-badge--pending {
  color: #ffd59a;
  background: rgba(255, 196, 112, 0.1);
  border-color: rgba(255, 196, 112, 0.24);
}

.admin-player-mini-badge--partial {
  color: #8fd4ff;
  background: rgba(192, 57, 43, 0.12);
  border-color: rgba(192, 57, 43, 0.26);
}

.admin-player-mini-badge--cancelled {
  color: #ffabab;
  background: rgba(255, 120, 120, 0.1);
  border-color: rgba(255, 120, 120, 0.22);
}

.admin-player-mini-badge--unknown {
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.admin-player-mini-empty {
  margin: 0;
  padding: 16px 12px;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.86rem;
}

.admin-player-info-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 4px;
}

.admin-player-info-avatar {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.admin-player-info-name {
  margin: 0;
  font-size: 1.25rem;
}

.admin-player-info-steam {
  font-size: 0.82rem;
}

/* Legacy balance styles kept for other admin screens */
.admin-balance-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(192, 57, 43, 0.35);
  background: rgba(192, 57, 43, 0.06);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-balance-field-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

.admin-balance-field-value {
  font-size: 1.35rem;
  font-weight: 700;
}

.admin-balance-edit--hidden {
  display: none;
}

.admin-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(72vh, 680px);
  overflow: auto;
  margin-top: 12px;
  padding-right: 4px;
  flex: 1;
  min-height: 0;
}

.admin-history-list.admin-scroll-area {
  padding-right: 4px;
}

.admin-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.admin-history-item--deposit {
  border-left: 3px solid #7dffb0;
}

.admin-history-item--purchase {
  border-left: 3px solid #8fd4ff;
}

.admin-history-item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-history-item-title {
  font-weight: 600;
}

.admin-history-item-date {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.admin-history-item-amount {
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .admin-cart-card-actions {
    grid-template-columns: 1fr;
  }

  .admin-cart-modal-head {
    flex-direction: column;
    gap: 10px;
  }

  .admin-cart-modal-count {
    align-self: flex-start;
    margin-top: 0;
  }

  .admin-stats-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-donor-row {
    grid-template-columns: 28px 36px 1fr;
    grid-template-areas:
      "rank avatar main"
      "rank avatar spent"
      "rank avatar balance"
      "rank avatar edit";
  }

  .admin-donor-meta {
    grid-column: 3;
  }

  .admin-donor-meta--spent {
    grid-area: spent;
  }

  .admin-donor-row .admin-pencil-btn {
    grid-area: edit;
    justify-self: end;
  }
}

.admin-category-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-category-pick {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-category-pick:hover {
  border-color: rgba(192, 57, 43, 0.35);
  color: #fff;
}

.admin-category-pick.is-active {
  background: rgba(192, 57, 43, 0.16);
  border-color: rgba(192, 57, 43, 0.45);
  color: #b8e4ff;
  font-weight: 600;
}

.admin-staff-list,
.admin-audit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  max-height: min(52vh, 560px);
  overflow: auto;
  padding-right: 4px;
}

.admin-staff-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.admin-staff-card.is-disabled {
  opacity: 0.6;
}

.admin-staff-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-staff-card-name {
  font-size: 1.05rem;
  font-weight: 600;
}

.admin-staff-card-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.admin-staff-perms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.admin-staff-perm {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.2);
  color: #8fd4ff;
}

.admin-staff-perm--empty {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
}

.admin-server-secrets {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-server-secrets-head {
  margin-bottom: 16px;
}

.admin-section-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 600;
}

.admin-server-secrets-list {
  display: grid;
  gap: 12px;
}

.admin-server-secrets-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.admin-server-secrets-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.admin-server-secrets-card-name {
  font-weight: 600;
}

.admin-server-secrets-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
}

.admin-server-secrets-status.is-ok {
  color: #7dffb2;
}

.admin-server-secrets-status.is-empty {
  color: #ffb07d;
}

.admin-server-secrets-preview {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.admin-server-secrets-ips {
  margin-top: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.admin-server-secret-value-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.admin-server-secret-value {
  display: block;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  word-break: break-all;
  font-size: 0.85rem;
  line-height: 1.5;
}

.admin-duration-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-duration-toggle-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-duration-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.admin-duration-variants {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-duration-variant {
  display: grid;
  grid-template-columns: 92px minmax(120px, 0.75fr) minmax(0, 1.25fr);
  gap: 12px;
  align-items: end;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.admin-duration-variant-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  padding-bottom: 12px;
}

@media (max-width: 760px) {
  .admin-duration-variant {
    grid-template-columns: 1fr;
  }

  .admin-duration-variant-label {
    padding-bottom: 0;
  }
}

@media (max-width: 640px) {
  .checkout-product-showcase {
    grid-template-columns: 1fr;
  }

  .checkout-product-showcase-media {
    max-width: 180px;
    margin: 0 auto;
  }

  .checkout-duration-options {
    grid-template-columns: 1fr;
  }
}

.admin-staff-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-staff-perm-field {
  margin-top: 4px;
}

.admin-perm-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(192, 57, 43, 0.05) 0%, rgba(255, 255, 255, 0.02) 42%, rgba(255, 255, 255, 0.015) 100%);
}

.admin-perm-group {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
}

.admin-perm-group + .admin-perm-group {
  margin-top: 0;
}

.admin-perm-group-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-perm-group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex-shrink: 0;
  color: #8fd4ff;
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.18);
}

.admin-perm-group-copy {
  min-width: 0;
}

.admin-perm-group-title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.92);
}

.admin-perm-group-desc {
  margin-top: 3px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.48);
}

.admin-perm-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
}

.admin-perm-group--player .admin-perm-tiles {
  grid-template-columns: 1fr;
}

.admin-perm-tile {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  user-select: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.admin-perm-tile:hover {
  border-color: rgba(192, 57, 43, 0.28);
  background: rgba(192, 57, 43, 0.06);
}

.admin-perm-tile:has(.admin-perm-tile-input:checked) {
  border-color: rgba(192, 57, 43, 0.55);
  background: rgba(192, 57, 43, 0.12);
  box-shadow: 0 0 0 1px rgba(192, 57, 43, 0.08) inset;
}

.admin-perm-tile-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.admin-perm-tile-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.25);
  color: transparent;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.admin-perm-tile-mark {
  display: inline-flex;
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.admin-perm-tile:has(.admin-perm-tile-input:checked) .admin-perm-tile-box {
  border-color: #8fd4ff;
  background: linear-gradient(145deg, #8fd4ff, #5eb8e8);
  color: #071018;
}

.admin-perm-tile:has(.admin-perm-tile-input:checked) .admin-perm-tile-mark {
  transform: scale(1);
  opacity: 1;
}

.admin-perm-tile:has(.admin-perm-tile-input:focus-visible) {
  outline: 2px solid rgba(192, 57, 43, 0.65);
  outline-offset: 2px;
}

.admin-perm-tile-label {
  font-size: 0.86rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
  word-break: break-word;
}

.admin-perm-tile:has(.admin-perm-tile-input:checked) .admin-perm-tile-label {
  color: #dff3ff;
  font-weight: 600;
}

.admin-perm-toggle {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.admin-perm-toggle-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.admin-perm-toggle-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.25);
  color: transparent;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.admin-perm-toggle-mark {
  display: inline-flex;
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.admin-perm-toggle:has(.admin-perm-toggle-input:checked) .admin-perm-toggle-box {
  border-color: #7cffa8;
  background: linear-gradient(145deg, #7cffa8, #4fd88a);
  color: #071018;
}

.admin-perm-toggle:has(.admin-perm-toggle-input:checked) .admin-perm-toggle-mark {
  transform: scale(1);
  opacity: 1;
}

.admin-perm-toggle-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
}

.admin-perm-toggle:has(.admin-perm-toggle-input:checked) .admin-perm-toggle-label {
  color: #d8ffe8;
  font-weight: 600;
}

/* Legacy aliases kept for older cached markup */
.admin-perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
}

.admin-perm-check {
  display: none;
}

.admin-staff-search-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  max-height: 220px;
  overflow: auto;
}

.admin-staff-search-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-staff-search-item:hover {
  background: rgba(192, 57, 43, 0.08);
  border-color: rgba(192, 57, 43, 0.25);
}

.admin-staff-search-item code {
  grid-column: 2;
  font-size: 0.78rem;
}

.admin-staff-picked {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(125, 255, 176, 0.08);
  border: 1px solid rgba(125, 255, 176, 0.2);
}

.admin-balance-field--readonly {
  cursor: default;
}

.admin-balance-field--readonly:hover {
  transform: none;
}

.admin-audit-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.admin-audit-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.admin-audit-action {
  font-weight: 600;
}

.admin-audit-detail {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  word-break: break-word;
}

.admin-audit-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  text-align: right;
}

.admin-audit-user {
  font-size: 0.88rem;
  color: #8fd4ff;
}

.admin-audit-date {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
}

.admin-audit-row--balance_change {
  border-left: 3px solid rgba(192, 57, 43, 0.55);
}

.admin-audit-row--cart_cancel,
.admin-audit-row--cart_delete,
.admin-audit-row--cart_reissue {
  border-left: 3px solid rgba(255, 196, 112, 0.55);
}

.admin-audit-row--product_change,
.admin-audit-row--product_create,
.admin-audit-row--product_delete,
.admin-audit-row--category_change,
.admin-audit-row--category_create,
.admin-audit-row--category_delete {
  border-left: 3px solid rgba(125, 255, 176, 0.45);
}

.admin-audit-row--staff_create,
.admin-audit-row--staff_update,
.admin-audit-row--staff_delete {
  border-left: 3px solid rgba(196, 160, 255, 0.45);
}

.admin-audit-row--rollback {
  border-left: 3px solid rgba(255, 120, 120, 0.55);
}

@media (max-width: 900px) {
  .admin-perm-tiles,
  .admin-perm-grid {
    grid-template-columns: 1fr;
  }

  .admin-audit-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-audit-sort-field {
    width: 100%;
  }

  .admin-audit-sort {
    width: 100%;
  }

  .admin-audit-row {
    flex-direction: column;
  }

  .admin-audit-meta {
    align-items: flex-start;
    text-align: left;
  }
}

.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 42%, rgba(192, 57, 43, 0.04) 100%),
    var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 32px rgba(192, 57, 43, 0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-consent--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cookie-consent--hide {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
}

.cookie-consent-accent {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  opacity: 0.85;
}

.cookie-consent-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon copy"
    "btn btn";
  gap: 14px 14px;
  padding: 18px 18px 16px;
  align-items: start;
}

.cookie-consent-icon {
  grid-area: icon;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(192, 57, 43, 0.18);
  background: rgba(192, 57, 43, 0.08);
  color: var(--accent-color);
  box-shadow: 0 0 24px rgba(192, 57, 43, 0.12);
}

.cookie-consent-copy {
  grid-area: copy;
  min-width: 0;
}

.cookie-consent-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.cookie-consent-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.cookie-consent-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
}

.cookie-consent-btn {
  grid-area: btn;
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

@media (min-width: 768px) {
  .cookie-consent {
    left: auto;
    right: 28px;
    bottom: 28px;
    margin-right: 0;
    max-width: 420px;
  }

  .cookie-consent-inner {
    padding: 20px 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent,
  .cookie-consent--visible,
  .cookie-consent--hide {
    transition: none;
    transform: none;
  }
}

.store-footer {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  padding: 40px 0 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.store-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.store-footer-legal {
  margin: 0;
  max-width: 920px;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.52);
}

.store-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.store-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.store-footer-link:hover {
  color: var(--accent-color);
  border-color: rgba(192, 57, 43, 0.45);
}

@media (max-width: 640px) {
  .store-footer-links {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .store-footer-link {
    width: 100%;
  }
}

.legal-page {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 32px));
  margin: 24px auto 64px;
}

.legal-card {
  padding: 28px 28px 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(12, 14, 18, 0.78);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.legal-title {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.35;
  color: #fff;
}

.legal-meta {
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.48);
}

.legal-card h2 {
  margin: 22px 0 10px;
  font-size: 1.05rem;
  color: #fff;
}

.legal-card p,
.legal-card li {
  font-size: 0.94rem;
}

.legal-card ol,
.legal-card ul {
  margin: 8px 0 8px 1.2em;
  padding: 0;
}

.legal-card li {
  margin: 6px 0;
}

.legal-notice {
  margin: 14px 0 8px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.legal-notice p {
  margin: 0;
}

.legal-email {
  color: var(--accent-color);
  text-decoration: none;
}

.legal-email:hover {
  text-decoration: underline;
}

.legal-back {
  margin: 28px 0 0;
}

.legal-back a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.legal-back a:hover {
  color: var(--accent-color);
}

@media (max-width: 640px) {
  .legal-card {
    padding: 20px 16px 28px;
  }
}

/* Admin — Прочее (бонусы и промокоды) */
.admin-misc-head {
  margin-bottom: 18px;
}

.admin-misc-subtabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  margin-bottom: 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.admin-misc-subtab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.admin-misc-subtab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.admin-misc-subtab.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.22), rgba(192, 57, 43, 0.12));
  box-shadow: inset 0 0 0 1px rgba(192, 57, 43, 0.25);
}

.admin-misc-subtab-icon {
  display: inline-flex;
  opacity: 0.85;
}

.admin-misc-lead {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 620px;
}

.admin-misc-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.admin-misc-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: min(calc(100vh - 300px), 680px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  min-height: 0;
}

.admin-misc-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.admin-misc-card:hover {
  border-color: rgba(192, 57, 43, 0.18);
}

.admin-misc-card.is-expired {
  opacity: 0.72;
  border-color: rgba(255, 120, 120, 0.18);
}

.admin-misc-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.admin-misc-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-misc-card-badge--bonus {
  color: #8fd4ff;
  background: rgba(192, 57, 43, 0.12);
  border-color: rgba(192, 57, 43, 0.18);
}

.admin-misc-card-preview {
  margin-left: auto;
  font-weight: 700;
  color: #9ef0c5;
}

.admin-misc-card-uses {
  margin-left: auto;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.admin-misc-card-uses-btn {
  margin-left: auto;
  border: 1px solid rgba(158, 240, 197, 0.28);
  background: rgba(158, 240, 197, 0.08);
  color: #9ef0c5;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-misc-card-uses-btn:hover {
  background: rgba(158, 240, 197, 0.16);
  border-color: rgba(158, 240, 197, 0.45);
}

.admin-promo-activations-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(60vh, 520px);
  margin-top: 8px;
}

.admin-promo-activation-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-promo-activation-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.admin-promo-activation-body {
  min-width: 0;
  flex: 1;
}

.admin-promo-activation-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.admin-promo-activation-name {
  font-weight: 700;
  color: #fff;
}

.admin-promo-activation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 4px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.admin-misc-promo-code {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 10px;
  border-radius: 10px;
}

.admin-misc-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-misc-card-grid--promo {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-misc-card-hint {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.48);
}

.admin-misc-card-hint--warn {
  color: #ffb4b4;
}

.admin-misc-empty {
  padding: 28px 20px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.admin-input--upper {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-misc-remove {
  margin-left: auto;
}

@media (max-width: 980px) {
  .admin-misc-card-grid,
  .admin-misc-card-grid--promo {
    grid-template-columns: 1fr;
  }
}

.deposit-promo-field {
  margin-top: 14px;
}

.deposit-promo-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

.deposit-promo-row {
  display: flex;
  gap: 10px;
}

.deposit-promo-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.deposit-promo-status {
  margin-top: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.deposit-promo-status.is-ok {
  color: #9ef0c5;
}

.deposit-promo-status.is-error {
  color: #ffb4b4;
}

.deposit-bonus-info {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(192, 57, 43, 0.14);
  background: rgba(192, 57, 43, 0.08);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
}

.deposit-bonus-tier-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.deposit-bonus-tier-chip {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-misc-field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.profile-promo-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-promo-title {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.profile-promo-desc {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.profile-promo-row {
  display: flex;
  gap: 10px;
}

.profile-promo-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-promo-status {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.profile-promo-status.is-ok {
  color: #9ef0c5;
}

.profile-promo-status.is-error {
  color: #ff9f9f;
}

.profile-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-head-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(192, 57, 43, 0.35);
  flex-shrink: 0;
}

.profile-head-copy {
  min-width: 0;
  flex: 1;
}

.profile-head-deposit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #8fd4ff, #5eb8e8);
  color: #081018;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.profile-head-deposit:hover {
  transform: scale(1.06);
  filter: brightness(1.06);
}

.profile-head-name {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-head-balance {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #c0392b;
}

.profile-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
}

.profile-tab {
  flex: 1 0 auto;
  min-width: 0;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.profile-tab.is-active {
  background: rgba(192, 57, 43, 0.12);
  color: #fff;
}

.profile-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(192, 57, 43, 0.22);
  color: #c0392b;
  font-size: 0.68rem;
  vertical-align: middle;
}

.profile-panels {
  min-height: 180px;
}

.profile-panel {
  display: none;
}

.profile-panel.is-active {
  display: block;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.profile-info-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-info-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.profile-info-value {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  word-break: break-all;
}

.profile-panel-hint {
  margin: 12px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.52);
}

.profile-panel-hint--cart {
  margin: 0 0 12px;
}

.profile-empty {
  padding: 28px 16px;
  text-align: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.profile-empty-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.profile-empty-text {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.48);
}

.profile-history-list,
.profile-cart-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 2px;
}

.profile-history-item,
.profile-cart-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-history-item-main,
.profile-cart-item-main {
  min-width: 0;
}

.profile-history-item-type {
  display: block;
  margin-bottom: 2px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.profile-history-item-title,
.profile-cart-item-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.profile-history-item-date,
.profile-cart-item-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.45);
}

.profile-history-item-amount,
.profile-cart-item-amount {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.profile-history-item-amount--deposit {
  color: #9ef0c5;
}

.profile-history-item-amount--purchase {
  color: #ffb4b4;
}

.profile-cart-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.profile-cart-badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
}

.profile-cart-badge--pending {
  color: #ffd88a;
  background: rgba(255, 216, 138, 0.12);
}

.profile-cart-badge--claimed {
  color: #9ef0c5;
  background: rgba(158, 240, 197, 0.12);
}

.profile-cart-badge--cancelled {
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.profile-panel--promo .profile-promo-desc {
  margin-top: 0;
}

.deposit-bonus-tier-chip.is-active {
  color: #8fd4ff;
  border-color: rgba(192, 57, 43, 0.28);
  background: rgba(192, 57, 43, 0.14);
}

.payment-result-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}

.payment-result-card {
  width: min(100%, 520px);
  padding: 2rem 1.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(24, 24, 24, 0.92);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.payment-result-card--success {
  border-top: 3px solid #4ade80;
}

.payment-result-card--fail {
  border-top: 3px solid #f87171;
}

.payment-result-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
}

.payment-result-card--success .payment-result-icon {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
}

.payment-result-card--fail .payment-result-icon {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

.payment-result-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
}

.payment-result-text {
  margin: 0 auto 1.5rem;
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.payment-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .site-modal-dialog--product-detail .product-detail-item,
  .site-modal-dialog--product-detail .product-detail-kit-tab {
    transition: none !important;
  }
}
