:root {
  --bg-base: #060913;
  --bg-surface: #0d1324;
  --bg-card: #11192e;
  --bg-elevated: #18233f;
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-glow: rgba(245, 158, 11, 0.42);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --brand-amber: #f59e0b;
  --brand-amber-light: #fbbf24;
  --brand-emerald: #10b981;
  --brand-cyan: #06b6d4;
  --brand-rose: #f43f5e;
  --brand-violet: #8b5cf6;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-xl: 0 24px 60px -12px rgba(0, 0, 0, 0.72);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #03060f;
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Topbar Chữ Chạy Nổi Bật chuẩn Web Bán Hàng */
.topbar.topbar-marquee {
  background: linear-gradient(90deg, #1b0a2a 0%, #3b1206 25%, #0c2344 58%, #2c1008 82%, #1b0a2a 100%);
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.14);
  font-size: 13px;
  padding: 9px 0;
  overflow: hidden;
  position: relative;
}

.marquee-viewport {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: topbarMarqueeScroll 32s linear infinite;
}

.topbar-marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes topbarMarqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-group {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
}

.marquee-hot-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.65);
  animation: hotBadgePulse 1.8s ease-in-out infinite;
}

@keyframes hotBadgePulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.05); filter: brightness(1.18); }
}

.marquee-brand-headline {
  font-weight: 900;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, #fde047 0%, #ffffff 48%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.marquee-promo-text {
  color: #fde047;
  font-weight: 800;
  font-size: 13px;
}

.marquee-extra-text {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 12.5px;
}

.marquee-sep {
  color: #f59e0b;
  font-size: 12px;
  opacity: 0.85;
}

.coupon-pill,
.marquee-coupon-btn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(234, 88, 12, 0.3));
  border: 1px solid rgba(253, 224, 71, 0.75);
  color: #fef08a;
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.28);
}

.coupon-pill:hover,
.marquee-coupon-btn:hover {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #060913;
  transform: scale(1.04);
}

/* Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 9, 19, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 12px;
}

/* Ultra-Stylish DAILYSRC321 Signature Brand Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
  position: relative;
  padding: 5px 10px 5px 5px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(6, 182, 212, 0.06) 100%);
  border: 1px solid rgba(251, 191, 36, 0.24);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.brand:hover {
  transform: translateY(-1px) scale(1.015);
  border-color: rgba(251, 191, 36, 0.65);
  box-shadow: 0 0 36px rgba(245, 158, 11, 0.28), 0 0 18px rgba(6, 182, 212, 0.22);
}

.brand-emblem {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.55));
}

.brand-emblem svg {
  width: 48px;
  height: 48px;
  overflow: visible;
}

.brand-emblem .hex-ring {
  transform-origin: center;
  animation: pulseHexGlow 3.2s ease-in-out infinite;
}

@keyframes pulseHexGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.5)); }
  50% { filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.85)); }
}

.brand-wordmark-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  font-family: 'Orbitron', 'Rajdhani', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  position: relative;
}

.brand-part-daily {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.25);
}

.brand-part-src {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 50%, #fb7185 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.45));
  font-style: italic;
  padding-right: 2px;
}

.brand-part-321 {
  margin-left: 4px;
  padding: 2px 8px;
  font-size: 16px;
  font-weight: 900;
  font-style: italic;
  color: #041019;
  background: linear-gradient(135deg, #22d3ee 0%, #34d399 55%, #fde047 100%);
  border-radius: 7px;
  transform: skewX(-10deg);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.55);
  position: relative;
  overflow: hidden;
}

.brand-part-321::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  animation: logoShineSweep 3.4s infinite;
}

@keyframes logoShineSweep {
  0% { left: -120%; }
  38%, 100% { left: 160%; }
}

.brand-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-sub-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links a {
  white-space: nowrap;
  padding: 5px 6px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--brand-amber-light);
  background: rgba(255, 255, 255, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-search {
  position: relative;
  width: 165px;
  flex-shrink: 1;
}

.nav-search input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 10px 8px 32px;
  color: var(--text-primary);
  font-size: 12.5px;
  outline: none;
  transition: 0.2s;
}

.nav-search input:focus {
  border-color: var(--brand-amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.nav-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 12.8px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: 0.2s;
}

.icon-btn:hover {
  border-color: rgba(245, 158, 11, 0.5);
  background: var(--bg-elevated);
}

.icon-btn.cart-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  border: none;
  color: #070a12;
}

.icon-btn.cart-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.badge-count {
  background: rgba(6, 9, 19, 0.85);
  color: #fde047;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

/* Hero Section */
.hero {
  padding: 46px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  gap: 34px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.text-gradient {
  background: linear-gradient(90deg, #fbbf24 0%, #f97316 48%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 15.5px;
  margin-bottom: 24px;
  max-width: 580px;
}

.hero-quick-games {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.quick-game-chip {
  background: rgba(17, 25, 46, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quick-game-chip:hover,
.quick-game-chip.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--brand-amber);
  color: #fde047;
  transform: translateY(-1px);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn-primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #ea580c 100%);
  color: #090d16;
  border: none;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
  transition: 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
}

.btn-secondary:hover {
  border-color: var(--brand-cyan);
  background: var(--bg-elevated);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: #f8fafc;
}

.stat-item span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Cinema Video Studio Showcase */
.cinema-card {
  background: linear-gradient(180deg, #131d36 0%, #0b1121 100%);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow-xl), 0 0 40px rgba(245, 158, 11, 0.09);
}

.cinema-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
  gap: 10px;
}

.cinema-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: #fde047;
}

.rec-badge {
  background: #ef4444;
  color: #fff;
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.05em;
}

.cinema-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 13px;
  overflow: hidden;
  background: #050811;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cinema-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.yt-clip-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.yt-clip-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  flex: 1;
}

.yt-clip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  text-align: left;
}

