/* ==========================================================================
   GDTG.VN - Professional Enterprise Design System
   Clean, Modern, Trust-Building UI for Business Users
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');
/* ==========================================================================
   CYBERPUNK / SECURITY DASHBOARD STYLES - Check Scam Page
   ========================================================================== */

/* Tech Font for Numbers */

.tech-font,
.scam-stat-number {
    font-family: 'JetBrains Mono', 'Courier New', monospace !important;
    letter-spacing: 0.05em;
}

/* Neon Red Glow Effect for Danger Badges */

.neon-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.8), 0 0 10px rgba(239, 68, 68, 0.6), 0 0 20px rgba(239, 68, 68, 0.4), 0 0 40px rgba(239, 68, 68, 0.2);
    animation: neonPulse 2s ease-in-out infinite;
    border: 1px solid rgba(255, 100, 100, 0.5);
}

@keyframes neonPulse {
    0%,
    100% {
        box-shadow: 0 0 5px rgba(239, 68, 68, 0.8), 0 0 10px rgba(239, 68, 68, 0.6), 0 0 20px rgba(239, 68, 68, 0.4), 0 0 40px rgba(239, 68, 68, 0.2);
    }
    50% {
        box-shadow: 0 0 10px rgba(239, 68, 68, 1), 0 0 20px rgba(239, 68, 68, 0.8), 0 0 40px rgba(239, 68, 68, 0.6), 0 0 60px rgba(239, 68, 68, 0.4);
    }
}

/* Neon Warning Icon */

.neon-warning-icon {
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.8)) drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
    animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {
    0%,
    100% {
        filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.8)) drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(239, 68, 68, 1)) drop-shadow(0 0 16px rgba(239, 68, 68, 0.8));
    }
}

/* Terminal-Style Search Bar */

.terminal-search {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f3a 100%) !important;
    border: 2px solid rgba(34, 211, 238, 0.4) !important;
    font-family: 'JetBrains Mono', monospace !important;
    color: #22d3ee !important;
    transition: all 0.3s ease;
    position: relative;
}

.terminal-search::placeholder {
    color: rgba(34, 211, 238, 0.5) !important;
    font-family: 'JetBrains Mono', monospace !important;
}

.terminal-search:focus {
    border-color: #22d3ee !important;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5), 0 0 20px rgba(34, 211, 238, 0.3), 0 0 30px rgba(34, 211, 238, 0.1), inset 0 0 20px rgba(34, 211, 238, 0.05) !important;
}

.terminal-search-wrapper {
    position: relative;
}

.terminal-search-wrapper::before {
    content: '>';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #22d3ee;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    font-size: 16px;
    z-index: 10;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0;
    }
}

.terminal-search-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: 2px solid rgba(255, 100, 100, 0.5) !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4), 0 0 30px rgba(239, 68, 68, 0.2);
    transition: all 0.3s ease;
}

.terminal-search-btn:hover {
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.7), 0 0 50px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
    border-color: rgba(255, 150, 150, 0.8) !important;
}

/* Tech Lines Background */

.tech-bg {
    position: relative;
    overflow: hidden;
}

.tech-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px), linear-gradient(rgba(34, 211, 238, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, 0.02) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    pointer-events: none;
    z-index: 0;
}

.tech-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 20%, rgba(239, 68, 68, 0.05) 0%, transparent 50%), radial-gradient(ellipse at 80% 80%, rgba(34, 211, 238, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.tech-bg>* {
    position: relative;
    z-index: 1;
}

/* ===== ENHANCED CYBERPUNK BORDERS ===== */

/* Cyberpunk Scammer Card with Glowing Border */

.scam-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%) !important;
    border: 2px solid rgba(71, 85, 105, 0.6) !important;
    transition: all 0.3s ease;
    position: relative;
}

.scam-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.3), transparent, rgba(239, 68, 68, 0.3));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scam-card:hover {
    border-color: rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2), 0 0 40px rgba(239, 68, 68, 0.1), inset 0 0 30px rgba(239, 68, 68, 0.02);
    transform: translateY(-2px);
}

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

.scam-card.danger-level-high {
    border-left: 4px solid #ef4444 !important;
    box-shadow: -5px 0 15px rgba(239, 68, 68, 0.2), inset 0 0 20px rgba(239, 68, 68, 0.03);
}

