/* ═══════════════════════════════════════════════════════════
   NEXUS LAUNCHER — Design System v4.0
   AAA Game Launcher · Mobile-First · Dynamic Tier Theming
   Inspired by: Steam, Riot Client, Valorant, Epic Games
   ═══════════════════════════════════════════════════════════ */

/* ---------- GOOGLE FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Oxanium:wght@400;500;600;700;800&family=Rajdhani:wght@400;500;600;700&family=Be+Vietnam+Pro:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ─── CSS DESIGN TOKENS ─────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:          #07080D;
  --bg-2:        #09091199;
  --surface:     rgba(255,255,255,0.03);
  --surface-2:   rgba(255,255,255,0.055);
  --surface-3:   rgba(255,255,255,0.08);
  /* Legacy aliases */
  --card:        #111320;
  --card-hover:  #141628;
  --card-2:      #0f1019;

  /* Borders */
  --border:        rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.16);

  /* Accent — overridden per-tier via PHP <style> injection */
  --primary:       #3B82F6;
  --primary-dark:  #2563EB;
  --primary-light: #60A5FA;
  --primary-glow:  rgba(59,130,246,0.28);

  /* Fixed accents */
  --secondary:      #8B5CF6;
  --secondary-glow: rgba(139,92,246,0.28);
  --gold:           #FFD700;
  --gold-glow:      rgba(255,215,0,0.28);
  --success:        #22C55E;
  --success-glow:   rgba(34,197,94,0.25);
  --danger:         #EF4444;
  --danger-glow:    rgba(239,68,68,0.25);
  --warning:        #F59E0B;
  --neon-blue:      #00D4FF;

  /* Text */
  --text:      #F0F2FF;
  --text-muted:#8A8FA8;
  --text-dim:  #50546A;

  /* Typography */
  --font-heading: 'Orbitron', 'Rajdhani', 'Oxanium', sans-serif;
  --font-body:    'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'Space Mono', monospace;

  /* Layout */
  --topbar-h:  56px;
  --sidebar-w: 264px;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-pill: 100px;

  /* Legacy radius aliases */
  --radius-sm: var(--r-sm);
  --radius-md: var(--r-md);
  --radius-lg: var(--r-lg);
  --radius-xl: var(--r-xl);

  /* Transitions */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.22s var(--ease);
}

/* ─── RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; color: inherit; font-family: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

/* ─── BACKGROUND — Hexagon Grid ─────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104' viewBox='0 0 60 104'%3E%3Cpath d='M30 2 L58 18 L58 50 L30 66 L2 50 L2 18 Z' fill='none' stroke='rgba(59,130,246,0.055)' stroke-width='1'/%3E%3Cpath d='M30 70 L58 86 L58 118 L30 134 L2 118 L2 86 Z' fill='none' stroke='rgba(59,130,246,0.055)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 104px;
  pointer-events: none; z-index: 0;
}
/* Radial accent glow at top */
body::after {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; height: 340px;
  background: radial-gradient(ellipse at 50% -10%, rgba(59,130,246,0.09) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* Particles canvas */
#particles-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; opacity: 0.35;
}

/* ─── LAYOUT ────────────────────────────────────────────── */
:root { --ticker-h: 28px; }
.main-container {
  padding-top: calc(var(--topbar-h) + var(--ticker-h));
  min-height: 100vh;
  position: relative; z-index: 1;
}
.page-container {
  max-width: 900px; margin: 0 auto;
  padding: 1.25rem 0.875rem;
}
.page-container-wide {
  max-width: 1200px; margin: 0 auto;
  padding: 1.25rem 0.875rem;
}
.main-content { position: relative; z-index: 1; }

@media (max-width: 640px) {
  .page-container, .page-container-wide { padding: 1rem 0.75rem; }
}

/* ═══════════════════════════════════════════════════════════
   HEADER / TOPBAR
   ═══════════════════════════════════════════════════════════ */
.header-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: rgba(7,8,13,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
}
/* Animated accent line at bottom of header */
.header-bar::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 35%, var(--secondary) 65%, transparent 100%);
  opacity: 0.5;
}

/* ── HEADER MARQUEE TICKER ── */
.header-ticker {
  position: fixed; top: var(--topbar-h); left: 0; right: 0;
  height: var(--ticker-h); z-index: 999;
  background: rgba(5,6,10,0.96);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden; display: flex; align-items: center;
}
.header-ticker::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 36px;
  background: linear-gradient(90deg, rgba(5,6,10,0.98), transparent);
  z-index: 2; pointer-events: none;
}
.header-ticker::after {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0; width: 36px;
  background: linear-gradient(-90deg, rgba(5,6,10,0.98), transparent);
  z-index: 2; pointer-events: none;
}
.ticker-track {
  display: flex; align-items: center; white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  gap: 0;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-segment {
  display: inline-flex; align-items: center; gap: 0;
  font-size: 0.65rem; color: var(--text-muted);
  font-family: var(--font-body); padding-right: 0;
}
.ticker-segment .ti { color: var(--primary); font-weight: 600; margin-right: 6px; }
.ticker-sep { color: var(--border-bright); margin: 0 18px; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── GUEST MENU (minimal overlay) ── */
.guest-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px); z-index: 900;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.guest-menu-overlay.active { opacity: 1; visibility: visible; }
.guest-menu-panel {
  position: fixed; top: calc(var(--topbar-h) + var(--ticker-h)); left: 0; right: 0;
  background: #08090F;
  border-bottom: 1px solid var(--border);
  padding: 14px;
  transform: translateY(-12px);
  transition: transform 0.25s var(--ease);
  z-index: 901; display: flex; flex-direction: column; gap: 6px;
}
.guest-menu-overlay.active .guest-menu-panel { transform: translateY(0); }
.guest-menu-link {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: var(--r-sm);
  color: var(--text-muted); font-size: 0.85rem; font-weight: 600;
  transition: var(--transition);
  border: 1px solid transparent;
}
.guest-menu-link:hover { color: var(--text); background: var(--surface); border-color: var(--border); }
.guest-menu-link svg { color: var(--primary); flex-shrink: 0; }
.header-left, .header-right {
  display: flex; align-items: center; gap: 6px;
}
.header-logo {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center;
}
.header-logo-img {
  height: 42px; width: auto;
  filter: brightness(1.3) saturate(1.35) drop-shadow(0 0 10px rgba(59,130,246,0.6)) drop-shadow(0 0 20px rgba(139,92,246,0.35));
  transition: filter 0.3s ease, transform 0.3s ease;
}
.header-logo:hover .header-logo-img {
  filter: brightness(1.5) saturate(1.5) drop-shadow(0 0 14px rgba(59,130,246,0.8)) drop-shadow(0 0 26px rgba(139,92,246,0.55));
  transform: scale(1.04);
}
.header-logo-text { display: none !important; }
.logo-dot { display: none !important; }

/* Icon button */
.icon-btn {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.icon-btn:hover {
  color: var(--text); border-color: var(--primary);
  background: var(--primary-glow);
  transform: scale(1.06);
}

/* ── Top Nạp HOT button in header ── */
.hdr-topnap-btn {
  overflow: visible !important; /* allow badge to overflow */
  color: #f59e0b !important;
  border-color: rgba(245,158,11,0.3) !important;
  background: rgba(245,158,11,0.08) !important;
}
.hdr-topnap-btn:hover, .hdr-topnap-btn.active {
  border-color: rgba(245,158,11,0.6) !important;
  background: rgba(245,158,11,0.15) !important;
  transform: scale(1.06);
}
.hdr-hot-badge {
  position: absolute;
  top: -5px; right: -6px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 0.52rem; font-weight: 900;
  letter-spacing: 0.4px;
  padding: 2px 5px;
  border-radius: 20px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(239,68,68,0.55);
  animation: tn-hot-pulse 1.8s ease-in-out infinite;
  pointer-events: none;
}

/* Notification badge */
.notification-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 15px; height: 15px;
  background: var(--danger); border-radius: 8px;
  font-size: 9px; font-weight: 700; color: white;
  padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 8px var(--danger-glow);
  animation: pulse-badge 2s ease infinite;
}
.notification-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 320px;
  background: #0D0E1A;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(59,130,246,0.08);
  overflow: hidden; display: none; z-index: 999;
}
#notification-wrapper:hover .notification-dropdown,
.notification-dropdown.open { display: block; }
.notification-dropdown-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 0.85rem;
}
.mark-all-read-btn {
  font-size: 0.72rem; color: var(--primary);
  padding: 3px 7px; border-radius: 5px;
  transition: var(--transition);
}
.mark-all-read-btn:hover { background: var(--primary-glow); }
.notification-list { max-height: 300px; overflow-y: auto; }
.notification-item {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer; transition: var(--transition);
}
.notification-item:hover { background: rgba(59,130,246,0.05); }
.notification-item.unread { border-left: 2px solid var(--primary); }
.notification-item-title { font-weight: 600; font-size: 0.82rem; margin-bottom: 2px; }
.notification-item-body { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }
.notification-item-time { font-size: 0.67rem; color: var(--text-dim); margin-top: 3px; }
.notification-empty { padding: 24px; text-align: center; color: var(--text-dim); font-size: 0.82rem; }
#notification-wrapper { position: relative; }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR — Game Launcher Panel
   ═══════════════════════════════════════════════════════════ */
.sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  z-index: 900; opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

.sidebar {
  position: fixed; top: calc(var(--topbar-h) + var(--ticker-h)); left: 0;
  width: var(--sidebar-w); height: calc(100vh - var(--topbar-h) - var(--ticker-h));
  background: #08090F;
  border-right: 1px solid var(--border);
  z-index: 950;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; overflow: hidden;
}
.sidebar.active { transform: translateX(0); }
/* Accent glow inside sidebar */
.sidebar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 180px;
  background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.sidebar-header {
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0; position: relative; z-index: 1;
}
.sidebar-close {
  width: 30px; height: 30px; border-radius: var(--r-xs);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.sidebar-close:hover { color: var(--danger); border-color: var(--danger); background: rgba(239,68,68,0.1); }

/* Sidebar user card */
.sidebar-user {
  padding: 14px; border-bottom: 1px solid var(--border);
  flex-shrink: 0; position: relative; z-index: 1;
}
.sidebar-user-inner {
  display: flex; gap: 10px; align-items: center;
  background: linear-gradient(135deg, rgba(59,130,246,0.07), rgba(139,92,246,0.04));
  border: 1px solid rgba(59,130,246,0.14);
  border-radius: var(--r-md); padding: 10px;
}
.sidebar-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--primary); overflow: hidden;
  flex-shrink: 0; background: var(--card-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 10px var(--primary-glow);
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-info { overflow: hidden; flex: 1; }
.sidebar-user-name {
  font-weight: 700; font-size: 0.875rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-id {
  font-size: 0.68rem; color: var(--text-dim);
  font-family: var(--font-mono); margin-top: 1px;
}
.sidebar-user-balance {
  font-size: 0.8rem; font-weight: 700; margin-top: 2px;
}

/* Sidebar menu */
.sidebar-menu { flex: 1; overflow-y: auto; padding: 8px 0; }
.sidebar-menu-section { padding: 10px 14px 4px; }
.sidebar-menu-label {
  font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--text-dim);
}
.sidebar-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 0.855rem; font-weight: 500;
  position: relative; border-radius: 0;
}
.sidebar-menu-item:hover, .sidebar-menu-item.active {
  color: var(--text);
  background: rgba(59,130,246,0.08);
}
.sidebar-menu-item.active::before {
  content: '';
  position: absolute; left: 0; top: 18%; bottom: 18%;
  width: 2.5px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 0 2px 2px 0;
}
.sidebar-menu-item svg { flex-shrink: 0; }
.sidebar-badge {
  margin-left: auto;
  font-size: 0.62rem; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-vip { background: linear-gradient(135deg, #f59e0b, #ef4444); color: white; }
.badge-free { background: var(--success-glow); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.divider { height: 1px; background: var(--border); margin: 8px 14px; }

/* ═══════════════════════════════════════════════════════════
   BANNER CAROUSEL
   ═══════════════════════════════════════════════════════════ */
.banner-carousel {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  height: 160px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
@media (min-width: 480px) { .banner-carousel { height: 180px; } }
@media (min-width: 640px) { .banner-carousel { height: 200px; } }
.banner-track {
  display: flex; width: 100%; height: 100%;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.banner-slide {
  min-width: 100%; height: 100%;
  position: relative; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; padding: 20px 22px;
}
.banner-slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.banner-slide-overlay {
  position: absolute; inset: 0;
}
.banner-slide-content {
  position: relative; z-index: 1;
}
.banner-slide-label {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 20px;
  margin-bottom: 7px;
}
.banner-slide-title {
  font-family: var(--font-heading);
  font-size: 1.15rem; font-weight: 900; letter-spacing: 2px;
  text-transform: uppercase; line-height: 1.1;
  margin-bottom: 6px;
}
.banner-slide-sub {
  font-size: 0.72rem; color: rgba(255,255,255,0.75);
  margin-bottom: 12px; line-height: 1.4;
}
.banner-slide-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px;
  font-family: var(--font-heading);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; border: none; cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.banner-slide-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
/* Indicator dots */
.banner-indicators {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 5px; z-index: 2;
}
.banner-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: all 0.3s ease; cursor: pointer;
}
.banner-dot.active {
  width: 18px; border-radius: 3px;
  background: white;
}
/* Counter */
.banner-counter {
  position: absolute; bottom: 10px; right: 13px; z-index: 2;
  font-size: 0.58rem; color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════════════════════
   BOTTOM NAVIGATION — Grounded 3-Column Gaming Bar
   ═══════════════════════════════════════════════════════════ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(6,7,12,0.97);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 -6px 28px rgba(0,0,0,0.55), 0 -1px 0 rgba(255,255,255,0.03);
  display: none;
  align-items: stretch; justify-content: stretch;
  z-index: 800; padding: 0;
  overflow: hidden;
}
/* Glow line at top */
.bottom-nav::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 35%, var(--secondary) 65%, transparent 100%);
  opacity: 0.45; z-index: 1;
}
@media (max-width: 1024px) { .bottom-nav { display: flex; } }
@media (max-width: 1024px) { .main-container { padding-bottom: 80px; } }

/* Regular nav items */
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 8px 6px;
  color: var(--text-dim);
  transition: all 0.2s var(--ease);
  font-size: 0.58rem; font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase; letter-spacing: 0.6px;
  position: relative; text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.nav-item:last-child { border-right: none; border-left: 1px solid rgba(255,255,255,0.04); }
.nav-item svg { transition: all 0.2s ease; }
.nav-item:hover { color: var(--primary); background: rgba(59,130,246,0.04); }
.nav-item:hover svg { filter: drop-shadow(0 0 6px var(--primary)); transform: scale(1.1); }
.nav-item.active { color: var(--primary); }
.nav-item.active svg { filter: drop-shadow(0 0 6px var(--primary)); }
.nav-item.active::after {
  content: '';
  position: absolute; top: 0; left: 15%; right: 15%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 8px var(--primary);
}
.nav-item:active { transform: scale(0.94); }

/* ── CENTER NAV ITEM — Grounded tier badge ── */
.nav-center {
  flex: 1.15; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 7px 6px;
  position: relative; text-decoration: none;
  border-left: 1px solid rgba(255,255,255,0.04);
  border-right: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s ease;
}
.nav-center:hover { background: rgba(255,255,255,0.02); }
.nav-center:active { transform: scale(0.96); }
.nav-center-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 5px 13px; border-radius: 7px;
  font-family: var(--font-heading); font-size: 0.72rem; font-weight: 800;
  letter-spacing: 1.8px; text-transform: uppercase;
  border: 1px solid; white-space: nowrap;
  transition: all 0.2s ease;
  position: relative; overflow: hidden;
}
/* Shimmer shine on pill */
.nav-center-pill::before {
  content: '';
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: pill-shine 3s ease-in-out infinite;
}
@keyframes pill-shine {
  0%, 70% { left: -60%; }
  100% { left: 120%; }
}
.nav-center-label {
  font-size: 0.5rem; font-weight: 600; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--text-dim);
  font-family: var(--font-heading);
}

/* Tier color variants for center pill */
.nav-tier-none .nav-center-pill {
  background: rgba(80,84,106,0.18); border-color: rgba(100,116,139,0.35);
  color: #6B7280;
}
.nav-tier-none .nav-center-label { color: #4B5563; }
.nav-tier-lite .nav-center-pill {
  background: rgba(192,200,216,0.1); border-color: rgba(192,200,216,0.4);
  color: #C0C8D8;
}
.nav-tier-basic .nav-center-pill {
  background: rgba(59,130,246,0.14); border-color: rgba(59,130,246,0.5);
  color: var(--primary);
  box-shadow: 0 0 14px rgba(59,130,246,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
}
.nav-tier-pro .nav-center-pill {
  background: rgba(139,92,246,0.14); border-color: rgba(139,92,246,0.5);
  color: #A78BFA;
  box-shadow: 0 0 14px rgba(139,92,246,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
}
.nav-tier-promax .nav-center-pill {
  background: rgba(255,215,0,0.1); border-color: rgba(255,215,0,0.55);
  color: var(--gold);
  box-shadow: 0 0 18px rgba(255,215,0,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
  animation: glow-gold 2.5s ease-in-out infinite;
}
@keyframes glow-gold-pill {
  0%, 100% { box-shadow: 0 0 14px rgba(255,215,0,0.28); }
  50% { box-shadow: 0 0 28px rgba(255,215,0,0.55); }
}

@keyframes tn-hot-pulse {
  0%, 100% { box-shadow: 0 2px 6px rgba(239,68,68,0.5); transform: scale(1); }
  50%       { box-shadow: 0 4px 14px rgba(239,68,68,0.8); transform: scale(1.08); }
}

/* ═══════════════════════════════════════════════════════════
   USER PROFILE CARD — HUD Style
   ═══════════════════════════════════════════════════════════ */
.user-profile-card-v2 {
  background: linear-gradient(145deg, rgba(17,19,32,0.95), rgba(11,12,22,0.98));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 13px 13px 11px;
  position: relative; overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.03);
  transition: var(--transition);
}
/* Tier accent top line */
.user-profile-card-v2::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
/* Ambient glow inside card */
.user-profile-card-v2::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 80px;
  background: radial-gradient(ellipse at 50% -10%, var(--primary-glow) 0%, transparent 70%);
  opacity: 0.6; pointer-events: none;
}
/* Top row: avatar + identity */
.user-card-top {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px; position: relative; z-index: 1;
}
.user-card-avatar {
  width: 66px; height: 66px; border-radius: 50%;
  border: 2px solid var(--primary);
  overflow: hidden; flex-shrink: 0; background: var(--card-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px var(--primary-glow), 0 0 40px rgba(0,0,0,0.3);
  transition: box-shadow 0.3s ease;
}
.user-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-card-identity { overflow: hidden; flex: 1; }
.user-card-name {
  font-family: var(--font-heading);
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-card-uid {
  font-size: 0.65rem; font-family: var(--font-mono);
  color: var(--text-dim); margin-top: 2px;
}
/* Stats row: Xu | Package | Expiry */
.user-stats-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 6px; margin-bottom: 9px; position: relative; z-index: 1;
}
.user-stat-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 7px 5px; text-align: center;
  transition: var(--transition);
}
.user-stat-item:hover {
  border-color: var(--border-bright);
  background: rgba(59,130,246,0.05);
}
.user-stat-label {
  font-size: 0.58rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 4px;
  display: flex; align-items: center; justify-content: center; gap: 3px;
}
.user-stat-value {
  font-family: var(--font-heading);
  font-size: 0.9rem; font-weight: 700;
}
.user-stat-xu .user-stat-value   { color: var(--gold); }
.user-stat-pkg .user-stat-value  { color: var(--primary); font-size: 0.78rem; }
.user-stat-exp .user-stat-value  { color: var(--text-muted); font-size: 0.76rem; }
.user-card-action { position: relative; z-index: 1; }

/* Legacy user-profile-card (kept for compat) */
.user-profile-card { /* deprecated, use -v2 */ }
.user-profile-name { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; }
.user-profile-uid { font-size: 0.68rem; font-family: var(--font-mono); color: var(--text-dim); }
.user-profile-balance { font-size: 1.2rem; font-weight: 700; color: var(--success); }
.user-profile-balance-label { font-size: 0.7rem; color: var(--text-dim); }
.user-profile-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.user-profile-meta-item { font-size: 0.72rem; color: var(--text-muted); }
.user-profile-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--primary);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--card-2); flex-shrink: 0;
}
.user-profile-info { flex: 1; }