.yt-clip-btn:hover,
.yt-clip-btn.active {
  background: rgba(239, 68, 68, 0.16);
  border-color: #ef4444;
  color: #fecaca;
}

.yt-action-btns {
  display: flex;
  align-items: center;
  gap: 7px;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.cinema-controls {
  margin-top: 11px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.timeline-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ctrl-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: #f8fafc;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s;
  white-space: nowrap;
}

.ctrl-btn:hover {
  border-color: var(--brand-amber);
  color: #fde047;
}

.timeline-slider {
  flex: 1;
  accent-color: var(--brand-amber);
  height: 6px;
  cursor: pointer;
}

.time-readout {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-muted);
  min-width: 78px;
  text-align: right;
}

.chapter-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.chapter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: 0.18s;
}

.chapter-btn:hover,
.chapter-btn.active {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.55);
  color: #fde047;
}

.cinema-thumbs {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.cinema-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.65;
  transition: 0.2s;
}

.cinema-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cinema-thumb span {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(6, 9, 19, 0.85);
  font-size: 9.5px;
  font-weight: 800;
  text-align: center;
  padding: 2px 0;
  color: #f8fafc;
}

.cinema-thumb:hover,
.cinema-thumb.active {
  opacity: 1;
  border-color: var(--brand-amber);
  transform: translateY(-2px);
}

/* Catalog Filter Bar */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-top: 4px;
}

.catalog-section {
  padding: 36px 0 64px;
}

.filter-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 15px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--brand-amber);
  border-color: var(--brand-amber);
  color: #090d16;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
}

/* Product Cards Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}

.game-card {
  background: linear-gradient(180deg, #121b31 0%, #0c1324 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.52);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.6);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #080d1a;
  cursor: pointer;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.game-card:hover .card-media img {
  transform: scale(1.06);
}

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 140px);
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  z-index: 2;
}

.card-badge {
  background: rgba(9, 13, 22, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fde047;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
}

.card-badge.discount {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.card-ccu {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(6, 9, 19, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  z-index: 2;
}

.card-play-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(6, 9, 19, 0.86) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px;
  opacity: 0.94;
}

.play-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(245, 158, 11, 0.95);
  color: #080c16;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.version-pill {
  font-size: 11.5px;
  color: #e2e8f0;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.85);
  padding: 4px 9px;
  border-radius: 6px;
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 11px;
}

.tech-tag {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
}

.card-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 6px;
  cursor: pointer;
}

.card-title:hover {
  color: var(--brand-amber-light);
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 13px;
}

.card-highlights {
  list-style: none;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-highlights li {
  font-size: 12.8px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.card-highlights li::before {
  content: "✓";
  color: var(--brand-emerald);
  font-weight: 900;
  flex-shrink: 0;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  padding-bottom: 13px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.rating-stars {
  color: #fbbf24;
  font-weight: 800;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

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

.price-block .current-price {
  font-size: 19px;
  font-weight: 900;
  color: #fde047;
  white-space: nowrap;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-sm {
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: #f8fafc;
  white-space: nowrap;
}

.btn-sm:hover {
  border-color: var(--brand-amber);
}

.btn-sm.active-compare {
  background: rgba(6, 182, 212, 0.22);
  border-color: var(--brand-cyan);
  color: #67e8f9;
}

.btn-sm.buy {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: none;
  color: #090d16;
}

.btn-sm.buy:hover {
  filter: brightness(1.08);
}

/* Ecosystem Tools Section */
.ecosystem-section {
  padding: 58px 0;
  border-top: 1px solid var(--border-subtle);
  background: rgba(13, 19, 36, 0.55);
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.eco-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px;
}

