/* ===== LUMAYN APPSTORE — Apple-style, Mobile-first ===== */

/* --- Martian Grotesk (self-hosted) --- */
@font-face {
  font-family: 'Martian Grotesk';
  src: url('/fonts/MartianGrotesk-xWdBl.otf') format('opentype');
  font-weight: 900;
  font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #007AFF;
  --blue-light: #5AC8FA;
  --blue-dark: #0051D5;
  --bg: #FFFFFF;
  --bg-secondary: #F5F5F7;
  --text-primary: #1D1D1F;
  --text-secondary: #86868B;
  --text-tertiary: #AEAEB2;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(0, 122, 255, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: 0.4s cubic-bezier(0, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Martian Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: opacity var(--transition);
}

a:active {
  opacity: 0.7;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Glass Effect --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 122, 255, 0.12);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 6px 12px;
  transition: background var(--transition), box-shadow var(--transition);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  width: calc(100% - 20px);
  max-width: 440px;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-logo-img {
  height: 26px;
  width: 26px;
  border-radius: 6px;
  object-fit: cover;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.navbar-links a {
  padding: 7px 12px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--blue);
  background: rgba(0, 122, 255, 0.15);
}

/* --- Hero Section --- */
.hero {
  padding: 120px 20px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Strong smooth fade so orbs/stars fully dissolve into body background */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0,0,0,0.5) 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0,0,0,0.5) 80%, transparent 100%);
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  will-change: transform;
}

.hero-orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(0, 122, 255, 0.25);
  top: -60px;
  left: -40px;
  animation: orbFloat1 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 250px;
  height: 250px;
  background: rgba(90, 200, 250, 0.22);
  top: -30px;
  right: -60px;
  animation: orbFloat2 10s ease-in-out infinite;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(0, 81, 213, 0.18);
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  animation: orbFloat3 12s ease-in-out infinite;
}

/* Page-level orbs (game, orders, support pages) */
.page-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, 20px) scale(1.05); }
  66% { transform: translate(-15px, 10px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 15px) scale(0.95); }
  66% { transform: translate(15px, -10px) scale(1.08); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translateX(-50%) translate(0, 0) scale(1); }
  50% { transform: translateX(-50%) translate(20px, -15px) scale(1.1); }
}

.hero-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

/* Hero Game Carousel Background */
.hero-carousel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 600px;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.7s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 70%);
}

.hero-carousel.loaded {
  opacity: 0.15;
}

.hero-carousel-row {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
  animation-play-state: paused;
}

.hero-carousel.loaded .hero-carousel-row {
  animation-play-state: running;
}

.hero-carousel-row-1 {
  animation: heroCarouselLeft 40s linear infinite;
}

.hero-carousel-row-2 {
  animation: heroCarouselRight 45s linear infinite;
}

@keyframes heroCarouselLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

@keyframes heroCarouselRight {
  0% { transform: translateX(-33.333%); }
  100% { transform: translateX(0); }
}

.hero-carousel-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(0, 122, 255, 0.08);
  margin-bottom: 20px;
}

.hero-logo {
  width: 200px;
  height: auto;
  border-radius: 0;
  margin: 0 auto -20px;
  box-shadow: none;
  background: transparent;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 24px rgba(0,122,255,0.15));
  animation: mascotSway 4s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes mascotSway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  75% { transform: rotate(-3deg); }
}

@media (min-width: 600px) {
  .hero-logo {
    width: 240px;
    margin-bottom: -30px;
  }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--blue-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 4px;
  margin-bottom: 0;
}

.scroll-chevron {
  opacity: 0.7;
  animation: chevronBounce 2s ease-in-out infinite;
}

.scroll-chevron-2 {
  margin-top: -10px;
  opacity: 0.45;
  animation: chevronBounce 2s ease-in-out infinite 0.15s;
}

@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(6px); opacity: 0.35; }
}

.scroll-chevron-2 {
  animation-name: chevronBounce2;
}

@keyframes chevronBounce2 {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(6px); opacity: 0.2; }
}

/* --- Game Cards --- */
.games-section {
  padding: 20px 0 40px;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ─────────── Centered glass cards, one per row (prod-feel, polished) ─────────── */
.games-list-as {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  color-scheme: light;
}
.games-list-as-name { color: #1d1d1f !important; }
.games-list-as-sub { color: #515154 !important; }
.games-list-as-price { color: var(--blue) !important; }
.games-list-as-price-old { color: #86868b !important; }
.games-list-as-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px 18px 18px;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius, 22px);
  box-shadow:
    0 4px 24px rgba(0, 122, 255, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.games-list-as-row:hover {
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(0, 122, 255, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.games-list-as-row-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* Icon — big rounded square, centered, App Store style */
.games-list-as-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.10),
    0 0 0 0.5px rgba(0, 0, 0, 0.05);
  margin-bottom: 4px;
}

/* Meta block — centered name + price */
.games-list-as-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.games-list-as-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.games-list-as-name {
  font-family: var(--font);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.25;
}
.games-list-as-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  background: rgba(0, 122, 255, 0.10);
  color: var(--blue);
  letter-spacing: 0.02em;
}
.games-list-as-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.games-list-as-price-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  flex-wrap: wrap;
}
.games-list-as-price {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
}
.games-list-as-price-old {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.games-list-as-discount {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 5px;
  background: rgba(52, 199, 89, 0.14);
  color: #34c759;
  letter-spacing: 0.02em;
}

/* Buy button — full-width solid blue pill below the row (matches Оплатить) */
.games-list-as-buy-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 11px 16px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff !important;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.28);
  transition: box-shadow 0.18s ease, transform 0.12s ease;
}
.games-list-as-row:hover .games-list-as-buy-btn {
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.42);
  transform: translateY(-1px);
}
.games-list-as-row:active .games-list-as-buy-btn {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .games-list-as {
    padding: 0 12px;
    max-width: 100%;
    margin: 0;
    gap: 12px;
  }
  .games-list-as-row {
    gap: 8px;
    padding: 20px 14px 16px;
    border-radius: 20px;
  }
  .games-list-as-row-top { gap: 8px; }
  .games-list-as-icon { width: 72px; height: 72px; border-radius: 18px; }
  .games-list-as-name { font-size: 0.98rem; }
  .games-list-as-sub { font-size: 0.76rem; }
  .games-list-as-price { font-size: 1rem; }
  .games-list-as-price-old { font-size: 0.78rem; }
  .games-list-as-discount { font-size: 0.65rem; padding: 1px 5px; }
  .games-list-as-buy-btn { padding: 9px 12px; font-size: 0.86rem; }
}

/* Skeleton loading variants */
.games-list-as-icon-skel {
  width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0;
}
.games-list-as-meta-skel {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px;
}
.games-list-as-cta-skel {
  width: 80px; height: 28px; border-radius: 100px; flex-shrink: 0;
}
.games-list-as-cta-skel-wide {
  width: 100%; height: 36px; border-radius: 100px;
}

/* Site is always light-theme — no dark mode override for .games-list-as */

/* ─────────── Compact card grid (icon + name + price + buy below) ─────────── */
.games-grid-mini {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
  color-scheme: light;
}
.games-grid-mini-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 18px;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  padding: 16px 14px 14px;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(0, 30, 90, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.games-grid-mini-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 122, 255, 0.25);
  box-shadow: 0 10px 28px rgba(0, 30, 90, 0.10), 0 1px 3px rgba(0, 0, 0, 0.04);
}
.games-grid-mini-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.games-grid-mini-icon {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10), 0 0 0 0.5px rgba(0, 0, 0, 0.05);
  margin-bottom: 4px;
}
.games-grid-mini-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.games-grid-mini-name {
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  color: #1d1d1f !important;
  line-height: 1.25;
}
.games-grid-mini-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(0, 122, 255, 0.10);
  color: var(--blue);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.games-grid-mini-price-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.games-grid-mini-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
}
.games-grid-mini-price-old {
  font-size: 0.78rem;
  color: #86868b !important;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.games-grid-mini-discount {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(52, 199, 89, 0.14);
  color: #34c759;
  letter-spacing: 0.02em;
}
.games-grid-mini-buy-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 14px;
  padding: 9px 14px;
  border-radius: 100px;
  background: rgba(0, 122, 255, 0.12);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.games-grid-mini-card:hover .games-grid-mini-buy-btn {
  background: var(--blue);
  color: #fff;
}
.games-grid-mini-card:active .games-grid-mini-buy-btn {
  transform: scale(0.97);
}

.games-grid-mini-icon-skel {
  width: 76px; height: 76px; border-radius: 16px; margin: 0 auto;
}
.games-grid-mini-cta-skel {
  width: 100%; height: 36px; border-radius: 100px; margin-top: 10px;
}

