@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@300;400;500;700&display=swap');

@font-face {
  font-family: 'GuardianCircus';
  src: url('/assets/fonts/mr_GuardianCircusG.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* ========== VARIABLES ========== */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #181818;
  --bg-card-hover: #1c1c1c;
  --cyber-bg: #000000;
  --cyber-cyan: #d0d0d0;
  --cyber-amber: #9d9d9d;
  --cyber-red: #7b7b7b;
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --text-muted: #555555;
  --accent: #ffffff;
  --border: #222222;
  --border-light: #2a2a2a;
  --input-border: #252525;
  --error: #ef4444;
  --success: #22c55e;
  --placeholder: #666666;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(16px);
}

/* ========== RESET ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Unbounded', sans-serif;
}

body {
  background-color: var(--cyber-bg);
  background-image: none;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
}

body::before,
body::after {
  content: none;
  position: fixed;
  inset: -16%;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background: none;
  filter: none;
  opacity: 0;
  mix-blend-mode: normal;
  animation: none;
}

body::after {
  background: none;
  opacity: 0;
  mask-image: none;
  -webkit-mask-image: none;
  animation: none;
}

#siteLightRaysRoot {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

#siteLightRaysRoot .light-rays-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#siteLightRays,
.light-rays-container {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#siteLightRays canvas,
.light-rays-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

body.preloading {
  overflow: hidden;
}

.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity .28s ease, visibility .28s ease;
}

.site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-preloader__scan {
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(135deg, transparent 40%, rgba(190, 190, 190, 0.08) 50%, transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.7;
  animation: preloader-scan 6.5s linear infinite;
}

.site-preloader__noise {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg,
      rgba(255, 255, 255, 0.03) 0 1px,
      transparent 1px 4px);
  opacity: 0.12;
  pointer-events: none;
}

.site-preloader__content {
  position: relative;
  text-align: center;
  padding: 20px;
  width: min(100%, 860px);
}

.site-preloader__kicker {
  font-size: clamp(11px, 1.6vw, 14px);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 14px;
  animation: preloader-kicker-blink 2.4s steps(2, end) infinite;
}

.site-preloader__title {
  margin: 0;
  font-size: clamp(38px, 10vw, 112px);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: transparent;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.14) 8%,
      rgba(242, 242, 242, 0.96) 34%,
      rgba(154, 154, 154, 0.92) 50%,
      rgba(242, 242, 242, 0.96) 66%,
      rgba(255, 255, 255, 0.14) 92%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 0 18px rgba(224, 224, 224, 0.26),
    0 0 28px rgba(120, 120, 120, 0.2);
  animation: preloader-shine 5.8s linear infinite;
}

.site-preloader__status {
  margin-top: 16px;
  font-size: clamp(12px, 1.8vw, 16px);
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 0.04em;
}

@keyframes preloader-shine {
  0% {
    background-position: -120% 0;
  }

  100% {
    background-position: 220% 0;
  }
}

@keyframes preloader-scan {
  0% {
    transform: translate3d(-48%, -32%, 0) rotate(0deg);
  }

  100% {
    transform: translate3d(46%, 30%, 0) rotate(0deg);
  }
}

@keyframes preloader-kicker-blink {

  0%,
  49% {
    opacity: 0.55;
  }

  50%,
  100% {
    opacity: 1;
  }
}

@keyframes cyber-orbit {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }

  100% {
    transform: translate3d(-3.5%, 2.8%, 0) scale(1.08) rotate(8deg);
  }
}

@keyframes cyber-grid-flow {
  0% {
    background-position: 0 0, 0% 0, 0 0;
  }

  100% {
    background-position: 0 -64px, 100% 0, -44px 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-muted {
  color: var(--text-muted);
  font-size: 13px;
}

/* ========== GLASS & BUTTONS ========== */
.glass-item {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.btn-ios {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-ios:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-ios:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.05);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  transition: all 0.3s ease;
}

input {
  background: var(--bg-card);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  color: var(--text-primary);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

input::placeholder {
  color: var(--placeholder);
}

input:focus {
  border-color: rgba(255, 255, 255, 0.2);
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1200px;
  z-index: 1000;
  border-radius: 24px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--text-primary);
}

.logo-accent {
  color: var(--text-muted);
  font-weight: 300;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 10px 20px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: all 0.2s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.balance-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
}

.balance-badge:hover {
  background: rgba(255, 255, 255, 0.1);
}

.coin-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  filter: grayscale(1) brightness(0) invert(1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

.coin-icon-sm {
  width: 16px;
  height: 16px;
}

.coin-icon-md {
  width: 22px;
  height: 22px;
}

.topup-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-left: 2px;
  transition: background 0.2s;
}

.balance-badge:hover .topup-plus {
  background: rgba(255, 255, 255, 0.18);
}

.steam-btn {
  padding: 10px 20px;
  font-size: 13px;
  border-radius: 16px;
}

.steam-icon {
  margin-right: 2px;
}

.cart-btn {
  padding: 10px 16px;
  border-radius: 16px;
  position: relative;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--error);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-count.visible {
  opacity: 1;
  transform: scale(1);
}

.user-avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  padding: 0;
  transition: all 0.25s;
  cursor: pointer;
  flex-shrink: 0;
}

.user-avatar-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.06);
}

.header-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(20px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.mobile-nav .nav-link {
  font-size: 18px;
  padding: 14px 32px;
}

.mobile-steam {
  margin-top: 16px;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: none;
  pointer-events: none;
}

.hero::after {
  content: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-easter-egg {
  --egg-reveal: 0.02;
  position: absolute;
  right: clamp(24px, 7vw, 128px);
  top: clamp(56px, 18vh, 176px);
  z-index: 2;
  font-family: 'GuardianCircus', 'Unbounded', sans-serif;
  font-size: clamp(28px, 3.1vw, 52px);
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: rgba(0, 0, 0, 0.99);
  opacity: var(--egg-reveal);
  text-shadow:
    0 0 calc(2px + var(--egg-reveal) * 42px) rgba(255, 255, 255, calc(var(--egg-reveal) * 0.55)),
    0 0 calc(12px + var(--egg-reveal) * 36px) rgba(195, 195, 195, calc(var(--egg-reveal) * 0.35));
  filter: blur(calc((0.5 - var(--egg-reveal)) * 0.4px));
  transition: opacity 0.14s linear, text-shadow 0.14s linear, filter 0.14s linear;
  user-select: none;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 2s ease infinite;
}

.hero-badge.is-loading .hero-badge-dot {
  background: #a0a0a0;
  box-shadow: 0 0 8px rgba(160, 160, 160, 0.8);
}

.hero-badge.is-offline .hero-badge-dot {
  background: #ff5555;
  box-shadow: 0 0 8px rgba(255, 85, 85, 0.85);
}

.hero-badge.is-offline {
  color: #d5d5d5;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.hero-title {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-title span {
  color: var(--text-secondary);
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-cta {
  padding: 16px 36px;
  font-size: 15px;
  border-radius: 20px;
}

/* ========== SHOP SECTION ========== */
.shop-section {
  padding: 40px 0 80px;
}

.section-page {
  padding: 120px 0 80px;
}

.section-title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

/* Categories */
.categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.shop-discount-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 0 0 18px 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 190, 96, 0.22);
  background:
    linear-gradient(120deg, rgba(255, 190, 96, 0.16), rgba(255, 255, 255, 0.04) 55%, rgba(255, 190, 96, 0.12)),
    rgba(10, 10, 10, 0.52);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.shop-discount-banner__percent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #121212;
  background: linear-gradient(120deg, #fbbf24, #fde68a);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.34);
}

.shop-discount-banner__desc {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.coin-rate-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
}

.coin-rate-note-compact {
  margin-bottom: 14px;
}

.category-btn {
  padding: 10px 22px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.category-btn:hover,
.category-btn.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Search */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 4px 16px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.search-wrap:focus-within {
  border-color: rgba(255, 255, 255, 0.15);
}

.search-wrap svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 4px;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ========== PRODUCT CARD ========== */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.product-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 120%;
  position: relative;
  overflow: hidden;
}

.product-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--bg-card), transparent);
}

.product-image .img-emoji {
  font-size: 64px;
  filter: grayscale(0.2);
  transition: transform 0.3s;
}

.product-card:hover .img-emoji {
  transform: scale(1.15);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}