.eco-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.eco-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}

.eco-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* Reviews & FAQ */
.reviews-section {
  padding: 58px 0;
  border-top: 1px solid var(--border-subtle);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px;
}

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

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

.reviewer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}

.verified-tag {
  font-size: 11px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
}

/* Modals (Detail, Compare, Checkout) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(3, 6, 14, 0.84);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: #0d1426;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 20px;
  width: 100%;
  max-width: 1120px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #111a30;
}

.modal-close {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: #f8fafc;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}

.modal-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  background: #0b1120;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.modal-tab {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.modal-tab.active {
  background: var(--brand-amber);
  border-color: var(--brand-amber);
  color: #080c16;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-video-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 22px;
  align-items: start;
}

/* Gallery Grid inside Modal */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.gallery-item {
  background: #090e1c;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

.gallery-item canvas {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

.gallery-caption {
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

/* Source Code Explorer inside Modal */
.code-explorer {
  display: grid;
  grid-template-columns: 300px 1fr;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  min-height: 340px;
}

.code-sidebar {
  background: #090e1c;
  border-right: 1px solid var(--border-subtle);
  padding: 14px;
}

.code-file-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-family: monospace;
  cursor: pointer;
  margin-bottom: 6px;
  word-break: break-all;
}

.code-file-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fde047;
}

.code-viewer {
  background: #060913;
  padding: 18px;
  overflow-x: auto;
}

.code-viewer pre {
  font-family: 'Consolas', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #e2e8f0;
}

/* License Tiers inside Modal */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tier-card {
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.tier-card.selected {
  border-color: var(--brand-amber);
  background: rgba(245, 158, 11, 0.08);
}

.tier-rec-badge {
  position: absolute;
  top: -11px;
  right: 14px;
  background: var(--brand-amber);
  color: #080c16;
  font-size: 10.5px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
}

.tier-price {
  font-size: 24px;
  font-weight: 900;
  color: #fde047;
  margin: 10px 0;
}

.tier-perks {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-secondary);
  flex: 1;
}

.tier-perks li::before {
  content: "★ ";
  color: var(--brand-amber-light);
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  z-index: 130;
  background: #0d1426;
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: right 0.28s ease;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.7);
}

.cart-drawer.open {
  right: 0;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.cart-item img {
  width: 72px;
  height: 46px;
  object-fit: cover;
  border-radius: 7px;
}

.cart-footer {
  padding: 18px;
  border-top: 1px solid var(--border-subtle);
  background: #111a30;
}

.coupon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.coupon-row input {
  flex: 1;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 9px 12px;
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
}

/* Compare Table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--border-subtle);
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
}

.compare-table th {
  background: #111a30;
  color: #fde047;
}

/* VietQR Box */
.checkout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.qr-box {
  background: #ffffff;
  color: #090d16;
  padding: 16px;
  border-radius: 14px;
  text-align: center;
}

.qr-box canvas,
.qr-box img.vietqr-img {
  width: 224px;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto 10px;
  border-radius: 8px;
}

.copy-mini-btn {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #0f172a;
  cursor: pointer;
}

.copy-mini-btn:hover {
  background: #e2e8f0;
}

.copy-mini-btn.dark {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}

.copy-mini-btn.dark:hover {
  background: rgba(56, 189, 248, 0.25);
}

/* ============================================================================
   HỆ THỐNG TÀI KHOẢN (NAVBAR + AUTH MODAL)
   ============================================================================ */
.auth-nav-slot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-login-btn {
  border-color: rgba(34, 211, 238, 0.45) !important;
  color: #67e8f9 !important;
}

.auth-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-subtle);
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
}

