/* ==========================================================================
   NEXUS GAMING STORE - MODERN CYBERPUNK / GAMING DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #101522;
  --bg-tertiary: #161c2d;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 35, 56, 0.85);
  --bg-glass: rgba(15, 21, 36, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 240, 255, 0.5);

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.25);
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.3);
  --accent-pink: #ec4899;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --accent-red: #ef4444;

  --gradient-neon: linear-gradient(135deg, #00f0ff 0%, #8b5cf6 100%);
  --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.2) 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px var(--accent-cyan-glow);
  --shadow-purple-glow: 0 0 25px var(--accent-purple-glow);

  --font-khmer: 'Kantumruy Pro', 'Battambang', sans-serif;
  --font-main: 'Outfit', 'Kantumruy Pro', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-gaming: 'Rajdhani', 'Outfit', 'Kantumruy Pro', sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Ambient Glows */
body::before {
  content: '';
  position: fixed;
  top: -150px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: 10%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.07) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

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

button, input, select, textarea {
  font-family: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
  transition: var(--transition);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Ticker Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #121828, #1a1638, #121828);
  border-bottom: 1px solid var(--border-glass);
  padding: 8px 0;
  font-size: 0.85rem;
  overflow: hidden;
  position: relative;
  z-index: 100;
}

.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ticker-badge {
  background: var(--accent-red);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: tickerSlide 35s linear infinite;
  color: #e2e8f0;
}

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

/* Header & Navigation */
.main-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-gaming);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.45);
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-logo:hover .logo-icon {
  transform: scale(1.08);
  box-shadow: 0 0 24px var(--accent-cyan);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-input-wrap input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: white;
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-input-wrap input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
  background: var(--bg-tertiary);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.95rem;
  pointer-events: none;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.currency-toggle-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: var(--accent-gold);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.currency-toggle-btn:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.btn-track-order {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-track-order:hover {
  background: rgba(139, 92, 246, 0.25);
  color: white;
}

.btn-admin-portal {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid var(--border-glass);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-admin-portal:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.btn-telegram-direct {
  background: linear-gradient(135deg, #0088cc, #00c6ff);
  color: white;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.35);
}

.btn-telegram-direct:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.55);
}

/* Hero Section & Banner Carousel */
.hero-section {
  padding: 24px 0 36px;
}

.hero-slider-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-glass);
  background: var(--bg-secondary);
  height: 380px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 13, 20, 0.95) 0%, rgba(10, 13, 20, 0.75) 50%, rgba(10, 13, 20, 0.3) 100%);
  display: flex;
  align-items: center;
  padding: 0 48px;
}

.slide-content {
  max-width: 650px;
}

.slide-badge {
  display: inline-block;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.slide-title {
  font-family: var(--font-gaming);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: white;
  margin-bottom: 14px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.slide-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.45;
}

.slide-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.btn-primary-neon {
  background: var(--gradient-neon);
  color: #0b0f19;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  box-shadow: 0 0 20px var(--accent-cyan-glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-neon:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-cyan-glow);
}

.btn-secondary-glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  backdrop-filter: blur(8px);
}

.btn-secondary-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Slider Controls */
.slider-dots {
  position: absolute;
  bottom: 20px;
  right: 40px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  width: 28px;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* Trust Ticker / Feature Stats */
.features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.feature-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.feature-pill:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.8rem;
}

.feature-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
}

.feature-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Categories Section */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
}

.section-title {
  font-family: var(--font-gaming);
  font-size: 1.7rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Category Navigation Controls in Header */
.category-nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-cat-scroll {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cat-scroll:hover:not(:disabled) {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
  transform: translateY(-2px);
}

.btn-cat-scroll:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  transform: none;
}

/* Outer Container with Floating Side Arrows */
.category-chips-outer-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.cat-float-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(13, 20, 36, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  transition: all 0.25s ease;
}

.cat-float-btn.left {
  left: -12px;
}

.cat-float-btn.right {
  right: -12px;
}

.cat-float-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 20px var(--accent-cyan-glow);
  transform: translateY(-50%) scale(1.1);
}