.badge-hot {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-new {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-sale {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.product-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.product-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-desc {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.product-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.product-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1.2;
  white-space: normal;
  min-width: 0;
}

.product-price .current-price {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
}

.product-price .old-price {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 0;
  line-height: 1.2;
  word-break: break-word;
}

.add-cart-btn {
  padding: 10px 20px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.add-cart-btn.added {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

/* Quantity */
.qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-light);
}

.qty-value {
  font-size: 14px;
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}

/* ========== RULES ========== */
.rules-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.rule-card {
  position: relative;
  padding-top: 48px;
}

.rule-card:hover {
  border-color: var(--border-light);
}

.rule-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 36px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
}

.rule-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.rule-card p {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== FAQ ========== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
}

.faq-card {
  cursor: pointer;
  padding: 0;
}

.faq-card:hover {
  border-color: var(--border-light);
}

.faq-card summary {
  padding: 20px 24px;
  font-size: 14px;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card summary::after {
  content: '+';
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-card[open] summary::after {
  transform: rotate(45deg);
}

.faq-card summary:hover {
  color: var(--text-primary);
}

.faq-card p {
  padding: 0 24px 20px;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== PAGE HEADER ========== */
.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.page-header .section-title {
  margin-bottom: 0;
}

.back-btn {
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 12px;
  flex-shrink: 0;
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 24px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  width: 100%;
  max-width: 520px;
  border-radius: 28px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-body {
  padding: 0 28px 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 28px 24px;
  border-top: 1px solid var(--border);
}

/* ========== CART ========== */
.cart-page {
  padding: 120px 0 80px;
}

.cart-page-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.cart-items-panel {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.cart-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.cart-list-title-wrap {
  min-width: 0;
}

.cart-list-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cart-list-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cart-count-pill {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(130deg, rgba(255, 190, 85, 0.28), rgba(255, 150, 40, 0.16));
  border: 1px solid rgba(255, 190, 85, 0.32);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-summary {
  position: sticky;
  top: 90px;
  padding: 24px;
  border-radius: 22px;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.32));
}

.cart-summary h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.cart-summary-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.cart-summary-metrics {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.cart-summary-row strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-summary-row-discount strong {
  color: #f5d46c;
}

.cart-summary-row-total {
  margin-top: 2px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.cart-summary-row-total span {
  font-size: 14px;
  color: #fff;
}

.cart-summary-row-total strong {
  font-size: 20px;
  font-weight: 800;
}

.cart-summary-note {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted);
}

.empty-cart-state {
  padding: 40px 16px 34px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.empty-cart-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 18px;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.empty-cart-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.empty-cart-text {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.empty-cart-cta {
  min-width: 220px;
}

.empty-cart {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 40px 0;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.cart-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  transform: translateY(-1px);
}

.cart-item-media {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.cart-item-media-image {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 118%;
}

.cart-item-main {
  flex: 1;
  min-width: 0;
}

.cart-item-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
}

.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--text-secondary);
  font-size: 12px;
}

.cart-item-unit {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.cart-item-bottom {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-item-price {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.cart-item-remove {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ff9a9a;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cart-item-remove:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.34);
  color: #ff6161;
}

.cart-payment-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.cart-pay-btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 15px;
}

.pay-btn {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.pay-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.pay-primary-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  font-weight: 700;
}

.pay-primary-btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-1px);
}

.pay-stripe-btn {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #a855f7;
}

.pay-stripe-btn:hover {
  background: rgba(168, 85, 247, 0.18);
}

.pay-balance-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  padding: 12px;
}

.pay-balance-btn:hover {
  background: rgba(255, 255, 255, 0.07);
}

/* ========== PROFILE ========== */
.profile-page {
  padding: 120px 0 80px;
}

.profile-page .container {
  max-width: 980px;
  margin: 0 auto;
}

.profile-card-wrap {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-main-card {
  padding: 0 0 24px;
  overflow: hidden;
  position: relative;
  border-color: rgba(220, 220, 220, 0.2);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(215, 215, 215, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  animation: profile-card-pulse 6.8s ease-in-out infinite;
}

.profile-main-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(236, 236, 236, 0.14), transparent 42%),
    radial-gradient(circle at 84% 30%, rgba(120, 120, 120, 0.12), transparent 50%);
  filter: blur(16px);
  opacity: 0.72;
  z-index: 0;
  pointer-events: none;
  animation: profile-card-aura 8.2s ease-in-out infinite alternate;
}

.profile-main-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 22px;
  background: linear-gradient(110deg,
      transparent 30%,
      rgba(232, 232, 232, 0.12) 46%,
      rgba(130, 130, 130, 0.1) 52%,
      transparent 65%);
  transform: translateX(-65%);
  z-index: 0;
  pointer-events: none;
  animation: profile-card-scan 4.8s ease-in-out infinite;
}

.profile-main-card>* {
  position: relative;
  z-index: 1;
}

.profile-orders-card {
  padding: 24px;
}

@keyframes profile-card-pulse {

  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 24px 54px rgba(0, 0, 0, 0.62),
      0 0 0 1px rgba(220, 220, 220, 0.08),
      inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  }

  50% {
    transform: translateY(-3px);
    box-shadow:
      0 30px 64px rgba(0, 0, 0, 0.68),
      0 0 24px rgba(215, 215, 215, 0.1),
      inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  }
}

@keyframes profile-card-aura {
  0% {
    opacity: 0.56;
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    opacity: 0.86;
    transform: translate3d(1.8%, -1.3%, 0) scale(1.05);
  }
}

@keyframes profile-card-scan {
  0% {
    transform: translateX(-70%);
    opacity: 0;
  }

  18% {
    opacity: 1;
  }

  58% {
    opacity: 0.72;
  }

  100% {
    transform: translateX(72%);
    opacity: 0;
  }
}

@keyframes profile-avatar-pulse {

  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
    filter: drop-shadow(0 0 0 rgba(220, 220, 220, 0));
  }

  50% {
    transform: translateX(-50%) translateY(-2px) scale(1.018);
    filter: drop-shadow(0 0 14px rgba(220, 220, 220, 0.18));
  }
}

@keyframes profile-banner-shift {
  0% {
    filter: saturate(1) brightness(1);
    background-position: 0% 50%;
  }

  100% {
    filter: saturate(1.08) brightness(1.06);
    background-position: 100% 50%;
  }
}

.profile-banner {
  position: relative;
  height: 110px;
  margin-bottom: 48px;
}

.profile-banner-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(230, 230, 230, 0.11) 0%,
      rgba(255, 255, 255, 0.015) 38%,
      rgba(150, 150, 150, 0.08) 72%,
      rgba(90, 90, 90, 0.08) 100%);
  background-size: 200% 200%;
  animation: profile-banner-shift 8s ease-in-out infinite alternate;
}

.profile-avatar-wrap {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  animation: profile-avatar-pulse 5.2s ease-in-out infinite;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: cover;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.profile-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--success);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 8px var(--success);
}

.profile-name-block {
  text-align: center;
  padding: 0 28px;
  margin-bottom: 24px;
}

.profile-display-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.profile-steam-id-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.steam-id-icon {
  color: var(--text-muted);
}

.profile-steam-id {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 300;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}

.copy-id-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.copy-id-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.copy-id-btn.copied {
  color: var(--success);
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.1);
}

.profile-steam-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.profile-steam-link:hover {
  color: #fff;
}

/* Profile Info (modal version) */
.profile-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.profile-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-card {
  text-align: center;
  padding: 20px 16px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
}

.profile-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s;
}

.profile-stat-card:hover {
  border-color: var(--border-light);
}

.profile-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.balance-icon {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.purchases-icon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.spent-icon {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.profile-stat-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 400;
}

.profile-stat-value {
  font-size: 17px;
  font-weight: 700;
}

/* Orders */
.profile-orders-section {
  padding: 0;
  margin-bottom: 0;
}

.profile-orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.profile-orders-header h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.profile-orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
}

.profile-subscriptions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.profile-sub-main {
  min-width: 0;
}

.profile-sub-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-sub-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.profile-sub-timer {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--fire-mid);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 69, 0, 0.25);
  background: rgba(255, 69, 0, 0.12);
}

.empty-orders {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  padding: 24px 0;
}

.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s;
}

.order-item:hover {
  border-color: var(--border-light);
}

.order-item-left {
  flex: 1;
  min-width: 0;
}

.order-item-id {
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 2px;
}