.auth-role-tag {
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

.auth-role-tag.admin {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
}

.admin-panel-nav-btn {
  background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
  color: #060913 !important;
  border-color: transparent !important;
  font-weight: 900 !important;
}

.unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  margin-left: 5px;
}

.unread-badge.amber {
  background: #f59e0b;
  color: #060913;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-tab {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
}

.auth-tab.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(6, 182, 212, 0.2));
  border-color: rgba(251, 191, 36, 0.6);
  color: #fde047;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 13px;
  color: #ffffff;
  font-size: 13.5px;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #38bdf8;
}

.btn-admin-edit-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(234, 88, 12, 0.22)) !important;
  border: 1px solid rgba(251, 191, 36, 0.65) !important;
  color: #fde047 !important;
  font-weight: 800 !important;
}

.btn-admin-edit-card:hover {
  background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
  color: #060913 !important;
}

/* ============================================================================
   NHÃN & TRẠNG THÁI SẢN PHẨM ĐÃ BÁN HẾT HÀNG
   ============================================================================ */
.game-card.is-sold-out {
  border-color: rgba(239, 68, 68, 0.45);
}

.game-card.is-sold-out .card-media img {
  filter: grayscale(0.55) brightness(0.68);
}

.card-badge.soldout-badge {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  color: #ffffff !important;
  border: 1px solid rgba(254, 202, 202, 0.65);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.55);
}

.card-soldout-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 9, 19, 0.42);
  pointer-events: none;
  z-index: 3;
}

.card-soldout-stamp {
  padding: 7px 18px;
  border-radius: 10px;
  border: 2px solid rgba(248, 113, 113, 0.92);
  background: rgba(153, 27, 27, 0.88);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-6deg);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
}

.btn-sm.soldout-btn {
  background: rgba(239, 68, 68, 0.16) !important;
  border: 1px solid rgba(239, 68, 68, 0.55) !important;
  color: #fca5a5 !important;
  font-weight: 800;
}

.btn-sm.soldout-btn:hover {
  background: rgba(239, 68, 68, 0.28) !important;
}

.soldout-notice-box {
  text-align: center;
  padding: 34px 18px;
}

.soldout-notice-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #f87171;
}

/* ============================================================================
   THANH QUY TRÌNH GIAO DỊCH 3 BƯỚC PRO + KHO ĐÃ MUA + NÚT TẢI VỀ
   ============================================================================ */
.trade-steps-section {
  padding: 6px 0 28px;
}

.trade-steps-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trade-step-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(17, 25, 46, 0.92), rgba(11, 18, 36, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.trade-step-num {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: #060913;
  background: linear-gradient(135deg, #fde047, #f59e0b);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
}

.trade-step-num.cyan {
  background: linear-gradient(135deg, #38bdf8, #06b6d4);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.45);
}

.trade-step-num.emerald {
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.45);
}

.trade-step-card strong {
  display: block;
  font-size: 14px;
  color: #f8fafc;
  margin-bottom: 4px;
}

.trade-step-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.48;
}

.nav-purchases-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(6, 182, 212, 0.22)) !important;
  border: 1px solid rgba(52, 211, 153, 0.55) !important;
  color: #6ee7b7 !important;
}

.nav-purchases-btn:hover {
  background: linear-gradient(135deg, #10b981, #06b6d4) !important;
  color: #060913 !important;
}

.card-badge.owned-badge {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  color: #ffffff !important;
  border: 1px solid rgba(167, 243, 208, 0.65);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
}

.btn-sm.download-owned-btn {
  background: linear-gradient(135deg, #10b981, #06b6d4) !important;
  border: none !important;
  color: #041019 !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-sm.download-owned-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.purchases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 14px;
}

.purchase-card {
  background: #070b16;
  border: 1px solid rgba(52, 211, 153, 0.32);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.purchase-card-top {
  display: flex;
  gap: 13px;
  align-items: center;
}

.purchase-card-top img {
  width: 78px;
  height: 54px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.purchase-license-box {
  background: #0f172a;
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: 9px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: monospace;
  font-size: 12px;
  color: #34d399;
}

.purchase-note-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 12.5px;
  color: #fde68a;
  line-height: 1.5;
}

.download-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  color: #041019;
  font-weight: 900;
  font-size: 13.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.download-cta-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.upload-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #0f172a;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.upload-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  transition: width 0.2s ease;
}

/* Kho File Source — Studio 3 Gói Bản Quyền Độc Lập */
.pkg-game-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pkg-game-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #070b16;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
}

.pkg-game-chip:hover {
  border-color: rgba(56, 189, 248, 0.55);
  color: #ffffff;
}

.pkg-game-chip.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(6, 182, 212, 0.22));
  border-color: rgba(251, 191, 36, 0.75);
  color: #fde047;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.pkg-chip-count {
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