/* Tablet / mobile */
@media (max-width: 600px) {
  .games-grid-mini {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 12px;
  }
  .games-grid-mini-card { padding: 14px 10px 12px; border-radius: 16px; }
  .games-grid-mini-icon { width: 64px; height: 64px; border-radius: 14px; }
  .games-grid-mini-name { font-size: 0.92rem; }
  .games-grid-mini-price { font-size: 0.95rem; }
  .games-grid-mini-price-old { font-size: 0.74rem; }
  .games-grid-mini-discount { font-size: 0.62rem; padding: 1px 5px; }
  .games-grid-mini-buy-btn { font-size: 0.84rem; padding: 8px 10px; margin-top: 10px; }
}

/* Bulletproof: game cards are always visible regardless of JS/IO state */
.game-card.fade-in { opacity: 1 !important; transform: none !important; }

.game-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 4px 24px rgba(0, 122, 255, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.game-card:hover {
  transform: none;
}

.game-card.has-banner {
  padding-top: 0;
}

.game-card-banner {
  position: relative;
  width: calc(100% + 48px);
  margin: 0 -24px;
  height: 140px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.game-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card-banner-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.3) 40%, rgba(255,255,255,0.45) 100%);
  pointer-events: none;
}

.game-card.has-banner .game-icon-img {
  margin-top: -36px;
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15), 0 8px 30px rgba(0,122,255,0.18);
}

.game-card.has-banner .game-badges {
  z-index: 3;
  position: absolute;
  top: 10px;
  right: 10px;
}

.game-card.has-banner .game-badge {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.game-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 70%;
  z-index: 2;
}

.game-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  letter-spacing: 0.01em;
}


.game-icon-img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 16px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 8px 30px rgba(0, 122, 255, 0.18);
  transition: transform var(--spring), box-shadow var(--transition);
  animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconGlow {
  0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 8px 30px rgba(0, 122, 255, 0.15); }
  50% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 12px 40px rgba(0, 122, 255, 0.3); }
}


.game-icon-img.large {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin: 0 auto 12px;
}

.game-card h3 {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.game-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.game-card .btn {
  width: 100%;
}

/* --- Price Row --- */
.game-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.game-price-current {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.game-price-old {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.game-discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(0, 122, 255, 0.1);
  color: var(--blue);
  letter-spacing: 0.01em;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

/* Touch devices: disable hover to avoid iOS double-tap pattern */
@media (hover: none), (pointer: coarse) {
  .btn-primary:hover {
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
    transform: none;
  }
  .game-card:hover { transform: none; }
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(0, 122, 255, 0.5);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

/* Shine sweep effect for buy button */
.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,0.15) 45%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0.15) 55%,
    transparent 80%
  );
  animation: btnShine 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btnShine {
  0% { left: -100%; }
  60% { left: 150%; }
  100% { left: 150%; }
}

.btn-secondary {
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
}

.btn-secondary:active {
  background: rgba(0, 122, 255, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid rgba(0, 122, 255, 0.3);
}

.btn-outline:active {
  background: rgba(0, 122, 255, 0.05);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
  min-height: 40px;
}

.btn-block {
  width: 100%;
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-with-icon svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.btn-with-icon span {
  line-height: 1;
}

/* --- Access Page --- */
.access-page {
  padding: 100px 20px 40px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.access-card {
  width: 100%;
  max-width: 420px;
  padding: 32px 24px;
  text-align: center;
}

.access-card .game-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(0, 122, 255, 0.08);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 20px;
}

.access-card h2 {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.access-card .subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.credential-box {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.05),
    0 1px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.credential-box label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
  flex-shrink: 0;
  width: 56px;
}

.credential-box .cred-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.credential-box .value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
  user-select: all;
}

.credential-box .copy-btn {
  padding: 8px;
  background: rgba(0, 122, 255, 0.08);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--blue);
  font-size: 0.85rem;
  transition: all var(--transition);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.credential-box .copy-btn:active {
  transform: scale(0.92);
  background: rgba(0, 122, 255, 0.15);
}

.timer-section {
  margin-top: 24px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.05),
    0 1px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.timer-section .timer-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.timer-section .timer-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  font-family: 'SF Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

/* --- Expired Page --- */
.expired-page {
  padding: 100px 20px 40px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.expired-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 59, 48, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
}

.expired-page h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.expired-page p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* --- Game Detail Page --- */
.game-detail {
  padding: 100px 20px 20px;
  max-width: 480px;
  margin: 0 auto;
}

.game-detail-header {
  text-align: center;
  margin-bottom: 16px;
}

.game-detail-header h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.game-detail-header .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
}

.game-detail-body {
  padding: 24px;
  margin-bottom: 24px;
}

.game-detail-body p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
}

.game-detail-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 122, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-row span {
  color: var(--text-secondary);
}

/* SVG icon animations */

.icon-bolt svg {
  animation: boltFlash 3s ease-in-out infinite;
}

@keyframes boltFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
  75% { opacity: 1; }
  80% { opacity: 0.6; }
}

/* Status dot */
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34C759;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(52, 199, 89, 0); }
}

/* Wave icon in chat prompt */
.wave-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* Copy button success state */
.copy-btn.copied {
  color: #34C759;
  border-color: rgba(52, 199, 89, 0.3);
}

.purchase-section {
  text-align: center;
  padding: 16px 0;
}

/* ─────────── Payment badges (under the buy button — trust signals) ─────────── */
.payment-badges {
  display: flex !important;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px auto 0;
  max-width: 400px;
  padding: 0 8px;
  list-style: none;
}
.payment-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  transition: transform 0.18s ease;
  flex: 0 0 auto;
}
.payment-badge:hover {
  transform: translateY(-1px);
}
.payment-badge img {
  height: 30px !important;
  width: auto !important;
  max-width: 50px;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}
.payment-badge.text {
  font-size: 0.74rem;
  font-weight: 600;
  color: #515154 !important;
  letter-spacing: 0.02em;
}
@media (max-width: 480px) {
  .payment-badges { gap: 10px; margin-top: 14px; max-width: 100%; padding: 0 12px; }
  .payment-badge img { height: 28px !important; max-width: 56px; }
}

.buy-btn-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 400px;
}

.buy-btn-wrapper .btn {
  width: 100%;
  max-width: 400px;
  padding: 16px 32px;
  font-size: 1.05rem;
}

.buy-btn-mascot {
  position: absolute;
  width: 100px;
  height: auto;
  top: -58px;
  right: 2px;
  pointer-events: none;
  z-index: 2;
  transform: rotate(12deg);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

/* Delivery steps on game page */
.delivery-steps {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.05),
    0 1px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.delivery-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.delivery-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.delivery-step:last-child {
  margin-bottom: 0;
}

.step-num {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0;
}

/* --- Chat Widget --- */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.35);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
  bottom: calc(24px + var(--safe-bottom));
}

.chat-fab:active {
  transform: scale(0.92);
}

.chat-fab .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FF3B30;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: 60px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.15);
}

.chat-modal.open {
  transform: translateY(0);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  padding-top: calc(14px + var(--safe-top));
  margin: 10px 10px 0;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.chat-header .status {
  font-size: 0.75rem;
  color: #34C759;
  font-weight: 500;
}

.chat-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  overflow-x: hidden;
}

.chat-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.45;
  animation: msgIn 0.25s ease-out;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 60px;
}

.chat-access-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 16px;
  background: var(--blue);
  color: white !important;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.chat-access-btn:hover { opacity: 0.85; }
.chat-access-btn:active { opacity: 0.7; }

@keyframes msgIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-message.user {
  align-self: flex-end;
  background: var(--blue);
  color: white;
  border-bottom-right-radius: 6px;
}

.chat-message.admin {
  align-self: flex-start;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-bottom-left-radius: 6px;
}

.chat-message .time {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 4px;
}

.chat-img {
  max-width: 100%;
  max-height: 240px;
  border-radius: 12px;
  cursor: pointer;
  object-fit: cover;
  display: block;
  margin-top: 4px;
}

/* Image viewer overlay */
.img-viewer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 24px;
}
.img-viewer-overlay.open { opacity: 1; }

.img-viewer-glass {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: imgViewerIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.img-viewer-overlay:not(.open) .img-viewer-glass {
  transform: scale(0.9);
}

@keyframes imgViewerIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.img-viewer-img {
  display: block;
  max-width: 85vw;
  max-height: 80vh;
  border-radius: 14px;
  object-fit: contain;
}

.img-viewer-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}
.img-viewer-close:hover { transform: scale(1.1); }

/* Chat alert overlay (liquid glass) */
.chat-alert-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.chat-alert-overlay.open { opacity: 1; }
.chat-alert-glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 24px 28px 20px;
  max-width: 260px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: scale(0.9);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chat-alert-overlay.open .chat-alert-glass { transform: scale(1); }
.chat-alert-text {
  margin: 0 0 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}
.chat-alert-ok {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 32px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.chat-alert-ok:active { transform: scale(0.95); opacity: 0.85; }

/* Random Box FAB */
.hidden { display: none !important; }
.rbox-fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  padding: 14px;
  border-radius: 16px;
  background: var(--blue);
  box-shadow: 0 4px 16px rgba(0,122,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.rbox-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(0,122,255,0.45);
}
.rbox-fab:active { transform: scale(0.95); }
.rbox-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,122,255,0.4);
  border: 2px solid #fff;
  line-height: 1;
}