.order-item-date {
  font-size: 10px;
  color: var(--text-muted);
}

.order-item-names {
  font-size: 10px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.order-item-right {
  text-align: right;
  flex-shrink: 0;
  margin-left: 12px;
}

.order-item-total {
  font-size: 13px;
  font-weight: 700;
}

.order-item-status {
  font-size: 9px;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-meta {
  padding: 0;
  margin-bottom: 0;
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.logout-btn {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.06);
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.12);
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 28px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 400;
  z-index: 3000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
  text-align: right;
  line-height: 1.35;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  flex-basis: 100%;
  width: 100%;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-disclaimer {
  flex-basis: 100%;
  width: 100%;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

.footer-contacts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-contacts a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contacts a:hover {
  color: #fff;
}

/* ========== LEGAL PAGES ========== */
.legal-page-body {
  min-height: 100vh;
}

.legal-main {
  padding-top: 120px;
  padding-bottom: 40px;
}

.legal-hero {
  padding: 24px;
  margin-bottom: 14px;
}

.legal-hero h1 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 12px;
}

.legal-hero p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.legal-anchor-list a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s;
}

.legal-anchor-list a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.legal-card {
  padding: 24px;
  margin-bottom: 14px;
}

.legal-card h2 {
  font-size: clamp(18px, 2.8vw, 24px);
  margin-bottom: 14px;
}

.legal-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 10px;
}

.legal-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
}

.legal-card li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal-note {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 170, 0, 0.35);
  border-radius: 10px;
  font-size: 12px;
  color: #ffce74;
  background: rgba(255, 170, 0, 0.08);
}

.legal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeUp 0.5s ease both;
}

.product-card:nth-child(1) {
  animation-delay: 0.05s;
}

.product-card:nth-child(2) {
  animation-delay: 0.1s;
}

.product-card:nth-child(3) {
  animation-delay: 0.15s;
}

.product-card:nth-child(4) {
  animation-delay: 0.2s;
}

.product-card:nth-child(5) {
  animation-delay: 0.25s;
}

.product-card:nth-child(6) {
  animation-delay: 0.3s;
}

.product-card:nth-child(7) {
  animation-delay: 0.35s;
}

.product-card:nth-child(8) {
  animation-delay: 0.4s;
}

/* ========== SCROLLBAR ========== */

/* ========== TOP-UP MODAL ========== */
.topup-desc {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.6;
}

.topup-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.topup-preset {
  padding: 14px 8px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s;
}

.topup-preset.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.topup-custom {
  margin-bottom: 16px;
}

.topup-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.topup-custom input {
  width: 100%;
}

.topup-current {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.topup-current strong {
  color: var(--text-primary);
}

.topup-confirm-btn {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  border-radius: 18px;
  font-weight: 600;
}

.topup-confirm-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

.topup-profile-btn {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  font-size: 13px;
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.topup-profile-btn:hover {
  background: rgba(34, 197, 94, 0.15);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .header-right .steam-btn {
    display: none;
  }

  .burger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .header {
    width: calc(100% - 32px);
    padding: 10px 18px;
    top: 10px;
  }

  .hero {
    min-height: 420px;
    padding-top: 100px;
  }

  .hero-easter-egg {
    display: none;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
  }

  .product-image {
    height: 140px;
  }

  .product-info {
    padding: 16px;
  }

  .modal {
    max-width: 100%;
    border-radius: 24px;
  }

  .cart-page-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cart-summary {
    position: static;
    top: auto;
  }

  .cart-items-panel {
    padding: 18px;
  }

  .cart-item {
    padding: 12px;
  }

  .cart-item-media {
    width: 64px;
    height: 64px;
    font-size: 25px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-copy {
    margin-left: 0;
    text-align: center;
    white-space: normal;
  }

  .profile-stats-grid {
    gap: 8px;
  }

  .profile-stat-card {
    padding: 14px 8px;
  }

  .profile-stat-value {
    font-size: 15px;
  }

  .profile-sub-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-sub-timer {
    align-self: flex-start;
  }

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

  .shop-discount-banner {
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
  }

  .shop-discount-banner__percent {
    min-width: 64px;
    height: 28px;
    font-size: 12px;
  }

  .shop-discount-banner__desc {
    font-size: 12px;
  }

  .categories {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .categories::-webkit-scrollbar {
    display: none;
  }

  .category-btn {
    white-space: nowrap;
  }
}

/* ========== ADMIN PANEL ========== */
.admin-panel-section {
  padding-top: 100px;
}

.admin-actions {
  display: flex;
  gap: 12px;
}

/* Tabs */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.admin-tab {
  padding: 12px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.admin-tab:hover,
.admin-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.admin-tab.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Views */
.admin-view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.admin-view.active {
  display: block;
}

/* Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.admin-stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-stat-card h3 {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.admin-stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Toolbar */
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

/* Data Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.data-table th,
.data-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.data-table td {
  font-size: 14px;
  color: var(--text-secondary);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 12px;
}

.btn-del-prod {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-del-prod:hover {
  background: rgba(239, 68, 68, 0.2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* =========================
   Admin panel (owner only)
   ========================= */
.section.admin {
  background: rgba(10, 10, 10, 0.92);
}

.admin-panel {
  margin-top: 24px;
  border: 1px solid rgba(255, 69, 0, 0.18);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  padding: 18px;
}

.admin-topbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.admin-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.admin-badge-muted {
  color: rgba(255, 255, 255, 0.65);
}

.admin-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
}

.admin-tab {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.admin-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 69, 0, 0.35);
}

.admin-tab.active {
  border-color: rgba(255, 69, 0, 0.55);
  box-shadow: 0 10px 30px rgba(255, 69, 0, 0.15);
}

.admin-views .admin-view {
  display: none;
}

.admin-views .admin-view.active {
  display: block;
}

/* Premium Admin Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s, background 0.2s;
}

.admin-stat-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.admin-stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-stat-title {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-stat-value {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  font-family: 'Russo One', sans-serif;
}

/* Legacy Admin Cards (used elsewhere) */
.admin-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .admin-cards {
    grid-template-columns: 1fr;
  }
}

.admin-card {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.admin-card-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.admin-card-value {
  margin-top: 8px;
  font-size: 26px;
  font-family: 'Russo One', sans-serif;
  color: rgba(255, 255, 255, 0.95);
}

.admin-note {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.payment-help {
  margin-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  padding-top: 12px;
}

.payment-help-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.payment-help-base {
  margin-top: 6px;
  margin-bottom: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.payment-help-base code {
  color: rgba(255, 255, 255, 0.9);
}

.payment-help-row {
  display: grid;
  grid-template-columns: 130px 60px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}

.payment-help-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.payment-help-method {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 22px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.4px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
}

.payment-help-url {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #f7f7f7;
  white-space: normal;
  word-break: break-all;
}

.payment-url-copy {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
}

.payment-help-note {
  margin: 4px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.56);
}

@media (max-width: 900px) {
  .payment-help-row {
    grid-template-columns: 1fr;
  }

  .payment-help-method {
    width: fit-content;
    padding: 0 8px;
  }

  .payment-url-copy {
    width: 100%;
  }
}

.admin-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  .admin-grid-2 {
    grid-template-columns: 1fr;
  }
}

.admin-input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
}

.admin-input:focus {
  border-color: rgba(255, 69, 0, 0.5);
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  vertical-align: middle;
}

.admin-table th {
  text-align: left;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.03);
  position: sticky;
  top: 0;
}

.admin-mini-input {
  width: 100%;
  min-width: 90px;
  max-width: 180px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.95);
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.admin-mini-input:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.admin-mini-input:focus {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 69, 0, 0.6);
  box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.15);
}

select.admin-mini-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 32px;
}

select.admin-mini-input>option {
  background: #111;
  color: #fff;
}

.admin-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-inline-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.admin-form label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 6px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.admin-form-row {
  margin-bottom: 12px;
}

.admin-form-hint {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

/* Admin modal */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.admin-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.admin-modal-card {
  position: relative;
  max-width: 920px;
  width: calc(100% - 24px);
  margin: 5vh auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  max-height: 90vh;
  /* модалка не выше экрана */
  display: flex;
  flex-direction: column;
  /* чтобы body скроллился внутри */
}

.admin-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.admin-modal-title {
  font-family: 'Russo One', sans-serif;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
}

.admin-modal-x {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 26px;
  cursor: pointer;
}

.admin-modal-body {
  padding: 16px;
  overflow: auto;
  /* скролл внутри окна */
  flex: 1 1 auto;
}

.admin-modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  flex: 0 0 auto;
}