/* Scammer Info - Mobile Optimized Grid with Borders */

.scam-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}

.scam-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(34, 211, 238, 0.3);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    transition: all 0.2s ease;
}

.scam-info-item:hover {
    border-color: rgba(34, 211, 238, 0.6);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.15);
}

.scam-info-item svg {
    flex-shrink: 0;
    opacity: 0.8;
}

@media (max-width: 640px) {
    .scam-info-grid {
        grid-template-columns: 1fr;
    }
    .scam-info-item {
        font-size: 12px;
        padding: 10px 14px;
    }
}

/* Statistics Cards - Cyberpunk Style with Glowing Borders */

.stat-card-cyber {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%) !important;
    border: 2px solid rgba(71, 85, 105, 0.5) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--stat-color, #22d3ee), transparent);
}

.stat-card-cyber::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--stat-color, #22d3ee), transparent);
    opacity: 0.5;
}

.stat-card-cyber:hover {
    border-color: var(--stat-color, #22d3ee) !important;
    box-shadow: 0 0 15px rgba(var(--stat-rgb, 34, 211, 238), 0.2), inset 0 0 20px rgba(var(--stat-rgb, 34, 211, 238), 0.03);
}

.stat-card-cyber.stat-danger {
    --stat-color: #ef4444;
    --stat-rgb: 239, 68, 68;
}

.stat-card-cyber.stat-warning {
    --stat-color: #f59e0b;
    --stat-rgb: 245, 158, 11;
}

.stat-card-cyber.stat-success {
    --stat-color: #22c55e;
    --stat-rgb: 34, 197, 94;
}

.stat-card-cyber.stat-info {
    --stat-color: #22d3ee;
    --stat-rgb: 34, 211, 238;
}

/* Cyberpunk Search Container Border */

.cyber-search-container {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
    border: 2px solid rgba(34, 211, 238, 0.4);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.1), inset 0 0 30px rgba(34, 211, 238, 0.02);
    position: relative;
}

.cyber-search-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #22d3ee, transparent);
}

/* Sticky Header with Blur Effect */

header.header-scrolled {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.85) 0%, rgba(8, 145, 178, 0.85) 100%) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(34, 211, 238, 0.3);
}

/* Bright Logo Effect */

.logo-bright {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(34, 211, 238, 0.6), 0 0 30px rgba(34, 211, 238, 0.4);
    filter: brightness(1.1);
}

.logo-bright:hover {
    text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 30px rgba(34, 211, 238, 0.8), 0 0 45px rgba(34, 211, 238, 0.6);
}

/* Tech Corner Decorations */

.tech-corner {
    position: relative;
}

.tech-corner::before,
.tech-corner::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(34, 211, 238, 0.5);
}

.tech-corner::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.tech-corner::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

/* CSS Variables - Professional Color Palette */

:root {
    /* Primary - Deep Blue (Trust & Business) */
    --primary-900: #0c1628;
    --primary-800: #1e3a5f;
    --primary-700: #1d4ed8;
    --primary-600: #2563eb;
    --primary-500: #3b82f6;
    --primary-400: #60a5fa;
    /* Accent - Gold (Premium & Trust) */
    --gold-600: #b8860b;
    --gold-500: #d4af37;
    --gold-400: #f0c850;
    --gold-300: #fcd34d;
    /* Success - Green */
    --success-600: #16a34a;
    --success-500: #22c55e;
    --success-400: #4ade80;
    /* Neutral - Slate */
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--slate-950) 0%, var(--primary-900) 50%, var(--slate-900) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--slate-100);
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.08), transparent), radial-gradient(ellipse 60% 40% at 80% 80%, rgba(212, 175, 55, 0.04), transparent);
    z-index: 0;
    pointer-events: none;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
}

#app {
    position: relative;
    z-index: 1;
    padding-top: 42px;
    /* Compensate for fixed top menu bar */
}

header {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-500), var(--primary-600), var(--gold-500), transparent);
    opacity: 0.8;
}

.top-menu-bar {
    background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-900) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

/* Dropdown Menu Styles */

.top-menu-dropdown {
    position: relative;
}

.top-menu-dropdown>.top-menu-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-menu-dropdown>.top-menu-item::after {
    content: '';
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.2s ease;
}