.chat-attach-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.chat-attach-btn:active { transform: scale(0.9); }
.chat-attach-btn.uploading {
  opacity: 0.5;
  pointer-events: none;
  animation: pulse 1s infinite;
}
@keyframes pulse { 0%,100%{ opacity:0.5; } 50%{ opacity:0.2; } }

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  padding-bottom: calc(12px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.chat-input-area input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  font-family: var(--font);
  font-size: 16px;
  outline: none;
  transition: border-color var(--transition);
  background: var(--bg-secondary);
}

.chat-input-area input:focus {
  border-color: var(--blue);
  background: white;
}

.chat-send-btn {
  --cooldown-duration: 5s;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background 0.18s ease, transform 0.12s ease;
}
.chat-send-btn:active {
  transform: scale(0.92);
}
.chat-send-btn .chat-send-icon {
  transition: filter 0.2s ease;
  z-index: 1;
}
.chat-send-btn .chat-send-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transform: rotate(-90deg); /* start at top, sweep clockwise */
}
.chat-send-btn .chat-send-ring circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 125.66; /* 2π·20 */
  stroke-dashoffset: 125.66;
}

/* Chat name input */
.chat-name-prompt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px 20px;
  margin-top: -60px;
  text-align: center;
}

.chat-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  animation: chatStepIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes chatStepIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-step-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  animation: chatIconFloat 3s ease-in-out infinite;
}

@keyframes chatIconFloat {
  0%, 100% { transform: translateY(0); box-shadow: 0 4px 16px rgba(0, 122, 255, 0.08); }
  50% { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 122, 255, 0.15); }
}

.chat-name-prompt h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.chat-name-prompt p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 20px;
  line-height: 1.4;
}

.chat-name-prompt input,
.chat-name-prompt .chat-prompt-input {
  width: 100%;
  max-width: 260px;
  padding: 12px 18px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-family: var(--font);
  font-size: 15px;
  text-align: center;
  outline: none;
  margin-bottom: 10px;
  background: rgba(0,0,0,0.02);
  transition: border-color var(--transition), background var(--transition);
}

.chat-name-prompt input:focus,
.chat-name-prompt .chat-prompt-input:focus {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(0,122,255,0.08);
}

.chat-name-prompt .btn {
  margin-top: 6px;
  max-width: 260px;
  width: 100%;
}

/* --- Footer --- */
.footer {
  padding: 0 20px 40px;
  text-align: center;
  overflow: visible;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 32px;
}

.footer-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--blue-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(0,122,255,0.06);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.footer-social-link:hover {
  background: rgba(0,122,255,0.12);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

.footer-legal-links a {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--blue);
}

.footer-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  opacity: 0.7;
}

.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0.4;
}

/* --- Legal Pages --- */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 20px 60px;
  animation: legalFadeIn 0.6s ease both;
}

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

.legal-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4px;
}

.legal-updated {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-family: var(--font);
  font-feature-settings: "tnum" 0;
  -webkit-text-size-adjust: 100%;
  opacity: 0;
  transform: translateY(12px);
  animation: legalSectionIn 0.5s ease forwards;
}

.legal-content h2:nth-of-type(1) { animation-delay: 0.1s; }
.legal-content h2:nth-of-type(2) { animation-delay: 0.15s; }
.legal-content h2:nth-of-type(3) { animation-delay: 0.2s; }
.legal-content h2:nth-of-type(4) { animation-delay: 0.25s; }
.legal-content h2:nth-of-type(5) { animation-delay: 0.3s; }
.legal-content h2:nth-of-type(6) { animation-delay: 0.35s; }
.legal-content h2:nth-of-type(7) { animation-delay: 0.4s; }
.legal-content h2:nth-of-type(8) { animation-delay: 0.45s; }
.legal-content h2:nth-of-type(9) { animation-delay: 0.5s; }

.legal-content p, .legal-content ul {
  opacity: 0;
  animation: legalSectionIn 0.5s ease 0.3s forwards;
}

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

.legal-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 8px;
}

.legal-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 10px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-content li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--blue);
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 14px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow:
    0 8px 32px rgba(0,122,255,0.08),
    0 2px 8px rgba(0,0,0,0.06);
  max-width: 600px;
  width: auto;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-wrap: wrap;
    justify-content: center;
    width: calc(100% - 32px);
  }
}

.cookie-banner-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0,122,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-banner p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
  flex: 1;
  min-width: 160px;
}

.cookie-banner a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

.cookie-banner-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-accept {
  padding: 9px 18px;
  border-radius: 12px;
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cookie-accept:active {
  transform: scale(0.96);
}

.cookie-reject {
  padding: 9px 18px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.03);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

.cookie-reject:active {
  transform: scale(0.96);
}


/* --- Animations (iOS-style) --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.5s cubic-bezier(0, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }
.stagger-7 { transition-delay: 0.35s; }
.stagger-8 { transition-delay: 0.4s; }
.stagger-9 { transition-delay: 0.45s; }

.fade-in:nth-child(n+10) {
  transition-delay: 0.5s;
}

/* Game icon hover float */
.game-card.visible .game-icon-img {
  animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Price pulse on appear */
.game-card.visible .game-price-current {
  animation: pricePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

@keyframes pricePop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Discount badge bounce */
.game-card.visible .game-discount-badge {
  animation: badgeBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s both;
}

@keyframes badgeBounce {
  0% { transform: scale(0) rotate(-15deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(3deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}


/* Section title slide from left */
.section-title.fade-in {
  transform: translateX(-30px) translateY(0) scale(1);
}

.section-title.fade-in.visible {
  transform: translateX(0) translateY(0) scale(1);
}

/* FAQ items slide in from alternating sides */
.faq-item.fade-in:nth-child(odd) {
  transform: translateX(-20px);
}

.faq-item.fade-in:nth-child(even) {
  transform: translateX(20px);
}

.faq-item.fade-in.visible {
  transform: translateX(0);
}

/* Page transition handled by fade-in class + Intersection Observer */

/* Pulse animation for chat FAB */
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 122, 255, 0.35); transform: scale(1); }
  50% { box-shadow: 0 4px 30px rgba(0, 122, 255, 0.55); transform: scale(1.04); }
}

.chat-fab {
  animation: pulse 3s ease-in-out infinite;
}

/* Smooth button press */
.btn {
  transition: all var(--transition), transform 0.15s ease;
}

.btn:active {
  transform: scale(0.96);
}

/* Smooth link transitions */
a {
  transition: color var(--transition), opacity var(--transition), background var(--transition);
}

/* --- Admin Styles --- */
.admin-layout {
  min-height: 100vh;
  /* NB: animation removed — `transform: scale()` on the layout broke
     `position: fixed` for the top-nav (fixed children anchor to a transformed
     ancestor, not the viewport). That was the long-standing "topnav jumps on
     load" bug. If a fade-in is desired later, animate ONLY opacity. */
}

@keyframes adminFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.admin-layout.page-exit {
  animation: adminFadeOut 0.2s ease-in forwards;
}

@keyframes adminFadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.97); }
}

.admin-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04);
}

.admin-nav .title {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
  margin: 16px 20px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

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

.admin-tabs a {
  flex: 1;
  min-width: max-content;
  padding: 10px 16px;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.admin-tabs a:hover {
  color: var(--text-primary);
}

.admin-tabs a.active {
  background: rgba(255, 255, 255, 0.7);
  color: var(--blue);
  box-shadow: 0 1px 8px rgba(0, 122, 255, 0.1);
}

.admin-content {
  padding: 0 20px 40px;
  animation: adminSlideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.admin-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.05),
    0 1px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: box-shadow 0.3s ease;
}

.admin-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  text-align: center;
  padding: 16px 8px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.stat-card .number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
}

.stat-card .label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Admin forms */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
  background: var(--bg-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Admin chat list */
.chat-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 8px;
  margin: 0 -8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
  border-radius: var(--radius-xs);
  overflow: hidden;
  min-width: 0;
}

.chat-list-item:active {
  transform: scale(0.98);
  background: rgba(0, 122, 255, 0.04);
}

.chat-list-item:last-child {
  border-bottom: none;
}

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

.chat-list-item .name {
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-list-item .preview {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.chat-list-item .meta {
  text-align: right;
  flex-shrink: 0;
  margin-left: 12px;
}

.chat-list-item .time {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
}

.status-badge.open {
  background: rgba(52, 199, 89, 0.1);
  color: #34C759;
}

.status-badge.closed {
  background: rgba(142, 142, 147, 0.1);
  color: #8E8E93;
}

/* Admin login */
.admin-login {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg-secondary);
}

.login-card {
  width: 100%;
  max-width: 380px;
  padding: 40px 28px;
  text-align: center;
}

.login-card form {
  text-align: left;
}

.login-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.login-card .subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.login-card .error {
  color: #FF3B30;
  font-size: 0.85rem;
  margin-bottom: 16px;
  padding: 10px;
  background: rgba(255, 59, 48, 0.08);
  border-radius: var(--radius-xs);
}

/* Purchase table */
.purchase-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.purchase-table table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
}