.cat-float-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.8);
}

.category-chips-wrap {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 6px 14px 6px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  cursor: grab;
  user-select: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 255, 0.35) rgba(255, 255, 255, 0.04);
}

.category-chips-wrap:active {
  cursor: grabbing;
}

/* Futuristic Cyberpunk Scrollbar */
.category-chips-wrap::-webkit-scrollbar {
  height: 6px;
  display: block;
}

.category-chips-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin: 0 10px;
}

.category-chips-wrap::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.15);
  transition: background 0.3s, box-shadow 0.3s;
}

.category-chips-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.category-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.category-chip:hover {
  background: var(--bg-tertiary);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.category-chip.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 16px var(--accent-cyan-glow);
}

.category-chip .cat-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

/* Filter & Search Bar */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
}

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

.filter-select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.filter-select:focus {
  border-color: var(--accent-cyan);
}

.items-counter {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.15);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0d121f;
  overflow: hidden;
}

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

.product-card:hover .card-media img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card-badge.hot {
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  border: none;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
}

.card-badge.vip {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border: none;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.4);
}

.card-delivery-tag {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(16, 185, 129, 0.85);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.card-cat-stock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 4px;
}

.card-game-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.card-plans-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.plan-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #d1d5db;
}

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

.card-price-wrap {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.price-value {
  font-family: var(--font-gaming);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.price-khr {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-buy-card {
  background: var(--gradient-neon);
  color: #0b0f19;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-buy-card:hover {
  transform: scale(1.04);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

/* Modals System */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.1);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
}

.modal-backdrop.open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.8);
}

.modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border-glass);
}

.modal-body {
  padding: 24px 28px;
}

.modal-footer {
  padding: 16px 28px 24px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Product Detail Modal Specifics */
.modal-product-hero {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.modal-media-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.modal-prod-img {
  width: 150px;
  height: 150px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.modal-prod-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.25);
}

/* Button to View Additional Photos from Account */
.btn-view-gallery {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(168, 85, 247, 0.15);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.15);
}

.btn-view-gallery:hover {
  background: rgba(168, 85, 247, 0.3);
  border-color: #a855f7;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
}

.btn-view-gallery i {
  color: #c084fc;
}

.gallery-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #a855f7;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  min-width: 18px;
  line-height: 1.2;
}

.modal-prod-info {
  flex: 1;
}

.modal-prod-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
}

/* Plan Selection Cards */
.plans-selection-group {
  margin: 20px 0;
}

.plans-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-option-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}

.plan-option-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.04);
}

.plan-option-card.selected {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.plan-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.plan-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-option-card.selected .plan-radio {
  border-color: var(--accent-cyan);
}

.plan-option-card.selected .plan-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

.plan-option-card.plan-out-of-stock {
  opacity: 0.6;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.04);
}

.plan-option-card.plan-out-of-stock:hover {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.07);
}

.plan-option-card.plan-out-of-stock.selected {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.plan-option-card.plan-out-of-stock .plan-radio {
  border-color: rgba(239, 68, 68, 0.6);
}

.plan-option-card.plan-out-of-stock.selected .plan-radio {
  border-color: #ef4444;
}

.plan-option-card.plan-out-of-stock.selected .plan-radio::after {
  background: #ef4444;
}

.plan-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
}

.plan-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.plan-price-tag {
  font-family: var(--font-gaming);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-cyan);
  text-align: right;
}

/* Feature bullets */
.features-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
}

.features-checklist li {
  font-size: 0.85rem;
  color: #d1d5db;
  display: flex;
  align-items: center;
  gap: 8px;
}

.features-checklist li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 800;
}