/* Xu coin icon */
.xu-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; flex-shrink: 0;
}
.xu-icon svg { width: 100%; height: 100%; }

/* ═══════════════════════════════════════════════════════════
   ACTION GRID — Quick Actions
   ═══════════════════════════════════════════════════════════ */
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px; margin-bottom: 16px;
}
@media (min-width: 480px) { .action-grid { grid-template-columns: repeat(4,1fr); } }

.action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 14px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  font-family: var(--font-heading);
  transition: var(--transition); text-align: center;
  position: relative; overflow: hidden;
}
.action-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, var(--primary-glow), transparent 70%);
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.action-btn:hover {
  color: var(--primary); border-color: var(--primary);
  background: rgba(0,0,0,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 18px var(--primary-glow);
}
.action-btn:hover::before { opacity: 1; }
.action-btn:active { transform: translateY(0) scale(0.96); }
.action-btn:hover svg { color: var(--primary); filter: drop-shadow(0 0 7px var(--primary)); transform: scale(1.15); }
.action-btn svg { transition: var(--transition); width: 26px; height: 26px; }

/* ═══════════════════════════════════════════════════════════
   SECTION TITLE
   ═══════════════════════════════════════════════════════════ */
.section-title {
  font-family: var(--font-heading);
  font-size: 0.88rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px; color: var(--text);
}
/* Colored left bar */
.section-title::before {
  content: '';
  width: 3px; height: 18px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 2px; flex-shrink: 0;
}
.section-title-sm {
  font-family: var(--font-heading);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px;
}
.section-title-icon { font-size: 1rem; line-height: 1; }

/* ── Game grouping sections (Tài Xỉu Live / Nền Tảng Game) ── */
.game-section { margin-bottom: 22px; }
.game-section:last-child { margin-bottom: 0; }

.live-banner {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 16px; margin-bottom: 14px;
  background: linear-gradient(90deg, rgba(59,130,246,0.16), rgba(139,92,246,0.16), rgba(59,130,246,0.16));
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: var(--r-md, 10px);
  overflow: hidden;
}
.live-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: live-banner-sheen 3.2s linear infinite;
  pointer-events: none;
}
@keyframes live-banner-sheen {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.live-banner-text {
  font-family: var(--font-heading);
  font-size: 0.82rem; font-weight: 800;
  letter-spacing: 4px; text-transform: uppercase;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.live-banner-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff4757; box-shadow: 0 0 8px #ff4757;
  animation: pulse-status 1.4s ease infinite;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   GAME GRID — Launcher Tiles (AAA Style)
   ═══════════════════════════════════════════════════════════ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 420px) { .games-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .games-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .games-grid { grid-template-columns: repeat(5, 1fr); } }

.game-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.07);
  transition: all 0.26s var(--ease);
  background: #0D0E18;
  -webkit-tap-highlight-color: transparent;
}
.game-card:hover {
  transform: translateY(-5px) scale(1.025);
  border-color: var(--primary);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 22px var(--primary-glow);
}
.game-card:active { transform: translateY(-1px) scale(1.01); }

/* Full-bleed image */
.game-logo-wrap {
  position: absolute; inset: 0;
  overflow: hidden;
}
.game-logo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.game-logo-wrap img.game-logo-contain {
  object-fit: contain;
  transform: none;
}
.game-card:hover .game-logo-wrap img {
  transform: scale(1.07);
}
.game-card:hover .game-logo-wrap img.game-logo-contain {
  transform: none;
}

/* Info overlay at bottom */
.game-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 8px 9px;
  background: linear-gradient(to top, rgba(5,6,12,0.98) 0%, rgba(5,6,12,0.85) 50%, transparent 100%);
  display: flex; flex-direction: column; gap: 4px;
}
.game-name {
  font-family: var(--font-heading);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.4px; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.game-meta {
  display: flex; align-items: center; gap: 4px;
}
.game-status-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 5px var(--success);
  animation: pulse-status 2.5s ease-in-out infinite;
  flex-shrink: 0;
}
.game-ping {
  font-size: 0.6rem; color: var(--success);
  font-family: var(--font-mono);
}
.game-ai-badge {
  font-size: 0.52rem; font-weight: 700; letter-spacing: 1px;
  padding: 1px 4px; border-radius: 3px;
  background: rgba(59,130,246,0.18);
  color: var(--primary); border: 1px solid rgba(59,130,246,0.3);
  margin-left: auto;
}
.game-access-btn {
  font-family: var(--font-heading);
  font-size: 0.6rem; font-weight: 800; letter-spacing: 2px;
  padding: 5px 4px; border-radius: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; width: 100%; border: none; cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 2px 8px var(--primary-glow);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  text-transform: uppercase;
}
.game-card:hover .game-access-btn {
  filter: brightness(1.15);
  box-shadow: 0 4px 16px var(--primary-glow);
}
.game-access-btn:active { transform: translateY(1px); }

/* ═══════════════════════════════════════════════════════════
   GAME CATEGORY FILTER BAR
   ═══════════════════════════════════════════════════════════ */
.game-cats {
  display: flex; align-items: center; gap: 7px;
  overflow-x: auto; scrollbar-width: none;
  -ms-overflow-style: none; padding: 2px 0 8px;
  margin-bottom: 12px;
}
.game-cats::-webkit-scrollbar { display: none; }
.game-cat {
  flex-shrink: 0; padding: 6px 15px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.03);
  font-family: var(--font-heading); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--text-dim); cursor: pointer;
  transition: all 0.18s var(--ease);
  white-space: nowrap; position: relative; overflow: hidden;
}
.game-cat::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, var(--primary-glow), transparent 70%);
  opacity: 0; transition: opacity 0.2s;
}
.game-cat:hover { color: var(--text); border-color: rgba(255,255,255,0.18); }
.game-cat:hover::before { opacity: 0.6; }
.game-cat.active {
  background: rgba(59,130,246,0.14);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 12px rgba(59,130,246,0.2);
}
.game-cat.active::before { opacity: 1; }
.game-cat:active { transform: scale(0.95); }

/* ═══════════════════════════════════════════════════════════
   BUTTONS — 3D Gaming Style
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-family: var(--font-heading);
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer; border: none;
  position: relative; overflow: hidden;
}
/* Ripple */
.btn::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s, opacity 0.4s;
  opacity: 0;
}
.btn:active::after { width: 200px; height: 200px; opacity: 1; transition: 0s; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 14px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.15), 0 2px 0 rgba(0,0,0,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.15), 0 2px 0 rgba(0,0,0,0.4);
}
.btn-primary:active { transform: translateY(1px); box-shadow: 0 2px 8px var(--primary-glow); }

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #7c3aed);
  color: white;
  box-shadow: 0 4px 14px var(--secondary-glow), inset 0 1px 0 rgba(255,255,255,0.15), 0 2px 0 rgba(0,0,0,0.4);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px var(--secondary-glow); }