.purchase-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.purchase-table td {
  padding: 12px 12px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.purchase-table .token {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Success alert */
.alert-success {
  padding: 12px 16px;
  background: rgba(52, 199, 89, 0.1);
  color: #34C759;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  animation: adminSlideUp 0.5s ease-out;
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 0.95rem;
}

/* Admin logo */
.admin-logo img {
  height: 28px;
  width: auto;
  display: block;
  border-radius: 6px;
}

/* Admin tabs with icons */
.admin-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.admin-tabs a svg {
  flex-shrink: 0;
}

/* Revenue grid */
.revenue-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.revenue-card {
  text-align: center;
  padding: 16px 8px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: adminSlideUp 0.4s ease-out both;
}

.revenue-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.revenue-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.06);
  margin: 0 auto 8px;
}

.revenue-amount {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.revenue-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Stat card icon */
.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.06);
  margin: 0 auto 8px;
}

/* Chart */
.chart-container {
  padding: 8px 0;
  overflow-x: auto;
}

.revenue-chart {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Payment badges */
.payment-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
}

.payment-badge.sbp {
  background: rgba(88, 86, 214, 0.1);
  color: #5856D6;
}

.payment-badge.transfer {
  background: rgba(255, 159, 10, 0.1);
  color: #FF9F0A;
}

/* Settings sections */
.settings-section {
  margin-bottom: 32px;
}

.settings-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.settings-section-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0;
}

/* Receipt Viewer Modal */
.receipt-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.receipt-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.receipt-viewer {
  background: white;
  border-radius: 20px;
  max-width: 520px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.receipt-overlay.open .receipt-viewer {
  transform: scale(1) translateY(0);
}
.receipt-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.receipt-viewer-title {
  font-weight: 700;
  font-size: 0.95rem;
}
.receipt-viewer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--text-secondary);
}
.receipt-viewer-close:hover {
  background: rgba(0, 0, 0, 0.1);
}
.receipt-viewer-body {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  max-height: calc(85vh - 65px);
}

/* Chat detail back link */
.chat-detail-back {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 20px;
}
.chat-detail-back a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
  padding: 6px 14px 6px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 12px rgba(0, 122, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.chat-detail-back a:hover { opacity: 0.7; }

/* Telegram-style chat detail */
.chat-detail-wrapper {
  display: flex;
  max-width: 900px;
  margin: 0 auto;
  height: calc(100vh - 110px);
  height: calc(100dvh - 110px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.chat-info-panel {
  width: 240px;
  flex-shrink: 0;
  padding: 24px 16px;
  border-right: none;
  overflow-y: auto;
  background: none;
  position: relative;
  z-index: 1;
}

.chat-info-panel .client-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.chat-main-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Orbs inside chat wrapper */
.chat-detail-orbs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.chat-detail-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.chat-detail-orbs .orb-1 {
  width: 280px;
  height: 280px;
  background: rgba(0, 122, 255, 0.12);
  top: -60px;
  left: -40px;
  animation: orbFloat1 8s ease-in-out infinite;
}
.chat-detail-orbs .orb-2 {
  width: 220px;
  height: 220px;
  background: rgba(90, 200, 250, 0.10);
  top: 50%;
  right: -30px;
  animation: orbFloat2 10s ease-in-out infinite;
}
.chat-detail-orbs .orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(0, 81, 213, 0.08);
  bottom: -40px;
  left: 30%;
  animation: orbFloat3 12s ease-in-out infinite;
}

.chat-main-panel .admin-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  overflow-x: hidden;
  touch-action: pan-y;
}

.chat-main-panel .admin-chat-input {
  touch-action: manipulation;
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.chat-main-panel .admin-chat-input input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  background: var(--bg-secondary);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.chat-main-panel .admin-chat-input input:focus {
  border-color: var(--blue);
  background: white;
}

/* Quick command button */
.quick-cmd-wrap {
  position: relative;
}

.chat-cmd-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.chat-cmd-btn:hover {
  background: rgba(0, 122, 255, 0.15);
}

.quick-cmd-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 6px;
  box-shadow:
    0 8px 32px rgba(0, 122, 255, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  z-index: 10;
}

.quick-cmd-menu.open {
  display: block;
  animation: chatStepIn 0.25s ease-out;
}

.quick-cmd-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: none;
  background: none;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition);
  text-align: left;
}

.quick-cmd-item:hover {
  background: rgba(0, 122, 255, 0.08);
}

/* Client info rows */
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 0.82rem;
}

.info-row .info-label {
  color: var(--text-secondary);
}

.info-row .info-value {
  font-weight: 600;
}

/* Block/danger button */
.btn-danger {
  background: rgba(255, 59, 48, 0.08);
  color: #FF3B30;
}

.btn-danger:hover {
  background: rgba(255, 59, 48, 0.15);
}

.btn-success {
  background: rgba(52, 199, 89, 0.08);
  color: #34C759;
}

/* Review card header */
.review-card {
  animation: adminSlideUp 0.4s ease-out;
  padding: 16px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.review-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* Order status badges */
.order-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.order-status.awaiting {
  background: rgba(255, 193, 7, 0.12);
  color: #F5A623;
}

.order-status.paid {
  background: rgba(52, 199, 89, 0.12);
  color: #34C759;
}

.order-status.rejected {
  background: rgba(255, 59, 48, 0.12);
  color: #FF3B30;
}

.order-status.pending {
  background: rgba(142, 142, 147, 0.12);
  color: #8E8E93;
}

/* Cooldown on send button — animated progress ring */
.chat-send-btn.cooldown {
  pointer-events: none;
  cursor: not-allowed;
  background: color-mix(in srgb, var(--blue) 70%, #6e6e73 30%);
}
.chat-send-btn.cooldown .chat-send-icon {
  filter: saturate(0.4);
  opacity: 0.55;
}
.chat-send-btn.cooldown .chat-send-ring {
  animation: chat-send-ring-show var(--cooldown-duration, 5s) linear forwards;
}
.chat-send-btn.cooldown .chat-send-ring circle {
  animation: chat-send-ring-fill var(--cooldown-duration, 5s) linear forwards;
}
@keyframes chat-send-ring-show {
  0%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes chat-send-ring-fill {
  from { stroke-dashoffset: 125.66; }
  to   { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-send-btn.cooldown .chat-send-ring,
  .chat-send-btn.cooldown .chat-send-ring circle {
    animation: none;
  }
}

/* --- Responsive (Tablet) --- */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.15rem;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 24px;
  }

  .game-card {
    padding: 32px 24px;
  }

  .game-card:hover {
    transform: none;
  }

  .container {
    padding: 0 24px;
  }

  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-content {
    max-width: 800px;
    margin: 0 auto;
  }
}

/* --- Responsive (Large Tablet) --- */
@media (min-width: 900px) {
  .games-grid {
    padding: 0 40px;
  }
  .container {
    padding: 0 40px;
  }
  .hero h1 {
    font-size: 3rem;
  }
}

/* --- Responsive (Desktop) --- */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
    max-width: 960px;
  }

  .chat-modal {
    top: auto;
    bottom: 24px;
    right: 24px;
    left: auto;
    width: 400px;
    height: 560px;
    border-radius: var(--radius);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
  }

  .chat-header {
    padding-top: 14px;
    margin: 12px 12px 0;
    border-radius: 100px;
  }

  .chat-input-area {
    padding-bottom: 12px;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .navbar {
    padding: 10px 16px;
  }
}

/* --- Gate Icon --- */
.gate-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: gateIconFloat 3s ease-in-out infinite;
  position: relative;
}

.gate-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 122, 255, 0.12);
  animation: gateIconRing 3s ease-in-out infinite;
}

@keyframes gateIconFloat {
  0%, 100% { transform: translateY(0); box-shadow: 0 4px 16px rgba(0, 122, 255, 0.08); }
  50% { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(0, 122, 255, 0.15); }
}

@keyframes gateIconRing {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0; transform: scale(1.15); }
}

/* --- Disabled Button --- */
.btn:disabled, .btn-disabled {
  background: var(--bg-secondary);
  color: var(--text-tertiary);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.5;
  pointer-events: none;
}

.btn-disabled:active {
  transform: none;
}

/* --- Instruction Modal --- */
.instruction-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.instruction-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.instruction-modal {
  width: 100%;
  max-width: 440px;
  max-height: 80vh;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.instruction-overlay.open .instruction-modal {
  transform: translateY(0) scale(1);
}

.instruction-modal-header {
  padding: 20px 24px 12px;
  flex-shrink: 0;
}

.instruction-modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.instruction-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  -webkit-overflow-scrolling: touch;
}

.instruction-modal-footer {
  padding: 12px 24px 20px;
  flex-shrink: 0;
}

/* --- Quiz Section --- */
.quiz-step {
  display: none;
}

.section-exit {
  animation: sectionFadeOut 0.3s ease forwards;
}

.section-enter {
  animation: sectionFadeIn 0.4s ease forwards;
}

@keyframes sectionFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-12px); }
}

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

.quiz-question {
  margin-bottom: 16px;
}