/* Блокируем скролл страницы пока открыта модалка */
body.admin-modal-open {
  overflow: hidden;
}

/* Admin feedback */
.btn.is-loading {
  opacity: 0.85;
  cursor: progress;
}

.admin-row-ok {
  background: rgba(34, 197, 94, 0.12);
}

.admin-row-error {
  background: rgba(239, 68, 68, 0.12);
}

/* Toast (reuses #toastContainer) */
.admin-toast {
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.2s ease;
}

.admin-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.admin-toast.success {
  border-color: rgba(34, 197, 94, 0.35);
}

.admin-toast.error {
  border-color: rgba(239, 68, 68, 0.35);
}

/* User kebab + menu */
.admin-kebab {
  width: 34px;
  height: 34px;
  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.9);
  cursor: pointer;
}

.admin-kebab:hover {
  border-color: rgba(255, 69, 0, 0.35);
}

.admin-menu {
  position: absolute;
  right: 0;
  top: 40px;
  min-width: 240px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  z-index: 1000;
}

.admin-menu-item {
  width: 100%;
  text-align: left;
  padding: 12px 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.admin-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Permissions list */
.admin-perms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .admin-perms {
    grid-template-columns: 1fr;
  }
}

.admin-perm-group {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-perm-title {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.admin-perm-item {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.admin-link {
  background: transparent;
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-decoration-color: rgba(255, 69, 0, 0.6);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.admin-link:hover {
  text-decoration-color: rgba(255, 69, 0, 0.95);
}

/* ============================================
   SPAWN SET / VIP SUBSCRIPTION STYLES
   ============================================ */

/* VIP Card Styling */
.spawn-set-card {
  position: relative;
  border: 2px solid var(--fire-core) !important;
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.3), inset 0 0 30px rgba(255, 69, 0, 0.05);
  animation: vipGlow 3s ease-in-out infinite;
}

@keyframes vipGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.3), inset 0 0 30px rgba(255, 69, 0, 0.05);
  }

  50% {
    box-shadow: 0 0 35px rgba(255, 69, 0, 0.5), inset 0 0 40px rgba(255, 69, 0, 0.1);
  }
}

.spawn-set-badge {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-fire);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(255, 69, 0, 0.5);
}

.spawn-set-info {
  background: rgba(255, 69, 0, 0.15);
  border: 1px solid rgba(255, 69, 0, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--fire-mid);
  text-align: center;
  margin: 10px 0;
}

.btn-vip {
  background: var(--gradient-fire) !important;
  color: white !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn-vip::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(45deg);
  animation: vipShine 3s ease-in-out infinite;
}

@keyframes vipShine {
  0% {
    transform: rotate(45deg) translateX(-100%);
  }

  100% {
    transform: rotate(45deg) translateX(100%);
  }
}

/* Subscriptions Panel */
.subscriptions-panel {
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.15) 0%, rgba(255, 107, 53, 0.1) 100%);
  border: 1px solid rgba(255, 69, 0, 0.3);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.subs-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 69, 0, 0.2);
}

.subs-icon {
  font-size: 24px;
  animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.subs-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--fire-mid);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.subs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 69, 0, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 280px;
  flex: 1;
}

.sub-name {
  font-weight: 600;
  color: var(--text-primary);
}

.sub-expires {
  font-size: 13px;
  color: var(--fire-mid);
  background: rgba(255, 69, 0, 0.15);
  padding: 4px 10px;
  border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .spawn-set-badge {
    font-size: 10px;
    padding: 4px 12px;
  }

  .subscriptions-panel {
    padding: 15px;
  }

  .sub-item {
    min-width: 100%;
  }
}

/* ============================================
   DISCOUNT STYLES
   ============================================ */

/* Discount Banner */
.discount-banner {
  background: linear-gradient(90deg, var(--fire-core), var(--fire-mid), var(--fire-core));
  background-size: 200% 100%;
  animation: discountPulse 3s ease infinite;
  padding: 16px 20px;
  border-radius: 12px;
  margin: 20px 0 30px 0;
  text-align: center;
  box-shadow: 0 0 30px rgba(255, 69, 0, 0.4);
}

@keyframes discountPulse {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.discount-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.discount-icon {
  font-size: 24px;
  animation: fireShake 0.5s ease infinite;
}

@keyframes fireShake {

  0%,
  100% {
    transform: rotate(-5deg);
  }

  50% {
    transform: rotate(5deg);
  }
}

.discount-text {
  color: white;
  font-family: var(--font-display);
  font-size: 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.discount-text strong {
  font-size: 22px;
}

/* Product Card with Discount */
.product-card.has-discount {
  border-color: var(--fire-mid);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
}

.discount-ribbon {
  position: absolute;
  top: 12px;
  right: -8px;
  background: var(--gradient-fire);
  color: white;
  font-family: var(--font-display);
  font-size: 14px;
  padding: 6px 16px 6px 12px;
  border-radius: 4px 0 0 4px;
  box-shadow: 0 2px 10px rgba(255, 69, 0, 0.5);
  z-index: 10;
}

.discount-ribbon::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -8px;
  border: 4px solid transparent;
  border-top-color: #aa2f00;
  border-right-color: #aa2f00;
}

/* Discounted Price */
.product-price.discounted {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.product-price .original-price {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.7;
}

.product-price .sale-price {
  color: var(--accent-success);
  font-family: var(--font-display);
  font-size: 18px;
}

.product-price .discount-badge {
  display: inline-block;
  background: var(--gradient-fire);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-display);
  margin-left: 6px;
}

/* Mobile Discount Banner */
@media (max-width: 768px) {
  .discount-banner {
    padding: 12px 15px;
    margin: 15px 0 20px 0;
  }

  .discount-text {
    font-size: 14px;
  }

  .discount-text strong {
    font-size: 16px;
  }

  .discount-icon {
    font-size: 18px;
  }

  .discount-ribbon {
    font-size: 12px;
    padding: 4px 12px 4px 8px;
  }
}

/* ========== ROULETTE PAGE ========== */
.roulette-page {
  padding: 118px 0 84px;
}

.roulette-top {
  display: grid;
  grid-template-columns: 1fr minmax(230px, auto);
  gap: 20px;
  margin-bottom: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 190, 96, 0.16);
  background:
    radial-gradient(100% 120% at 90% 8%, rgba(245, 158, 11, 0.18), transparent 55%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(10, 10, 10, 0.32));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}

.roulette-top-info h2 {
  margin: 8px 0 10px;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.7px;
  font-weight: 700;
}

.roulette-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.roulette-kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffbe5a;
  box-shadow: 0 0 12px rgba(255, 190, 90, 0.7);
}

.roulette-top-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.62;
  max-width: 560px;
}

.roulette-picker {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-width: 320px;
  position: relative;
  z-index: 20;
}

.roulette-picker-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.roulette-dropdown {
  position: relative;
}

.roulette-dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 199, 110, 0.32);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.38));
  color: rgba(255, 246, 231, 0.96);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  padding: 11px 12px;
  min-height: 44px;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.roulette-dropdown-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roulette-dropdown-arrow {
  flex-shrink: 0;
  color: rgba(255, 229, 184, 0.9);
  transition: transform 0.24s ease;
}

.roulette-dropdown-btn:hover,
.roulette-dropdown-btn:focus-visible,
.roulette-dropdown.is-open .roulette-dropdown-btn {
  border-color: rgba(255, 214, 143, 0.56);
  box-shadow: 0 0 0 3px rgba(255, 180, 66, 0.12);
}

.roulette-dropdown.is-open .roulette-dropdown-arrow {
  transform: rotate(180deg);
}

.roulette-dropdown-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  border-radius: 14px;
  border: 1px solid rgba(255, 199, 110, 0.35);
  background: linear-gradient(180deg, rgba(16, 16, 16, 0.96), rgba(8, 8, 8, 0.96));
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.55);
  padding: 6px;
  max-height: 280px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.roulette-dropdown.is-open .roulette-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.roulette-dropdown-item {
  width: 100%;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 246, 231, 0.92);
  border-radius: 10px;
  padding: 10px 11px;
  font-size: 13px;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.roulette-dropdown-item+.roulette-dropdown-item {
  margin-top: 4px;
}