.top-menu-dropdown:hover>.top-menu-item::after {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-900) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 101;
}

.top-menu-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a,
.dropdown-content div {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-content a:last-child,
.dropdown-content div:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.dropdown-content a:hover,
.dropdown-content div:hover {
    background: rgba(212, 175, 55, 0.15);
    color: #fbbf24;
}

.top-menu-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow: visible;
    /* Fix dropdown hidden issue */
}

.top-menu-items {
    display: flex;
    gap: 0;
    white-space: nowrap;
}

.top-menu-item {
    padding: 12px 24px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-menu-item:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.top-menu-item:last-child {
    border-right: none;
}

.top-menu-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.top-menu-item.active {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    box-shadow: inset 0 -3px 0 #ffffff;
}

.top-menu-bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--gold-500);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.5);
}

.account-menu-container {
    position: relative;
}

.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.3);
    border: 1px solid rgba(6, 182, 212, 0.3);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.account-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #e0e7ff;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.account-dropdown-item:first-child {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.account-dropdown-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.account-dropdown-item:hover {
    background: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
}

.account-dropdown-item svg {
    width: 1.25rem;
    height: 1.25rem;
}

.banner-gaming {
    background: linear-gradient(135deg, rgba(12, 22, 40, 0.9) 0%, rgba(30, 58, 95, 0.8) 50%, rgba(15, 23, 42, 0.9) 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    min-height: 500px;
}

.banner-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.banner-slide.active {
    opacity: 1;
}

/* Banner images are now loaded dynamically from API, not hardcoded here */

/* Removed hardcoded background-image CSS to allow dynamic loading */

.banner-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 51, 68, 0.05) 0%, rgba(22, 78, 99, 0.05) 50%, rgba(8, 51, 68, 0.05) 100%);
    z-index: 1;
    pointer-events: none;
}

.transaction-section {
    padding: 2rem 1rem;
    background: rgba(15, 23, 42, 0.7);
}

.transaction-panel {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.transaction-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0.5rem;
    color: var(--slate-100);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.transaction-input:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.lucky-wheel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#luckyWheel {
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3), 0 0 40px rgba(37, 99, 235, 0.15), inset 0 0 15px rgba(0, 0, 0, 0.3);
    cursor: grab;
    transition: transform 0.05s ease-out;
    touch-action: none;
}

#luckyWheel:active {
    cursor: grabbing;
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    /* Professional pointer design */
    width: 0;
    height: 0;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-top: 45px solid var(--gold-500);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.wheel-pointer::before {
    content: '';
    position: absolute;
    top: -45px;
    left: -18px;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 38px solid var(--gold-300);
}

/* Removed flashy pointerGlow animation for professional look */

/* Lucky Wheel - Maintenance message */

.wheel-maintenance {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    width: 450px;
}

/* Lucky Wheel - Popup Animation */

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.animate-bounce-in {
    animation: bounce-in 0.5s ease-out;
}

/* Spin Result Popup Overlay */

#spin-result-popup {
    animation: fadeIn 0.3s ease-out;
}

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

.account-card {
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 0.75rem;
}

.account-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 0;
    pointer-events: none;
}

.account-card>* {
    position: relative;
    z-index: 1;
}

.account-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.25);
}

.game-category {
    transition: all var(--transition-base);
    cursor: pointer;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0.75rem;
}

.game-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border-color: rgba(212, 175, 55, 0.2);
}

.hot-badge {
    animation: subtleBadge 3s ease-in-out infinite;
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
    font-weight: 600;
    letter-spacing: 0.3px;
}

@keyframes subtleBadge {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
}

/* Additional styles for consistency */

button {
    transition: all 0.3s;
    font-weight: 700;
    letter-spacing: 0.5px;
}

button:hover {
    transform: translateY(-2px);
}

#search-input {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--slate-100);
}

#search-input:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

#search-input::placeholder {
    color: var(--slate-500);
}

footer {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%) !important;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

/* Use professional Inter font for headings instead of gaming Orbitron */

h1,
h2,
h3,
h4 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.85) 100%) !important;
}

/* Responsive Design */