.quiz-q-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.quiz-image {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text-primary);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.quiz-option:hover {
  border-color: var(--blue);
  background: rgba(0, 122, 255, 0.04);
}

.quiz-option-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.quiz-option.correct {
  border-color: #34c759;
  background: rgba(52, 199, 89, 0.08);
}

.quiz-option.correct .quiz-option-num {
  background: #34c759;
  color: #fff;
}

.quiz-option.wrong {
  border-color: #ff3b30;
  background: rgba(255, 59, 48, 0.08);
}

.quiz-option.wrong .quiz-option-num {
  background: #ff3b30;
  color: #fff;
}

.quiz-reread {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  margin-top: 0;
  transition: opacity 0.35s ease, max-height 0.35s ease, margin-top 0.35s ease;
}

.quiz-reread.visible {
  opacity: 1;
  max-height: 60px;
  pointer-events: auto;
  margin-top: 16px;
}

#quizIcon {
  transition: all 0.3s ease;
}

.transfer-step {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#transferModal .transfer-step {
  display: flex;
  flex-direction: column;
}

#transferModal .instruction-modal-footer {
  margin-top: auto;
}

/* --- Partners Section --- */
.partners-section {
  padding: 20px 20px 20px;
  overflow: visible;
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.partners-scroll {
  display: flex;
  gap: 24px;
  padding: 10px 20px 16px;
  overflow: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center;
  flex-wrap: wrap;
}

.partners-scroll::-webkit-scrollbar {
  display: none;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform var(--spring);
}

.partner-item:hover {
  transform: scale(1.08);
}

.partner-avatar-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light), #FF2D55);
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.15);
  transition: box-shadow var(--transition);
}

.partner-item:hover .partner-avatar-wrap {
  box-shadow: 0 6px 24px rgba(0, 122, 255, 0.25);
}

.partner-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #fff;
}

.partner-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 639px) {
  .partners-scroll {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .partner-avatar-wrap {
    width: 66px;
    height: 66px;
  }
}

/* --- FAQ Section --- */
.faq-section {
  padding: 0 20px 24px;
  position: relative;
  z-index: 1;
}

.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-section .section-title {
  margin-bottom: 24px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.05),
    0 1px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 20px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Payment Methods --- */
.payment-methods {
  margin-bottom: 8px;
}

.payment-method-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.payment-option {
  display: block;
  cursor: pointer;
  margin-bottom: 8px;
}

.payment-option input { display: none; }

.payment-option-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.05),
    0 1px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
}

.payment-option.selected .payment-option-inner {
  border-color: var(--blue);
  background: rgba(0, 122, 255, 0.06);
  box-shadow:
    0 0 0 3px rgba(0, 122, 255, 0.08),
    0 2px 16px rgba(0, 122, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.payment-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 122, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-option-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.payment-option-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

/* --- Payment Accordion --- */
.pay-accordion {
  position: relative;
  border-radius: 16px;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 2px 16px rgba(0,122,255,0.05), 0 1px 4px rgba(0,0,0,0.03), inset 0 1px 0 rgba(255,255,255,0.6);
  overflow: visible;
  margin-bottom: 16px;
  z-index: 10;
}

.pay-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.pay-accordion-selected {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pay-method-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.pay-method-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.pay-method-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

.pay-accordion-arrow {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.pay-accordion.open .pay-accordion-arrow {
  transform: rotate(180deg);
}

.pay-accordion-body {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.06);
  border-top: none;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.32,0.72,0,1), opacity 0.25s ease;
  z-index: 20;
}

.pay-accordion.open .pay-accordion-body {
  max-height: 200px;
  opacity: 1;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-top: 1px solid rgba(0,0,0,0.04);
}

.pay-option:hover {
  background: rgba(0,122,255,0.03);
}

.pay-option.selected {
  background: rgba(0,122,255,0.05);
}

.pay-option-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.pay-option-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0,122,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pay-option-text {
  flex: 1;
}

.pay-option-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.pay-option-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

.pay-option-check {
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.pay-option.selected .pay-option-check {
  opacity: 1;
}

.pay-method-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0,122,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Upload Area --- */
.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 20px;
  border: 2px dashed rgba(0, 122, 255, 0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(0, 122, 255, 0.02);
}

.upload-area:active {
  background: rgba(0, 122, 255, 0.06);
  border-color: var(--blue);
}

.upload-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
}

.upload-hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* --- Orders Page --- */
.orders-page {
  padding: 80px 20px 40px;
  max-width: 560px;
  margin: 0 auto;
  min-height: calc(100vh - 60px);
  min-height: calc(100dvh - 60px);
  overflow-y: auto;
  overflow-x: hidden;
}

.orders-page h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.order-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow:
    0 2px 16px rgba(0, 122, 255, 0.05),
    0 1px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
}

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.order-game {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-game img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.order-game-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.order-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
}

.order-status.pending {
  background: rgba(255, 159, 10, 0.1);
  color: #FF9F0A;
}

.order-status.paid {
  background: rgba(52, 199, 89, 0.1);
  color: #34C759;
}

.order-status.rejected {
  background: rgba(255, 59, 48, 0.1);
  color: #FF3B30;
}

.order-status.awaiting {
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
}

.order-status.expired {
  background: rgba(142, 142, 147, 0.1);
  color: #8E8E93;
}

/* ===== Orders page — Archive section ===== */
.orders-section { display: flex; flex-direction: column; gap: 12px; }
.orders-section + .orders-section { margin-top: 28px; }
.orders-archive-section { padding-top: 22px; border-top: 1px solid rgba(0,0,0,0.06); }
.orders-archive-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin: 0 0 4px 0;
  color: var(--text-primary, #1d1d1f);
}
.orders-archive-sub {
  margin: 0 0 14px 0;
  font-size: 0.82rem;
  color: var(--text-secondary, #8e8e93);
  line-height: 1.45;
}
.order-card-archive {
  opacity: 0.78;
  background: rgba(142,142,147,0.04);
}
.order-card-archive .order-game-name { color: var(--text-secondary, #555); }

/* Copy-order button (used in archive cards) */
.btn-copy-order {
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  border: 1px solid rgba(0, 122, 255, 0.18);
  font-weight: 600;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.btn-copy-order:hover { background: rgba(0, 122, 255, 0.14); }
.btn-copy-order:active { transform: scale(0.98); }
.btn-copy-order.btn-copy-done {
  background: rgba(52, 199, 89, 0.12);
  color: #34C759;
  border-color: rgba(52, 199, 89, 0.25);
}

/* ============================== Access page — macOS Window credentials ============================== */
/* On the access flow we hide the site footer and prevent horizontal overflow.
   Page vertical layout intentionally untouched — keeps full-viewport centering. */
body.v2-body.access-mode { overflow-x: hidden; }
body.v2-body.access-mode .access-page { padding-top: 64px; padding-bottom: 24px; }

/* Quiz card had too much padding under the last option — tighten the bottom only. */
body.v2-body.access-mode .quiz-step .access-card { padding-bottom: 18px; }

.creds-window {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 0.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 24px 60px -8px rgba(0, 30, 90, 0.18),
    0 4px 16px rgba(0, 30, 90, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.creds-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.18));
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
.creds-traffic { display: flex; gap: 8px; }
.creds-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.18);
}
.creds-dot.r { background: #ff5f57; }
.creds-dot.y { background: #ffbd2e; }
.creds-dot.g { background: #28c940; }
.creds-titlebar-text {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(0,0,0,0.55);
  letter-spacing: -0.01em;
  font-family: -apple-system, BlinkMacSystemFont, 'Factor IO', 'Inter', system-ui, sans-serif;
}
.creds-titlebar-text strong { color: rgba(0,0,0,0.85); }
.creds-titlebar-spacer { width: 52px; /* match width of traffic-light cluster (3×12 + 2×8) */ }

.creds-body { padding: 30px 30px 26px; }

.creds-game-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(0,122,255,0.06), rgba(90,200,250,0.08));
  border: 1px solid rgba(0,122,255,0.12);
  border-radius: 14px;
  margin-bottom: 22px;
}
.creds-game-row img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.creds-game-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.creds-game-lab {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  font-weight: 700;
}
.creds-game-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.015em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.creds-order-pill {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(0,0,0,0.6);
  background: rgba(255,255,255,0.7);
  padding: 4px 10px;
  border-radius: 8px;
  border: 0.5px solid rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.creds-order-pill:hover { background: rgba(255,255,255,0.95); color: #1d1d1f; }
.creds-order-pill.copied {
  background: rgba(52, 199, 89, 0.15);
  color: #34c759;
  border-color: rgba(52, 199, 89, 0.3);
}

.creds-section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 4px;
  color: #1d1d1f;
}
.creds-section-sub {
  font-size: 0.85rem;
  color: rgba(0,0,0,0.55);
  margin-bottom: 22px;
  line-height: 1.5;
}

.creds-row {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.7);
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  margin-bottom: 10px;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.creds-row:hover { background: rgba(255,255,255,0.95); border-color: rgba(0,122,255,0.25); }
.creds-row-lab {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0,0,0,0.5);
  font-weight: 700;
}
.creds-row-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #1d1d1f;
  user-select: all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.creds-copy-btn {
  width: 36px; height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(0,122,255,0.08);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
  font-family: inherit;
}
.creds-copy-btn svg { width: 16px; height: 16px; }
.creds-copy-btn:hover { background: rgba(0,122,255,0.16); }
.creds-copy-btn:active { transform: scale(0.94); }
.creds-copy-btn.copied { background: #34c759 !important; color: white !important; }
.creds-copy-btn.copied svg { stroke: white; }

.creds-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.creds-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 100px; /* match site-wide pill buttons */
  border: none;
  font-family: var(--font, inherit);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}
.creds-btn-primary {
  background: linear-gradient(180deg, #0a84ff, #0066d6);
  color: white;
  box-shadow: 0 6px 16px rgba(0,122,255,0.3), inset 0 1px 0 rgba(255,255,255,0.25);
}
.creds-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(0,122,255,0.35); }
.creds-btn-secondary {
  background: rgba(255,255,255,0.7);
  color: #1d1d1f;
  border: 0.5px solid rgba(0,0,0,0.1);
}
.creds-btn-secondary:hover { background: rgba(255,255,255,0.95); }

.creds-timer {
  margin-top: 22px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(0,122,255,0.06), rgba(90,200,250,0.08));
  border: 0.5px solid rgba(0,122,255,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.creds-timer-lab {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  font-weight: 700;
}
.creds-timer-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 540px) {
  .creds-row { grid-template-columns: 70px 1fr auto; gap: 8px; padding: 12px; }
  .creds-row-val { font-size: 0.95rem; }
  .creds-section-title { font-size: 1.3rem; }
  .creds-timer-val { font-size: 1.25rem; }
}

.order-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.order-detail-row .label {
  color: var(--text-secondary);
}

.order-detail-row .val {
  font-weight: 600;
  color: var(--text-primary);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-actions {
  margin-top: 12px;
}

/* --- Empty State --- */
.orders-empty {
  text-align: center;
  padding: 80px 20px;
}

.orders-empty-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.orders-empty-mascot {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0,122,255,0.12));
  animation: mascotSway 4s ease-in-out infinite;
  transform-origin: bottom center;
}

.empty-anim-icon {
  animation: emptyFloat 3s ease-in-out infinite;
}

@keyframes emptyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes emptyGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.08); }
  50% { box-shadow: 0 0 20px 4px rgba(0, 122, 255, 0.12); }
}