.pkg-chip-count.full {
  background: rgba(16, 185, 129, 0.24);
  color: #34d399;
}

.pkg-chip-count.partial {
  background: rgba(245, 158, 11, 0.24);
  color: #fde047;
}

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

.pkg-tier-card {
  background: #070b16;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pkg-tier-card.tier-pro {
  border-color: rgba(56, 189, 248, 0.4);
}

.pkg-tier-card.tier-vip {
  border-color: rgba(251, 191, 36, 0.45);
}

.pkg-tier-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.pkg-tier-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 5px;
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

.pkg-tier-tag.pro {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

.pkg-tier-tag.vip {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(234, 88, 12, 0.3));
  color: #fde047;
}

.pkg-tier-status {
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.45;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.pkg-tier-status.ready {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(52, 211, 153, 0.38);
  color: #a7f3d0;
}

.pkg-tier-section {
  background: rgba(17, 25, 46, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pkg-tier-section label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

.pkg-tier-section input[type="text"],
.pkg-tier-section input[type="url"],
.pkg-tier-section select {
  width: 100%;
  background: #060913;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 10px;
  color: #ffffff;
  font-size: 12px;
}

.pkg-legacy-banner {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.5);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 12.8px;
  color: #fde68a;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

@media (max-width: 1024px) {
  .pkg-tiers-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .trade-steps-strip,
  .purchases-grid {
    grid-template-columns: 1fr;
  }
}

.admin-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.admin-tier-editor-card {
  background: #060913;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 1180px) {
  .nav-search {
    display: none;
  }
}

@media (max-width: 820px) {
  .admin-editor-grid {
    grid-template-columns: 1fr;
  }
}

.auth-error-box {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ============================================================================
   NÚT CHAT TRỰC TIẾP Ở FOOTER + WIDGET LIVE CHAT MEMBER
   ============================================================================ */
.footer-chat-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-chat-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.footer-chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.55);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.24), rgba(16, 185, 129, 0.24));
  color: #ffffff;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(6, 182, 212, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-chat-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(6, 182, 212, 0.36);
}

.footer-chat-status {
  font-size: 12px;
  color: var(--text-secondary);
}

.chat-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
  flex-shrink: 0;
}

.chat-status-dot.online {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.85);
}

.floating-chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 130;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.6);
  background: linear-gradient(135deg, #0e7490, #059669);
  color: #ffffff;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.35);
  transition: transform 0.2s ease;
}

.floating-chat-launcher:hover {
  transform: translateY(-2px) scale(1.03);
}

.live-chat-widget {
  position: fixed;
  right: 22px;
  bottom: 80px;
  width: 375px;
  max-width: calc(100vw - 24px);
  height: 510px;
  max-height: calc(100vh - 110px);
  z-index: 140;
  display: none;
  flex-direction: column;
  background: #0b1121;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72);
}

.live-chat-widget.open {
  display: flex;
}

.live-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  background: linear-gradient(135deg, #0f172a, #112240);
  border-bottom: 1px solid var(--border-subtle);
}

.live-chat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #ffffff;
}

.live-chat-subtitle {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.live-chat-userbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-secondary);
}

.live-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #060913;
}

.chat-msg-row {
  display: flex;
  flex-direction: column;
  max-width: 84%;
}