/* Checkout & Topup Modal Payment Tabs */
.payment-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.payment-tab-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.payment-tab-btn:hover {
  border-color: rgba(0, 240, 255, 0.4);
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.payment-tab-btn.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.qr-box-wrap {
  text-align: center;
  background: white;
  padding: 16px;
  border-radius: var(--radius-md);
  max-width: 240px;
  margin: 0 auto 16px;
}

.qr-box-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.payment-bank-details {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 16px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-label {
  color: var(--text-muted);
}

.detail-val {
  color: white;
  font-weight: 700;
}

/* Form elements */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

/* How It Works & Trust Sections */
.info-section {
  padding: 48px 0;
  border-top: 1px solid var(--border-glass);
}

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

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 240, 255, 0.12);
}

.step-num {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-gaming);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer */
.site-footer {
  background: #080b12;
  border-top: 1px solid var(--border-glass);
  padding: 48px 0 100px; /* space for mobile bottom bar */
  margin-top: 60px;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 14px 0;
  max-width: 320px;
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.payment-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.payment-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: #f1f5f9;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  user-select: none;
}

.payment-badge:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.2);
  color: #ffffff;
}

.bank-badge-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
  display: inline-block;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(12, 16, 26, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-glass);
  z-index: 99;
  padding: 8px 12px 14px;
}

.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  transition: var(--transition);
}

.bottom-nav-item.active, .bottom-nav-item:hover {
  color: var(--accent-cyan);
}

.bottom-nav-item .nav-icon {
  font-size: 1.25rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastIn 0.3s ease;
}

.toast.success {
  border-left: 4px solid var(--accent-green);
}

.toast.error {
  border-left: 4px solid var(--accent-red);
}

@keyframes toastIn {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS & MOBILE HEADER
   ========================================================================== */

/* Default Mobile Search Container (Hidden on Desktop) */
#mobile-search-container {
  display: none;
}

/* 1. Laptops / Tablets Landscape (1025px - 1240px) */
@media (max-width: 1240px) and (min-width: 769px) {
  .header-inner {
    gap: 12px;
  }
  .header-search {
    max-width: 220px;
  }
  .header-actions {
    gap: 8px;
  }
  .btn-track-order, .btn-admin-portal, .btn-telegram-direct {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
}

/* 2. Tablets & Small Laptops (769px - 1024px) */
@media (max-width: 1024px) {
  .features-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .header-search {
    max-width: 180px;
  }
  .header-actions {
    gap: 6px;
  }
  /* Icon only for secondary desktop buttons to prevent squishing */
  .btn-track-order span:last-child,
  .btn-admin-portal span:last-child,
  .btn-telegram-direct span:last-child,
  .currency-toggle-btn #curr-text {
    display: none !important;
  }
  .btn-track-order,
  .btn-admin-portal,
  .btn-telegram-direct,
  .currency-toggle-btn {
    padding: 8px 10px;
  }
  .user-wallet-pill .wallet-topup-tag {
    display: none !important;
  }
}