.btn-secondary:active { transform: translateY(1px); }

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-heading);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-bright); background: var(--surface-2); }

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #b91c1c);
  color: white; font-family: var(--font-heading);
}
.btn-success {
  background: linear-gradient(135deg, var(--success), #16a34a);
  color: white; font-family: var(--font-heading);
}
.btn-gold {
  background: linear-gradient(135deg, #D97706, var(--gold));
  color: #000; font-weight: 800; font-family: var(--font-heading);
}
.btn-sm { padding: 6px 14px; font-size: 0.75rem; }
.btn-lg { padding: 13px 28px; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* ═══════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════ */
.card {
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  position: relative; overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}
.card:hover { border-color: var(--border-bright); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.card-glow-blue { box-shadow: 0 0 30px rgba(59,130,246,0.08); }
.card-glow-purple { box-shadow: 0 0 30px rgba(139,92,246,0.08); }
.card-glow-gold { box-shadow: 0 0 30px rgba(255,215,0,0.08); }

/* ═══════════════════════════════════════════════════════════
   KEY STATUS CARD
   ═══════════════════════════════════════════════════════════ */
.key-status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px; position: relative; overflow: hidden;
}
.key-status-active { border-color: rgba(59,130,246,0.3); }
.key-status-none { border-color: var(--border); }
.key-status-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 10px;
}
.key-tier-badge {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 0.78rem; letter-spacing: 1.5px;
  padding: 4px 10px; border-radius: var(--r-pill);
  text-transform: uppercase;
}
.key-tier-none   { background: rgba(100,116,139,0.15); color: var(--text-dim); border: 1px solid var(--border); }
.key-tier-lite   { background: rgba(220,220,240,0.08); color: #C0C0C0; border: 1px solid rgba(192,192,192,0.4); }
.key-tier-basic  { background: rgba(59,130,246,0.12); color: #3B82F6; border: 1px solid rgba(59,130,246,0.4); }
.key-tier-pro    { background: rgba(139,92,246,0.12); color: #A78BFA; border: 1px solid rgba(139,92,246,0.4); }
.key-tier-promax {
  background: rgba(255,215,0,0.1); color: var(--gold);
  border: 1px solid rgba(255,215,0,0.4);
  box-shadow: 0 0 14px rgba(255,215,0,0.18);
  animation: glow-gold 2s ease-in-out infinite;
}
.key-progress-bar {
  height: 5px; background: rgba(255,255,255,0.07);
  border-radius: 3px; overflow: hidden; margin: 8px 0;
}
.key-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px; transition: width 1s ease;
}
.key-time-left { font-size: 0.75rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   FORMS & INPUTS
   ═══════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block; margin-bottom: 5px;
  font-size: 0.75rem; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.6px;
}
.input-field {
  width: 100%; padding: 10px 13px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.88rem; font-family: var(--font-body);
  transition: var(--transition); outline: none;
}
.input-field:focus {
  border-color: var(--primary);
  background: rgba(59,130,246,0.04);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.input-field::placeholder { color: var(--text-dim); }
.input-wrapper { position: relative; }
.input-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); pointer-events: none;
}
.input-field.has-icon { padding-left: 38px; }
.password-toggle {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); cursor: pointer;
  transition: var(--transition); padding: 4px;
}
.password-toggle:hover { color: var(--primary); }
.password-strength { height: 3px; border-radius: 2px; margin-top: 5px; background: var(--border); overflow: hidden; }
.strength-bar { height: 100%; border-radius: 2px; transition: width 0.3s, background 0.3s; width: 0; }
.strength-1 { background: var(--danger); width: 20%; }
.strength-2 { background: var(--warning); width: 40%; }
.strength-3 { background: #EAB308; width: 60%; }
.strength-4 { background: var(--success); width: 80%; }
.strength-5 { background: var(--neon-blue); width: 100%; }

/* ═══════════════════════════════════════════════════════════
   AUTH PAGE
   ═══════════════════════════════════════════════════════════ */
.auth-page {
  min-height: calc(100vh - var(--topbar-h));
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px 88px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: linear-gradient(145deg, #0D0E1A, #0A0B15);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 22px;
  position: relative; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}
.auth-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.auth-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 100px;
  background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.auth-logo { text-align: center; margin-bottom: 20px; position: relative; z-index: 1; }
.auth-logo-img { height: 48px; width: auto; margin: 0 auto 10px; }
.auth-title {
  font-family: var(--font-heading);
  font-size: 1.4rem; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.auth-subtitle { font-size: 0.78rem; color: var(--text-dim); margin-top: 3px; }
.auth-form { position: relative; z-index: 1; }
.auth-footer { text-align: center; margin-top: 18px; font-size: 0.8rem; color: var(--text-dim); }
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.auth-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0; color: var(--text-dim); font-size: 0.75rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  color: #FCA5A5; padding: 9px 12px;
  border-radius: var(--r-sm); font-size: 0.8rem;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 7px;
}
.auth-kicked { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.25); color: #FCD34D; }

/* ═══════════════════════════════════════════════════════════
   PACKAGE CARDS
   ═══════════════════════════════════════════════════════════ */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px,1fr));
  gap: 14px;
}
.pkg-card {
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 18px; position: relative; overflow: hidden;
  transition: var(--transition); cursor: pointer;
}
.pkg-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.35); }
.pkg-card-lite   { border-top: 3px solid #6B7280; }
.pkg-card-basic  { border-top: 3px solid var(--primary); }
.pkg-card-pro    { border-top: 3px solid var(--secondary); }
.pkg-card-promax { border-top: 3px solid var(--gold); box-shadow: 0 0 28px rgba(255,215,0,0.08); }
.pkg-card-promax:hover { box-shadow: 0 0 40px rgba(255,215,0,0.15), 0 12px 40px rgba(0,0,0,0.4); }

.pkg-tier-name {
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 4px;
}
.pkg-lite .pkg-tier-name  { color: #9CA3AF; }
.pkg-basic .pkg-tier-name { color: var(--primary); }
.pkg-pro .pkg-tier-name   { color: var(--secondary); }
.pkg-promax .pkg-tier-name{ color: var(--gold); }

.pkg-price {
  font-family: var(--font-heading);
  font-size: 1.8rem; font-weight: 700; margin: 7px 0;
}
.pkg-price-unit { font-size: 0.82rem; color: var(--text-muted); font-weight: 400; }
.pkg-features { margin-top: 10px; }
.pkg-feature {
  display: flex; gap: 7px; align-items: center;
  font-size: 0.8rem; padding: 4px 0; color: var(--text-muted);
}
.pkg-feature svg { color: var(--success); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════ */
.data-table-wrap { overflow-x: auto; border-radius: var(--r-md); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.data-table thead th {
  padding: 11px 14px;
  background: rgba(255,255,255,0.03);
  text-align: left; font-weight: 700; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-dim); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted);
}
.data-table tbody tr:hover td { background: rgba(59,130,246,0.04); color: var(--text); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ═══════════════════════════════════════════════════════════
   BADGES / STATUS
   ═══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 5px;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-success { background: var(--success-glow); color: var(--success); }
.badge-danger  { background: var(--danger-glow);  color: var(--danger);  }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-info    { background: var(--primary-glow);  color: var(--primary); }
.badge-purple  { background: var(--secondary-glow);color: var(--secondary); }
.badge-gold    { background: var(--gold-glow);     color: var(--gold);    }

/* ═══════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 80px; right: 14px; z-index: 9999;
  display: flex; flex-direction: column; gap: 6px; pointer-events: none;
}
@media (min-width: 1025px) { .toast-container { bottom: 22px; } }
.toast {
  padding: 11px 14px; border-radius: var(--r-md);
  font-size: 0.82rem; font-weight: 500; max-width: 300px;
  display: flex; align-items: center; gap: 9px;
  background: #0D0E1A;
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  pointer-events: all;
  animation: toast-in 0.28s var(--ease);
}
.toast.toast-success { border-left: 3px solid var(--success); }
.toast.toast-error   { border-left: 3px solid var(--danger);  }
.toast.toast-warning { border-left: 3px solid var(--warning); }
.toast.toast-info    { border-left: 3px solid var(--primary); }

/* ═══════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 14px;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: #0D0E1A;
  border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 24px;
  width: 100%; max-width: 420px; position: relative;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.28s var(--ease);
}
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }
.modal-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: var(--r-xs);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { color: var(--danger); border-color: var(--danger); }
.modal-title {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 700; margin-bottom: 14px;
}
.login-modal-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
  border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM GATE
   ═══════════════════════════════════════════════════════════ */
.premium-gate { text-align: center; padding: 44px 20px; }
.premium-gate-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(59,130,246,0.18));
  border: 2px solid var(--secondary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; color: var(--secondary);
  box-shadow: 0 0 28px var(--secondary-glow);
}
.premium-gate-title {
  font-family: var(--font-heading);
  font-size: 1.3rem; font-weight: 700; margin-bottom: 7px;
}
.premium-gate-sub { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 18px; }

/* ═══════════════════════════════════════════════════════════
   LOADING / SKELETON
   ═══════════════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--r-sm);
}
.page-loading-overlay {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, rgba(14,24,48,0.96), rgba(4,7,15,0.98) 72%);
  backdrop-filter: blur(12px);
  z-index: 2147483000; display: none;
  align-items: center; justify-content: center;
  flex-direction: column;
}
.page-loading-overlay.active { display: flex; animation: page-loader-fade-in 180ms ease-out both; }
.page-loading-content {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  animation: page-loader-rise 420ms cubic-bezier(.2,.8,.2,1) both;
}
.page-loading-mark {
  position: relative; width: 94px; height: 94px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 3px;
}
.page-loading-orbit {
  position: absolute; inset: 3px; border-radius: 50%;
  border: 2px solid rgba(103,243,255,0.16);
  border-top-color: #67f3ff; border-right-color: rgba(167,139,250,0.9);
  box-shadow: 0 0 18px rgba(103,243,255,0.16), inset 0 0 14px rgba(103,243,255,0.08);
  animation: page-loader-orbit 1.35s linear infinite;
}
.page-loading-orbit::after {
  content: ''; position: absolute; inset: 8px; border-radius: 50%;
  border: 1px solid rgba(167,139,250,0.24);
}
.page-loading-logo {
  position: relative; z-index: 1; width: 66px; height: 66px; object-fit: contain;
  filter: brightness(1.4) saturate(1.4) drop-shadow(0 0 13px rgba(103,243,255,0.62)) drop-shadow(0 0 25px rgba(139,92,246,0.4));
  animation: page-loader-breathe 1.8s ease-in-out infinite;
}
.page-loading-brand {
  color: #eafaff; font-family: var(--font-heading, sans-serif);
  font-size: 1.08rem; font-weight: 900; letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(103,243,255,0.42);
}
.loading-spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
.loading-text { font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 1px; }
@keyframes page-loader-orbit { to { transform: rotate(360deg); } }
@keyframes page-loader-breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.82; }
  50% { transform: scale(1.04); opacity: 1; }
}
@keyframes page-loader-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes page-loader-rise {
  from { opacity: 0; transform: translateY(9px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .page-loading-overlay.active,
  .page-loading-content,
  .page-loading-orbit,
  .page-loading-logo { animation-duration: 0.01ms; animation-iteration-count: 1; }
}

/* ═══════════════════════════════════════════════════════════
   PREDICTION PAGE
   ═══════════════════════════════════════════════════════════ */
.prediction-header {
  display: flex; align-items: center; gap: 11px;
  margin-bottom: 18px; padding: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.prediction-game-logo {
  width: 44px; height: 44px;
  border-radius: var(--r-sm); overflow: hidden;
}
.prediction-game-name {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 700;
}
.prediction-status {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.72rem; color: var(--success); margin-top: 2px;
}
.prediction-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 22px;
  text-align: center; margin-bottom: 14px;
  position: relative; overflow: hidden;
}
.prediction-result-tai {
  font-family: var(--font-heading);
  font-size: 2.8rem; font-weight: 900; letter-spacing: 4px;
  color: var(--danger);
  text-shadow: 0 0 28px rgba(239,68,68,0.55);
  text-transform: uppercase;
}
.prediction-result-xiu {
  font-family: var(--font-heading);
  font-size: 2.8rem; font-weight: 900; letter-spacing: 4px;
  color: var(--primary);
  text-shadow: 0 0 28px var(--primary-glow);
  text-transform: uppercase;
}
.prediction-session { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 7px; }
.prediction-confidence-bar {
  height: 7px; background: rgba(255,255,255,0.07);
  border-radius: 4px; overflow: hidden; margin: 10px 0;
}
.prediction-confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px; transition: width 0.8s ease;
}
.prediction-pct { font-size: 0.82rem; color: var(--text-muted); }
.prediction-history { list-style: none; display: flex; gap: 5px; flex-wrap: wrap; }
.prediction-history-item {
  width: 30px; height: 30px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.72rem; font-family: var(--font-heading);
}
.history-tai { background: rgba(239,68,68,0.14); border: 1px solid var(--danger); color: var(--danger); }
.history-xiu { background: rgba(59,130,246,0.14); border: 1px solid var(--primary); color: var(--primary); }

/* ═══════════════════════════════════════════════════════════
   PROFILE PAGE
   ═══════════════════════════════════════════════════════════ */
.profile-hero {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 24px;
  position: relative; overflow: hidden; margin-bottom: 18px;
}
.profile-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.profile-avatar-wrap { position: relative; width: 76px; height: 76px; margin: 0 auto 14px; }
.profile-avatar-img {
  width: 76px; height: 76px; border-radius: 50%;
  border: 3px solid var(--primary); object-fit: cover;
  box-shadow: 0 0 22px var(--primary-glow);
}
.profile-avatar-edit {
  position: absolute; bottom: 0; right: 0;
  width: 24px; height: 24px; background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg); cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════
   RECHARGE / BUY KEY
   ═══════════════════════════════════════════════════════════ */
.recharge-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.recharge-tab {
  padding: 11px 18px;
  font-weight: 600; font-size: 0.82rem; color: var(--text-dim);
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.recharge-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.qr-box {
  background: white; border-radius: var(--r-md); padding: 10px;
  width: 190px; height: 190px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.transfer-code {
  font-family: var(--font-mono);
  font-size: 1.2rem; font-weight: 700;
  color: var(--primary); letter-spacing: 3px;
  padding: 11px;
  background: var(--primary-glow); border: 1px solid var(--primary);
  border-radius: var(--r-sm); text-align: center; margin: 10px 0;
}

/* ═══════════════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════════════ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 230px; flex-shrink: 0;
  background: #08090E; border-right: 1px solid var(--border);
  position: fixed; top: 0; left: 0; bottom: 0;
  overflow-y: auto; z-index: 100;
}
.admin-content { flex: 1; margin-left: 230px; padding: 22px; }
@media (max-width: 768px) { .admin-sidebar { display: none; } .admin-content { margin-left: 0; } }
.admin-stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px;
  position: relative; overflow: hidden;
}
.admin-stat-value {
  font-family: var(--font-heading);
  font-size: 1.8rem; font-weight: 700; margin: 7px 0;
}
.admin-stat-label { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.8px; }

/* ═══════════════════════════════════════════════════════════
   MISC COMPONENTS
   ═══════════════════════════════════════════════════════════ */
/* Expired Premium notice */
.key-expired-modal-open { overflow: hidden; }
.key-expired-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3, 7, 18, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.key-expired-modal-overlay[hidden] { display: none !important; }
.key-expired-modal-overlay.is-open { opacity: 1; visibility: visible; }
.key-expired-modal-card {
  position: relative;
  width: min(100%, 420px);
  padding: 30px 24px 20px;
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.14), transparent 45%),
    linear-gradient(150deg, #151723, #090b13);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62), 0 0 34px rgba(245, 158, 11, 0.12);
  text-align: center;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.22s ease;
  outline: none;
}
.key-expired-modal-overlay.is-open .key-expired-modal-card {
  transform: translateY(0) scale(1);
}
.key-expired-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 11px;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  cursor: pointer;
}
.key-expired-modal-close:hover { color: var(--text); background: rgba(255,255,255,0.1); }
.key-expired-modal-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: 20px;
  background: rgba(245,158,11,0.1);
  color: #fbbf24;
  box-shadow: 0 0 28px rgba(245,158,11,0.12);
}
.key-expired-modal-eyebrow {
  margin-bottom: 8px;
  color: #fbbf24;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.key-expired-modal-card h2 {
  margin: 0 28px 10px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1.25;
}
.key-expired-modal-card p {
  margin: 0 auto 22px;
  max-width: 320px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.key-expired-modal-renew {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  width: 100%;
  text-decoration: none;
}
.key-expired-modal-later {
  margin-top: 12px;
  padding: 8px 16px;
  background: transparent;
  border: 0;
  color: var(--text-dim);
  font: inherit;
  cursor: pointer;
}
.key-expired-modal-later:hover { color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .key-expired-modal-overlay,
  .key-expired-modal-card { transition: none; }
}

/* Cyber divider */
.cyber-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
  margin: 18px 0; opacity: 0.4;
}