.chat-msg-row.mine {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-msg-row.theirs {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-msg-meta {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 3px;
}

.chat-msg-bubble {
  padding: 9px 13px;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.48;
  word-break: break-word;
  white-space: pre-wrap;
}

.chat-msg-row.mine .chat-msg-bubble {
  background: linear-gradient(135deg, #0284c7, #0d9488);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-msg-row.theirs .chat-msg-bubble {
  background: #172036;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #f1f5f9;
  border-bottom-left-radius: 4px;
}

.live-chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #0f172a;
  border-top: 1px solid var(--border-subtle);
}

.live-chat-input-row input {
  flex: 1;
  min-width: 0;
  background: #060913;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 13px;
}

.live-chat-input-row input:focus {
  outline: none;
  border-color: #38bdf8;
}

.live-chat-send-btn {
  padding: 0 16px !important;
  height: 40px;
}

/* ============================================================================
   BẢNG QUẢN TRỊ ADMIN PANEL (LIVE CHAT + ĐƠN HÀNG + THÀNH VIÊN + CÀI ĐẶT)
   ============================================================================ */
.admin-panel-dialog {
  max-width: 1120px !important;
  width: 96vw;
}

.admin-panel-body {
  min-height: 540px;
  max-height: 76vh;
  overflow-y: auto;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
}

.admin-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.admin-stat-val {
  font-size: 22px;
  font-weight: 900;
  color: #fde047;
}

.admin-chat-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 14px;
  height: 520px;
}

.admin-rooms-sidebar {
  background: #070b16;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-rooms-header {
  padding: 11px 13px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
}

.admin-rooms-list {
  flex: 1;
  overflow-y: auto;
}

.admin-room-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  padding: 11px 13px;
  cursor: pointer;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-room-item:hover {
  background: rgba(56, 189, 248, 0.08);
}

.admin-room-item.active {
  background: rgba(56, 189, 248, 0.16);
  border-left: 3px solid #38bdf8;
}

.admin-room-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.admin-room-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-room-preview {
  font-size: 12px;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-chat-main {
  background: #070b16;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-chat-main-header {
  padding: 11px 15px;
  border-bottom: 1px solid var(--border-subtle);
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  background: #0f172a;
  color: #fde047;
  font-weight: 800;
}

.status-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

.status-pill.pending {
  background: rgba(245, 158, 11, 0.18);
  color: #fde047;
}

.status-pill.paid {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.status-pill.cancelled {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

@media (max-width: 900px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-chat-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .admin-rooms-sidebar {
    max-height: 200px;
  }
  .admin-chat-main {
    height: 400px;
  }
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: rgba(17, 25, 46, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.45);
  backdrop-filter: blur(10px);
  color: #f8fafc;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  animation: slideInToast 0.3s ease;
}

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

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 44px 0 32px;
  background: #050811;
  color: var(--text-muted);
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer h4 {
  color: #f8fafc;
  margin-bottom: 12px;
  font-size: 14.5px;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 1024px) {
  .hero-grid,
  .modal-video-layout {
    grid-template-columns: 1fr;
  }
  .tiers-grid,
  .code-explorer,
  .checkout-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .games-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .cinema-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
  .chapter-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================================
   HỆ THỐNG NỀN GAMING STUDIO ĐA TẦNG & NÂNG CẤP THẨM MỸ PRO (GLASSMORPHISM)
   ============================================================================ */
.topbar,
.hero,
.trade-steps-section,
.catalog-section,
.ecosystem-section,
.reviews-section,
.footer {
  position: relative;
  z-index: 1;
}

.studio-bg-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #03060f;
}

/* Lớp 1: Ảnh nền nghệ thuật Gaming Studio độc quyền (Vàng Rồng + Plasma Cyan + Thành Phố Chân Trời) */
.studio-bg-photo {
  position: absolute;
  inset: -2%;
  background-image: url('../images/studio-bg.jpg?v=20261205g');
  background-size: cover;
  background-position: center 22%;
  background-repeat: no-repeat;
  opacity: 0.94;
  filter: saturate(1.18) contrast(1.06);
  will-change: transform;
  animation: studioBgBreath 28s ease-in-out infinite alternate;
}

@keyframes studioBgBreath {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.045) translate3d(0, -10px, 0); }
}

/* Lớp 2: Lưới kiến trúc công nghệ siêu mảnh có mặt nạ mờ dần ở rìa */
.studio-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.048) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.048) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 84% 72% at 50% 28%, rgba(0, 0, 0, 0.92) 8%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 84% 72% at 50% 28%, rgba(0, 0, 0, 0.92) 8%, transparent 78%);
}

/* Lớp 3: 3 Quầng sáng cực quang trôi chậm (chỉ dùng GPU transform, không giật lag) */
.studio-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  will-change: transform;
  opacity: 0.42;
}

.studio-bg-orb.orb-amber {
  top: -12%;
  left: -8%;
  width: 46vw;
  max-width: 680px;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.42) 0%, rgba(234, 88, 12, 0.14) 48%, transparent 72%);
  animation: orbDriftA 22s ease-in-out infinite alternate;
}