@media (max-width: 1024px) {
    .top-menu-item {
        padding: 10px 16px;
        font-size: 13px;
    }
    #luckyWheel {
        width: 350px;
        height: 350px;
    }
    .banner-gaming h2 {
        font-size: 2.5rem;
    }
    .banner-gaming p {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .top-menu-bar {
        position: relative;
    }
    .top-menu-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .top-menu-items {
        min-width: max-content;
    }
    .top-menu-item {
        padding: 10px 16px;
        font-size: 12px;
    }
    header {
        position: sticky !important;
        top: 0 !important;
    }
    .banner-gaming {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .banner-gaming h2 {
        font-size: 2rem !important;
    }
    .banner-gaming p {
        font-size: 1.25rem !important;
    }
    #luckyWheel {
        width: 300px;
        height: 300px;
    }
    .transaction-panel {
        padding: 1.5rem;
    }
    .transaction-input {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    .game-category {
        padding: 1rem !important;
    }
    .game-category img {
        width: 60px !important;
        height: 60px !important;
    }
    .account-card {
        margin-bottom: 1rem;
    }
    .account-dropdown {
        right: 0;
        left: auto;
        min-width: 180px;
    }
}

@media (max-width: 640px) {
    .top-menu-item {
        padding: 8px 12px;
        font-size: 11px;
    }
    .banner-gaming h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }
    .banner-gaming p {
        font-size: 1rem !important;
    }
    #luckyWheel {
        width: 250px;
        height: 250px;
    }
    .transaction-panel {
        padding: 1rem;
    }
    .wheel-pointer {
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-top: 30px solid #ef4444;
    }
    h2,
    h3 {
        font-size: 1.5rem !important;
    }
    h4 {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 480px) {
    .top-menu-item {
        padding: 8px 10px;
        font-size: 10px;
    }
    .banner-gaming {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .banner-gaming h2 {
        font-size: 1.5rem !important;
    }
    .banner-gaming p {
        font-size: 0.875rem !important;
    }
    #luckyWheel {
        width: 220px;
        height: 220px;
    }
    .transaction-input {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    button {
        font-size: 0.875rem;
        padding: 0.5rem 1rem !important;
    }
    .game-category {
        padding: 0.75rem !important;
    }
    .game-category img {
        width: 50px !important;
        height: 50px !important;
    }
}

/* Account Detail Page Styles */

.account-detail-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(139, 92, 246, 0.05);
}

/* Thumbnail Gaming Style */

.thumbnail {
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.6));
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #8b5cf6;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6), inset 0 0 15px rgba(139, 92, 246, 0.2);
    transform: scale(1.05);
}

/* Rank Badge - Gaming Style */

.rank-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    color: #000;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Verified Badge - Neon Green */

.verified-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Stat Item - Gaming HUD Style */

.stat-item {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.1));
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: inset 0 2px 10px rgba(139, 92, 246, 0.1), 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.stat-item:hover {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: inset 0 2px 10px rgba(139, 92, 246, 0.2), 0 4px 20px rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

/* Price Tag - Gaming Style */

.price-tag {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed, #6366f1);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 28px;
    font-weight: 900;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
}

/* Info Row - Dark Theme */

.info-row {
    display: flex;
    padding: 14px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 150px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.info-value {
    flex: 1;
    color: #e0e7ff;
    font-weight: 700;
    font-size: 14px;
}

/* Yellow Warning Box */

.bg-yellow-50 {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1)) !important;
    border: 1px solid rgba(251, 191, 36, 0.3) !important;
}

.text-yellow-800 {
    color: #fbbf24 !important;
}

/* Chat Modal - Gaming Style */

.chat-modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 40px);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.3), inset 0 0 30px rgba(139, 92, 246, 0.05);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-modal.active {
    transform: translateY(0);
    opacity: 1;
}

.chat-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
    padding: 16px 20px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.chat-header-text h3 {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.chat-header-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.chat-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(30, 41, 59, 0.3) 100%);
}

.chat-message {
    display: flex;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}

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

.chat-message.sent {
    flex-direction: row-reverse;
}

.chat-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.chat-message.sent .chat-message-avatar {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.chat-message.received .chat-message-avatar {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.chat-message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 12px;
    position: relative;
    word-wrap: break-word;
}

.chat-message.sent .chat-message-content {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(139, 92, 246, 0.8));
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.chat-message.received .chat-message-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    color: #e0e7ff;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.chat-message-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    text-align: right;
}

.chat-message.received .chat-message-time {
    text-align: left;
}