.empty-anim-icon .sparkle {
  animation: sparkleFade 2s ease-in-out infinite;
}
.empty-anim-icon .sparkle-1 { animation-delay: 0s; }
.empty-anim-icon .sparkle-2 { animation-delay: 0.7s; }
.empty-anim-icon .sparkle-3 { animation-delay: 1.4s; }

@keyframes sparkleFade {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.8; transform: scale(1.5); }
}

.orders-empty h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.orders-empty p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* --- Admin Order Review --- */
.review-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  transition: box-shadow 0.3s ease, transform 0.15s ease;
  animation: adminSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.review-card:nth-child(2) { animation-delay: 0.05s; }
.review-card:nth-child(3) { animation-delay: 0.1s; }
.review-card:nth-child(4) { animation-delay: 0.15s; }
.review-card:nth-child(5) { animation-delay: 0.2s; }

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.review-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.btn-success {
  background: #34C759;
  color: white;
  box-shadow: 0 2px 8px rgba(52, 199, 89, 0.25);
  transition: all 0.25s ease, transform 0.15s ease;
}

.btn-success:hover {
  box-shadow: 0 4px 16px rgba(52, 199, 89, 0.35);
  transform: translateY(-1px);
}

.btn-success:active {
  background: #2da44e;
  transform: translateY(0) scale(0.98);
}

.btn-danger {
  background: #FF3B30;
  color: white;
  box-shadow: 0 2px 8px rgba(255, 59, 48, 0.25);
  transition: all 0.25s ease, transform 0.15s ease;
}

.btn-danger:hover {
  box-shadow: 0 4px 16px rgba(255, 59, 48, 0.35);
  transform: translateY(-1px);
}

.btn-danger:active {
  background: #d32f2f;
  transform: translateY(0) scale(0.98);
}

/* --- Utility --- */
.text-center { text-align: center; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

@media (max-width: 600px) {
  .revenue-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .revenue-grid .revenue-card:last-child {
    grid-column: span 2;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .chat-detail-wrapper {
    flex-direction: column;
    overflow: hidden;
    position: relative;
  }
  .chat-info-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 10px 14px;
    max-height: none;
    overflow-y: visible;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: transparent;
    margin: 0;
    border-radius: 0;
  }
  .chat-info-panel .client-avatar {
    width: 32px;
    height: 32px;
    margin: 0;
    flex-shrink: 0;
  }
  .chat-info-panel .client-avatar svg {
    width: 16px;
    height: 16px;
  }
  .chat-info-panel h4 {
    font-size: 0.85rem !important;
    margin-bottom: 0 !important;
  }
  .chat-info-panel > div[style*="text-align:center"] {
    margin-bottom: 0 !important;
  }
  .info-rows-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    width: 100%;
    margin-top: 4px;
  }
  .info-rows-grid .info-row {
    padding: 2px 0;
    font-size: 0.75rem;
    border-bottom: none;
    gap: 4px;
  }
  .chat-info-panel form {
    margin-top: 0 !important;
    margin-left: auto;
  }
  .chat-info-panel form .btn {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
  .chat-detail-orbs .orb-1 {
    width: 200px;
    height: 200px;
    top: -40px;
    left: -30px;
  }
  .chat-detail-orbs .orb-2 {
    width: 160px;
    height: 160px;
    right: -20px;
  }
  .chat-detail-orbs .orb-3 {
    width: 140px;
    height: 140px;
    bottom: -20px;
  }
}

/* --- Bulk Select Checkbox --- */
.bulk-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.bulk-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.bulk-checkmark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid rgba(0,0,0,0.15);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.bulk-checkbox input:checked + .bulk-checkmark {
  background: var(--blue);
  border-color: var(--blue);
}
.bulk-checkbox input:checked + .bulk-checkmark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* --- Bulk Delete Bar --- */
.bulk-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  padding: 0 16px calc(16px + var(--safe-bottom));
}
.bulk-bar.visible {
  transform: translateY(0);
}
.bulk-bar-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
}
.bulk-count {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.bulk-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #FF3B30;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.bulk-delete-btn:active {
  transform: scale(0.96);
  background: #d32f2f;
}

/* Spin animation for loading icons */
.spin-icon {
  animation: spinAnim 1s linear infinite;
}
@keyframes spinAnim {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease infinite;
  border-radius: 12px;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.5);
}

.skeleton-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin: 0 auto 16px;
}

.skeleton-title {
  height: 20px;
  width: 60%;
  margin: 0 auto 10px;
}

.skeleton-text {
  height: 14px;
  width: 80%;
  margin: 0 auto 8px;
}

.skeleton-btn {
  height: 44px;
  width: 100%;
  margin-top: 16px;
  border-radius: 12px;
}

/* Sticky buy button (mobile) */
.sticky-buy {
  display: none;
}

@media (max-width: 768px) {
  .sticky-buy {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 800;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  .sticky-buy.visible {
    transform: translateY(0);
  }
  .sticky-buy .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
  }
  /* Add bottom padding to page so sticky button doesn't cover content */
  .game-detail {
    padding-bottom: 80px;
  }
}