/* Sound toggle */
.sound-toggle-btn {
  position: fixed; bottom: 78px; right: 14px; z-index: 700;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.sound-toggle-btn:hover { border-color: var(--primary); color: var(--primary); }
@media (min-width: 1025px) { .sound-toggle-btn { bottom: 22px; } }

/* Page title */
.page-title {
  font-family: var(--font-heading);
  font-size: 1.3rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.page-title-icon {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
  border: 1px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}

/* Mini stat */
.mini-stat {
  padding: 11px 13px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex; align-items: center; gap: 9px;
}
.mini-stat-icon {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mini-stat-value { font-weight: 700; font-size: 0.95rem; }
.mini-stat-label { font-size: 0.67rem; color: var(--text-dim); }

/* Support page */
.support-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px; text-align: center;
  transition: var(--transition);
}
.support-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.support-icon {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 11px;
}
.telegram-icon { background: rgba(37,99,235,0.14); color: var(--primary); }
.zalo-icon     { background: rgba(0,104,255,0.14); color: #0068FF; }
.hotline-icon  { background: rgba(34,197,94,0.14); color: var(--success); }
.support-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 0.82rem; margin-top: 10px;
  transition: var(--transition);
}
.telegram-btn { background: var(--primary-glow); color: var(--primary); border: 1px solid rgba(59,130,246,0.3); }
.zalo-btn     { background: rgba(0,104,255,0.1);  color: #0068FF;        border: 1px solid rgba(0,104,255,0.3); }
.hotline-btn  { background: var(--success-glow);  color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.support-btn:hover { transform: scale(1.04); }

/* FAQ */
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); margin-bottom: 7px; overflow: hidden;
}
.faq-question {
  padding: 13px 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 0.875rem; transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-answer { padding: 0 14px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-answer.open { max-height: 400px; padding: 0 14px 13px; }
.faq-answer p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.65; }
.faq-chevron { transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* Gift code */
.gift-code-input {
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 3px; text-align: center;
  font-size: 1.05rem; font-weight: 700;
}

/* Referral */
.referral-code-box {
  font-family: var(--font-mono); font-size: 1.3rem;
  font-weight: 700; letter-spacing: 4px; text-align: center;
  color: var(--primary); background: var(--primary-glow);
  border: 1px solid rgba(59,130,246,0.3);
  padding: 14px; border-radius: var(--r-md);
}

/* Notification center */
.notification-full-item {
  padding: 13px 14px; border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition); cursor: pointer;
}
.notification-full-item:hover { background: rgba(59,130,246,0.04); }
.notification-full-item.unread { border-left: 2px solid var(--primary); }

/* Error page */
.error-page { text-align: center; padding: 56px 20px; color: var(--text-dim); }
.error-page h2 { margin: 14px 0 18px; font-family: var(--font-heading); font-size: 1.3rem; }

/* Maintenance */
.maintenance-page {
  min-height: calc(100vh - var(--topbar-h));
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 18px; text-align: center; padding: 40px 20px;
}

/* ═══════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════ */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mb-2 { margin-bottom: 8px; }  .mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; } .mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; }
.text-center   { text-align: center; }
.text-muted    { color: var(--text-muted); }
.text-dim      { color: var(--text-dim); }
.text-primary  { color: var(--primary); }
.text-success  { color: var(--success); }
.text-danger   { color: var(--danger); }
.text-gold     { color: var(--gold); }
.text-sm       { font-size: 0.8rem; }
.text-xs       { font-size: 0.7rem; }
.font-mono     { font-family: var(--font-mono); }
.font-game     { font-family: var(--font-heading); }
.hidden        { display: none !important; }
.w-full        { width: 100%; }
.divider       { height: 1px; background: var(--border); margin: 14px 0; }
.section-gap   { margin-bottom: 22px; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS & KEYFRAMES
   ═══════════════════════════════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
@keyframes pulse-status {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes glow-gold {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), inset 0 -2px 0 rgba(0,0,0,0.35), 0 4px 0 rgba(0,0,0,0.55), 0 6px 22px rgba(255,215,0,0.25); }
  50%       { box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), inset 0 -2px 0 rgba(0,0,0,0.35), 0 4px 0 rgba(0,0,0,0.55), 0 6px 32px rgba(255,215,0,0.5); }
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.82); }
}
@keyframes scan-line { 0% { top: 0; } 100% { top: 100%; } }
@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.7; }
}
@keyframes border-glow {
  0%, 100% { border-color: var(--border); }
  50% { border-color: var(--primary); box-shadow: 0 0 18px var(--primary-glow); }
}
@keyframes progress-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .header-logo-img { height: 36px; }
  .header-bar { padding: 0 10px; }
  .packages-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 22px 14px; }
  .bottom-nav { height: 58px; }
}
@media (max-width: 380px) {
  .games-grid { gap: 7px; }
  .page-container { padding: 0.75rem; }
}

/* === UNIVERSAL MODAL SYSTEM === */
.universal-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex; align-items: center; justify-content: center; padding: 14px;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.universal-modal-overlay.open { opacity: 1; visibility: visible; }
.universal-modal-box {
  background: linear-gradient(145deg, #0f111a, #07080d);
  border: 1px solid var(--border-bright);
  border-radius: var(--r-xl); padding: 0;
  width: 100%; max-width: 600px; max-height: 90vh;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.28s var(--ease);
  box-shadow: 0 0 40px rgba(59,130,246,0.15), 0 0 0 1px rgba(255,255,255,0.05);
}
.universal-modal-overlay.open .universal-modal-box { transform: scale(1) translateY(0); }
.universal-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.02);
}
.universal-modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 700;
  color: var(--text); letter-spacing: 1px;
  text-transform: uppercase;
}
.universal-modal-close {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.universal-modal-close:hover {
  color: var(--danger); border-color: var(--danger); background: rgba(239,68,68,0.1);
}
.universal-modal-content {
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

/* === NEW BUTTON SYSTEM === */
.btn, .btn-primary, .btn-secondary, .game-access-btn {
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: var(--r-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: 1px solid var(--primary-light);
  box-shadow: 0 4px 15px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.2);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.4);
  filter: brightness(1.15);
}
.btn-primary:active {
  transform: translateY(1px) scale(0.98);
}
.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #6d28d9);
  border: 1px solid #a78bfa;
  box-shadow: 0 4px 15px var(--secondary-glow), inset 0 1px 0 rgba(255,255,255,0.2);
  color: #fff;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--secondary-glow), inset 0 1px 0 rgba(255,255,255,0.4);
  filter: brightness(1.15);
}

/* === GAME CARDS UPGRADE === */
.game-card {
  position: relative;
  overflow: visible;
  transition: all 0.3s ease;
}
.game-card::before {
  content: '';
  position: absolute; inset: -1px;
  background: linear-gradient(135deg, var(--primary), transparent, var(--secondary));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.game-card:hover::before {
  opacity: 1;
  animation: border-light-rotate 3s linear infinite;
}
@keyframes border-light-rotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
.game-card:hover {
  box-shadow: 0 10px 30px var(--primary-glow);
  transform: translateY(-4px) scale(1.02);
}
.game-logo-wrap img {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}
.game-card:hover .game-logo-wrap img {
  transform: scale(1.25);
}

/* === HEADER LOGO GLOW === */
.header-logo-img {
  filter: brightness(1.3) saturate(1.35) drop-shadow(0 0 12px var(--primary)) drop-shadow(0 0 23px var(--secondary));
}
.header-logo:hover .header-logo-img {
  filter: brightness(1.5) saturate(1.5) drop-shadow(0 0 20px var(--primary)) drop-shadow(0 0 30px var(--secondary));
}

/* === BOTTOM NAV FIX === */
.bottom-nav {
  box-shadow: 0 -10px 30px rgba(0,0,0,0.8), 0 -1px 0 rgba(255,255,255,0.05);
}

/* === RECHARGE SHOP === */
.shop-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px;
  padding: 20px;
}
.shop-item {
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px; text-align: center;
  cursor: pointer; transition: var(--transition);
  position: relative; overflow: hidden;
}
.shop-item:hover, .shop-item.active {
  border-color: var(--gold);
  background: rgba(255,215,0,0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--gold-glow);
}
.shop-item-icon {
  width: 48px; height: 48px; margin: 0 auto 10px;
  background: rgba(255,215,0,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--gold);
}
.shop-item-price {
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: #fff;
}
.shop-item-xu {
  font-size: 0.8rem; color: var(--gold); font-weight: 600; margin-top: 4px;
}

/* === NOTIFICATIONS TABS === */
.notif-tabs {
  display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto;
  border-bottom: 1px solid var(--border); padding: 10px 20px;
}
.notif-tab {
  padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer; transition: var(--transition); white-space: nowrap;
  background: transparent; border: 1px solid transparent;
}
.notif-tab.active { background: var(--primary-glow); color: var(--primary); border: 1px solid var(--primary); }

/* === LEADERBOARD === */
.leaderboard-list { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.lb-item {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--border);
}
.lb-rank {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 900; width: 40px; text-align: center;
}
.lb-rank-1 { color: #FFD700; text-shadow: 0 0 10px rgba(255,215,0,0.5); }
.lb-rank-2 { color: #C0C0C0; text-shadow: 0 0 10px rgba(192,192,192,0.5); }
.lb-rank-3 { color: #CD7F32; text-shadow: 0 0 10px rgba(205,127,50,0.5); }
.lb-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--primary); }
.lb-info { flex: 1; }
.lb-name { font-weight: 700; font-size: 0.9rem; }
.lb-amount { color: var(--gold); font-weight: 700; font-family: var(--font-heading); }

/* === AJAX MODAL INNER === */
.modal-inner-page {
  padding: 20px;
}
.modal-inner-page .page-container, .modal-inner-page .page-container-wide {
  padding: 0; margin: 0; width: 100%; max-width: 100%;
}
.modal-inner-page .header-bar, .modal-inner-page .header-ticker, .modal-inner-page .bottom-nav, .modal-inner-page .sidebar {
  display: none !important;
}
.modal-inner-page .main-container {
  padding-top: 0; min-height: auto;
}

/* ═══════════════════════════════════════════════════════════
   AUTH POPUP — Game Window Style V4
   ═══════════════════════════════════════════════════════════ */
.auth-page { animation: fadeIn 0.3s ease; }
.auth-card {
  animation: authCardIn 0.38s cubic-bezier(0.34,1.56,0.64,1) forwards;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.18),
              0 0 50px rgba(59,130,246,0.10),
              0 28px 70px rgba(0,0,0,0.65);
  border-color: rgba(59,130,246,0.22);
  position: relative;
}
@keyframes authCardIn {
  from { opacity: 0; transform: scale(0.86) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.auth-close-btn {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 30px; height: 30px; border-radius: var(--r-xs);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); text-decoration: none;
}
.auth-close-btn:hover {
  color: var(--danger); border-color: rgba(239,68,68,0.5);
  background: rgba(239,68,68,0.1);
}

/* ═══════════════════════════════════════════════════════════
   PROFILE PAGE — Game Hero V4
   ═══════════════════════════════════════════════════════════ */
.profile-game-hero {
  background: linear-gradient(145deg, #0C0D1A, #080910);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--r-xl);
  padding: 32px 20px 20px;
  position: relative; overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 0 40px rgba(59,130,246,0.07), 0 24px 60px rgba(0,0,0,0.45);
}
.profile-game-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% 100%;
  animation: header-shimmer 3s linear infinite;
}
.profile-game-hero::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 180px;
  background: radial-gradient(ellipse at 50% -20%, rgba(59,130,246,0.14) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
@keyframes header-shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
.profile-avatar-glow {
  position: relative; width: 96px; height: 96px;
  margin: 0 auto 16px;
}
.profile-avatar-ring {
  position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--primary));
  animation: avatar-ring-spin 4s linear infinite;
  z-index: 0;
}
.profile-avatar-ring-outer {
  position: absolute; inset: -6px; border-radius: 50%;
  background: conic-gradient(from 180deg, rgba(59,130,246,0.35), transparent, rgba(139,92,246,0.35));
  animation: avatar-ring-spin 6s linear infinite reverse;
  opacity: 0.5;
}
@keyframes avatar-ring-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.profile-avatar-inner {
  position: relative; z-index: 1;
  width: 96px; height: 96px; border-radius: 50%;
  overflow: hidden; background: var(--card-2);
  border: 3px solid #07080D;
  display: flex; align-items: center; justify-content: center;
}
.profile-avatar-inner img { width: 100%; height: 100%; object-fit: cover; }
.profile-name-hero {
  font-family: var(--font-heading);
  font-size: 1.3rem; font-weight: 900;
  letter-spacing: 2px; text-transform: uppercase;
  text-align: center;
  background: linear-gradient(135deg, #fff 40%, var(--primary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 4px; position: relative; z-index: 1;
}
.profile-uid-hero {
  font-family: var(--font-mono);
  font-size: 0.62rem; color: var(--text-dim);
  text-align: center; margin-bottom: 16px;
  letter-spacing: 1.5px; position: relative; z-index: 1;
}
.profile-stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 14px; position: relative; z-index: 1;
}
@media (max-width: 480px) { .profile-stats-row { grid-template-columns: repeat(2, 1fr); } }
.profile-stat-box {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 10px 8px; text-align: center;
  transition: var(--transition);
}
.profile-stat-box:hover { border-color: var(--primary); background: rgba(59,130,246,0.06); }
.profile-stat-val { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; margin-bottom: 3px; }
.profile-stat-key { font-size: 0.52rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.profile-actions-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; position: relative; z-index: 1;
}
.profile-action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 8px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.6rem; font-weight: 700;
  font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.6px;
  text-align: center; text-decoration: none;
  transition: var(--transition); cursor: pointer;
}
.profile-action-btn:hover { color: var(--primary); border-color: rgba(59,130,246,0.5); background: var(--primary-glow); transform: translateY(-2px); }
.profile-action-btn.danger:hover { color: var(--danger); border-color: rgba(239,68,68,0.5); background: rgba(239,68,68,0.08); }
.profile-action-btn svg { transition: transform 0.2s; }
.profile-action-btn:hover svg { transform: scale(1.18); }
.profile-info-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px; margin-bottom: 12px;
}
.profile-info-header {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.profile-info-header-icon {
  width: 28px; height: 28px; border-radius: var(--r-xs);
  background: var(--primary-glow); border: 1px solid rgba(59,130,246,0.3);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
  flex-shrink: 0;
}
.profile-info-title {
  font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.profile-info-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.82rem; gap: 10px;
}
.profile-info-row:last-child { border-bottom: none; }
.profile-info-label { color: var(--text-dim); font-size: 0.73rem; flex-shrink: 0; }
.profile-info-val { color: var(--text); font-weight: 600; text-align: right; word-break: break-all; }

/* ═══════════════════════════════════════════════════════════
   SUPPORT PAGE — Game Ticket Style V4
   ═══════════════════════════════════════════════════════════ */
.support-channels-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-bottom: 18px;
}
@media (min-width: 560px) { .support-channels-grid { grid-template-columns: repeat(4, 1fr); } }
.support-channel-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px 12px;
  text-align: center; text-decoration: none;
  transition: all 0.25s var(--ease); position: relative; overflow: hidden;
  display: block;
}
.support-channel-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 60%, var(--ch-glow,rgba(59,130,246,0.08)), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.support-channel-card:hover {
  transform: translateY(-5px);
  border-color: var(--ch-color, var(--primary));
  box-shadow: 0 8px 28px var(--ch-glow, rgba(59,130,246,0.15));
}
.support-channel-card:hover::before { opacity: 1; }
.support-channel-icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--ch-bg, rgba(59,130,246,0.1));
  border: 1px solid var(--ch-color, rgba(59,130,246,0.3));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; color: var(--ch-color, var(--primary));
  transition: all 0.25s;
}
.support-channel-card:hover .support-channel-icon {
  box-shadow: 0 0 20px var(--ch-glow, rgba(59,130,246,0.35));
  transform: scale(1.1) rotate(5deg);
}
.support-channel-name {
  font-family: var(--font-heading); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px;
  color: var(--ch-color, var(--primary));
}
.support-channel-sub { font-size: 0.62rem; color: var(--text-dim); }