/* 3. Mobile Phones & Phablets (<= 768px) */
@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: block;
  }

  /* Compact Sleek Mobile Header */
  .main-header {
    height: 60px;
  }
  .header-inner {
    height: 60px;
    padding: 0 14px;
    gap: 8px;
    justify-content: space-between;
  }

  /* Compact Brand Logo */
  .brand-logo {
    font-size: 1.2rem;
    gap: 8px;
    flex-shrink: 0;
  }
  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    border-radius: 8px;
  }
  .brand-text {
    font-size: 1.2rem;
  }
  .brand-badge {
    font-size: 0.58rem;
    padding: 1px 5px;
  }

  /* Hide Desktop-only items from Header */
  .header-search {
    display: none !important;
  }
  .btn-track-order {
    display: none !important;
  }
  .btn-admin-portal {
    display: none !important;
  }
  .btn-telegram-direct {
    display: none !important;
  }

  /* Clean, compact right actions */
  .header-actions {
    gap: 6px;
    align-items: center;
  }

  /* Currency Toggle Button (Compact) */
  .currency-toggle-btn {
    padding: 5px 8px;
    font-size: 0.78rem;
    gap: 4px;
    border-radius: var(--radius-full);
  }
  .currency-toggle-btn #curr-text {
    font-size: 0.75rem;
  }

  /* Wallet Pill (Compact Mobile) */
  .user-wallet-pill {
    padding: 5px 9px;
    gap: 5px;
    border-radius: var(--radius-full);
  }
  .user-wallet-pill .wallet-icon {
    font-size: 0.82rem;
  }
  .user-wallet-pill .wallet-amount {
    font-size: 0.82rem;
  }
  .user-wallet-pill .wallet-topup-tag {
    display: none !important;
  }

  /* User Profile Trigger -> Clean Circular Avatar Icon */
  .btn-user-profile {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    gap: 0 !important;
  }
  .btn-user-profile #user-nav-name,
  .btn-user-profile span:last-child {
    display: none !important;
  }
  .user-avatar-badge {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan-glow);
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  .btn-user-profile:hover .user-avatar-badge {
    transform: scale(1.05);
  }

  /* User Dropdown Position on Mobile */
  .user-dropdown-menu {
    right: 14px;
    top: calc(100% + 8px);
    min-width: 250px;
  }

  /* Guest Auth Trigger (Sign In) */
  .btn-auth-trigger {
    padding: 6px 12px;
    font-size: 0.8rem;
    gap: 6px;
  }

  /* Mobile Search Bar below Header */
  #mobile-search-container {
    display: block !important;
    margin: 10px auto 4px;
    padding: 0 16px;
  }
  #mobile-search-container .search-input-wrap input {
    height: 42px;
    font-size: 0.85rem;
    padding-left: 38px;
    background: rgba(18, 24, 38, 0.9);
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
  #mobile-search-container .search-icon {
    left: 12px;
    color: var(--accent-cyan);
  }

  .hero-slider-wrap {
    height: 300px;
  }
  .slide-overlay {
    padding: 0 20px;
  }
  .slide-title {
    font-size: 1.6rem;
  }
  .slide-subtitle {
    font-size: 0.85rem;
  }
  .features-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .features-checklist {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .modal-product-hero {
    flex-direction: column;
    gap: 14px;
  }
  .modal-media-wrapper {
    width: 100%;
  }
  .modal-prod-img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    max-height: 380px !important;
    object-fit: cover !important;
    border-radius: var(--radius-md);
  }
  .btn-view-gallery {
    padding: 10px 16px;
    font-size: 0.88rem;
    margin-top: 4px;
  }
  .lightbox-container {
    max-height: 98vh;
    border-radius: var(--radius-md);
  }
  .lightbox-body {
    min-height: 240px;
    max-height: 50vh;
    padding: 8px;
  }
  .lightbox-main-img {
    max-height: 48vh;
  }
  .lightbox-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
  .lightbox-nav-btn.prev {
    left: 8px;
  }
  .lightbox-nav-btn.next {
    right: 8px;
  }
  .lightbox-thumb-item {
    width: 50px;
    height: 50px;
  }
  .modal-container {
    max-height: 95vh;
  }

  /* 2 Columns Side-by-Side Product Cards on Mobile (2 ទទឹមគ្នា) */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 32px;
  }

  .product-card {
    border-radius: var(--radius-md);
  }

  /* Compact 2-column Card Body */
  .card-body {
    padding: 10px 8px 12px;
  }

  .card-cat-stock-row {
    margin-bottom: 4px;
    gap: 3px;
  }

  .card-game-cat {
    font-size: 0.65rem;
    letter-spacing: 0.4px;
    max-width: 85px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-title {
    font-size: 0.85rem;
    line-height: 1.25;
    margin-bottom: 6px;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-desc {
    display: none; /* Hide description on mobile 2-column grid for clean uniform card height */
  }

  .card-plans-preview {
    gap: 3px;
    margin-bottom: 8px;
  }

  .plan-pill {
    padding: 2px 5px;
    font-size: 0.62rem;
    border-radius: 3px;
  }

  .card-footer {
    padding-top: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .card-price-wrap {
    width: 100%;
  }

  .price-label {
    font-size: 0.58rem;
  }

  .price-value {
    font-size: 1rem;
  }

  .price-khr {
    font-size: 0.65rem;
  }

  .btn-buy-card {
    width: 100%;
    justify-content: center;
    padding: 6px 8px;
    font-size: 0.72rem;
    border-radius: var(--radius-sm);
  }

  .card-badge {
    top: 6px;
    left: 6px;
    font-size: 0.58rem;
    padding: 2px 5px;
  }

  .card-delivery-tag {
    bottom: 6px;
    right: 6px;
    font-size: 0.58rem;
    padding: 1px 5px;
  }
}

/* 4. Very Small Mobile Phones (<= 400px e.g. iPhone SE / 360px Android) */
@media (max-width: 400px) {
  .products-grid {
    gap: 6px !important;
  }
  .card-body {
    padding: 8px 6px 10px;
  }
  .card-title {
    font-size: 0.8rem;
  }
  .price-value {
    font-size: 0.95rem;
  }
  .btn-buy-card {
    padding: 5px 6px;
    font-size: 0.7rem;
  }
  .brand-text {
    font-size: 1.1rem;
  }
  .brand-badge {
    display: none !important;
  }
  .user-wallet-pill .wallet-topup-tag {
    display: none !important;
  }
  .user-wallet-pill {
    padding: 4px 8px;
  }
  .currency-toggle-btn {
    padding: 5px 6px;
  }
  .currency-toggle-btn #curr-text {
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   USER AUTHENTICATION & PROFILE DROPDOWN STYLES
   ========================================================================== */

.btn-auth-trigger {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: white;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-auth-trigger:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(139, 92, 246, 0.4));
  box-shadow: 0 0 16px var(--accent-cyan-glow);
  transform: translateY(-1px);
}

/* Logged In User Dropdown */
.user-menu-wrap {
  position: relative;
}

.btn-user-profile {
  background: var(--bg-tertiary);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: white;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-user-profile:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.user-avatar-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient-neon);
  color: #0b0f19;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  min-width: 220px;
  padding: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: none;
  backdrop-filter: blur(16px);
}

.user-dropdown-menu.open {
  display: block;
}

.dropdown-user-info {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 6px;
}

.dropdown-username {
  font-weight: 800;
  color: white;
  font-size: 0.95rem;
}

.dropdown-email {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dropdown-item-btn {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #d1d5db;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.dropdown-item-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
}

.dropdown-item-btn.logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

/* Auth Modal Tabs */
.auth-nav-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 20px;
}

.auth-nav-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 12px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.auth-nav-tab.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.04);
}

