@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@300;400;500;700&display=swap');

/* ========== VARIABLES ========== */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #181818;
  --bg-card-hover: #1c1c1c;
  --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: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 70%),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.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;
}

@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;
}

.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: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-summary {
  position: sticky;
  top: 90px;
  padding: 28px;
  border-color: var(--border);
  background: var(--bg-card);
}

.cart-summary h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.empty-cart {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 40px 0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-emoji {
  font-size: 32px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: 14px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 13px;
  color: var(--text-secondary);
}

.cart-item-remove {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.cart-item-remove:hover {
  background: rgba(239, 68, 68, 0.2);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 700;
}

.cart-total #cartTotal {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}

.cart-total #cartTotal .old-price {
  font-size: 13px;
  line-height: 1.2;
  color: var(--text-muted);
  font-weight: 400;
  text-decoration: line-through;
}

.cart-payment-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.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-card-wrap {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-main-card {
  padding: 0 0 24px;
  overflow: hidden;
}

.profile-orders-card {
  padding: 24px;
}

.profile-banner {
  position: relative;
  height: 110px;
  margin-bottom: 48px;
}

.profile-banner-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.04) 100%);
}

.profile-avatar-wrap {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
}

.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);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

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

.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;
  }

  .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;
  }

  .cart-summary {
    position: static;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .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;
  }

  .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-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-summary {
    position: static;
    padding: 18px;
    border-radius: 16px;
  }

  .cart-item {
    align-items: flex-start;
    gap: 12px;
  }

  .cart-item-name {
    white-space: normal;
  }

  .cart-total {
    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: 14px;
    bottom: -30px;
  }

  .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-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;
  }
}