.roulette-dropdown-item:hover {
  background: rgba(255, 185, 80, 0.12);
  border-color: rgba(255, 185, 80, 0.22);
}

.roulette-dropdown-item.is-active {
  background: rgba(255, 185, 80, 0.2);
  border-color: rgba(255, 204, 126, 0.46);
  color: #fff8e8;
}

.roulette-dropdown-item.is-disabled {
  opacity: 0.65;
}

.roulette-select {
  width: 100%;
  appearance: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 199, 110, 0.32);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.38));
  color: rgba(255, 246, 231, 0.96);
  font-size: 13px;
  padding: 11px 36px 11px 12px;
  outline: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5deb3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 14px;
  background-position: right 12px center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.roulette-select:hover,
.roulette-select:focus {
  border-color: rgba(255, 214, 143, 0.56);
  box-shadow: 0 0 0 3px rgba(255, 180, 66, 0.12);
}

.roulette-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.roulette-top-meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: 12px;
  min-width: 230px;
}

.roulette-price-chip {
  border-radius: 14px;
  border: 1px solid rgba(255, 190, 96, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 190, 90, 0.11), rgba(0, 0, 0, 0.35));
  padding: 11px 14px;
}

.roulette-price-label {
  display: block;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  letter-spacing: 1.1px;
  margin-bottom: 4px;
}

.roulette-price-chip strong {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #fff2d8;
}

.roulette-spin-btn {
  width: 100%;
  font-weight: 700;
  border-color: rgba(255, 190, 96, 0.35) !important;
  background:
    linear-gradient(180deg, rgba(255, 200, 116, 0.2), rgba(255, 145, 0, 0.1)) !important;
}

.roulette-spin-btn:hover {
  box-shadow: 0 12px 26px rgba(255, 157, 0, 0.2);
}

.roulette-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 20px;
  align-items: stretch;
}

.roulette-wheel-card {
  border-radius: 24px;
  padding: 20px;
  border: 1px solid rgba(255, 180, 80, 0.16);
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 185, 96, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(0, 0, 0, 0.32));
}

.roulette-case-shell {
  position: relative;
  margin: 2px auto 18px;
}

.roulette-case-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  z-index: 12;
  pointer-events: none;
}

.roulette-case-pointer::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 100%, 100% 0, 0 0);
  background: linear-gradient(180deg, #fffef9 0%, #ebc986 74%, #8d6533 100%);
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.45));
}

.roulette-case-window {
  position: relative;
  width: 100%;
  min-height: 216px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 190, 96, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 197, 103, 0.09), rgba(0, 0, 0, 0.5)),
    radial-gradient(circle at 50% 0%, rgba(255, 220, 160, 0.12), transparent 55%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 238, 198, 0.1),
    0 16px 34px rgba(0, 0, 0, 0.4);
}

.roulette-case-window::before,
.roulette-case-window::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12%;
  z-index: 6;
  pointer-events: none;
}

.roulette-case-window::before {
  left: 0;
  background: linear-gradient(90deg, rgba(9, 9, 9, 0.95), rgba(9, 9, 9, 0));
}

.roulette-case-window::after {
  right: 0;
  background: linear-gradient(270deg, rgba(9, 9, 9, 0.95), rgba(9, 9, 9, 0));
}

.roulette-case-track {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: max-content;
  padding-top: 20px;
  padding-bottom: 18px;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.roulette-case-track.is-rolling .roulette-case-item {
  filter: saturate(0.92);
}

.roulette-case-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.roulette-case-item {
  position: relative;
  width: 144px;
  border-radius: 12px;
  border: 1px solid rgba(255, 213, 154, 0.23);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.6)),
    linear-gradient(180deg, var(--accent-soft), rgba(0, 0, 0, 0.42));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 9px 18px rgba(0, 0, 0, 0.35);
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.roulette-case-item::before {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 45%, transparent 100%);
  opacity: 0.7;
}

.roulette-case-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.roulette-case-item-rarity {
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 241, 214, 0.8);
}

.roulette-case-item-chance {
  font-size: 9px;
  color: rgba(255, 218, 159, 0.72);
}

.roulette-case-item-preview {
  position: relative;
  height: 82px;
  border-radius: 9px;
  border: 1px solid rgba(255, 226, 178, 0.25);
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 225, 184, 0.18), rgba(0, 0, 0, 0.35));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.roulette-case-item-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.34));
}

.roulette-case-item-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: rgba(255, 240, 214, 0.7);
}

.roulette-case-item-bottom {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.roulette-case-item-name {
  font-size: 12px;
  line-height: 1.2;
  color: rgba(255, 244, 222, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roulette-case-item-price {
  font-size: 11px;
  color: rgba(255, 224, 167, 0.86);
}

.roulette-case-item.is-winner {
  transform: translateY(-4px) scale(1.035);
  border-color: rgba(255, 226, 170, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 228, 173, 0.34),
    0 18px 30px rgba(255, 169, 55, 0.26);
}

.roulette-last-win {
  min-height: 50px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 183, 88, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 193, 94, 0.09), rgba(0, 0, 0, 0.33));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
  padding: 11px 14px;
}

.roulette-last-win-label {
  color: rgba(255, 255, 255, 0.62);
}

.roulette-last-win-meta {
  font-size: 11px;
  color: rgba(255, 220, 169, 0.75);
}

.roulette-items-card,
.roulette-history-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 183, 88, 0.14);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.36));
}

.roulette-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.roulette-panel-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 240, 210, 0.92);
}

.roulette-items-list,
.roulette-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 470px;
  overflow-y: auto;
  padding-right: 4px;
}

.roulette-item-row,
.roulette-history-row {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 190, 96, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 193, 94, 0.07), rgba(0, 0, 0, 0.35));
  padding: 7px 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.roulette-item-row:hover,
.roulette-history-row:hover {
  border-color: rgba(255, 200, 120, 0.32);
  transform: translateY(-1px);
}

.roulette-item-thumb,
.roulette-history-thumb {
  width: 54px;
  height: 54px;
  border-radius: 9px;
  border: 1px solid rgba(255, 215, 167, 0.32);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 219, 170, 0.22), rgba(0, 0, 0, 0.3));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.roulette-item-main,
.roulette-history-main {
  min-width: 0;
}

.roulette-item-name,
.roulette-history-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 246, 229, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roulette-item-meta,
.roulette-history-meta {
  font-size: 10px;
  color: rgba(255, 222, 173, 0.72);
  margin-top: 3px;
}

.roulette-item-price,
.roulette-history-cost {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 237, 204, 0.94);
  justify-self: end;
}

.roulette-item-dot {
  position: absolute;
  right: 10px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 205, 115, 0.9);
}

.roulette-history-row {
  grid-template-columns: 54px 1fr auto;
}

#adminRouletteItemsTable .admin-mini-input {
  width: 100%;
  min-width: 110px;
}

#adminRouletteItemsTable .roulette-item-color {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

#adminRouletteEnabled {
  width: 18px;
  height: 18px;
  accent-color: #ffb74f;
}