.auth-nav-tab:hover {
  color: white;
}

/* User Wallet Pill & Top-Up Styling */
.user-wallet-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  cursor: pointer;
  transition: var(--transition);
}

.user-wallet-pill:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.wallet-icon {
  font-size: 1rem;
}

.wallet-amount {
  font-family: var(--font-gaming);
  font-weight: 800;
  color: #6ee7b7;
  font-size: 0.95rem;
}

.wallet-topup-tag {
  background: #10b981;
  color: #0b0f19;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.dropdown-balance-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dropdown-balance-row strong {
  font-family: var(--font-gaming);
  color: #34d399;
  font-size: 0.95rem;
}

.dropdown-item-btn.highlight {
  color: #6ee7b7;
  font-weight: 700;
}

.dropdown-item-btn.highlight:hover {
  background: rgba(16, 185, 129, 0.15);
  color: #a7f3d0;
}

/* Top-up Amount Chips */
.topup-amount-chips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.amount-chip {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: white;
  font-family: var(--font-gaming);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 4px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.amount-chip:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
}

.amount-chip.active {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

/* ==========================================
   ORDER USAGE & LOGIN GUIDE (LINK & TEXT)
   ========================================== */
.order-guide-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 78, 59, 0.15) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 14px;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.order-guide-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #10b981, #38bdf8, #10b981);
}