.support-ticket-box {
  background: linear-gradient(145deg, #0C0D1A, #080910);
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 0 30px rgba(59,130,246,0.04);
}
.support-ticket-header {
  padding: 12px 18px;
  background: rgba(59,130,246,0.05);
  border-bottom: 1px solid rgba(59,130,246,0.12);
  display: flex; align-items: center; gap: 10px;
}
.support-ticket-header-icon {
  width: 30px; height: 30px; border-radius: var(--r-xs);
  background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.3);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
  flex-shrink: 0;
}
.support-ticket-title {
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.support-ticket-body { padding: 18px; }
.support-ticket-select {
  width: 100%; padding: 10px 13px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text);
  font-size: 0.88rem; font-family: var(--font-body);
  transition: var(--transition); outline: none;
  -webkit-appearance: none; appearance: none;
}
.support-ticket-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.support-ticket-select option { background: #0D0E1A; }
.support-ticket-textarea {
  width: 100%; padding: 10px 13px; min-height: 100px; resize: vertical;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text);
  font-size: 0.88rem; font-family: var(--font-body);
  transition: var(--transition); outline: none;
}
.support-ticket-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.support-ticket-textarea::placeholder { color: var(--text-dim); }

/* ═══════════════════════════════════════════════════════════
   FAQ PAGE — Game Accordion Style V4
   ═══════════════════════════════════════════════════════════ */
.faq-cat-tabs {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 4px 0 10px; margin-bottom: 14px;
}
.faq-cat-tabs::-webkit-scrollbar { display: none; }
.faq-cat-tab {
  flex-shrink: 0; padding: 5px 13px;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: rgba(255,255,255,0.03);
  font-family: var(--font-heading); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--text-dim); cursor: pointer; transition: all 0.18s;
  text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.faq-cat-tab:hover { color: var(--text); border-color: var(--border-bright); }
.faq-cat-tab.active { background: rgba(59,130,246,0.14); border-color: var(--primary); color: var(--primary); box-shadow: 0 0 12px rgba(59,130,246,0.15); }
.faq-game-item {
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--r-md); margin-bottom: 7px; overflow: hidden;
  transition: border-color 0.25s;
}
.faq-game-item.faq-open { border-color: rgba(59,130,246,0.35); }
.faq-game-btn {
  width: 100%; padding: 13px 14px;
  background: transparent; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 11px;
  text-align: left; color: var(--text);
  font-size: 0.875rem; font-weight: 600; font-family: var(--font-body);
  transition: var(--transition);
}
.faq-game-btn:hover { background: rgba(59,130,246,0.04); }
.faq-game-icon {
  width: 28px; height: 28px; border-radius: var(--r-xs);
  background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0; transition: var(--transition);
}
.faq-game-item.faq-open .faq-game-icon {
  background: rgba(59,130,246,0.18); border-color: rgba(59,130,246,0.4);
  box-shadow: 0 0 10px rgba(59,130,246,0.2);
}
.faq-game-question { flex: 1; }
.faq-game-chevron { color: var(--text-dim); flex-shrink: 0; transition: transform 0.28s var(--ease); }
.faq-game-item.faq-open .faq-game-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-game-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-game-item.faq-open .faq-game-body { max-height: 400px; }
.faq-game-answer {
  padding: 12px 14px 14px 53px;
  font-size: 0.82rem; color: var(--text-muted); line-height: 1.72;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ═══════════════════════════════════════════════════════════
   AUTH MODAL — SPA Fixed Overlay V4
   ═══════════════════════════════════════════════════════════ */
.auth-modal-overlay {
  position: fixed; inset: 0; z-index: 9990;
  background: rgba(4,5,13,0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
}
.auth-modal-overlay.am-open { opacity: 1; pointer-events: all; }

.auth-modal-card {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -54%) scale(0.84);
  width: calc(100% - 28px); max-width: 400px;
  max-height: 92vh; overflow-y: auto; overflow-x: hidden;
  background: linear-gradient(160deg, #0F1020, #0A0B18);
  border: 1px solid rgba(59,130,246,0.22);
  border-radius: var(--r-xl);
  box-shadow:
    0 0 0 1px rgba(59,130,246,0.08),
    0 0 70px rgba(59,130,246,0.13),
    0 48px 100px rgba(0,0,0,0.8);
  z-index: 9991;
  opacity: 0; pointer-events: none;
  transition:
    opacity 0.38s cubic-bezier(0.34,1.56,0.64,1),
    transform 0.38s cubic-bezier(0.34,1.56,0.64,1);
  scrollbar-width: thin;
  scrollbar-color: rgba(59,130,246,0.25) transparent;
}
.auth-modal-card::-webkit-scrollbar { width: 4px; }
.auth-modal-card::-webkit-scrollbar-track { background: transparent; }
.auth-modal-card::-webkit-scrollbar-thumb { background: rgba(59,130,246,0.3); border-radius: 2px; }
.auth-modal-card.am-open {
  opacity: 1; pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

/* Top shimmer bar */
.auth-modal-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% 100%;
  animation: header-shimmer 3s linear infinite;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.auth-modal-inner { padding: 28px 22px 26px; position: relative; }

/* Tab switcher */
.am-tabs {
  display: flex; margin-bottom: 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm); overflow: hidden;
}
.am-tab {
  flex: 1; padding: 9px;
  background: transparent; border: none;
  font-family: var(--font-heading); font-size: 0.68rem;
  font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--text-dim); cursor: pointer; transition: all 0.22s;
}
.am-tab.active {
  background: rgba(59,130,246,0.14); color: var(--primary);
  box-shadow: inset 0 -2px 0 var(--primary);
}
.am-close {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px; border-radius: var(--r-xs);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; padding: 0;
}
.am-close:hover { color: var(--danger); border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.07); }
.am-error {
  padding: 10px 12px;
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--r-sm);
  color: #F87171; font-size: 0.82rem;
  margin-bottom: 14px; display: none;
  animation: authCardIn 0.25s ease;
}
.am-pane { display: none; }
.am-pane.active { display: block; }
.am-footer {
  margin-top: 16px; text-align: center;
  font-size: 0.8rem; color: var(--text-dim);
}
.am-footer a { color: var(--primary); font-weight: 600; text-decoration: none; }
.am-footer a:hover { text-decoration: underline; }

/* Spinner keyframe */
@keyframes am-spin {
  to { transform: rotate(360deg); }
}
.am-spin { animation: am-spin 0.7s linear infinite; display: inline-block; }

/* ═══════════════════════════════════════════════════════════
   GAME CARD V2 — Launcher / AAA Style
   ═══════════════════════════════════════════════════════════ */

/* Enhanced card base */
.game-card {
  border: 1px solid rgba(59,130,246,0.22) !important;
  box-shadow:
    0 6px 28px rgba(0,0,0,0.52),
    0 0 0 0.5px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.05) !important;
  transition:
    transform 0.32s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 0.3s ease,
    border-color 0.3s ease !important;
  overflow: hidden;
}

/* Top shimmer line */
.game-card::before {
  content: '' !important;
  position: absolute; top: 0; left: 0; right: 0; height: 1.5px !important;
  background: linear-gradient(90deg, transparent 0%, rgba(59,130,246,0.7) 40%, rgba(139,92,246,0.5) 70%, transparent 100%) !important;
  animation: none !important;
  border-radius: 0 !important;
  z-index: 5;
}

/* Hover state */
.game-card:hover {
  border-color: rgba(59,130,246,0.5) !important;
  box-shadow:
    0 18px 50px rgba(0,0,0,0.62),
    0 0 40px rgba(59,130,246,0.22),
    0 0 0 0.5px rgba(255,255,255,0.07),
    inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

/* Halo glow behind logo */
.gc-halo {
  position: absolute; inset: -25%; z-index: 0;
  border-radius: 50%;
  opacity: 0.32;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.game-card:hover .gc-halo { opacity: 0.62; transform: scale(1.18); }

/* Online badge overlay */
/* HOT / NEW badge replacing the old ONLINE badge */
.gc-badge {
  position: absolute; top: 7px; left: 7px; z-index: 4;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 0.57rem;
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0.6px;
  display: flex; align-items: center; gap: 3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gc-badge-hot {
  background: rgba(239,68,68,0.82);
  border: 1px solid rgba(239,68,68,0.9);
  color: #fff;
  box-shadow: 0 2px 10px rgba(239,68,68,0.55);
  animation: gc-hot-pulse 2s ease-in-out infinite;
}
@keyframes gc-hot-pulse {
  0%,100% { box-shadow: 0 2px 10px rgba(239,68,68,0.45); }
  50%      { box-shadow: 0 2px 18px rgba(239,68,68,0.9); }
}
.gc-badge-new {
  background: rgba(59,130,246,0.80);
  border: 1px solid rgba(99,102,241,0.8);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99,102,241,0.4);
}
.gc-badge-fire { font-size: 0.6rem; }

/* keep .gc-dot for any legacy usage */
.gc-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 6px var(--success);
  animation: pulse-status 2s ease infinite;
  flex-shrink: 0;
}
/* Baccarat filter tab */
.game-cat-baccarat { border-color: rgba(233,30,140,0.4); color: #f472b6; }
.game-cat-baccarat.active,
.game-cat-baccarat:hover { background: rgba(233,30,140,0.14) !important; border-color: rgba(233,30,140,0.7) !important; color: #fbcfe8 !important; }

/* Light sweep on hover */
.gc-sweep {
  position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.055) 50%, transparent 100%);
  transform: skewX(-15deg);
  pointer-events: none; z-index: 6;
}
.game-card:hover .gc-sweep { animation: gc-light-sweep 0.55s ease forwards; }

@keyframes gc-light-sweep {
  0%  { left: -80%; }
  100%{ left: 165%; }
}

/* Game name enhanced */
.game-name {
  text-shadow: 0 0 14px rgba(59,130,246,0.35) !important;
  font-weight: 800 !important;
}

/* Status dot */
.game-status-dot {
  box-shadow: 0 0 6px var(--success) !important;
}

/* AI badge — premium */
.game-ai-badge {
  background: linear-gradient(135deg, rgba(59,130,246,0.22), rgba(139,92,246,0.22)) !important;
  border: 1px solid rgba(139,92,246,0.5) !important;
  border-radius: 4px !important;
  color: #c4b5fd !important;
  font-weight: 800 !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.8px !important;
  padding: 2px 7px !important;
}

/* TRUY CẬP — 3D Gaming Button */
.game-access-btn {
  clip-path: none !important;
  background: linear-gradient(180deg, rgba(59,130,246,0.24) 0%, rgba(59,130,246,0.11) 100%) !important;
  border: 1px solid rgba(59,130,246,0.42) !important;
  border-bottom: 2px solid rgba(59,130,246,0.62) !important;
  border-radius: 8px !important;
  color: #93c5fd !important;
  font-size: 0.62rem !important;
  letter-spacing: 2px !important;
  box-shadow:
    0 4px 14px rgba(59,130,246,0.14),
    inset 0 1px 0 rgba(255,255,255,0.08) !important;
  transition: all 0.18s ease !important;
  position: relative !important;
}
.game-access-btn::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent);
  border-radius: inherit;
  pointer-events: none;
}
.game-access-btn:hover {
  background: linear-gradient(180deg, rgba(59,130,246,0.40), rgba(59,130,246,0.22)) !important;
  border-color: rgba(59,130,246,0.70) !important;
  border-bottom-color: rgba(59,130,246,0.85) !important;
  color: #bfdbfe !important;
  box-shadow: 0 6px 22px rgba(59,130,246,0.30) !important;
  transform: translateY(-1px) !important;
}
.game-access-btn:active {
  transform: translateY(1px) !important;
  border-bottom-width: 1px !important;
}

/* Category filter — V2 Glow */
.game-cat {
  transition: all 0.22s ease !important;
}
.game-cat.active {
  background: rgba(59,130,246,0.16) !important;
  border-color: rgba(59,130,246,0.52) !important;
  color: var(--primary) !important;
  box-shadow: 0 0 16px rgba(59,130,246,0.22), inset 0 1px 0 rgba(255,255,255,0.08) !important;
  animation: cat-glow-pulse 2.8s ease infinite !important;
}
@keyframes cat-glow-pulse {
  0%,100% { box-shadow: 0 0 10px rgba(59,130,246,0.15), inset 0 1px 0 rgba(255,255,255,0.06); }
  50%     { box-shadow: 0 0 24px rgba(59,130,246,0.32), inset 0 1px 0 rgba(255,255,255,0.10); }
}

/* ═══════════════════════════════════════════════════════════
   DEPOSIT PAGE — Game Shop Style
   ═══════════════════════════════════════════════════════════ */

.dep-header {
  background: linear-gradient(145deg, #0D0F20, #090A16);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: var(--r-xl);
  padding: 18px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.dep-header::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 10% 50%, rgba(59,130,246,0.07), transparent 70%);
}
.dep-balance-row {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.dep-balance-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(250,204,21,0.14), rgba(250,204,21,0.05));
  border: 1px solid rgba(250,204,21,0.26);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
}
.dep-balance-label { font-size: 0.68rem; color: var(--text-dim); margin-bottom: 2px; letter-spacing: 0.5px; }
.dep-balance-value { font-size: 1.5rem; font-weight: 900; font-family: var(--font-heading); color: var(--gold); line-height: 1; }
.dep-balance-fiat { font-size: 0.7rem; color: var(--text-dim); margin-top: 2px; }
.dep-rates-label { font-size: 0.65rem; color: var(--text-dim); font-weight: 700; letter-spacing: 0.8px; margin-bottom: 8px; text-transform: uppercase; }
.dep-rates { display: flex; gap: 6px; flex-wrap: wrap; }
.dep-rate-tag {
  padding: 4px 10px;
  background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2);
  border-radius: 20px; font-size: 0.65rem; font-weight: 700;
  font-family: var(--font-mono); color: #93c5fd;
}

/* Method cards */
.dep-method-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg); padding: 14px 10px;
  text-align: center; cursor: pointer;
  transition: all 0.25s ease; overflow: hidden;
}
.dep-method-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--dm-color, var(--primary)), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.dep-method-card:hover {
  background: var(--dm-bg, rgba(59,130,246,0.06));
  border-color: var(--dm-border, rgba(59,130,246,0.25));
  transform: translateY(-2px);
}
.dep-method-card.active {
  background: var(--dm-bg, rgba(59,130,246,0.1));
  border-color: var(--dm-color, var(--primary));
}
.dep-method-card.active::before { opacity: 1; }
.dep-method-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px; transition: transform 0.25s ease;
}
.dep-method-card.active .dep-method-icon { transform: scale(1.12); }
.dep-method-name { font-size: 0.68rem; font-weight: 800; font-family: var(--font-heading); color: var(--text-muted); letter-spacing: 0.3px; }
.dep-method-card.active .dep-method-name { color: #fff; }

/* Section container */
.dep-qr-section {
  background: linear-gradient(145deg, #0D0F1E, #090A16);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: var(--r-xl); overflow: hidden; margin-bottom: 14px;
}
.dep-section-header {
  padding: 13px 16px;
  background: rgba(59,130,246,0.05);
  border-bottom: 1px solid rgba(59,130,246,0.1);
  display: flex; align-items: center; gap: 10px;
}
.dep-section-title {
  font-family: var(--font-heading); font-size: 0.76rem;
  font-weight: 800; color: #fff; letter-spacing: 0.5px;
}
.dep-qr-body { padding: 16px; }

/* Amount presets */
.dep-amounts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 14px;
}
.dep-amount-btn {
  padding: 10px 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-sm);
  color: var(--text-muted); font-size: 0.72rem; font-weight: 800;
  font-family: var(--font-heading); cursor: pointer;
  transition: all 0.2s; text-align: center;
}
.dep-amount-btn:hover {
  background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: var(--primary);
}
.dep-amount-btn.selected {
  background: rgba(59,130,246,0.18); border-color: var(--primary); color: var(--primary);
  box-shadow: 0 0 14px rgba(59,130,246,0.2);
}
.dep-amount-xu {
  display: block; font-size: 0.58rem; color: var(--text-dim);
  font-weight: 500; margin-top: 2px;
}