.chat-input-area {
    padding: 16px 20px;
    border-top: 2px solid rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    color: #e0e7ff;
    font-size: 14px;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    transition: all 0.3s;
}

.chat-input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.chat-input::placeholder {
    color: #64748b;
}

.chat-send-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.chat-send-btn:active {
    transform: translateY(0);
}

.chat-quick-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.chat-quick-btn {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-quick-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}

/* Purchase Popup Modal */

.purchase-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.purchase-popup.active {
    opacity: 1;
    visibility: visible;
}

.purchase-popup-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.purchase-popup.active .purchase-popup-content {
    transform: scale(1);
}

.purchase-popup-header {
    text-align: center;
    margin-bottom: 30px;
}

.purchase-popup-title {
    font-size: 28px;
    font-weight: 900;
    color: white;
    margin: 0 0 12px 0;
    text-shadow: 0 2px 10px rgba(139, 92, 246, 0.5);
}

.purchase-popup-subtitle {
    font-size: 16px;
    color: #94a3b8;
    margin: 0;
}

.purchase-popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.purchase-option-btn {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.2));
    border: 2px solid rgba(139, 92, 246, 0.4);
    color: white;
    padding: 20px 24px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.purchase-option-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(99, 102, 241, 0.3));
    border-color: rgba(139, 92, 246, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

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

.purchase-option-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #a78bfa;
}

.purchase-option-desc {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 400;
}

.purchase-close-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.purchase-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ================== SHOP DETAIL STYLES ================== */

/* Shop Avatar Large */

.shop-avatar-large {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.2));
    border: 3px solid rgba(139, 92, 246, 0.4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

/* Shop Detail Card */

.shop-detail-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.shop-detail-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 4px 40px rgba(139, 92, 246, 0.2);
}

/* Stat Box for Shop Stats */

.stat-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.stat-number {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 4px;
    font-family: 'Orbitron', sans-serif;
}

.stat-label {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hot Badge */

.hot-badge {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Chat Modal Styles */

.chat-modal {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-height: 600px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95));
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    flex-direction: column;
    backdrop-filter: blur(20px);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.1));
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.chat-header-text h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #e0e7ff;
}

.chat-header-text p {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.chat-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    max-height: 400px;
}

.chat-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.chat-message.sent {
    flex-direction: row-reverse;
}

.chat-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.chat-message-content {
    flex: 1;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 12px;
    max-width: 70%;
}

.chat-message.sent .chat-message-content {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.chat-message-content>div:first-child {
    color: #e0e7ff;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 4px;
}

.chat-message-time {
    font-size: 11px;
    color: #94a3b8;
}

.chat-input-area {
    padding: 16px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.chat-quick-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.chat-quick-btn {
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: #c4b5fd;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-quick-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
}

.chat-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    color: #e0e7ff;
    font-size: 14px;
    resize: none;
    min-height: 40px;
    max-height: 120px;
    font-family: inherit;
}

.chat-input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.chat-send-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    transform: scale(1.05);
}

/* Responsive for Shop Detail */

@media (max-width: 768px) {
    .shop-detail-card {
        padding: 16px !important;
    }
    .shop-avatar-large {
        width: 80px;
        height: 80px;
    }
    .shop-avatar-large span {
        font-size: 40px !important;
    }
    .stat-box {
        padding: 12px;
    }
    .stat-number {
        font-size: 18px;
    }
    .stat-label {
        font-size: 11px;
    }
}

/* Mobile Header Styles */

.mobile-only {
    display: none;
}

.mobile-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border-bottom: 2px solid rgba(6, 182, 212, 0.5);
    box-shadow: 0 4px 30px rgba(6, 182, 212, 0.3);
    padding: 12px 16px;
}

.mobile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.mobile-menu-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 8px;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-menu-btn span {
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
    display: block;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for iOS Safari */
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
    backdrop-filter: blur(20px);
    z-index: 9999;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    /* Space for bottom nav */
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    padding: 20px 0;
    padding-top: 60px;
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 20px));
    /* Extra space for bottom nav + safe area */
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    color: #e0e7ff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
    transition: all 0.2s;
    cursor: pointer;
}

.mobile-menu-item:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(8, 145, 178, 0.15) 100%);
    color: #22d3ee;
    padding-left: 24px;
}