.order-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.order-guide-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  color: #34d399;
  letter-spacing: 0.3px;
}

.order-guide-tag {
  font-size: 0.7rem;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
}

.order-guide-text {
  background: rgba(9, 13, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #f1f5f9;
  font-size: 0.84rem;
  line-height: 1.6;
  white-space: pre-line;
  word-break: break-word;
  font-family: inherit;
}

.order-guide-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  margin-top: 12px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  cursor: pointer;
}

.order-guide-link-btn:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #022c22 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.order-guide-link-btn i {
  font-size: 0.9rem;
}

/* ================= GALLERY LIGHTBOX MODAL ================= */
.lightbox-backdrop {
  z-index: 10000 !important;
  background: rgba(5, 7, 15, 0.95) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lightbox-backdrop.open {
  display: flex !important;
}

.lightbox-container {
  background: rgba(13, 17, 30, 0.96);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.2);
  width: 100%;
  max-width: 800px;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 26, 46, 0.6);
}

.lightbox-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-counter {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.lightbox-close {
  position: static !important;
  width: 34px !important;
  height: 34px !important;
  font-size: 1rem !important;
}

.lightbox-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: #07090e;
  min-height: 280px;
  max-height: 58vh;
  overflow: hidden;
}

.lightbox-image-wrap {
  width: 100%;
  height: 100%;
  max-height: 54vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-main-img {
  max-width: 100%;
  max-height: 52vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.lightbox-nav-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev {
  left: 14px;
}

.lightbox-nav-btn.next {
  right: 14px;
}

.lightbox-footer {
  padding: 12px 16px;
  background: rgba(13, 17, 30, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.4) transparent;
}

.lightbox-thumbs::-webkit-scrollbar {
  height: 4px;
}

.lightbox-thumbs::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.4);
  border-radius: 4px;
}

.lightbox-thumb-item {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition: all 0.2s ease;
  opacity: 0.6;
  background: #000;
}

.lightbox-thumb-item:hover {
  opacity: 0.9;
  border-color: rgba(0, 240, 255, 0.6);
  transform: scale(1.05);
}

.lightbox-thumb-item.active {
  opacity: 1;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
  transform: scale(1.05);
}

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

/* Live Auto KHQR Card & Pulse Styles */
@keyframes khqrPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 240, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

.pulse-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: khqrPulse 1.8s infinite;
}

.pulse-dot.expired {
  background: #ef4444 !important;
  animation: none !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.khqr-card-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  max-width: 290px;
  margin: 0 auto 16px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.5), 0 0 20px rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Original KHQR Checkout Link Bar & Controls */
.khqr-link-banner {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  text-align: left;
}

.khqr-link-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.khqr-link-url-display {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.8rem;
  font-family: monospace;
  color: #38bdf8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: all;
}

.khqr-link-btn {
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-decoration: none;
}

/* View Mode Switcher Tabs */
.khqr-view-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 14px;
  gap: 4px;
}

.khqr-view-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.khqr-view-tab.active {
  background: var(--bg-tertiary);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Official KHQR Iframe Container */
.khqr-iframe-wrapper {
  position: relative;
  width: 100%;
  height: 700px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0b0f19;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 14px;
}

.khqr-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.khqr-iframe-loading {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 25, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.khqr-iframe-expired-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  z-index: 10;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

/* Polling Status Bar */
.khqr-polling-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.85rem;
}

.khqr-polling-bar.expired {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}