/* QR generate button */
.dep-qr-generate-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none; border-radius: var(--r-sm);
  color: #fff; font-family: var(--font-heading); font-size: 0.78rem;
  font-weight: 900; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; transition: all 0.25s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 24px rgba(59,130,246,0.32);
  position: relative; overflow: hidden;
}
.dep-qr-generate-btn::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-15deg);
}
.dep-qr-generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(59,130,246,0.44);
}
.dep-qr-generate-btn:hover::before { animation: dep-btn-sweep 0.5s ease forwards; }
@keyframes dep-btn-sweep { to { left: 160%; } }
.dep-qr-generate-btn:active { transform: translateY(0); }

/* Tips */
.dep-tips {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-xl); overflow: hidden;
}
.dep-tip-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dep-tip-item:last-child { border-bottom: none; }
.dep-tip-icon {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25);
  display: flex; align-items: center; justify-content: center; color: var(--success);
}
.dep-tip-text { font-size: 0.76rem; color: var(--text-muted); line-height: 1.6; }
.dep-tip-text strong { color: #e2e8f0; }

/* ═══════════════════════════════════════════════════════════
   DEPOSIT PAGE — QR Launcher & QR Result Card
   ═══════════════════════════════════════════════════════════ */

/* --- Launcher CTA card --- */
.dep-launcher-card {
  position: relative;
  background: linear-gradient(160deg, #0E1226 0%, #090A16 60%, #0B0E1E 100%);
  border: 1px solid rgba(59,130,246,0.22);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
}
.dep-launcher-glow {
  position: absolute;
  top: -60%; left: 50%; transform: translateX(-50%);
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(59,130,246,0.35), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  animation: dep-launcher-glow-pulse 4s ease-in-out infinite;
}
@keyframes dep-launcher-glow-pulse {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.9;  transform: translateX(-50%) scale(1.08); }
}
.dep-launcher-inner {
  position: relative;
  z-index: 1;
  padding: 36px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.dep-launcher-logo-wrap {
  position: relative;
  width: 74px; height: 74px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.dep-launcher-logo {
  width: 64px; height: 64px;
  border-radius: 16px;
  object-fit: cover;
  background: #fff;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(59,130,246,0.35), 0 0 0 1px rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}
.dep-launcher-pulse {
  position: absolute; inset: 0;
  border-radius: 16px;
  border: 2px solid rgba(59,130,246,0.5);
  animation: dep-launcher-pulse-ring 2.2s ease-out infinite;
}
@keyframes dep-launcher-pulse-ring {
  0%   { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}
.dep-launcher-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}
.dep-launcher-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 360px;
  margin-bottom: 16px;
}
.dep-launcher-rates {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin-bottom: 22px;
}
.dep-launcher-rate-chip {
  padding: 5px 12px;
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 20px;
  font-size: 0.68rem; font-weight: 700;
  font-family: var(--font-mono);
  color: var(--gold);
}
.dep-launcher-btn {
  width: 100%; max-width: 360px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none; border-radius: var(--r-md, 12px);
  color: #fff; font-family: var(--font-heading);
  font-size: 0.85rem; font-weight: 900;
  letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; transition: all 0.25s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 30px rgba(59,130,246,0.4);
  position: relative; overflow: hidden;
}
.dep-launcher-btn::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
  transform: skewX(-15deg);
}
.dep-launcher-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(59,130,246,0.55);
}
.dep-launcher-btn:hover::before { animation: dep-btn-sweep 0.5s ease forwards; }
.dep-launcher-btn:active { transform: translateY(0); }
.dep-launcher-note {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 14px;
  line-height: 1.6;
}

/* Waiting variant of launcher card */
.dep-launcher-card--waiting .dep-launcher-inner {
  padding: 40px 20px;
}
.dep-waiting-spinner {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(59,130,246,0.18);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}

/* --- QR result card --- */
.dep-qr-card {
  background: linear-gradient(160deg, #0E1226 0%, #090A16 60%, #0B0E1E 100%);
  border: 1px solid rgba(59,130,246,0.22);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
}
.dep-qr-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: rgba(59,130,246,0.06);
  border-bottom: 1px solid rgba(59,130,246,0.14);
}
.dep-qr-cancel-btn {
  padding: 7px 14px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  color: #f87171; font-size: 0.7rem; font-weight: 800;
  font-family: var(--font-heading); letter-spacing: 0.5px;
  cursor: pointer; transition: all 0.2s;
}
.dep-qr-cancel-btn:hover { background: rgba(239,68,68,0.18); border-color: rgba(239,68,68,0.5); }

.dep-qr-waiting-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; padding: 10px;
  background: rgba(56,189,248,0.06);
  border-bottom: 1px solid rgba(56,189,248,0.14);
}
.dep-qr-waiting-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #38bdf8;
  animation: dep-qr-waiting-bounce 1.2s ease-in-out infinite;
}
.dep-qr-waiting-dot:nth-child(2) { animation-delay: 0.15s; }
.dep-qr-waiting-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes dep-qr-waiting-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1.2); opacity: 1; }
}