.studio-bg-orb.orb-cyan {
  top: 6%;
  right: -10%;
  width: 48vw;
  max-width: 720px;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.38) 0%, rgba(6, 182, 212, 0.14) 46%, transparent 72%);
  animation: orbDriftB 25s ease-in-out infinite alternate;
}

.studio-bg-orb.orb-violet {
  bottom: -18%;
  left: 28%;
  width: 44vw;
  max-width: 660px;
  aspect-ratio: 1 / 1;
  opacity: 0.28;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.34) 0%, rgba(139, 92, 246, 0.12) 50%, transparent 72%);
  animation: orbDriftC 28s ease-in-out infinite alternate;
}

@keyframes orbDriftA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(40px, 28px, 0) scale(1.08); }
}

@keyframes orbDriftB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-44px, 34px, 0) scale(1.09); }
}

@keyframes orbDriftC {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(26px, -32px, 0) scale(1.06); }
}

/* Lớp 4: Canvas hạt lửa vàng rồng & tia plasma cyan bay chậm */
.studio-embers-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

/* Lớp 5: Màn cân bằng độ tương phản giữ chữ & thẻ luôn sắc nét ở trung tâm nhưng khoe rõ dải sáng hai bên */
.studio-bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 68% 64% at 50% 38%, rgba(4, 7, 18, 0.24) 0%, rgba(3, 6, 15, 0.42) 100%),
    linear-gradient(180deg, rgba(3, 6, 15, 0.16) 0%, rgba(3, 6, 15, 0.28) 46%, rgba(3, 6, 15, 0.58) 100%);
}

/* Thanh cuộn tinh tế chuẩn Studio */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: #050915;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.45), rgba(34, 211, 238, 0.45));
  border-radius: 999px;
  border: 2px solid #050915;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f59e0b, #22d3ee);
}

/* Navbar Kính Mờ + Viền Ánh Sáng Đáy */
.navbar {
  background: rgba(5, 9, 22, 0.72);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.48);
}

.navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(251, 191, 36, 0.55) 26%,
    rgba(34, 211, 238, 0.58) 74%,
    transparent 100%
  );
  pointer-events: none;
}

.nav-search {
  width: 192px;
}

.nav-search input,
.icon-btn {
  background: rgba(13, 21, 42, 0.78);
  backdrop-filter: blur(10px);
}

/* Hero Section Nổi Bật & Kính Mờ Cao Cấp */
.hero {
  padding: 36px 0 32px;
}

.hero-cta-row {
  gap: 8px;
  margin-bottom: 18px;
}

.hero-cta-row .btn-primary,
.hero-cta-row .btn-secondary {
  padding: 10px 13px;
  font-size: 12.8px;
  gap: 6px;
  white-space: nowrap;
}

.cinema-stage {
  background-size: cover;
  background-position: center;
}

.cinema-stage iframe {
  background: transparent;
}

.hero-eyebrow {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.14));
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-title {
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.quick-game-chip {
  background: rgba(12, 20, 40, 0.72);
  backdrop-filter: blur(10px);
  border-color: rgba(148, 163, 184, 0.2);
}

.quick-game-chip:hover,
.quick-game-chip.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(234, 88, 12, 0.22));
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.28);
}

/* Hiệu ứng tia sáng lướt trên nút CTA chính */
.btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 65%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  transition: left 0.55s ease;
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 145%;
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.48), 0 0 22px rgba(251, 191, 36, 0.32);
}

.btn-secondary {
  background: rgba(13, 21, 42, 0.74);
  backdrop-filter: blur(12px);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

/* Các ô chỉ số Hero dạng thẻ kính phát sáng */
.hero-stats {
  border-top: none;
  padding-top: 8px;
}

.stat-item {
  background: linear-gradient(160deg, rgba(14, 22, 44, 0.74), rgba(8, 13, 28, 0.82));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 13px;
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.14);
}

.stat-item strong {
  background: linear-gradient(135deg, #ffffff 10%, #fde047 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Khung Cinema Video Nổi Bật Như Phòng Trưng Bày Studio */
.cinema-card {
  position: relative;
  background: linear-gradient(165deg, rgba(16, 26, 52, 0.84) 0%, rgba(8, 13, 28, 0.9) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(251, 191, 36, 0.38);
  box-shadow:
    0 28px 66px -12px rgba(0, 0, 0, 0.82),
    0 0 46px rgba(245, 158, 11, 0.15),
    0 0 40px rgba(34, 211, 238, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.cinema-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fde047, #22d3ee, transparent);
  border-radius: 999px;
  pointer-events: none;
}

.rec-badge {
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.65);
}

/* Thanh 3 Bước Giao Dịch Kính Mờ Có Viền Phát Sáng Theo Màu */
.trade-step-card {
  background: linear-gradient(145deg, rgba(13, 21, 44, 0.78), rgba(8, 13, 28, 0.84));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.trade-step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.48);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.56), 0 0 26px rgba(245, 158, 11, 0.14);
}

.trade-step-card:nth-child(2):hover {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.56), 0 0 26px rgba(6, 182, 212, 0.16);
}