.mobile-menu-section {
    padding: 8px 0;
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(6, 182, 212, 0.3);
    margin: 12px 0;
}

.mobile-badge {
    margin-left: auto;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-logout:hover {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15) 0%, rgba(239, 68, 68, 0.15) 100%) !important;
    color: #f87171 !important;
}

/* Hide desktop header on mobile */

@media (max-width: 768px) {
    .header-desktop,
    .top-menu-desktop {
        display: none !important;
    }
    .mobile-only {
        display: block;
    }
    /* Adjust main content padding when mobile menu is open */
    body.mobile-menu-open {
        overflow: hidden;
    }
    /* Adjust header top position for mobile */
    header.header-desktop {
        top: 0 !important;
    }
}

/* ==========================================================================
   LIGHT THEME OVERRIDES
   When body has class "light-theme", apply light colors
   ========================================================================== */

body.light-theme {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%) !important;
    color: #1e293b !important;
}

body.light-theme::before {
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(6, 182, 212, 0.08), transparent), radial-gradient(ellipse 60% 40% at 80% 80%, rgba(6, 182, 212, 0.04), transparent);
}

/* Sections */

body.light-theme section {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.95) 0%, rgba(226, 232, 240, 0.95) 100%) !important;
}

/* Game Category Cards */

body.light-theme .game-category {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .game-category:hover {
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.2) !important;
    border-color: rgba(6, 182, 212, 0.4) !important;
}

body.light-theme .game-category .font-semibold {
    color: #0891b2 !important;
}

body.light-theme .game-category .text-gray-400 {
    color: #64748b !important;
}

/* Account Cards */

body.light-theme .account-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .account-card::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
}

body.light-theme .account-card:hover {
    box-shadow: 0 12px 40px rgba(6, 182, 212, 0.2) !important;
    border-color: rgba(6, 182, 212, 0.4) !important;
}

body.light-theme .account-card .text-cyan-300 {
    color: #0891b2 !important;
}

body.light-theme .account-card .text-gray-400 {
    color: #64748b !important;
}

body.light-theme .account-card .text-gray-500 {
    color: #64748b !important;
}

/* Transaction Section */

body.light-theme .transaction-section {
    background: rgba(241, 245, 249, 0.8) !important;
}

body.light-theme .transaction-panel {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 2px solid rgba(6, 182, 212, 0.3) !important;
}

body.light-theme .transaction-panel .text-white {
    color: #1e293b !important;
}

body.light-theme .transaction-panel .text-gray-300 {
    color: #475569 !important;
}

/* Banner Gaming */

body.light-theme .banner-gaming {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(14, 116, 144, 0.2) 50%, rgba(6, 182, 212, 0.15) 100%) !important;
}

/* Text Colors */

body.light-theme .text-cyan-400 {
    color: #0891b2 !important;
}

body.light-theme .text-cyan-300 {
    color: #0891b2 !important;
}

body.light-theme .text-cyan-200 {
    color: #0e7490 !important;
}

body.light-theme .text-gray-300 {
    color: #475569 !important;
}

body.light-theme .text-gray-400 {
    color: #64748b !important;
}

/* Filter section styles */

body.light-theme .bg-gradient-to-r.from-gray-800 {
    background: linear-gradient(to right, #f1f5f9, #e2e8f0) !important;
}

body.light-theme select,
body.light-theme input[type="text"] {
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
}

body.light-theme select option {
    background: #ffffff !important;
    color: #1e293b !important;
}

/* Lucky Wheel Section */

body.light-theme .bg-gradient-to-b.from-slate-900\/50 {
    background: linear-gradient(to bottom, rgba(241, 245, 249, 0.8), transparent) !important;
}

body.light-theme .bg-gradient-to-r.from-purple-900\/30 {
    background: linear-gradient(to right, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1)) !important;
}

body.light-theme .text-gray-300 {
    color: #475569 !important;
}

/* Shop sections */

body.light-theme .shop-card,
body.light-theme .shop-mall-card,
body.light-theme .bg-gradient-to-br.from-gray-800 {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #e2e8f0 !important;
}

/* Scrollbar light theme */

body.light-theme ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

body.light-theme ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

/* Form elements in light theme */

body.light-theme .bg-gray-700\/50,
body.light-theme .bg-gray-800\/50 {
    background: rgba(241, 245, 249, 0.8) !important;
}