@media (max-width: 980px) {
  .roulette-layout {
    grid-template-columns: 1fr;
  }

  .roulette-top {
    grid-template-columns: 1fr;
  }

  .roulette-top-meta {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .roulette-page {
    padding: 104px 0 62px;
  }

  .roulette-case-window {
    min-height: 196px;
  }

  .roulette-case-track {
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .roulette-case-item {
    width: 126px;
  }

  .roulette-case-item-preview {
    height: 72px;
  }

  .roulette-item-row,
  .roulette-history-row {
    grid-template-columns: 46px 1fr;
    padding-right: 12px;
  }

  .roulette-item-thumb,
  .roulette-history-thumb {
    width: 46px;
    height: 46px;
  }

  .roulette-item-price,
  .roulette-history-cost {
    grid-column: 2;
    justify-self: start;
    margin-top: 3px;
  }
}

/* ========== RESPONSIVE HARDENING (ALL PAGES) ========== */
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }

  .header {
    width: calc(100% - 22px);
    max-width: none;
    padding: 10px 12px;
    border-radius: 18px;
    gap: 8px;
  }

  .logo {
    min-width: 0;
    font-size: 15px;
    gap: 8px;
  }

  .logo span {
    white-space: nowrap;
  }

  .logo-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .header-right {
    gap: 6px;
    min-width: 0;
  }

  .balance-badge {
    padding: 7px 10px;
    border-radius: 12px;
    max-width: 44vw;
  }

  #balanceAmount {
    display: inline-block;
    max-width: 20vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
  }

  .topup-plus {
    width: 18px;
    height: 18px;
    font-size: 13px;
  }

  .cart-btn {
    padding: 9px 11px;
    border-radius: 13px;
  }

  .user-avatar-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .mobile-menu {
    padding: 104px 18px 24px;
    align-items: flex-start;
    overflow-y: auto;
  }

  .mobile-nav {
    width: min(560px, 100%);
    margin: 0 auto;
  }

  .mobile-nav .nav-link,
  .mobile-steam {
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: 380px;
    padding: 96px 16px 36px;
  }

  .hero-subtitle {
    margin-bottom: 22px;
  }

  .hero-cta {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .shop-section {
    padding: 24px 0 56px;
  }

  .section-page,
  .cart-page,
  .profile-page,
  .roulette-page {
    padding-top: 104px;
    padding-bottom: 56px;
  }

  .categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
    margin-bottom: 16px;
  }

  .categories::-webkit-scrollbar {
    display: none;
  }

  .category-btn {
    white-space: nowrap;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 12px;
  }

  .search-wrap {
    margin-bottom: 18px;
    padding: 2px 12px;
  }

  .search-wrap input {
    padding: 12px 4px;
    font-size: 13px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card {
    border-radius: 18px;
  }

  .product-image {
    height: 132px;
  }

  .product-info {
    padding: 14px;
  }

  .product-name {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .product-desc {
    font-size: 11px;
    line-height: 1.45;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .add-cart-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
  }

  .product-price .current-price {
    font-size: 20px;
  }

  .rules-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .faq-card summary {
    padding: 16px 16px;
    font-size: 13px;
  }

  .faq-card p {
    padding: 0 16px 14px;
    font-size: 12px;
  }

  .page-header {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
  }

  .back-btn {
    padding: 8px 12px;
  }

  .modal-overlay {
    padding: 10px;
  }

  .modal {
    max-height: calc(100vh - 20px);
    border-radius: 18px;
  }

  .modal-header {
    padding: 14px 14px 10px;
  }

  .modal-header h2 {
    font-size: 18px;
  }

  .modal-body {
    padding: 0 14px 14px;
  }

  .modal-footer {
    padding: 10px 14px 14px;
  }

  .topup-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .topup-preset {
    padding: 12px 8px;
    font-size: 13px;
  }

  #topupStepAmount .topup-promo>div {
    flex-direction: column;
    gap: 8px !important;
  }

  #topupStepAmount .topup-promo input,
  #topupStepAmount .topup-promo button {
    width: 100% !important;
  }

  .cart-page-content {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cart-list-head {
    align-items: center;
  }

  .cart-list-title {
    font-size: 16px;
  }

  .cart-list-subtitle {
    font-size: 11px;
  }

  .cart-summary {
    position: static;
    padding: 16px;
    border-radius: 16px;
  }

  .cart-item {
    gap: 10px;
    padding: 10px;
  }

  .cart-item-media {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    font-size: 22px;
  }

  .cart-item-top {
    gap: 8px;
  }

  .cart-item-name {
    white-space: normal;
    font-size: 14px;
  }

  .cart-item-meta {
    font-size: 11px;
    gap: 6px;
  }

  .cart-item-bottom {
    margin-top: 10px;
  }

  .cart-item-price {
    font-size: 16px;
  }

  .qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 15px;
  }

  .qty-value {
    min-width: 18px;
    font-size: 13px;
  }

  .cart-summary-row-total strong {
    font-size: 18px;
  }

  .cart-pay-btn {
    padding: 12px 14px;
    font-size: 14px;
  }

  .profile-card-wrap {
    max-width: 100%;
    gap: 12px;
  }

  .profile-main-card {
    border-radius: 18px;
  }

  .profile-banner {
    height: 92px;
    margin-bottom: 40px;
  }

  .profile-avatar-wrap {
    width: 76px;
    height: 76px;
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%);
  }

  .profile-name-block {
    padding: 0 14px;
  }

  .profile-display-name {
    font-size: 20px;
  }

  .profile-steam-id-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .profile-steam-id {
    overflow-wrap: anywhere;
  }

  .profile-orders-card {
    padding: 14px;
  }

  .order-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
  }

  .order-item-right {
    width: 100%;
    margin-left: 0;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .footer {
    margin-top: 24px;
    padding: 22px 0;
  }

  .footer-inner {
    gap: 10px;
  }

  .roulette-top {
    gap: 14px;
    margin-bottom: 14px;
  }

  .roulette-top-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .roulette-picker {
    max-width: 100%;
  }

  .roulette-dropdown-btn {
    font-size: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .roulette-dropdown-item {
    font-size: 12px;
    padding: 9px 10px;
  }

  .roulette-spin-btn {
    width: 100%;
  }

  .roulette-wheel-card,
  .roulette-items-card,
  .roulette-history-card {
    padding: 14px;
  }

  .roulette-case-window {
    min-height: 186px;
  }

  .roulette-case-item {
    width: 120px;
  }

  .roulette-case-item-name {
    font-size: 11px;
  }

  .roulette-case-item-price {
    font-size: 11px;
  }

  #admin {
    padding-top: 100px !important;
    padding-bottom: 56px !important;
  }

  .admin-panel {
    padding: 10px;
    border-radius: 12px;
    margin-top: 10px;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .admin-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .admin-actions .btn-ios {
    width: 100%;
    justify-content: center;
  }

  .admin-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
    margin-bottom: 10px;
  }

  .admin-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-tab {
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-stat-card {
    padding: 14px;
    gap: 12px;
    border-radius: 12px;
  }

  .admin-stat-value {
    font-size: 20px;
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 10px;
  }

  .admin-toolbar>* {
    width: 100%;
    max-width: 100% !important;
  }

  .table-wrap,
  .admin-table-wrap {
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .data-table,
  .admin-table {
    min-width: 700px;
  }

  .data-table th,
  .data-table td,
  .admin-table th,
  .admin-table td {
    padding: 9px 10px;
    font-size: 12px;
  }

  .admin-mini-input {
    min-width: 76px;
    max-width: 130px;
    padding: 6px 8px;
    font-size: 12px;
  }

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

  .admin-btns .btn-ios {
    width: 100%;
  }

  .admin-modal-card {
    width: calc(100% - 10px);
    margin: 2vh auto;
    max-height: 96vh;
    border-radius: 12px;
  }

  .admin-modal-head,
  .admin-modal-body,
  .admin-modal-foot {
    padding: 10px;
  }

  .admin-modal-title {
    font-size: 15px;
  }

  .admin-modal-foot {
    flex-direction: column;
  }

  .admin-modal-foot .btn-ios {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .header {
    width: calc(100% - 12px);
    padding: 8px 10px;
    top: 6px;
    border-radius: 14px;
  }

  .logo {
    font-size: 13px;
    letter-spacing: 0.2px;
  }

  .logo-accent {
    display: none;
  }

  #balanceAmount {
    max-width: 18vw;
    font-size: 11px;
  }

  .topup-plus {
    display: none;
  }

  .cart-btn {
    padding: 8px 9px;
  }

  .cart-count {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .section-title {
    margin-bottom: 20px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-image {
    height: 146px;
    background-size: 120%;
  }

  .product-price .current-price {
    font-size: 18px;
  }

  .modal-overlay {
    padding: 6px;
  }

  .modal {
    border-radius: 14px;
  }

  .modal-header h2 {
    font-size: 16px;
  }

  .topup-presets {
    grid-template-columns: 1fr;
  }

  .profile-banner {
    height: 84px;
  }

  .profile-avatar-wrap {
    width: 70px;
    height: 70px;
  }

  .profile-stat-label {
    font-size: 8px;
  }

  .profile-stat-value {
    font-size: 14px;
  }

  .roulette-page {
    padding-top: 98px;
  }

  .roulette-top-info h2 {
    font-size: 26px;
  }

  .roulette-case-window {
    min-height: 170px;
  }

  .roulette-case-track {
    gap: 8px;
  }

  .roulette-case-item {
    width: 108px;
  }

  .roulette-case-item-preview {
    height: 64px;
  }

  .admin-actions {
    grid-template-columns: 1fr;
  }

  .admin-badge {
    font-size: 11px;
    padding: 6px 9px;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 10px;
  }

  .hero {
    padding-top: 88px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .coin-rate-note {
    font-size: 11px;
    padding: 8px 10px;
    gap: 8px;
  }

  .toast {
    width: calc(100% - 16px);
    text-align: center;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .roulette-item-name,
  .roulette-history-name {
    font-size: 12px;
  }

  .roulette-item-meta,
  .roulette-history-meta {
    font-size: 10px;
  }
}

/* ========== ROULETTE PHONE FIX ========== */
@media (max-width: 768px) {
  .roulette-top {
    padding: 14px;
    border-radius: 16px;
  }

  .roulette-top-info h2 {
    margin-top: 6px;
    margin-bottom: 8px;
    font-size: 26px;
  }

  .roulette-top-info p {
    max-width: none;
    font-size: 12px;
    line-height: 1.5;
  }

  .roulette-panel-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .roulette-panel-head .btn-ios {
    width: 100%;
    justify-content: center;
  }

  .roulette-wheel-card,
  .roulette-items-card,
  .roulette-history-card {
    border-radius: 16px;
    padding: 12px;
  }

  .roulette-case-shell {
    margin: 0 0 12px;
  }

  .roulette-case-pointer {
    width: 26px;
    height: 26px;
    top: -6px;
  }

  .roulette-case-window {
    min-height: 172px;
    border-radius: 12px;
  }

  .roulette-case-window::before,
  .roulette-case-window::after {
    width: 16%;
  }

  .roulette-case-track {
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .roulette-case-item {
    width: 106px;
    border-radius: 10px;
    padding: 7px 7px 8px;
    gap: 6px;
  }

  .roulette-case-item-rarity,
  .roulette-case-item-chance {
    font-size: 8px;
  }

  .roulette-case-item-preview {
    height: 58px;
    border-radius: 8px;
  }

  .roulette-case-item-name {
    font-size: 10px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 24px;
  }

  .roulette-case-item-price {
    font-size: 10px;
  }

  .roulette-last-win {
    min-height: 44px;
    padding: 9px 10px;
    font-size: 11px;
    gap: 6px;
    flex-wrap: wrap;
  }

  .roulette-last-win strong {
    overflow-wrap: anywhere;
  }

  .roulette-last-win-meta {
    font-size: 10px;
  }

  .roulette-items-list,
  .roulette-history-list {
    max-height: none;
    padding-right: 0;
  }
}

@media (max-width: 420px) {
  .roulette-top-info h2 {
    font-size: 22px;
  }

  .roulette-price-chip strong {
    font-size: 18px;
  }

  .roulette-case-window {
    min-height: 160px;
  }

  .roulette-case-item {
    width: 94px;
    padding: 6px;
  }

  .roulette-case-item-preview {
    height: 50px;
  }
}

/* ========== MOBILE HEADER + ROULETTE FINAL FIX ========== */
@media (max-width: 768px) {
  .nav {
    display: none !important;
  }

  .header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
  }

  .header-right {
    display: flex;
    align-items: center;
    justify-self: end;
    margin-left: 0;
    gap: 6px;
  }

  .mobile-menu {
    display: flex;
  }

  .burger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    padding: 0;
    margin-left: 2px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
  }

  .burger span {
    width: 18px;
    background: #fff;
  }

  .roulette-case-window {
    min-height: 172px;
  }

  .roulette-case-track {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: max-content;
    min-width: 0;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .roulette-case-item {
    flex: 0 0 auto;
    width: 110px;
    min-width: 110px;
    max-width: 110px;
  }
}

@media (max-width: 420px) {
  .burger {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .roulette-case-item {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #siteLightRaysRoot {
    display: none !important;
  }

  .site-preloader__scan,
  .site-preloader__kicker,
  .site-preloader__title,
  body::before,
  body::after,
  .profile-main-card,
  .profile-main-card::before,
  .profile-main-card::after,
  .profile-banner-bg,
  .profile-avatar-wrap {
    animation: none !important;
  }
}

/* ========== ADMIN REDESIGN V2 ========== */
#admin {
  --admin-surface-1: rgba(8, 8, 10, 0.86);
  --admin-surface-2: rgba(18, 18, 22, 0.8);
  --admin-surface-3: rgba(255, 255, 255, 0.03);
  --admin-line-1: rgba(255, 255, 255, 0.12);
  --admin-line-2: rgba(255, 255, 255, 0.08);
  --admin-text-1: rgba(255, 255, 255, 0.96);
  --admin-text-2: rgba(255, 255, 255, 0.72);
  --admin-text-3: rgba(255, 255, 255, 0.52);
  --admin-accent: #f5c76a;
  --admin-accent-soft: rgba(245, 199, 106, 0.3);
  --admin-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

#admin .container {
  max-width: 1360px;
}

#admin .admin-page-header {
  margin-bottom: 18px !important;
  display: grid;
  gap: 8px;
}

#admin .admin-page-header .section-title {
  margin-bottom: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: 0.02em;
}

#admin .admin-page-subtitle {
  margin: 0;
  color: var(--admin-text-2);
  font-size: 13px;
  line-height: 1.6;
}

#admin .admin-panel {
  margin-top: 0;
  border-radius: 22px;
  border: 1px solid var(--admin-line-1);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.06), transparent 45%),
    radial-gradient(140% 140% at 100% 0%, rgba(245, 199, 106, 0.08), transparent 52%),
    linear-gradient(165deg, var(--admin-surface-1), var(--admin-surface-2));
  backdrop-filter: blur(20px);
  box-shadow: var(--admin-shadow);
  padding: 20px;
}