/* Pull to refresh indicator */
.ptr-indicator {
  text-align: center;
  padding: 12px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ptr-indicator.active {
  opacity: 1;
}

/* Modal close button hover */
.modal-close-btn:hover {
  background: rgba(0,0,0,0.05);
}

/* --- Fix 55: Hero padding on mobile --- */
@media (max-width: 480px) {
  .hero { padding-top: 90px; }
}

/* --- Fix 56: Tablet intermediate breakpoint --- */
@media (min-width: 640px) and (max-width: 1023px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Fix 57: Navbar overflow on very small screens --- */
@media (max-width: 340px) {
  .navbar-links a { font-size: 0.72rem; padding: 6px 8px; }
}

/* --- Fix 59: Mascot overflow on small screens --- */
@media (max-width: 360px) {
  .buy-btn-mascot { display: none; }
}

/* --- Fix 61: Discount badge overflow --- */
@media (max-width: 320px) {
  .game-badges { max-width: 90%; font-size: 0.65rem; }
}

/* Focus states for keyboard navigation */
.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

/* ===== DARK MODE — ADMIN PANEL ONLY ===== */
/* Dark theme is scoped strictly to pages that include a .admin-layout wrapper.
   All public-facing pages remain in light theme regardless of system preference. */
@media (prefers-color-scheme: dark) {
  /* Dark palette variables — applied only when admin-layout is in the DOM */
  html:has(.admin-layout) {
    --bg: #0d0d0f;
    --bg-secondary: #1c1c1e;
    --text-primary: #f5f5f7;
    --text-secondary: #98989d;
    --text-tertiary: #636366;
  }

  html:has(.admin-layout) body { background: var(--bg); color: var(--text-primary); }

  /* Inputs — admin scope only */
  html:has(.admin-layout) input,
  html:has(.admin-layout) textarea,
  html:has(.admin-layout) select {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.1);
  }
  html:has(.admin-layout) input::placeholder,
  html:has(.admin-layout) textarea::placeholder { color: var(--text-tertiary); }
  html:has(.admin-layout) input[type="checkbox"] { accent-color: var(--blue); }
  html:has(.admin-layout) select option {
    background: #1c1c1e;
    color: var(--text-primary);
  }

  /* Buttons */
  .admin-layout .btn-secondary {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.1);
  }
  .admin-layout .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
  }

  /* Admin layout base */
  .admin-page, .admin-layout { background: var(--bg); }
  .admin-layout .admin-sidebar {
    background: rgba(13,13,15,0.95);
    border-right-color: rgba(255,255,255,0.06);
  }
  .admin-layout .admin-sidebar a { color: var(--text-secondary); }
  .admin-layout .admin-sidebar a.active { background: rgba(0,122,255,0.15); color: #fff; }
  .admin-layout .admin-nav {
    background: rgba(13,13,15,0.9);
    border-bottom-color: rgba(255,255,255,0.06);
  }
  .admin-layout .admin-nav a { color: var(--text-secondary); }
  .admin-layout .admin-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }

  /* Admin cards */
  .admin-layout .admin-card,
  .admin-layout .admin-card-stat {
    background: rgba(28,28,30,0.65) !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
  }
  .admin-layout .admin-card h3 { color: var(--text-primary); }
  .admin-layout .admin-card p,
  .admin-layout .admin-card span,
  .admin-layout .admin-card label { color: var(--text-secondary); }
  .admin-layout .admin-card input,
  .admin-layout .admin-card textarea,
  .admin-layout .admin-card select {
    background: rgba(255,255,255,0.06) !important;
    color: var(--text-primary) !important;
    border-color: rgba(255,255,255,0.12) !important;
  }
  .admin-layout .admin-content h1,
  .admin-layout .admin-content h2 { color: var(--text-primary); }

  /* Stat/revenue cards */
  .admin-layout .stat-value { color: var(--text-primary); }
  .admin-layout .stat-label { color: var(--text-secondary); }
  .admin-layout .revenue-card,
  .admin-layout .stat-card,
  .admin-layout [class*="stat-"] .admin-card {
    background: rgba(28,28,30,0.65) !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
  }
  .admin-layout .revenue-icon {
    background: rgba(255,255,255,0.08) !important;
  }

  /* Settings tabs */
  .admin-layout .settings-tab { color: var(--text-secondary); }
  .admin-layout .settings-tab.active {
    background: var(--blue);
    color: #fff;
  }
  .admin-layout .settings-tab:not(.active):hover {
    background: rgba(255,255,255,0.06);
  }

  /* Admin tabs */
  .admin-layout .admin-tabs {
    background: rgba(28,28,30,0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
  }
  .admin-layout .admin-tabs a { color: var(--text-secondary) !important; }
  .admin-layout .admin-tabs a.active {
    background: rgba(0,122,255,0.2) !important;
    color: #fff !important;
  }

  /* Tables (admin only) */
  .admin-layout table { color: var(--text-primary); }
  .admin-layout table th { background: rgba(255,255,255,0.04); color: var(--text-secondary); }
  .admin-layout table td { border-color: rgba(255,255,255,0.06); }
  .admin-layout table tr:hover { background: rgba(255,255,255,0.03); }

  /* Admin order cards */
  .admin-layout .order-card {
    background: rgba(28,28,30,0.65) !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
  }
  .admin-layout .order-card h3,
  .admin-layout .order-game-name { color: var(--text-primary) !important; }

  /* Review cards */
  .admin-layout .review-card {
    background: rgba(28,28,30,0.65) !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
    color: var(--text-primary) !important;
  }
  .admin-layout .review-card h3,
  .admin-layout .review-card h4,
  .admin-layout .review-card span { color: var(--text-secondary); }
  .admin-layout .review-card .btn-secondary {
    background: rgba(255,255,255,0.06) !important;
    color: var(--text-primary) !important;
    border-color: rgba(255,255,255,0.1) !important;
  }

  /* Status badges — readable on dark surfaces.
     The default rgba(*,0.1) background blends into the dark card and the colored
     text alone is hard to read at small sizes. Boost background opacity + add a
     subtle border so each status pops. Keep the same brand colors for the text. */
  .admin-layout .order-status,
  .admin-layout .review-card .order-status {
    font-weight: 700 !important;
    border: 1px solid transparent;
  }
  .admin-layout .order-status.pending {
    background: rgba(255, 159, 10, 0.22) !important;
    color: #FFB340 !important;
    border-color: rgba(255, 159, 10, 0.35);
  }
  .admin-layout .order-status.paid {
    background: rgba(52, 199, 89, 0.22) !important;
    color: #5BD97E !important;
    border-color: rgba(52, 199, 89, 0.35);
  }
  .admin-layout .order-status.rejected {
    background: rgba(255, 69, 58, 0.22) !important;
    color: #FF6B5E !important;
    border-color: rgba(255, 69, 58, 0.35);
  }
  .admin-layout .order-status.awaiting {
    background: rgba(10, 132, 255, 0.22) !important;
    color: #4DA3FF !important;
    border-color: rgba(10, 132, 255, 0.4);
  }
  .admin-layout .order-status.expired {
    background: rgba(174, 174, 178, 0.22) !important;
    color: #C7C7CC !important;
    border-color: rgba(174, 174, 178, 0.3);
  }

  /* Orders archive section — re-color separator/labels for dark mode */
  html:has(.admin-layout) .orders-archive-section { border-top-color: rgba(255,255,255,0.08); }
  html:has(.admin-layout) .orders-archive-title { color: var(--text-primary); }
  html:has(.admin-layout) .order-card-archive { background: rgba(255,255,255,0.03); }

  /* Admin chat modal */
  .admin-layout .chat-modal { background: var(--bg) !important; }
  .admin-layout .chat-modal .chat-header {
    background: rgba(13,13,15,0.95) !important;
    border-bottom-color: rgba(255,255,255,0.06) !important;
  }
  .admin-layout .chat-modal .chat-header h3 { color: var(--text-primary) !important; }
  .admin-layout .chat-modal .chat-messages { background: var(--bg) !important; }
  .admin-layout .chat-modal .chat-input-area {
    background: rgba(13,13,15,0.95) !important;
    border-top-color: rgba(255,255,255,0.06) !important;
  }
  .admin-layout .chat-modal .chat-input-area input[type="text"],
  .admin-layout .chat-modal .chat-input-area textarea {
    background: rgba(255,255,255,0.08) !important;
    color: var(--text-primary) !important;
    border-color: rgba(255,255,255,0.12) !important;
  }

  /* Admin chats list */
  .admin-layout .admin-chat-card {
    background: rgba(28,28,30,0.65) !important;
    border-color: rgba(255,255,255,0.08) !important;
  }
  .admin-layout .admin-chat-card h4,
  .admin-layout .admin-chat-name { color: var(--text-primary) !important; }

  /* Admin chat detail */
  .admin-layout .admin-chat-messages { background: var(--bg) !important; }
  .admin-layout .admin-chat-bubble {
    background: rgba(28,28,30,0.8) !important;
    color: var(--text-primary) !important;
  }
  .admin-layout .admin-chat-bubble.admin-msg { background: rgba(0,122,255,0.15) !important; }
  .admin-layout .admin-chat-input {
    background: rgba(13,13,15,0.95) !important;
    border-top-color: rgba(255,255,255,0.06) !important;
  }
  .admin-layout .admin-chat-input input,
  .admin-layout .admin-chat-input textarea {
    background: rgba(255,255,255,0.08) !important;
    color: var(--text-primary) !important;
  }

  /* Partner panel (admin-side only) */
  .admin-layout .partner-page { background: var(--bg); }
  .admin-layout .partner-card {
    background: rgba(28,28,30,0.65);
    border-color: rgba(255,255,255,0.08);
  }
  .admin-layout .partner-card h3 { color: var(--text-primary); }

  /* Login (admin) */
  .admin-layout.admin-login,
  .admin-layout .login-page,
  .admin-layout .login-container { background: var(--bg); }
  .admin-layout .login-card {
    background: rgba(28,28,30,0.85);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  }
  .admin-layout .login-card h1,
  .admin-layout .login-card h2 { color: var(--text-primary); }
  .admin-layout .login-card label { color: var(--text-secondary); }

  /* Transfer modal */
  .admin-layout .transfer-step { color: var(--text-primary); }
  .admin-layout #transferModal {
    background: #1c1c1e;
    border-color: rgba(255,255,255,0.08);
  }

  /* Upload area */
  .admin-layout .upload-area {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.1);
  }
  .admin-layout .upload-text { color: var(--text-primary); }
  .admin-layout .upload-hint { color: var(--text-tertiary); }

  /* Chat-detail page (admin) */
  .admin-layout .chat-detail-back a {
    background: rgba(28,28,30,0.65) !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04) !important;
    color: var(--blue) !important;
  }
  .admin-layout .chat-detail-wrapper {
    background: rgba(28,28,30,0.65) !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3) !important;
  }
  .admin-layout .chat-info-panel h4 { color: var(--text-primary); }
  .admin-layout .chat-info-panel .client-avatar {
    background: rgba(0,122,255,0.15) !important;
  }
  .admin-layout .info-row {
    border-bottom-color: rgba(255,255,255,0.06) !important;
  }
  .admin-layout .info-row .info-label { color: var(--text-secondary) !important; }
  .admin-layout .info-row .info-value { color: var(--text-primary) !important; }
  .admin-layout .status-badge.open {
    background: rgba(52,199,89,0.15) !important;
    color: #34C759 !important;
  }
  .admin-layout .status-badge.closed {
    background: rgba(142,142,147,0.2) !important;
    color: var(--text-secondary) !important;
  }
  .admin-layout .btn-danger {
    background: rgba(255,59,48,0.15) !important;
    color: #FF6B5F !important;
  }
  .admin-layout .btn-danger:hover {
    background: rgba(255,59,48,0.25) !important;
  }

  /* Bulk actions */
  .admin-layout .bulk-bar-inner {
    background: rgba(28,28,30,0.92) !important;
    box-shadow: 0 -4px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08) !important;
  }
  .admin-layout .bulk-count { color: var(--text-secondary) !important; }
  .admin-layout .bulk-select-all-label span,
  .admin-layout .bulk-checkbox span { color: var(--text-primary) !important; }
  .admin-layout .bulk-checkmark {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.2) !important;
  }

  /* Glass elements inside admin */
  .admin-layout .glass,
  .admin-layout .glass-strong {
    background: rgba(28,28,30,0.65) !important;
    border-color: rgba(255,255,255,0.08) !important;
  }

  /* Confirm modal (used for admin actions) — override inline styles */
  .admin-layout ~ .confirm-overlay .confirm-modal,
  body:has(.admin-layout) .confirm-overlay .confirm-modal,
  body:has(.admin-layout) .confirm-modal {
    background: #1c1c1e !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
  }
  body:has(.admin-layout) .confirm-modal h3 { color: var(--text-primary) !important; }
  body:has(.admin-layout) .confirm-modal p { color: var(--text-secondary) !important; }
  body:has(.admin-layout) #confirmTitle { color: var(--text-primary) !important; }
  body:has(.admin-layout) #confirmMsg { color: var(--text-secondary) !important; }
  body:has(.admin-layout) #confirmCancel,
  body:has(.admin-layout) .confirm-modal .btn-secondary {
    background: rgba(255,255,255,0.08) !important;
    color: var(--text-primary) !important;
    border-color: rgba(255,255,255,0.12) !important;
  }
  body:has(.admin-layout) .confirm-modal input[type="text"] {
    background: rgba(255,255,255,0.06) !important;
    color: var(--text-primary) !important;
    border-color: rgba(255,255,255,0.12) !important;
  }
  body:has(.admin-layout) .confirm-modal input[type="text"]::placeholder {
    color: var(--text-tertiary) !important;
  }

  /* Empty states */
  .admin-layout .empty-state,
  .admin-layout .orders-empty { color: var(--text-secondary); }
  .admin-layout .empty-state h2,
  .admin-layout .empty-state p { color: var(--text-secondary); }

  /* Scrollbar (only for admin pages) */
  html:has(.admin-layout) ::-webkit-scrollbar { width: 6px; }
  html:has(.admin-layout) ::-webkit-scrollbar-track { background: var(--bg); }
  html:has(.admin-layout) ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
  html:has(.admin-layout) ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }
}