/* Borders */

body.light-theme .border-cyan-500\/30,
body.light-theme .border-gray-700 {
    border-color: #e2e8f0 !important;
}

/* Community Chat Light Theme */

body.light-theme #communityChatBox {
    background: #ffffff !important;
}

body.light-theme #communityChatMessages {
    background: #f8fafc !important;
}

body.light-theme .bg-gray-50 {
    background: #f8fafc !important;
}

/* Dropdown and Menus */

body.light-theme .account-dropdown {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .account-dropdown-item {
    color: #1e293b !important;
}

body.light-theme .account-dropdown-item:hover {
    background: rgba(6, 182, 212, 0.1) !important;
    color: #0891b2 !important;
}

/* Stat Items */

body.light-theme .stat-item {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(14, 116, 144, 0.05)) !important;
    border-color: rgba(6, 182, 212, 0.2) !important;
}

/* Account Detail Card */

body.light-theme .account-detail-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border-color: rgba(6, 182, 212, 0.2) !important;
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR - Mobile App Style
   ========================================================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    display: none;
    /* Hidden by default, shown on mobile */
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 767px) {
    .bottom-nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
    }
    /* Add padding to body to prevent content behind bottom nav */
    body {
        padding-bottom: 80px;
    }
    /* Adjust existing floating buttons */
    #mobileSearchBtn {
        bottom: 90px !important;
    }
    #communityChatBoxMinimized {
        bottom: 80px !important;
    }
    .community-chat-container {
        bottom: 70px !important;
    }
    /* Fix z-index: sidebar should be above header on mobile */
    .top-menu-bar {
        z-index: 90 !important;
        /* Lower than sidebar overlay */
    }
    header {
        z-index: 90 !important;
    }
    /* Mobile menu overlay and sidebar should be highest */
    #mobile-menu-overlay {
        z-index: 150 !important;
    }
    #mobile-menu,
    .mobile-menu,
    [id*="mobile-menu"] {
        z-index: 200 !important;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: var(--slate-400);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 12px;
    min-width: 60px;
}

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

.bottom-nav-item.active {
    background: rgba(212, 175, 55, 0.1);
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}

.bottom-nav-item:hover svg {
    transform: scale(1.1);
}

.bottom-nav-item span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Floating Action Button (Center) */

.bottom-nav-fab {
    position: relative;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -28px;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    border: 3px solid rgba(15, 23, 42, 0.9);
    transition: all 0.3s ease;
    cursor: pointer;
}

.bottom-nav-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
}

.bottom-nav-fab svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* Badge notification on nav item */

.bottom-nav-badge {
    position: absolute;
    top: 0;
    right: 8px;
    width: 18px;
    height: 18px;
    background: #ef4444;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(15, 23, 42, 0.9);
}

/* ==========================================================================
   NOTIFICATION POPUP - Slide-up Modal Effect
   ========================================================================== */

.notification-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.notification-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.notification-popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(239, 68, 68, 0.5);
    transform: scale(0.8) translateY(30px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification-popup-overlay.active .notification-popup-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.notification-popup-header {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 16px 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.notification-popup-body {
    padding: 24px 20px;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.7;
    max-height: 50vh;
    overflow-y: auto;
}

.notification-popup-body p {
    margin-bottom: 12px;
}

.notification-popup-body a {
    color: #06b6d4;
    font-weight: 600;
    text-decoration: none;
}

.notification-popup-body a:hover {
    text-decoration: underline;
}

.notification-popup-footer {
    padding: 16px 20px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.notification-popup-btn {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    border: none;
    padding: 12px 48px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.notification-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.4);
}

/* Animation keyframes */

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes popupSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
}

/* Light theme adjustments */

body.light-theme .bottom-nav {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-top: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

body.light-theme .bottom-nav-item {
    color: #64748b;
}

body.light-theme .bottom-nav-item:hover,
body.light-theme .bottom-nav-item.active {
    color: #0891b2;
}

body.light-theme .bottom-nav-item.active {
    background: rgba(6, 182, 212, 0.1);
}

body.light-theme .bottom-nav-fab {
    border-color: rgba(255, 255, 255, 0.9);
}

body.light-theme .bottom-nav-badge {
    border-color: rgba(255, 255, 255, 0.9);
}