#admin .admin-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

#admin .admin-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#admin .admin-badge {
  padding: 8px 14px;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid var(--admin-line-1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--admin-text-1);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

#admin .admin-badge-muted {
  color: var(--admin-text-2);
}

#admin .admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

#admin .btn-ios {
  border-radius: 12px;
  min-height: 38px;
  border: 1px solid var(--admin-line-1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  color: var(--admin-text-1);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

#admin .btn-ios:hover {
  transform: translateY(-1px);
  border-color: var(--admin-accent-soft);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

#admin .pay-primary-btn {
  border-color: rgba(245, 199, 106, 0.56);
  background: linear-gradient(180deg, rgba(245, 199, 106, 0.24), rgba(245, 199, 106, 0.11));
}

#admin .pay-primary-btn:hover {
  border-color: rgba(245, 199, 106, 0.82);
  box-shadow: 0 0 0 1px rgba(245, 199, 106, 0.32), 0 16px 34px rgba(0, 0, 0, 0.32);
}

#admin .admin-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  margin: 0;
  border-radius: 16px;
  border: 1px solid var(--admin-line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.2));
}

#admin .admin-tab {
  border-radius: 11px;
  border: 1px solid transparent;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--admin-text-2);
  font-size: 13px;
  letter-spacing: 0.01em;
}

#admin .admin-tab:hover {
  color: var(--admin-text-1);
  border-color: var(--admin-line-1);
  background: rgba(255, 255, 255, 0.08);
}

#admin .admin-tab.active {
  color: #101010;
  border-color: rgba(255, 255, 255, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(235, 235, 235, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 20px rgba(0, 0, 0, 0.28);
}

#admin .admin-views {
  margin-top: 14px;
}

#admin .admin-views .admin-view {
  display: none;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--admin-line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(0, 0, 0, 0.22));
}

#admin .admin-views .admin-view.active {
  display: block;
  animation: adminViewEnter .22s ease;
}

#admin .admin-summary-shell {
  display: grid;
  gap: 14px;
}

#admin .admin-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

#admin .admin-summary-headline h3 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.12;
  color: var(--admin-text-1);
  letter-spacing: 0.01em;
}

#admin .admin-summary-headline p {
  margin: 6px 0 0;
  color: var(--admin-text-3);
  font-size: 12px;
  line-height: 1.6;
}

#admin .admin-summary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#admin .admin-metric {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--admin-line-1);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.08), transparent 56%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.24));
  padding: 16px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#admin .admin-metric::after {
  content: '';
  position: absolute;
  inset: auto -20% -58% -20%;
  height: 72%;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.16), transparent 72%);
  pointer-events: none;
  opacity: .55;
}

#admin .admin-metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.32);
}

#admin .admin-metric-label {
  color: var(--admin-text-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
}

#admin .admin-metric-value {
  color: var(--admin-text-1);
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .01em;
}

