/* ============================================================
   PLAYSTATION DARK GLASSMORPHIC THEME (MOBILE FIRST)
   ============================================================ */

:root {
  --bg-primary: #0a0d14;
  --bg-surface: #121722;
  --bg-surface-elevated: #1a2233;
  --bg-glass: rgba(18, 23, 34, 0.88);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 112, 209, 0.35);

  --accent-blue: #0070d1;
  --accent-blue-hover: #0082f3;
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.4);
  --accent-green: #10b981;
  --accent-red: #ef4444;

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --safe-bottom: env(safe-area-inset-bottom, 16px);
  --app-max-width: 1280px;
}

/* ============================================================
   LIGHT THEME VARIABLES & COMPREHENSIVE OVERRIDES
   ============================================================ */
body.light-theme {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.94);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(0, 112, 209, 0.2);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
}

/* Header & Controls in Light Theme */
body.light-theme .app-header {
  background: var(--bg-glass);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .user-meta .user-name {
  color: #0f172a;
}

body.light-theme .btn-header-support {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

/* Subscription Cards (Deluxe & EA Play) */
body.light-theme .sub-card {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

body.light-theme .sub-card.deluxe {
  background: linear-gradient(145deg, #fffdfa 0%, #ffffff 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
}

body.light-theme .sub-card.eaplay {
  background: linear-gradient(145deg, #fffafa 0%, #ffffff 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

body.light-theme .sub-name {
  color: #0f172a;
}

body.light-theme .sub-duration {
  color: #64748b;
}

body.light-theme .sub-benefits li {
  color: #334155;
  font-weight: 500;
}

body.light-theme .sub-benefits li b {
  color: #0f172a;
}

body.light-theme .sub-benefits li span.check {
  color: #059669;
  font-weight: 800;
}

body.light-theme .price-box .price-label {
  color: #64748b;
}

body.light-theme .price-box .price-val {
  color: #0f172a !important;
  font-weight: 800;
}

body.light-theme .btn-catalog-list {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

body.light-theme .btn-catalog-list:active {
  background: #e2e8f0;
}

/* Posters & Gallery (No more dark squares in light theme!) */
body.light-theme .game-poster-wrapper {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

body.light-theme .detail-poster-wrapper {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

body.light-theme .screenshot-thumb-item {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Game Cards & Prices in Light Theme */
body.light-theme .game-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

body.light-theme .game-card:hover {
  border-color: rgba(0, 112, 209, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

body.light-theme .game-title {
  color: #0f172a;
}

body.light-theme .game-price {
  color: #0f172a !important;
  font-weight: 800;
}

body.light-theme .game-price.sale-price,
body.light-theme .game-price[style*="gold"] {
  color: #b45309 !important;
  font-weight: 800;
}

body.light-theme .game-old-price-strike {
  color: #94a3b8;
}

body.light-theme .tag-platform {
  background: #e2e8f0;
  color: #475569;
}

body.light-theme .game-card.recommended-card {
  border: 1.5px solid rgba(245, 158, 11, 0.6);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.16);
}

/* Search, Filter Pills & Chips */
body.light-theme .search-input {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

body.light-theme .console-pill {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

body.light-theme .console-pill.active {
  background: linear-gradient(135deg, var(--accent-blue), #0056b3);
  color: #ffffff;
}

body.light-theme .chip {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

body.light-theme .chip.active {
  background: var(--accent-blue);
  color: #ffffff;
}

/* Recommendations Hero Banner */
body.light-theme .recommended-hero-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #f0f9ff 100%);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08);
}

body.light-theme .recommended-hero-title {
  color: #0f172a;
}

body.light-theme .recommended-hero-desc {
  color: #475569;
}

body.light-theme .rec-feat-chip {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Modals in Light Theme */
body.light-theme .modal-sheet {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
}

body.light-theme .modal-sheet-handle {
  background: rgba(0, 0, 0, 0.15);
}

body.light-theme .modal-title,
body.light-theme .detail-section-title,
body.light-theme .spec-val {
  color: #0f172a;
}

body.light-theme .detail-new-price {
  color: #0f172a !important;
  font-weight: 800;
}

body.light-theme .detail-new-price.sale-price {
  color: #b45309 !important;
}

body.light-theme .detail-price-row,
body.light-theme .spec-card,
body.light-theme .detail-desc-text,
body.light-theme .lock-step-item,
body.light-theme .cart-item-row,
body.light-theme .order-summary-box {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-theme .spec-label {
  color: #64748b;
}

body.light-theme .detail-desc-text,
body.light-theme .lock-step-text,
body.light-theme .cart-item-title {
  color: #334155;
}

body.light-theme .modal-timer-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.06));
  border-color: rgba(245, 158, 11, 0.4);
}

body.light-theme .timer-caption {
  color: #92400e;
}

body.light-theme .modal-timer-digits {
  color: #b45309;
  background: #ffffff;
  border-color: rgba(245, 158, 11, 0.4);
}

/* Lock Banner */
body.light-theme .lock-banner {
  background: linear-gradient(135deg, #fef2f2, #eff6ff);
  border-color: rgba(239, 68, 68, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

body.light-theme .lock-banner-title {
  color: #0f172a;
}

body.light-theme .lock-banner-sub {
  color: #475569;
}

body.light-theme .console-tab-btn {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.08);
  color: #475569;
}

body.light-theme .console-tab-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
}

/* Requisites & Payment */
body.light-theme .requisites-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

body.light-theme #activeBankName {
  color: #0f172a !important;
}

body.light-theme .req-label {
  color: #64748b;
}

body.light-theme .req-value-row {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .req-val-text {
  color: #0f172a;
}

body.light-theme .receipt-upload-box {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.15);
}

body.light-theme #receiptUploadPlaceholder div:nth-child(2) {
  color: #0f172a !important;
}

/* Bottom Navigation */
body.light-theme .bottom-nav {
  background: var(--bg-glass);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .card-countdown-badge {
  background: rgba(255, 255, 255, 0.94);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.45;
  user-select: none;
  -webkit-user-select: none;
  overflow-x: hidden;
  padding-bottom: calc(75px + var(--safe-bottom));
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border-radius: 4px;
}

/* ============================================================
   HEADER & USER BADGE
   ============================================================ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0070d1, #7928ca);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-meta .user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.user-meta .user-role {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.btn-header-support {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-header-support:active {
  transform: scale(0.92);
}

/* ============================================================
   BANNER: LOCK GUIDE (ЗАМОК)
   ============================================================ */
.lock-banner {
  margin: 12px 16px 8px 16px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(0, 112, 209, 0.15));
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.lock-banner:active {
  transform: scale(0.98);
}

.lock-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lock-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.lock-banner-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.lock-banner-sub {
  font-size: 11px;
  color: #cbd5e1;
}

.lock-arrow {
  color: var(--text-secondary);
  font-size: 18px;
}

/* ============================================================
   MAIN CONTAINER & SECTIONS
   ============================================================ */
.main-content {
  width: 100%;
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding: 8px 16px;
}

.section-page {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.section-page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Titles */
.section-head {
  margin: 12px 0 16px 0;
}

.section-head h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.section-head p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ============================================================
   SUBSCRIPTION CARDS (PS PLUS & EA PLAY)
   ============================================================ */
.sub-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .sub-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.sub-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sub-card.deluxe {
  background: linear-gradient(145deg, #181d2c 0%, #111520 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.sub-card.eaplay {
  background: linear-gradient(145deg, #1b1625 0%, #111019 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.sub-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.sub-card.deluxe .sub-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
}

.sub-card.eaplay .sub-badge {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
}

.sub-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sub-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.sub-card.deluxe .sub-icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
}

.sub-card.eaplay .sub-icon {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

.sub-name {
  font-size: 17px;
  font-weight: 800;
}

.sub-duration {
  font-size: 12px;
  color: var(--text-secondary);
}

.sub-benefits {
  list-style: none;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-benefits li {
  font-size: 12px;
  color: #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.sub-benefits li span.check {
  color: var(--accent-green);
  font-weight: 800;
}

.sub-pricing {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-glass);
  padding-top: 14px;
}

.price-box .price-label {
  font-size: 11px;
  color: var(--text-secondary);
}

.price-box .price-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.sub-actions {
  display: flex;
  gap: 8px;
}

.btn-catalog-list {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-buy-sub {
  background: linear-gradient(135deg, var(--accent-blue), #00439c);
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 112, 209, 0.4);
  transition: all 0.2s;
}

.btn-buy-sub:active, .btn-catalog-list:active {
  transform: scale(0.95);
}

/* ============================================================
   CATALOG & SEARCH
   ============================================================ */
.search-container {
  margin-bottom: 14px;
  position: relative;
}

.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 16px 12px 42px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: var(--accent-blue);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
}

.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.chip.active {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

/* ============================================================
   RECOMMENDED HERO BANNER & CHIPS
   ============================================================ */
.recommended-hero-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(0, 112, 209, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.12);
}

.recommended-hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.recommended-hero-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.recommended-hero-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.recommended-features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rec-feat-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

body.light-theme .rec-feat-chip {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

/* Games Grid - Fluid Fullscreen Responsive */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 520px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
  }
}

@media (min-width: 820px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
    gap: 18px;
  }
}

@media (min-width: 1100px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }
}

/* Game Card with Smooth Scale & Press Feedback */
.game-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-3px) scale(1.015);
  border-color: rgba(0, 112, 209, 0.4);
}

.game-card:active {
  transform: scale(0.96);
  transition: transform 0.08s ease;
}

/* Card Recommendation badge */
.game-card.recommended-card {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.2);
}

.game-rec-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
}

.game-poster-wrapper {
  position: relative;
  width: 100%;
  padding-top: 133%; /* 3:4 aspect ratio */
  background: #1e2433;
  overflow: hidden;
}

.game-poster-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.game-info {
  padding: 10px 10px 12px 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-platform-tags {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.tag-platform {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
}

.tag-ru {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
}

.game-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  height: 33px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.game-bottom-row {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.game-price.sale-price {
  color: var(--accent-gold);
}

.btn-add-cart-mini {
  background: var(--accent-blue);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-cart-mini:active {
  transform: scale(0.9);
}

/* ============================================================
   IN-STOCK (В НАЛИЧИИ СО СКЛАДА + БОНУСНАЯ СИСТЕМА)
   ============================================================ */
.stock-promo-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(0, 112, 209, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.stock-promo-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stock-promo-text {
  font-size: 12px;
  color: #e2e8f0;
  margin-top: 4px;
}

.stock-progress-container {
  margin-top: 10px;
}

.stock-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.stock-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-gold), #10b981);
  transition: width 0.4s ease;
}

.stock-progress-hint {
  font-size: 11px;
  color: var(--accent-gold);
  margin-top: 4px;
  font-weight: 600;
}

/* ============================================================
   CART & CHECKOUT
   ============================================================ */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.cart-item-row {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 65%;
}

.cart-item-icon {
  font-size: 20px;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-meta {
  font-size: 11px;
  color: var(--text-secondary);
}

.cart-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 800;
}

.btn-remove-item {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.btn-remove-item:active {
  color: var(--accent-red);
}

/* Order Summary Box */
.order-summary-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
}

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

.summary-row.discount-row {
  color: var(--accent-gold);
  font-weight: 700;
}

.summary-row.total-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-glass);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.total-value {
  font-size: 20px;
  color: var(--accent-green);
}

/* Bank Selection */
.payment-section {
  margin-bottom: 24px;
}

.payment-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bank-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.bank-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 4px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.bank-tab-btn.active {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-blue);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 112, 209, 0.3);
}

/* Bank Details Card */
.requisites-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.req-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.req-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 10px;
}

.req-val-text {
  font-family: monospace;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.btn-copy-req {
  background: var(--accent-blue);
  border: none;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-req:active {
  transform: scale(0.92);
}

/* QR Code Section */
.qr-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border-radius: var(--radius-md);
  margin: 12px 0;
}

.qr-preview-box img {
  width: 170px;
  height: 170px;
  object-fit: contain;
}

.qr-caption {
  font-size: 11px;
  color: #334155;
  font-weight: 600;
  margin-top: 6px;
}

/* Receipt Upload Box */
.receipt-upload-box {
  background: var(--bg-surface);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.receipt-upload-box:hover {
  border-color: var(--accent-blue);
}

.receipt-preview-img {
  max-width: 100%;
  max-height: 140px;
  border-radius: 8px;
  display: none;
  margin: 0 auto 8px auto;
}

/* Big Checkout Button */
.btn-checkout-primary {
  width: 100%;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #fff;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  transition: transform 0.2s, opacity 0.2s;
}

.btn-checkout-primary:active {
  transform: scale(0.98);
}

.btn-checkout-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   BOTTOM NAVIGATION BAR
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 12px calc(8px + var(--safe-bottom)) 12px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  position: relative;
  cursor: pointer;
  transition: color 0.2s ease;
  min-width: 60px;
}

.nav-item.active {
  color: var(--accent-blue);
}

.nav-icon {
  font-size: 20px;
}

.nav-badge-pill {
  position: absolute;
  top: -2px;
  right: 10px;
  background: var(--accent-red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--radius-full);
}

/* ============================================================
   MODALS (LOCK GUIDE & GAME DETAILS)
   ============================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.modal-overlay.active {
  display: flex;
}

.modal-sheet {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 20px 18px calc(24px + var(--safe-bottom)) 18px;
  position: relative;
  animation: modalSpringUp 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, opacity;
}

@keyframes modalSpringUp {
  0% {
    opacity: 0;
    transform: translateY(70px) scale(0.92);
  }
  65% {
    opacity: 1;
    transform: translateY(-8px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 768px) {
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
  .modal-sheet {
    border-radius: var(--radius-lg);
    max-width: 620px;
    max-height: 85vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  }
  .bottom-nav {
    max-width: 580px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
  }
}

.modal-sheet-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto 16px auto;
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Console Switcher Tabs in Lock Modal */
.console-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.console-tab-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.console-tab-btn.active {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

.lock-step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lock-step-item {
  display: flex;
  gap: 12px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  padding: 12px;
}

.lock-step-num {
  width: 26px;
  height: 26px;
  background: var(--accent-blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

.lock-step-text {
  font-size: 13px;
  color: #f1f5f9;
  line-height: 1.35;
}

/* Toast */
.toast-msg {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 185, 129, 0.95);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 999;
  display: none;
  animation: fadeIn 0.2s ease-out;
}

/* ============================================================
   CONSOLE PLATFORM SELECTOR BAR & FILTERS
   ============================================================ */
.console-selector-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.console-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  padding: 9px 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.console-pill.active {
  background: linear-gradient(135deg, var(--accent-blue), #00439c);
  color: #fff;
  border-color: rgba(0, 112, 209, 0.6);
  box-shadow: 0 4px 12px rgba(0, 112, 209, 0.35);
}

.card-countdown-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--accent-gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 6px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.game-old-price-strike {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 4px;
}

/* ============================================================
   RICH GAME DETAIL MODAL
   ============================================================ */
.detail-poster-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  background: #1e2433;
}

.detail-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-timer-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.timer-box-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timer-caption {
  font-size: 12px;
  color: #fde68a;
  font-weight: 700;
}

.modal-timer-digits {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-gold);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.detail-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.price-figures {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}

.detail-old-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.detail-new-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.detail-new-price.sale-price {
  color: var(--accent-gold);
}

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

/* Screenshots horizontal gallery */
.screenshots-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.screenshot-thumb-item {
  flex-shrink: 0;
  width: 220px;
  height: 125px;
  border-radius: var(--radius-md);
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--border-glass);
  background: #1a2233;
}

.screenshot-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.screenshot-thumb-item img:active {
  transform: scale(1.04);
}

/* Specs 2x2 Grid */
.detail-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}

.spec-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.spec-icon {
  font-size: 20px;
}

.spec-label {
  font-size: 10px;
  color: var(--text-secondary);
}

.spec-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-desc-text {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
  background: var(--bg-surface-elevated);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}