.trade-step-card:nth-child(3):hover {
  border-color: rgba(52, 211, 153, 0.52);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.56), 0 0 26px rgba(16, 185, 129, 0.16);
}

/* Thanh Lọc & Lưới Thẻ Game Kính Mờ + Hiệu Ứng Đèn Spotlight Theo Chuột */
.filter-bar {
  background: rgba(10, 16, 35, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.filter-tab.active {
  background: linear-gradient(135deg, #fde047, #f59e0b);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.36);
}

.select-box {
  background: rgba(15, 23, 46, 0.86);
  border-color: rgba(148, 163, 184, 0.22);
}

.game-card {
  position: relative;
  background: linear-gradient(180deg, rgba(16, 25, 48, 0.82) 0%, rgba(9, 14, 29, 0.9) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 15%),
    rgba(251, 191, 36, 0.14),
    rgba(34, 211, 238, 0.06) 42%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  z-index: 1;
}

.game-card > * {
  position: relative;
  z-index: 2;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.58);
  box-shadow:
    0 26px 56px rgba(0, 0, 0, 0.72),
    0 0 34px rgba(245, 158, 11, 0.16),
    0 0 26px rgba(34, 211, 238, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.game-card:hover::before {
  opacity: 1;
}

.card-ccu {
  backdrop-filter: blur(8px);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.28);
}

.price-block .current-price {
  text-shadow: 0 0 22px rgba(251, 191, 36, 0.3);
}

.btn-sm.buy {
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.34);
}

.btn-sm.buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.48);
}

/* Khu Vực Đặc Quyền & Đánh Giá Khách Hàng Trong Suốt Tinh Tế */
.ecosystem-section {
  background: linear-gradient(180deg, rgba(6, 10, 22, 0.42) 0%, rgba(10, 16, 34, 0.64) 50%, rgba(6, 10, 22, 0.42) 100%);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(251, 191, 36, 0.18);
  border-bottom: 1px solid rgba(34, 211, 238, 0.18);
}

.reviews-section {
  border-top: none;
}

.eco-card,
.review-card {
  background: linear-gradient(160deg, rgba(14, 22, 44, 0.8), rgba(8, 13, 28, 0.86));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.eco-card:hover,
.review-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.62), 0 0 28px rgba(34, 211, 238, 0.13);
}

.eco-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(34, 211, 238, 0.14));
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.2);
}

/* Chống xuống dòng nhãn ✓ Đã mua trong thẻ đánh giá */
.review-header {
  gap: 10px;
  align-items: flex-start;
}

.reviewer {
  min-width: 0;
}

.reviewer-avatar {
  flex-shrink: 0;
}

.verified-tag {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 4px 10px;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

/* Footer Kính Tối Sang Trọng + Viền Sáng Chân Trời (chừa khoảng thoáng cho nút Chat Admin góc phải) */
.footer {
  background: linear-gradient(180deg, rgba(5, 9, 22, 0.84) 0%, rgba(3, 6, 14, 0.96) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 48px 0 82px;
}

.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(251, 191, 36, 0.5) 30%,
    rgba(34, 211, 238, 0.5) 70%,
    transparent 100%
  );
  pointer-events: none;
}

.footer a {
  transition: color 0.18s ease;
}

.footer a:hover {
  color: #fde047;
}

/* Modal & Dialog Kính Sâu Sắc Nét */
.modal-backdrop {
  background: rgba(2, 5, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal-dialog {
  background: linear-gradient(180deg, rgba(15, 23, 44, 0.97) 0%, rgba(10, 15, 30, 0.98) 100%);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.85),
    0 0 42px rgba(245, 158, 11, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Tôn trọng chế độ giảm chuyển động của thiết bị */
@media (prefers-reduced-motion: reduce) {
  .studio-bg-photo,
  .studio-bg-orb {
    animation: none !important;
  }
}