.dep-qr-img-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 20px 18px;
}
.dep-qr-img-frame {
  width: 100%; max-width: 260px;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.25), 0 12px 32px rgba(59,130,246,0.28);
  position: relative;
}
.dep-qr-img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.dep-qr-dl-btn {
  margin-top: 14px;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  color: var(--text-muted); font-size: 0.68rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.dep-qr-dl-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

.dep-qr-info-grid {
  display: flex; flex-direction: column; gap: 10px;
  padding: 0 16px 16px;
}
.dep-qr-info-row {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 14px;
}
.dep-qr-info-row--warn {
  background: rgba(245,158,11,0.06);
  border-color: rgba(245,158,11,0.28);
}
.dep-qr-info-label {
  font-size: 0.66rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.dep-qr-info-label--warn {
  display: flex; align-items: center; gap: 6px;
  color: #fbbf24;
}
.dep-qr-info-val {
  font-size: 1.05rem; font-weight: 800;
  font-family: var(--font-mono); color: #fff;
  letter-spacing: 0.5px;
}
.dep-qr-info-sub {
  font-size: 0.72rem; color: var(--text-muted); margin-top: 2px;
}
.dep-qr-copy-btn {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.68rem; font-weight: 800;
  cursor: pointer; transition: all 0.2s;
  border: 1px solid transparent;
}
.dep-qr-copy-btn--blue {
  background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.3); color: #93c5fd;
}
.dep-qr-copy-btn--blue:hover { background: rgba(59,130,246,0.22); }
.dep-qr-copy-btn--gold {
  background: rgba(255,215,0,0.1); border-color: rgba(255,215,0,0.3); color: var(--gold);
}
.dep-qr-copy-btn--gold:hover { background: rgba(255,215,0,0.18); }
.dep-qr-txcode {
  font-family: var(--font-mono); font-size: 1rem; font-weight: 800;
  color: var(--gold); letter-spacing: 1px;
  word-break: break-all;
}
.dep-qr-warn-note {
  font-size: 0.68rem; color: #fca5a5; margin-top: 8px; line-height: 1.5;
}

.dep-qr-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 0 16px 18px;
}
.dep-qr-action-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px; border-radius: 10px;
  font-size: 0.72rem; font-weight: 800;
  font-family: var(--font-heading); letter-spacing: 0.4px;
  cursor: pointer; transition: all 0.2s;
  border: 1px solid transparent;
}
.dep-qr-action-btn--red {
  background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #f87171;
}
.dep-qr-action-btn--red:hover { background: rgba(239,68,68,0.18); }
.dep-qr-action-btn--green {
  background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.32); color: #4ade80;
}
.dep-qr-action-btn--green:hover { background: rgba(34,197,94,0.2); }
.dep-qr-action-btn:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 480px) {
  .dep-launcher-inner { padding: 28px 16px 22px; }
  .dep-launcher-title { font-size: 1.02rem; }
  .dep-qr-img-frame { max-width: 220px; }
  .dep-qr-actions { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   DYNAMIC TIER THEME — CSS Variable Consumers
   These components read --tier-* vars set by header.php
   ═══════════════════════════════════════════════════════════ */

/* Smooth transitions on theme-responsive components */
.header-bar,
.bottom-nav,
.sidebar,
.sidebar-avatar,
.sidebar-user-inner,
.sidebar-menu-item.active::before,
.btn-primary,
.btn-secondary,
.icon-btn,
.nav-center-pill,
.universal-modal-box,
.modal-box,
.auth-modal-card,
.input-field,
.profile-game-hero,
.profile-hero-v5,
.profile-stat-box,
.profile-action-btn,
.key-progress-fill,
.phv5-progress-fill,
.badge-info,
.toast.toast-info,
.loading-spinner,
.notification-item.unread,
.profile-info-header-icon {
  transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease, color 0.5s ease;
}

/* Input focus uses tier primary */
.input-field:focus {
  border-color: var(--primary);
  background: var(--tier-surface-accent);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Key progress bar uses tier colors */
.key-progress-fill {
  background: linear-gradient(90deg, var(--tier-progress-start), var(--tier-progress-end));
}

/* Badge info uses tier */
.badge-info { background: var(--primary-glow); color: var(--primary); }

/* Toast info border uses tier */
.toast.toast-info { border-left-color: var(--primary); }

/* Loading spinner uses tier */
.loading-spinner { border-top-color: var(--primary); }

/* Notification unread uses tier */
.notification-item.unread { border-left-color: var(--primary); }
.notification-full-item.unread { border-left-color: var(--primary); }

/* Sidebar avatar border/glow uses tier */
.sidebar-avatar {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}
.sidebar-user-inner {
  background: linear-gradient(135deg, var(--tier-surface-accent), rgba(255,255,255,0.01));
  border-color: var(--tier-border-accent);
}
.sidebar::before {
  background: radial-gradient(ellipse at 50% 0%, var(--tier-glow-color) 0%, transparent 70%);
}

/* Mark-all-read button color */
.mark-all-read-btn { color: var(--primary); }
.mark-all-read-btn:hover { background: var(--primary-glow); }

/* Notif tab active */
.notif-tab.active { background: var(--primary-glow); color: var(--primary); border-color: var(--primary); }

/* Recharge tab active */
.recharge-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Transfer code box */
.transfer-code { color: var(--primary); background: var(--primary-glow); border-color: var(--primary); }
.referral-code-box { color: var(--primary); background: var(--primary-glow); }

/* Dep amount selected */
.dep-amount-btn.selected { background: var(--tier-surface-accent); border-color: var(--primary); color: var(--primary); }
.dep-amount-btn:hover { background: var(--tier-surface-accent); border-color: var(--tier-border-accent); color: var(--primary); }

/* Universal modal accent */
.universal-modal-box {
  box-shadow: var(--tier-shadow), 0 0 0 1px rgba(255,255,255,0.05);
}
.universal-modal-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% 100%;
  animation: header-shimmer 3s linear infinite;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

/* Section title bar */
.section-title::before {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

/* Page title icon */
.page-title-icon {
  background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
  border-color: var(--primary);
  color: var(--primary);
}

/* FAQ cat tab active */
.faq-cat-tab.active { background: var(--tier-surface-accent); border-color: var(--primary); color: var(--primary); }

/* Support channel card hover */
.support-channel-card:hover { border-color: var(--primary); }

/* ═══════════════════════════════════════════════════════════
   PROFILE PAGE V5 — Premium Hero Card
   ═══════════════════════════════════════════════════════════ */
.profile-page-v5 { animation: fadeIn 0.35s ease; }

.profile-hero-v5 {
  background: linear-gradient(160deg, #0C0D1B 0%, #07080F 100%);
  border: 1px solid var(--tier-border-accent);
  border-radius: var(--r-xl);
  padding: 0;
  position: relative; overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--tier-shadow), 0 24px 60px rgba(0,0,0,0.5);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

/* Tier accent bar at top */
.phv5-accent-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 2.5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% 100%;
  animation: header-shimmer 3s linear infinite;
  z-index: 2;
}
.profile-tier-promax .phv5-accent-bar {
  background: linear-gradient(90deg, #FFD700, #FFF0A0, #D97706, #FFD700);
  background-size: 300% 100%;
  animation: gold-border-flow 3s linear infinite;
  height: 3px;
}

/* BG ambient glow */
.phv5-bg-glow {
  position: absolute; top: 0; left: 0; right: 0; height: 220px;
  background: radial-gradient(ellipse at 50% -10%, var(--tier-glow-color) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
  transition: background 0.5s ease;
}

/* Content wrapper */
.phv5-content {
  position: relative; z-index: 1;
  padding: 32px 20px 22px;
  display: flex; flex-direction: column; align-items: center;
  gap: 0;
}

/* ── Avatar section ── */
.phv5-avatar-wrap {
  margin-bottom: 18px;
  position: relative;
}
.phv5-avatar-frame {
  position: relative; width: 110px; height: 110px;
}
.phv5-avatar-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--primary));
  animation: avatar-ring-spin 4s linear infinite;
  z-index: 0;
}
.phv5-ring-promax {
  background: conic-gradient(from 0deg, #FFD700, #FFF0A0, #D97706, #FFD700);
  animation: avatar-ring-spin 3s linear infinite;
}
.phv5-ring-pro {
  background: conic-gradient(from 0deg, #8B5CF6, #C4B5FD, #7C3AED, #8B5CF6);
}
.phv5-ring-lite {
  background: conic-gradient(from 0deg, #C0C8D8, #E2E8F0, #A0AAB8, #C0C8D8);
  animation: avatar-ring-spin 6s linear infinite;
}
.phv5-ring-none, .phv5-ring-basic {
  background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--primary));
}
.phv5-avatar-ring-outer {
  position: absolute; inset: -8px; border-radius: 50%;
  background: conic-gradient(from 180deg, rgba(255,215,0,0.45), transparent, rgba(255,215,0,0.28));
  animation: avatar-ring-spin 6s linear infinite reverse;
  opacity: 0.55;
  z-index: 0;
}
.phv5-avatar-inner {
  position: relative; z-index: 1;
  width: 110px; height: 110px; border-radius: 50%;
  overflow: hidden; background: #07080D;
  border: 3.5px solid #07080D;
  display: flex; align-items: center; justify-content: center;
}
.phv5-avatar-inner img { width: 100%; height: 100%; object-fit: cover; }

/* Tier pip badge (bottom-right of avatar) */
.phv5-tier-pip {
  position: absolute; bottom: 2px; right: 2px; z-index: 3;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid #07080D;
  font-size: 0.5rem;
}
.phv5-pip-none    { background: #374151; color: #9CA3AF; }
.phv5-pip-lite    { background: linear-gradient(135deg, #A0AAB8, #E2E8F0); color: #07080D; }
.phv5-pip-basic   { background: linear-gradient(135deg, #3B82F6, #2563EB); color: white; }
.phv5-pip-pro     { background: linear-gradient(135deg, #8B5CF6, #7C3AED); color: white; }
.phv5-pip-promax  {
  background: linear-gradient(135deg, #FFD700, #D97706);
  color: #07080D;
  box-shadow: 0 0 10px rgba(255,215,0,0.6);
}

/* ── Identity ── */
.phv5-identity {
  text-align: center; margin-bottom: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.phv5-name {
  font-family: var(--font-heading);
  font-size: 1.45rem; font-weight: 900;
  letter-spacing: 2px; text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 30%, var(--primary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin: 0; line-height: 1.1;
  transition: background 0.5s ease;
}
.phv5-name-promax {
  background: linear-gradient(135deg, #FFF7D6 20%, #FFD700 55%, #D97706 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 8px rgba(255,215,0,0.4));
}
.phv5-name-pro {
  background: linear-gradient(135deg, #EDE9FE 20%, #A78BFA 55%, #7C3AED 100%);
  -webkit-background-clip: text; background-clip: text;
}
.phv5-name-lite {
  background: linear-gradient(135deg, #F8FAFC 30%, #C0C8D8 70%);
  -webkit-background-clip: text; background-clip: text;
}
.phv5-uid {
  font-family: var(--font-mono);
  font-size: 0.62rem; color: var(--text-dim); letter-spacing: 1.5px;
}
.phv5-badge-row {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: center;
}

/* ── Tier badge pill ── */
.phv5-tier-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: var(--r-pill);
  font-family: var(--font-heading); font-size: 0.68rem; font-weight: 800;
  letter-spacing: 1.8px; text-transform: uppercase;
  border: 1px solid;
  transition: all 0.4s ease;
}
.phv5-badge-none   { background: rgba(80,84,106,0.18); border-color: rgba(100,116,139,0.35); color: #6B7280; }
.phv5-badge-lite   {
  background: rgba(192,200,216,0.10); border-color: rgba(192,200,216,0.45); color: #C0C8D8;
  box-shadow: 0 0 10px rgba(192,200,216,0.12);
}
.phv5-badge-basic  {
  background: rgba(59,130,246,0.13); border-color: rgba(59,130,246,0.52); color: #3B82F6;
  box-shadow: 0 0 12px rgba(59,130,246,0.2);
}
.phv5-badge-pro    {
  background: rgba(139,92,246,0.13); border-color: rgba(139,92,246,0.52); color: #A78BFA;
  box-shadow: 0 0 14px rgba(139,92,246,0.22);
}
.phv5-badge-promax {
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(217,119,6,0.08));
  border-color: rgba(255,215,0,0.65); color: #FFD700;
  box-shadow: 0 0 18px rgba(255,215,0,0.35);
  text-shadow: 0 0 10px rgba(255,215,0,0.6);
  animation: gold-badge-pulse 2.5s ease-in-out infinite;
}
@keyframes gold-badge-pulse {
  0%,100% { box-shadow: 0 0 14px rgba(255,215,0,0.28); }
  50%     { box-shadow: 0 0 28px rgba(255,215,0,0.55); }
}

.phv5-active-pill {
  display: inline-flex; align-items: center;
  background: rgba(34,197,94,0.14); color: var(--success);
  border: 1px solid rgba(34,197,94,0.35);
  padding: 3px 9px; border-radius: var(--r-pill);
  font-size: 0.58rem; font-weight: 900;
  font-family: var(--font-mono); letter-spacing: 0.8px;
}

/* ── Stats grid ── */
.phv5-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 8px; width: 100%; margin-bottom: 16px;
}
@media (max-width: 440px) { .phv5-stats { grid-template-columns: repeat(2,1fr); } }
.phv5-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 11px 8px; text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}
.phv5-stat:hover {
  border-color: var(--tier-border-accent);
  background: var(--tier-surface-accent);
  transform: translateY(-2px);
}
.phv5-stat-val {
  font-family: var(--font-heading); font-size: 1rem; font-weight: 700;
  margin-bottom: 3px; line-height: 1.1;
}
.phv5-stat-lbl {
  font-size: 0.5rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 1.2px;
}
.phv5-stat-xu .phv5-stat-val     { color: var(--gold); }
.phv5-stat-tier                  { color: var(--primary); font-size: 0.72rem; }
.phv5-stat-expval                { color: var(--success); font-size: 0.75rem; }
.phv5-stat-joinval               { color: var(--text-muted); font-size: 0.62rem; }

/* ── Progress bar ── */
.phv5-progress-wrap { width: 100%; margin-bottom: 16px; }
.phv5-progress-bar {
  height: 5px; background: rgba(255,255,255,0.07);
  border-radius: 3px; overflow: hidden;
}
.phv5-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--tier-progress-start), var(--tier-progress-end));
  border-radius: 3px;
  transition: width 1s ease, background 0.5s ease;
  position: relative;
}
.phv5-progress-fill::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; width: 40px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
  animation: progress-shimmer 2s ease-in-out infinite;
}
.phv5-progress-label {
  display: flex; justify-content: space-between;
  font-size: 0.58rem; color: var(--text-dim); margin-top: 4px;
}

/* ── Action buttons ── */
.phv5-actions {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 8px; width: 100%;
}
@media (max-width: 380px) { .phv5-actions { grid-template-columns: repeat(2,1fr); } }
.phv5-action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 13px 6px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.58rem; font-weight: 700;
  font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.5px;
  text-decoration: none; text-align: center;
  transition: all 0.22s var(--ease); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  min-height: 64px;
}
.phv5-action-btn:hover {
  color: var(--primary); border-color: var(--tier-border-accent);
  background: var(--tier-surface-accent); transform: translateY(-2px);
  box-shadow: var(--tier-shadow);
}
.phv5-action-btn svg { transition: transform 0.2s; }
.phv5-action-btn:hover svg { transform: scale(1.18); }
.phv5-action-upgrade:hover { color: var(--gold); border-color: rgba(255,215,0,0.4); background: rgba(255,215,0,0.06); }
.phv5-action-danger:hover  { color: var(--danger); border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.06); }

/* ── No-key section ── */
.phv5-nokey-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; color: var(--text-dim); opacity: 0.5;
}

/* Premium section border tracks tier */
.profile-premium-section {
  border-color: var(--tier-border-accent) !important;
  transition: border-color 0.5s ease;
}
.profile-premium-promax {
  background: linear-gradient(145deg, rgba(255,215,0,0.03), transparent) !important;
}
.profile-premium-pro {
  background: linear-gradient(145deg, rgba(139,92,246,0.04), transparent) !important;
}

/* ═══════════════════════════════════════════════════════════
   EDIT PROFILE MODAL V5
   ═══════════════════════════════════════════════════════════ */
@keyframes ep-preview-pop {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* Page wrapper (full-page fallback) */
.ep-page-wrap {
  max-width: 540px; margin: 0 auto; animation: fadeIn 0.3s ease;
}
.ep-page-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  border-top: 2px solid var(--primary);
}
.ep-page-header-icon {
  width: 46px; height: 46px; border-radius: var(--r-md);
  background: var(--tier-surface-accent); border: 1px solid var(--tier-border-accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
.ep-page-title {
  font-family: var(--font-heading); font-size: 1rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text); margin: 0 0 3px;
}
.ep-page-sub { font-size: 0.75rem; color: var(--text-muted); margin: 0; }

/* Alert */
.ep-alert {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 0.82rem; margin-bottom: 14px;
}
.ep-alert-error   { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25); color: #FCA5A5; }
.ep-alert-success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.25); color: #86EFAC; }

/* Modal wrap (used in both modal and full-page) */
.ep-modal-wrap {
  display: flex; flex-direction: column; gap: 16px;
}

/* Preview */
.ep-preview-wrap { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.ep-preview-frame {
  width: 100px; height: 100px; border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 0 22px var(--primary-glow), 0 0 0 4px rgba(255,255,255,0.04);
  overflow: hidden; background: var(--card-2);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.ep-preview-img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%;
}
.ep-preview-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
}
.ep-preview-label {
  font-size: 0.6rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-heading);
}

/* Tabs */
.ep-form { display: flex; flex-direction: column; gap: 14px; }
.ep-tabs {
  display: flex; gap: 6px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: var(--r-sm); overflow: hidden; padding: 4px;
}
.ep-tab {
  flex: 1; padding: 8px 10px; border-radius: var(--r-xs);
  background: transparent; border: none;
  font-family: var(--font-heading); font-size: 0.65rem;
  font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-dim); cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.ep-tab:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.ep-tab.active {
  background: var(--tier-surface-accent);
  color: var(--primary); border: 1px solid var(--tier-border-accent);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Tab content */
.ep-tab-content { display: none; }
.ep-tab-content.active { display: block; animation: fadeIn 0.2s ease; }

/* Gallery grid */
.ep-gallery {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 8px; max-height: 280px; overflow-y: auto;
  padding: 4px 2px;
  scrollbar-width: thin; scrollbar-color: var(--primary-glow) transparent;
}
@media (min-width: 480px) { .ep-gallery { grid-template-columns: repeat(5,1fr); } }
.ep-gallery-item {
  position: relative; cursor: pointer; border-radius: var(--r-sm);
  overflow: hidden; aspect-ratio: 1;
  border: 2px solid transparent;
  transition: all 0.22s var(--ease);
}
.ep-gallery-item:hover {
  border-color: var(--tier-border-accent);
  transform: scale(1.06);
  box-shadow: 0 0 12px var(--primary-glow);
}
.ep-gallery-item input[type="radio"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; z-index: 2;
}
.ep-gallery-item img {
  width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--r-sm) - 2px);
  transition: transform 0.22s ease;
  display: block;
}
.ep-gallery-item:hover img { transform: scale(1.08); }
.ep-gallery-item:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 18px var(--primary-glow);
  transform: scale(1.06);
}
.ep-gallery-check {
  position: absolute; top: 3px; right: 3px; z-index: 3;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); color: white;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 0 8px var(--primary-glow);
}
.ep-gallery-item:has(input:checked) .ep-gallery-check { display: flex; }

/* Upload zone */
.ep-upload-zone {
  position: relative; border: 2px dashed var(--border);
  border-radius: var(--r-md); padding: 28px 16px;
  text-align: center; cursor: pointer;
  transition: all 0.25s ease; background: rgba(255,255,255,0.02);
}
.ep-upload-zone:hover {
  border-color: var(--primary);
  background: var(--tier-surface-accent);
  box-shadow: 0 0 20px var(--primary-glow);
}
.ep-file-input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; z-index: 2;
}
.ep-upload-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--tier-surface-accent); border: 1px solid var(--tier-border-accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); margin: 0 auto 10px;
  transition: all 0.25s ease;
}
.ep-upload-zone:hover .ep-upload-icon { transform: scale(1.1); box-shadow: 0 0 16px var(--primary-glow); }
.ep-upload-text { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; }
.ep-upload-hint { font-size: 0.68rem; color: var(--text-dim); }

/* Field */
.ep-field { display: flex; flex-direction: column; gap: 6px; }
.ep-field-label {
  font-size: 0.72rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.6px;
}
.ep-display-input { font-size: 0.9rem; }

/* Save button */
.ep-save-btn {
  padding: 14px; font-size: 0.88rem; letter-spacing: 1.5px;
  margin-top: 4px;
  box-shadow: 0 6px 24px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}
.ep-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.2);
  filter: brightness(1.1);
}

/* ── Mobile responsive adjustments ── */
@media (max-width: 375px) {
  .phv5-content { padding: 28px 14px 18px; }
  .phv5-avatar-frame { width: 90px; height: 90px; }
  .phv5-avatar-inner { width: 90px; height: 90px; }
  .phv5-name { font-size: 1.15rem; }
  .phv5-actions { grid-template-columns: repeat(2,1fr); }
  .phv5-action-btn { min-height: 56px; }
  .ep-gallery { grid-template-columns: repeat(3,1fr); }
}

/* Responsible-use admin notice */
.responsible-notice-open {
  overflow: hidden;
}

.responsible-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(3, 7, 18, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: responsible-notice-fade-in 180ms ease-out both;
}

.responsible-notice-overlay[hidden] {
  display: none !important;
}

.responsible-notice-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 410px);
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 34px 28px 24px;
  color: #e8eefc;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(38, 105, 148, 0.18), transparent 52%),
    linear-gradient(155deg, #12182b 0%, #0a1020 100%);
  border: 1px solid rgba(45, 212, 191, 0.42);
  border-radius: 26px;
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.08),
    0 0 46px rgba(34, 211, 238, 0.12),
    0 32px 80px rgba(0, 0, 0, 0.68);
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 212, 191, 0.38) transparent;
  animation: responsible-notice-rise 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.responsible-notice-dialog::-webkit-scrollbar {
  width: 4px;
}

.responsible-notice-dialog::-webkit-scrollbar-thumb {
  background: rgba(45, 212, 191, 0.38);
  border-radius: 6px;
}

.responsible-notice-dialog:focus {
  outline: none;
}

.responsible-notice-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #fb5360, #d82439);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.36);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.responsible-notice-close svg {
  width: 19px;
  height: 19px;
}

.responsible-notice-close:hover {
  transform: scale(1.06);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.55);
}

.responsible-notice-close:focus-visible,
.responsible-notice-actions button:focus-visible {
  outline: 2px solid #e0f2fe;
  outline-offset: 3px;
}

.responsible-notice-heading {
  max-width: 240px;
  padding: 4px 34px 12px;
  color: #f3f7ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.5px;
  line-height: 1.5;
}

.responsible-notice-divider {
  width: 100%;
  height: 1px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.3), transparent);
}

.responsible-notice-bell {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  place-items: center;
  color: #45d5ed;
  background: rgba(34, 211, 238, 0.07);
  border: 1px solid rgba(34, 211, 238, 0.58);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.12), inset 0 0 18px rgba(34, 211, 238, 0.07);
}

.responsible-notice-bell svg {
  width: 29px;
  height: 29px;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.48));
}

.responsible-notice-dialog h2 {
  margin: 0 0 9px;
  color: #f5f8ff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.25px;
  line-height: 1.45;
}

.responsible-notice-intro,
.responsible-notice-points,
.responsible-notice-closing {
  color: #c6d0e5;
  font-size: 13px;
  line-height: 1.65;
}

.responsible-notice-intro {
  margin: 0 0 14px;
}

.responsible-notice-points {
  display: grid;
  gap: 11px;
  width: 100%;
  margin: 0;
  padding: 0 0 0 19px;
  text-align: left;
}

.responsible-notice-points li {
  padding-left: 2px;
}

.responsible-notice-points li::marker {
  color: #53d7ea;
}

.responsible-notice-closing {
  margin: 16px 0 20px;
  color: #e3ebfb;
  font-weight: 600;
}

.responsible-notice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.responsible-notice-actions button {
  min-height: 44px;
  padding: 10px 12px;
  color: #dbeafe;
  background: linear-gradient(145deg, rgba(37, 65, 133, 0.92), rgba(30, 47, 105, 0.96));
  border: 1px solid rgba(129, 159, 255, 0.4);
  border-radius: 13px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.responsible-notice-actions button:last-child {
  color: #fff;
  background: linear-gradient(135deg, #11bfe4, #1684d5);
  border-color: rgba(88, 219, 255, 0.55);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.24);
}

.responsible-notice-actions button:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}