/* ============================================================
   Payment Method Modal — V5 Frosted Glass + Radio
   ============================================================ */
.pay-method-overlay {
  background:
    radial-gradient(420px 320px at 22% 18%, rgba(0,122,255,0.30), transparent 70%),
    radial-gradient(420px 320px at 80% 86%, rgba(255,80,200,0.20), transparent 70%),
    rgba(11, 23, 48, 0.30);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.pay-method-modal {
  max-width: 440px !important;
  width: 100%;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 22px !important;
  padding: 22px 18px 20px !important;
  box-shadow:
    0 18px 48px rgba(0, 30, 90, 0.16),
    0 4px 12px rgba(0, 0, 0, 0.06) !important;
  color-scheme: light;
}
.pay-method-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 4px;
  padding: 0 !important;
  border: 0 !important;
}
.pay-method-title {
  margin: 0 !important;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  color: #0b1730 !important;
}
.pay-method-close {
  width: 28px;
  height: 28px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.05);
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #6e6e73;
  flex-shrink: 0;
}
/* Intentionally no :hover state — keep close button static, no animation. */
.pay-method-body {
  padding: 0 !important;
  margin-top: 4px;
}
.pay-method-sub {
  margin: 0 0 14px !important;
  font-size: 0.86rem;
  color: #4a5878;
  line-height: 1.45;
}
.pay-methods-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pay-method-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f5f5f7;
  border: 1.5px solid transparent;
  cursor: pointer;
  /* Transition only border-color; do NOT transition transform — otherwise the
     parent modal's spring-scale animation causes child sub-pixel jitter ("jump"). */
  transition: border-color 0.25s ease, background 0.18s ease;
  text-align: left;
  font: inherit;
  color: inherit;
  overflow: hidden;
}
/* Brand-color glow under each method — centered on the icon */
.pay-method-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -22px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  filter: blur(22px);
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.25s ease;
  z-index: 0;
}
.pay-method-card[data-method="sbp"]::before          { background: radial-gradient(circle, rgba(255,80,120,0.55), transparent 70%); }
.pay-method-card[data-method="bank_card"]::before    { background: radial-gradient(circle, rgba(0,122,255,0.55), transparent 70%); }
.pay-method-card[data-method="sberbank"]::before     { background: radial-gradient(circle, rgba(33,160,56,0.50), transparent 70%); }
.pay-method-card[data-method="tinkoff_bank"]::before { background: radial-gradient(circle, rgba(255,210,60,0.60), transparent 70%); }
.pay-method-card[data-method="yoo_money"]::before    { background: radial-gradient(circle, rgba(139,63,252,0.50), transparent 70%); }
/* Keep card content above the glow */
.pay-method-card > * { position: relative; z-index: 1; }

.pay-method-card:hover {
  border-color: rgba(0, 122, 255, 0.55);
  background: #fafaff;
}
.pay-method-card:active {
  transform: scale(0.98);
  transition: transform 0.08s ease, border-color 0.25s ease;
}
.pay-method-card.is-locked,
.pay-method-card[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.pay-method-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.pay-method-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.pay-method-fallback {
  font-weight: 700;
  font-size: 0.74rem;
  color: #1d1d1f;
  letter-spacing: 0;
}
.pay-method-info { flex: 1; min-width: 0; }
.pay-method-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #0b1730;
  letter-spacing: -0.005em;
}
.pay-method-arrow {
  flex-shrink: 0;
  color: rgba(0, 40, 120, 0.30);
}

@media (max-width: 480px) {
  .pay-method-modal { max-width: calc(100vw - 24px) !important; padding: 18px 14px 16px !important; border-radius: 22px !important; }
  .pay-method-title { font-size: 1rem; }
  .pay-method-card { padding: 10px 12px; gap: 10px; }
  .pay-method-card::before { width: 90px; height: 90px; left: -18px; filter: blur(18px); }
  .pay-method-icon { width: 36px; height: 36px; }
  .pay-method-name { font-size: 0.92rem; }
}

/* iOS bottom-sheet feel on mobile — pronounced slide up, ease-out-expo curve.
   Default desktop animation (small translateY + spring) feels abrupt at touch sizes. */
@media (max-width: 600px) {
  .pay-method-overlay .pay-method-modal {
    transform: translateY(80px) !important;
    opacity: 0 !important;
    transition:
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.32s ease !important;
  }
  .pay-method-overlay.open .pay-method-modal {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }
  /* Promo modal too (uses .instruction-overlay/.instruction-modal directly) */
  .promo-overlay .instruction-modal {
    transform: translateY(80px) !important;
    opacity: 0 !important;
    transition:
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.32s ease !important;
  }
  .promo-overlay.open .instruction-modal {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }
}

/* Promo code modal — soft brand backdrop (matches payment overlay) */
.promo-overlay {
  background:
    radial-gradient(420px 320px at 22% 18%, rgba(0,122,255,0.30), transparent 70%),
    radial-gradient(420px 320px at 80% 86%, rgba(255,80,200,0.20), transparent 70%),
    rgba(11, 23, 48, 0.30);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Chat date dividers — Apple-style centered pill */
.chat-date-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 10px;
  position: relative;
}
.chat-date-divider span {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(0, 40, 120, 0.55);
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.chat-date-divider span::first-letter { text-transform: uppercase; }