#admin .admin-metric-users .admin-metric-icon {
  color: #8f66ff;
}

#admin .admin-metric-revenue .admin-metric-icon {
  color: #f5c76a;
}

#admin .admin-metric-orders .admin-metric-icon {
  color: #60a5fa;
}

#admin .admin-metric-topup .admin-metric-icon {
  color: #38bdf8;
}

#admin .admin-summary-note {
  margin: 0;
}

#admin .admin-summary-transactions {
  border: 1px solid var(--admin-line-1);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.2));
  padding: 12px;
}

#admin .admin-summary-transactions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

#admin .admin-summary-transactions-head h4 {
  margin: 0;
  font-size: 16px;
  color: var(--admin-text-1);
  letter-spacing: .01em;
}

#admin .admin-summary-transactions-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.42);
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  font-size: 10px;
  letter-spacing: .1em;
  font-weight: 700;
}

@keyframes adminViewEnter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#admin .admin-stats-grid {
  gap: 12px;
  margin-bottom: 16px;
}

#admin .admin-stat-card {
  border-radius: 16px;
  border: 1px solid var(--admin-line-2);
  background:
    radial-gradient(100% 120% at 0% 0%, rgba(255, 255, 255, 0.07), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.18));
  padding: 16px;
  min-height: 96px;
}

#admin .admin-stat-card:hover {
  border-color: rgba(245, 199, 106, 0.24);
  transform: translateY(-2px);
}

#admin .admin-stat-icon {
  border-radius: 12px;
  border: 1px solid var(--admin-line-2);
  background: rgba(0, 0, 0, 0.26);
}

#admin .admin-stat-title {
  font-size: 11px;
  color: var(--admin-text-3);
}

#admin .admin-stat-value {
  color: var(--admin-text-1);
  font-size: clamp(21px, 2vw, 27px);
}

#admin .admin-note {
  border: 1px solid var(--admin-line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  color: var(--admin-text-2);
  line-height: 1.55;
}

#admin .admin-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

#admin .admin-grid-2 {
  gap: 12px;
}

#admin .admin-input {
  border-radius: 12px;
  border: 1px solid var(--admin-line-1);
  background: rgba(7, 7, 9, 0.54);
  color: var(--admin-text-1);
  padding: 11px 13px;
  min-height: 42px;
}

#admin .admin-input::placeholder {
  color: var(--admin-text-3);
}

#admin .admin-input:focus {
  border-color: var(--admin-accent-soft);
  box-shadow: 0 0 0 3px rgba(245, 199, 106, 0.11);
}

#admin .admin-form label {
  margin-bottom: 5px;
  color: var(--admin-text-2);
  font-size: 11px;
  letter-spacing: 0.08em;
}

#admin .admin-form-hint {
  color: var(--admin-text-3);
  font-size: 11px;
}

#admin .admin-table-wrap {
  border-radius: 14px;
  border: 1px solid var(--admin-line-1);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.36));
}

#admin .admin-table {
  min-width: 920px;
}

#admin .admin-table th,
#admin .admin-table td {
  border-bottom: 1px solid var(--admin-line-2);
  padding: 10px 12px;
  color: var(--admin-text-1);
  font-size: 12px;
}

#admin .admin-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--admin-text-2);
  letter-spacing: 0.08em;
  font-size: 10px;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 1;
}

#admin .admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

#admin .admin-mini-input {
  border-radius: 10px;
  border: 1px solid var(--admin-line-2);
  background: rgba(255, 255, 255, 0.02);
  color: var(--admin-text-1);
  max-width: 210px;
}

#admin .admin-mini-input:focus {
  border-color: rgba(245, 199, 106, 0.58);
  box-shadow: 0 0 0 2px rgba(245, 199, 106, 0.14);
}

#admin .admin-btns {
  gap: 6px;
}

#admin .admin-btns .btn-ios {
  min-height: 34px;
  font-size: 12px;
  padding: 7px 11px;
}

#admin .admin-inline-row {
  gap: 8px;
  align-items: stretch;
}

#admin .admin-inline-row .admin-input {
  flex: 1;
}

#admin .admin-card {
  border: 1px solid var(--admin-line-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

#admin #adminPaymentsContainer {
  margin-top: 8px;
}

#admin #adminPaymentsContainer .admin-card {
  padding: 16px !important;
}

#admin #adminPaymentsContainer .admin-card h4 {
  margin: 0 0 10px;
  color: var(--admin-text-1);
  font-size: 14px;
}

#admin #adminRouletteItemsTable .admin-mini-input {
  max-width: 160px;
}

#admin .admin-kebab {
  border-radius: 10px;
  border: 1px solid var(--admin-line-2);
  background: rgba(255, 255, 255, 0.03);
}

#admin .admin-kebab:hover {
  border-color: var(--admin-accent-soft);
}

#admin .admin-menu {
  border-radius: 12px;
  border: 1px solid var(--admin-line-1);
  background: rgba(8, 8, 10, 0.98);
}

#admin .admin-menu-item {
  font-size: 12px;
}

#admin .admin-menu-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

#admin input[type="checkbox"] {
  accent-color: #f0d9a6;
}

/* Admin modal redesign */
.admin-modal {
  z-index: 12000;
}

.admin-modal-overlay {
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.66);
}

.admin-modal-card {
  max-width: 980px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(120% 130% at 10% 0%, rgba(255, 255, 255, 0.09), transparent 52%),
    radial-gradient(140% 150% at 100% 0%, rgba(245, 199, 106, 0.07), transparent 60%),
    rgba(10, 10, 12, 0.96);
}

.admin-modal-head {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.admin-modal-title {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.96);
}

.admin-modal-x {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}

.admin-modal-body {
  padding: 16px;
}

.admin-modal-foot {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-toast {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 12, 14, 0.88);
}

.admin-toast.success {
  border-color: rgba(61, 201, 126, 0.4);
}

.admin-toast.error {
  border-color: rgba(239, 68, 68, 0.42);
}

@media (max-width: 1080px) {
  #admin .admin-topbar {
    grid-template-columns: 1fr;
  }

  #admin .admin-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  #admin .admin-table {
    min-width: 840px;
  }

  #admin .admin-summary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  #admin {
    padding-top: 98px !important;
    padding-bottom: 54px !important;
  }

  #admin .admin-panel {
    border-radius: 16px;
    padding: 12px;
  }

  #admin .admin-page-subtitle {
    font-size: 12px;
  }

  #admin .admin-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  #admin .admin-tabs::-webkit-scrollbar {
    display: none;
  }

  #admin .admin-tab {
    flex: 0 0 auto;
    padding: 8px 11px;
    font-size: 12px;
  }

  #admin .admin-views .admin-view {
    padding: 11px;
    border-radius: 12px;
  }

  #admin .admin-summary-head {
    flex-direction: column;
    align-items: stretch;
  }

  #admin .admin-summary-head .btn-ios {
    width: 100%;
  }

  #admin .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  #admin .admin-toolbar>* {
    width: 100%;
    max-width: none !important;
  }

  #admin .admin-grid-2 {
    grid-template-columns: 1fr;
  }

  #admin .admin-btns {
    flex-direction: column;
    align-items: stretch;
  }

  #admin .admin-btns .btn-ios {
    width: 100%;
  }

  #admin .admin-table {
    min-width: 680px;
  }

  #admin .admin-summary-transactions {
    padding: 10px;
  }

  #admin .admin-summary-transactions-head h4 {
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  #admin .admin-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  #admin .admin-badge {
    font-size: 11px;
    padding: 7px 10px;
  }

  #admin .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  #admin .admin-summary-metrics {
    grid-template-columns: 1fr;
  }

  #admin .admin-stat-card {
    padding: 14px;
  }

  #admin .admin-table th,
  #admin .admin-table td {
    padding: 8px 10px;
  }

  #admin .admin-mini-input {
    max-width: 140px;
    min-width: 72px;
  }

  .admin-modal-card {
    width: calc(100% - 8px);
    margin: 2vh auto;
    border-radius: 14px;
    max-height: 96vh;
  }

  .admin-modal-head,
  .admin-modal-body,
  .admin-modal-foot {
    padding: 10px;
  }

  .admin-modal-foot {
    flex-direction: column;
  }

  .admin-modal-foot .btn-ios {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #admin .admin-views .admin-view.active {
    animation: none !important;
  }
}