@keyframes responsible-notice-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes responsible-notice-rise {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
  .responsible-notice-overlay {
    padding-right: 14px;
    padding-left: 14px;
  }

  .responsible-notice-dialog {
    max-height: 88vh;
    max-height: 88dvh;
    padding: 30px 20px 20px;
    border-radius: 23px;
  }

  .responsible-notice-heading {
    font-size: 12px;
  }

  .responsible-notice-intro,
  .responsible-notice-points,
  .responsible-notice-closing {
    font-size: 12.5px;
  }

  .responsible-notice-actions {
    gap: 8px;
  }

  .responsible-notice-actions button {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .responsible-notice-overlay,
  .responsible-notice-dialog,
  .responsible-notice-close,
  .responsible-notice-actions button {
    animation: none;
    transition: none;
  }
}
@media (min-width: 560px) {
  .phv5-stats { grid-template-columns: repeat(4,1fr); }
  .phv5-actions { grid-template-columns: repeat(4,1fr); }
}

/* ═══════════════════════════════════════════════════════════
   GAMES PAGE – HOT / NEW BADGES & BACCARAT FILTER
   ═══════════════════════════════════════════════════════════ */

/* HOT badge (existing class, ensure styles present) */
.game-hot-badge {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 1px;
  font-family: var(--font-heading);
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 2px 10px rgba(239,68,68,0.55);
  animation: badge-pulse 2s ease-in-out infinite;
}

/* NEW badge */
.game-new-badge {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 1px;
  font-family: var(--font-heading);
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  box-shadow: 0 2px 10px rgba(99,102,241,0.55);
}

@keyframes badge-pulse {
  0%,100% { box-shadow: 0 2px 10px rgba(239,68,68,0.55); }
  50%      { box-shadow: 0 2px 20px rgba(239,68,68,0.9); }
}

/* Category filter buttons (games.php page) */
.games-search-filter { padding: 0 0 16px; }
.category-filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.category-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.category-btn:hover,
.category-btn.active {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.5);
  color: var(--primary);
}
.category-btn.hot-btn {
  border-color: rgba(239,68,68,0.35);
  color: #f87171;
}
.category-btn.hot-btn.active,
.category-btn.hot-btn:hover {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.6);
  color: #fca5a5;
}
.category-btn.baccarat-btn {
  border-color: rgba(233,30,140,0.35);
  color: #f472b6;
}
.category-btn.baccarat-btn.active,
.category-btn.baccarat-btn:hover {
  background: rgba(233,30,140,0.12);
  border-color: rgba(233,30,140,0.6);
  color: #fbcfe8;
}

/* ═══════════════════════════════════════════════════════════
   VIP SYSTEM — Badges, Avatar Frames, Animations
   ═══════════════════════════════════════════════════════════ */

/* VIP Badge animated glow */
@keyframes vip-badge-glow {
  0%,100% { box-shadow: 0 0 6px currentColor; }
  50%      { box-shadow: 0 0 16px currentColor, 0 0 28px currentColor; }
}
.vip-badge-animated {
  animation: vip-badge-glow 2s ease-in-out infinite;
}

/* ── VIP Avatar Frames ──────────────────────────────────── */
.vip-avatar-frame {
  position: relative;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* VIP 1 — Green */
.vip-frame-1 {
  background: linear-gradient(135deg, #22C55E, #16A34A);
  box-shadow: 0 0 12px rgba(34,197,94,0.5);
  padding: 2px;
}
/* VIP 2 — Blue */
.vip-frame-2 {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  box-shadow: 0 0 12px rgba(59,130,246,0.5);
  padding: 2px;
}
/* VIP 3 — Purple */
.vip-frame-3 {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  box-shadow: 0 0 14px rgba(139,92,246,0.6);
  padding: 2px;
}
/* VIP 4 — Rose Gold glow */
.vip-frame-4 {
  background: linear-gradient(135deg, #F472B6, #EC4899, #FFD700);
  box-shadow: 0 0 16px rgba(244,114,182,0.6);
  padding: 2px;
}
/* VIP 5 — Ruby animated */
@keyframes vip5-frame-pulse {
  0%,100% { box-shadow: 0 0 16px rgba(239,68,68,0.6), 0 0 32px rgba(239,68,68,0.3); }
  50%      { box-shadow: 0 0 28px rgba(239,68,68,0.9), 0 0 48px rgba(239,68,68,0.5); }
}
.vip-frame-5 {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  animation: vip5-frame-pulse 2s ease-in-out infinite;
  padding: 2px;
}
/* VIP 6 — Gold Premium */
@keyframes vip6-frame-rotate {
  0%   { background: conic-gradient(from 0deg, #FFD700, #FFA500, #FFD700, #FDE68A, #FFD700); }
  100% { background: conic-gradient(from 360deg, #FFD700, #FFA500, #FFD700, #FDE68A, #FFD700); }
}
@keyframes vip6-glow {
  0%,100% { box-shadow: 0 0 20px rgba(255,215,0,0.7), 0 0 40px rgba(255,215,0,0.35); }
  50%      { box-shadow: 0 0 35px rgba(255,215,0,1), 0 0 60px rgba(255,215,0,0.6); }
}
.vip-frame-6 {
  background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
  animation: vip6-glow 2s ease-in-out infinite;
  padding: 3px;
}
.vip-frame-animated {
  /* additional class for VIP 5 and 6 */
}

/* Crown icon in frame */
.vip-crown-icon {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  font-size: 14px; z-index: 2;
  animation: crown-float 2s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(255,215,0,0.8));
}
@keyframes crown-float {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-3px); }
}

/* ── Live Chat Button Pulse ──────────────────────────────── */
.live-chat-pulse {
  position: absolute; top: 4px; right: 4px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}
.live-chat-pulse::before {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  background: rgba(34,197,94,0.4);
  animation: chat-pulse-ring 1.8s ease-out infinite;
}
@keyframes chat-pulse-ring {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ── VIP name text effects ───────────────────────────────── */
.vip-name-glow-5 {
  text-shadow: 0 0 8px rgba(239,68,68,0.8), 0 0 16px rgba(239,68,68,0.4);
  animation: vip5-text-pulse 2s ease-in-out infinite;
}
@keyframes vip5-text-pulse {
  0%,100% { text-shadow: 0 0 8px rgba(239,68,68,0.7); }
  50%      { text-shadow: 0 0 14px rgba(239,68,68,1), 0 0 24px rgba(239,68,68,0.5); }
}
.vip-name-glow-6 {
  background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700, #FDE68A);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: vip6-text-shimmer 2s linear infinite;
}
@keyframes vip6-text-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── VIP badge in messages / leaderboard ─────────────────── */
.vip-badge { cursor: default; }
.vip-badge-1 { color: #22C55E !important; }
.vip-badge-2 { color: #3B82F6 !important; }
.vip-badge-3 { color: #8B5CF6 !important; }
.vip-badge-4 { color: #F472B6 !important; }
.vip-badge-5 { color: #EF4444 !important; }
.vip-badge-6 { color: #FFD700 !important; }

/* Hover lift on VIP level cards */
.vip-level-card { transition: transform 0.22s ease, box-shadow 0.22s ease; }
.vip-level-card:hover { transform: translateX(4px); }

/* Current package bottom-nav dialog */
.nav-package-trigger {
  appearance: none;
  -webkit-appearance: none;
  color: inherit;
  font: inherit;
  background: transparent;
  border-top: 0;
  border-bottom: 0;
  border-radius: 0;
  cursor: pointer;
}

.nav-package-trigger:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.9);
  outline-offset: -4px;
}

.package-info-open {
  overflow: hidden;
}

.package-info-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(3, 7, 18, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.package-info-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.package-info-dialog {
  position: relative;
  width: min(100%, 430px);
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 30px 24px 24px;
  color: #e7eefc;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.16), transparent 52%),
    linear-gradient(155deg, #12182b 0%, #0a1020 100%);
  border: 1px solid rgba(96, 165, 250, 0.38);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), 0 0 38px rgba(59, 130, 246, 0.12);
  transform: translateY(12px) scale(0.98);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.package-info-overlay.open .package-info-dialog {
  transform: translateY(0) scale(1);
}

.package-info-dialog:focus {
  outline: none;
}

.package-info-close {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
}

.package-info-close svg {
  width: 17px;
  height: 17px;
}

.package-info-eyebrow {
  margin: 2px 38px 8px;
  color: #8fb8ff;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.package-info-dialog h2 {
  margin: 0 24px 8px;
  color: #f8fbff;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.package-info-tier {
  width: fit-content;
  margin: 0 auto 20px;
  padding: 5px 12px;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.13);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.package-info-remaining {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
}

.package-info-remaining span,
.package-info-dates span {
  color: #9baac2;
  font-size: 12px;
}

.package-info-remaining strong {
  color: #e9f3ff;
  font-size: 14px;
  text-align: right;
}

.package-info-progress {
  margin: 0 2px 18px;
}

.package-info-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: #aebbd0;
  font-size: 11px;
}

.package-info-progress-track {
  height: 8px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.16);
  border-radius: 999px;
}

.package-info-progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  border-radius: inherit;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.36);
  transition: width 240ms ease;
}

.package-info-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.package-info-dates > div {
  display: flex;
  min-height: 68px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 13px;
}

.package-info-dates strong {
  color: #e6edf9;
  font-size: 12px;
  line-height: 1.4;
}

.package-info-primary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  color: #fff;
  background: linear-gradient(135deg, #1689e8, #635bdb);
  border: 1px solid rgba(125, 190, 255, 0.42);
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.22);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: filter 160ms ease, transform 160ms ease;
}

.package-info-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.package-info-help {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.package-info-help h3 {
  margin: 0 0 10px;
  color: #e5edfb;
  font-size: 13px;
  font-weight: 800;
}

.package-info-help ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #aebbd0;
  font-size: 12px;
  line-height: 1.55;
}

.package-info-help li::marker {
  color: #60a5fa;
}

.package-info-help a {
  color: #7dd3fc;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.package-info-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 16px auto 15px;
  place-items: center;
  color: #60c9ee;
  background: rgba(34, 211, 238, 0.07);
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 50%;
}

.package-info-icon svg {
  width: 28px;
  height: 28px;
}

.package-info-icon-empty ~ .package-info-description {
  max-width: 300px;
  margin: 0 auto 20px;
  color: #aebbd0;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .package-info-overlay {
    padding-right: 14px;
    padding-left: 14px;
  }

  .package-info-dialog {
    max-height: 88vh;
    max-height: 88dvh;
    padding: 27px 18px 20px;
    border-radius: 21px;
  }

  .package-info-dialog h2 {
    font-size: 18px;
  }

  .package-info-dates strong {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .package-info-overlay,
  .package-info-dialog,
  .package-info-progress-track span,
  .package-info-primary {
    transition: none;
  }
}

@keyframes cutools-prediction-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.38; }
}

.predicting-state,
.analyzing-indicator,
.prediction-transition-blink {
  animation: cutools-prediction-blink 0.9s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .predicting-state,
  .analyzing-indicator,
  .prediction-transition-blink {
    animation: none;
  }
}



/* ---- Menu: VIP tag, Bot auto bet submenu ---- */
.menu-vip-tag {
  margin-left: auto;
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.8px;
  padding: 2px 7px; border-radius: 999px;
  color: #3b2a00;
  background: linear-gradient(135deg, #ffe27a, #f5a623);
  box-shadow: 0 0 8px rgba(245,166,35,0.45);
  line-height: 1.3;
}
.guest-menu-link .menu-vip-tag { margin-left: 8px; }
.sidebar-menu-toggle {
  width: 100%; background: none; border: 0; cursor: pointer;
  text-align: left; font-family: inherit;
}
.sidebar-menu-toggle .menu-vip-tag { margin-left: auto; }
.sidebar-menu-chevron { transition: transform 0.2s ease; margin-left: 6px; }
.sidebar-menu-toggle[aria-expanded="true"] .sidebar-menu-chevron { transform: rotate(180deg); }
.sidebar-submenu { display: none; padding: 2px 0 6px; }
.sidebar-submenu.open { display: block; }
.sidebar-submenu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 42px;
  color: var(--text-muted); font-size: 0.82rem; font-weight: 500;
  transition: var(--transition);
}
.sidebar-submenu-item:hover, .sidebar-submenu-item.active {
  color: var(--text); background: rgba(59,130,246,0.08);
}
.sidebar-submenu-item img { border-radius: 6px; object-fit: cover; }
.bot-game-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px; max-width: 900px; margin: 0 auto;
}
.bot-game-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 12px; border-radius: 16px; text-align: center;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text);
}
.bot-game-card.active { border-color: #f5a623; box-shadow: 0 0 16px rgba(245,166,35,0.25); }
.bot-game-card img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.bot-game-card .bot-game-status { font-size: 0.72rem; color: var(--text-dim); }


/* ---- Guest quick nav (home, logged-out) ---- */
.guest-quick-nav {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin: 0 0 18px;
}
.gqn-card {
  --gqn: #3b82f6;
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.06);
  text-decoration: none; color: var(--text);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.gqn-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--gqn) 28%, transparent), transparent 62%);
}
.gqn-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--gqn) 65%, transparent);
  box-shadow: 0 12px 30px rgba(0,0,0,0.38), 0 0 0 1px color-mix(in srgb, var(--gqn) 25%, transparent);
}
.gqn-card--predict { --gqn: #3b82f6; }
.gqn-card--bot { --gqn: #a855f7; }
.gqn-card--free { --gqn: #22c55e; }
.gqn-icon {
  position: relative; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--gqn), color-mix(in srgb, var(--gqn) 55%, #000));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--gqn) 45%, transparent);
}
.gqn-text { position: relative; display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.gqn-title { font-size: .92rem; font-weight: 800; font-family: var(--font-heading); letter-spacing: .2px; white-space: nowrap; }
.gqn-sub { font-size: .72rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gqn-card .menu-vip-tag, .gqn-free-tag { position: absolute; top: 8px; right: 10px; margin: 0; }
.gqn-free-tag {
  font-size: 0.58rem; font-weight: 800; letter-spacing: .8px; padding: 2px 7px; border-radius: 999px;
  color: #052e16; background: linear-gradient(135deg, #86efac, #22c55e);
  box-shadow: 0 0 8px rgba(34,197,94,.45); line-height: 1.3;
}
@media (max-width: 720px) {
  .guest-quick-nav { grid-template-columns: 1fr; gap: 10px; }
  .gqn-card { padding: 12px 14px; }
}

/* ---- Guest menu panel polish ---- */
.guest-menu-panel { border-radius: 0 0 20px 20px; box-shadow: 0 24px 50px rgba(0,0,0,.55); gap: 4px; }
.guest-menu-link { padding: 12px 14px; border-radius: 12px; }
.guest-menu-link:hover { transform: translateX(2px); }
.guest-menu-link svg {
  padding: 7px; width: 32px; height: 32px; box-sizing: border-box; border-radius: 9px;
  background: rgba(59,130,246,.12); color: var(--primary);
}

/* ---- Guest menu: compact dropdown (left-aligned, under the hamburger) ---- */
#guest-menu-overlay .guest-menu-panel {
  left: 10px; right: auto; width: 210px; max-width: calc(100vw - 20px);
  padding: 8px; gap: 2px; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,.5);
}
#guest-menu-overlay .guest-menu-link { padding: 8px 10px; gap: 9px; font-size: .8rem; border-radius: 9px; }
#guest-menu-overlay .guest-menu-link:hover { transform: none; box-shadow: none; }
#guest-menu-overlay .guest-menu-link svg { width: 26px; height: 26px; padding: 5px; border-radius: 8px; }
