/**
 * ==========================================
 *  JUTALOMPONT - HEADER & NAVIGATION STYLES
 *  2025 Modern Premium Edition
 * ==========================================
 * 
 * Ez a fájl a header és navigáció stílusait tartalmazza.
 * Változók a design-system.css-ből jönnek.
 * 
 * STRUKTÚRA:
 * 1. Navbar alapok
 * 2. Brand/Logo
 * 3. Navigációs linkek
 * 4. Dropdown menük
 * 5. User actions (jobb oldal)
 * 6. Mobile/Responsive
 * 7. Animációk
 */

/* ============================================
   NAVBAR BASE - Smart Sticky 2025
   ============================================ */
.navbar {
    background: var(--jp-navbar-bg, rgba(255, 255, 255, 0.85));
    border-bottom: 1px solid var(--jp-border);
    padding: 0.4rem 0;
    min-height: 72px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--jp-z-sticky, 200);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    /* Modern gradient overlay for depth */
    background-image: 
        linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%),
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    /* Will-change for performance */
    will-change: transform, min-height, padding;
}

.navbar > .container,
.navbar > .container-fluid {
    height: 100%;
    display: flex;
    align-items: center;
    max-width: 100%;
    width: 100%;
    transition: padding 0.3s ease;
}

/* Scrolled state - enhanced shadow */
.navbar.scrolled {
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    background: var(--jp-navbar-bg, rgba(255, 255, 255, 0.96));
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border-bottom-color: rgba(99, 102, 241, 0.15);
}

/* Auto-hide on scroll down */
.navbar.navbar-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

/* Show on scroll up */
.navbar.navbar-visible {
    transform: translateY(0);
}

/* Compact mode when scrolled */
.navbar.navbar-compact {
    min-height: 56px;
    padding: 0.2rem 0;
}

.navbar.navbar-compact .logo-icon {
    width: 40px;
    height: 40px;
}

.navbar.navbar-compact .navbar-brand {
    margin-right: 1.5rem;
}

.navbar.navbar-compact .nav-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

.navbar.navbar-compact .user-dropdown {
    min-height: 36px;
}

.navbar.navbar-compact .user-avatar {
    width: 32px !important;
    height: 32px !important;
}

.navbar.navbar-compact .points-badge,
.navbar.navbar-compact .wallet-badge {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

.navbar.navbar-compact .nav-icon-btn {
    width: 34px;
    height: 34px;
}

.navbar.navbar-compact .quick-action-btn {
    width: 32px;
    height: 32px;
}

[data-bs-theme="dark"] .navbar {
    --jp-navbar-bg: rgba(15, 23, 42, 0.85);
    background-image: 
        linear-gradient(to bottom, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.85) 100%),
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

[data-bs-theme="dark"] .navbar.scrolled {
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-bottom-color: rgba(139, 92, 246, 0.2);
}

/* ============================================
   GLASSMORPHISM 2.0 - Premium Effects
   ============================================ */

/* Noise texture overlay */
.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: -1;
}

[data-bs-theme="dark"] .navbar::before {
    opacity: 0.03;
}

/* Animated gradient border bottom */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(99, 102, 241, 0.3) 20%,
        rgba(139, 92, 246, 0.5) 40%,
        rgba(236, 72, 153, 0.5) 60%,
        rgba(139, 92, 246, 0.3) 80%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: navBorderGradient 8s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar.scrolled::after {
    opacity: 1;
}

@keyframes navBorderGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Inner glow effect */
.navbar .container-fluid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

[data-bs-theme="dark"] .navbar .container-fluid::before {
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

/* ============================================
   BRAND / LOGO - PREMIUM 2025 EDITION
   ============================================ */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 2rem;
    flex-shrink: 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover .logo-icon {
    transform: rotate(360deg) scale(1.15);
    filter: drop-shadow(0 10px 24px rgba(var(--jp-primary-rgb), 0.45));
}

/* Logo pulse animáció betöltéskor */
@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.logo-icon {
    animation: logoPulse 3s ease-in-out infinite;
}

.navbar-brand:hover .logo-icon {
    animation: none;
}

/* Sparkle animation */
@keyframes sparkleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.2);
    }
}

.sparkle-group {
    animation: sparkleFloat 3s ease-in-out infinite;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1;
}

.logo-primary {
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.65px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #7dd3fc 0%, #4f46e5 30%, #a855f7 60%, #f472b6 85%, #22d3ee 100%);
    background-size: 260% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.45),
        0 8px 24px rgba(79, 70, 229, 0.35),
        0 0 22px rgba(34, 211, 238, 0.25);
    animation: gradientShift 2.8s ease-in-out infinite;
    position: relative;
    filter: drop-shadow(0 10px 28px rgba(99, 102, 241, 0.22));
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.navbar-brand:hover .logo-primary {
    animation: gradientShift 1s ease infinite;
}

.logo-tagline {
    font-size: 0.7rem;
    font-weight: 800;
    color: #0b1120;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(34, 211, 238, 0.18), rgba(99, 102, 241, 0.14), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(var(--jp-primary-rgb), 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow:
        0 6px 18px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.35);
}

.logo-tagline::before {
    content: "⚡";
    color: #0ea5e9;
    font-size: 0.8rem;
}

.logo-tagline::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, #f472b6 0%, rgba(244, 114, 182, 0.1) 60%, transparent 100%);
    box-shadow: 0 0 12px rgba(244, 114, 182, 0.8);
}

[data-bs-theme="dark"] .logo-primary {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #e879f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile logo optimization */
@media (max-width: 575.98px) {
    .logo-text {
        display: none;
    }
    
    .logo-icon {
        width: 42px;
        height: 42px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .logo-primary {
        font-size: 1.2rem;
    }
    
    .logo-tagline {
        font-size: 0.6rem;
    }
}

/* Tablet optimization */
@media (min-width: 768px) and (max-width: 991.98px) {
    .logo-container {
        gap: 10px;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
    }
}

/* Desktop extra large */
@media (min-width: 1400px) {
    .logo-icon {
        width: 52px;
        height: 52px;
    }
    
    .logo-primary {
        font-size: 1.5rem;
    }
    
    .logo-tagline {
        font-size: 0.7rem;
    }
}

/* ============================================
   TOGGLER (Mobile) - Animated Hamburger 2025
   ============================================ */
.navbar-toggler {
    border: 1px solid var(--jp-border);
    padding: 0.6rem;
    border-radius: 10px;
    color: var(--jp-text);
    background: var(--jp-bg-secondary);
    width: 44px;
    height: 44px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(var(--jp-primary-rgb), 0.1);
    border-color: var(--jp-primary);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    outline: none;
}

/* Animated Hamburger Lines */
.navbar-toggler-icon {
    background-image: none !important;
    width: 22px;
    height: 18px;
    position: relative;
    display: block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--jp-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-toggler-icon::before {
    top: 0;
}

.navbar-toggler-icon span {
    top: 50%;
    transform: translateY(-50%);
}

.navbar-toggler-icon::after {
    bottom: 0;
}

/* Open state - X transform */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Hover animation on lines */
.navbar-toggler:hover .navbar-toggler-icon::before {
    transform: translateY(-2px);
}

.navbar-toggler:hover .navbar-toggler-icon::after {
    transform: translateY(2px);
}

.navbar-toggler[aria-expanded="true"]:hover .navbar-toggler-icon::before {
    transform: translateY(-50%) rotate(45deg) scale(1.1);
}

.navbar-toggler[aria-expanded="true"]:hover .navbar-toggler-icon::after {
    transform: translateY(50%) rotate(-45deg) scale(1.1);
}

/* ============================================
   MAIN NAVIGATION
   ============================================ */
.navbar-nav.nav-main {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link {
    color: var(--jp-text) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.6rem 1rem !important;
    border-radius: var(--jp-radius-md, 10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    position: relative;
    min-height: 48px;
}

.nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--jp-radius-md, 10px);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.1));
    color: var(--jp-primary) !important;
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 4px;
    width: 0;
    height: 2.5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--jp-primary), var(--jp-accent));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2rem);
    opacity: 1;
}

[data-bs-theme="dark"] .nav-link:hover,
[data-bs-theme="dark"] .nav-link.active {
    box-shadow: 
        0 4px 12px rgba(99, 102, 241, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link i {
    font-size: 0.85rem;
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
}

/* ============================================
   DROPDOWN MENUS
   ============================================ */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--jp-border);
    border-radius: var(--jp-radius-xl, 16px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 0.75rem;
    /* IMPORTANT: remove the gap between toggle and menu (causes instant close on mouse move) */
    margin-top: 0 !important;
    min-width: 220px;
    opacity: 0;
    transform: scale(0.96) translateY(-8px);
    transform-origin: top center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block !important;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background-image: 
        linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.96)),
        radial-gradient(circle at top, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
}

/* Invisible bridge (small safety net; no longer relied on after removing margin gap) */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    height: 10px;
    background: transparent;
    z-index: 1;
}

/* Kiegészítő biztonsági híd oldalt */
.dropdown-menu::after {
    display: none;
}

.dropdown-menu.show,
.nav-item.dropdown:hover > .dropdown-menu,
.dropdown:hover > .dropdown-menu {
    opacity: 1;
    transform: scale(1) translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.18),
        0 10px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav-item.dropdown,
.dropdown {
    position: relative;
}

@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-toggle,
    .dropdown:hover > .dropdown-toggle {
        color: var(--jp-primary) !important;
    }
}

/* Dropdown Items */
.dropdown-item {
    color: var(--jp-text);
    padding: 0.7rem 1rem;
    border-radius: var(--jp-radius-md, 10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    min-height: 44px;
    position: relative;
}

.dropdown-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 0;
    border-radius: 0 2px 2px 0;
    background: linear-gradient(180deg, var(--jp-primary), var(--jp-accent));
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.1));
    color: var(--jp-primary);
    padding-left: 1.25rem;
    transform: translateX(2px);
}

.dropdown-item:hover::before {
    height: 60%;
    transform: translateY(-50%) scaleY(1);
}

.dropdown-item i {
    width: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--jp-text-muted);
}

.dropdown-item:hover i {
    color: var(--jp-primary);
}

[data-bs-theme="dark"] .dropdown-menu {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(255, 255, 255, 0.08);
    background-image: 
        linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96)),
        radial-gradient(circle at top, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .dropdown-menu.show,
[data-bs-theme="dark"] .nav-item.dropdown:hover > .dropdown-menu,
[data-bs-theme="dark"] .dropdown:hover > .dropdown-menu {
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.5),
        0 10px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.glass-dropdown {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(var(--jp-primary-rgb), 0.12);
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.16),
        0 10px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background-image: 
        linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95)),
        radial-gradient(circle at top, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
}

[data-bs-theme="dark"] .glass-dropdown {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.5),
        0 10px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    background-image: 
        linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95)),
        radial-gradient(circle at top, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
}

.glass-surface {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.06));
    border: 1px solid rgba(var(--jp-primary-rgb), 0.12);
    box-shadow: var(--jp-shadow-lg);
}

[data-bs-theme="dark"] .glass-surface {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(15, 23, 42, 0.65));
    border-color: rgba(255, 255, 255, 0.06);
}

.animate-dropdown.show {
    animation: fadeSlideIn 0.18s ease forwards;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-header {
    color: var(--jp-text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 1rem 0.25rem;
}

.dropdown-divider {
    border-color: var(--jp-border);
    margin: 0.35rem 0;
}

/* ============================================
   MEGA MENU - Premium 2025 Redesign
   ============================================ */
.dropdown-mega {
    position: static !important;
}

.mega-menu {
    width: 100%;
    max-width: 1200px;
    left: 50% !important;
    transform: translateX(-50%) translateY(8px) !important;
    margin-top: 0;
    border-radius: 20px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.12),
        0 10px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(var(--jp-primary-rgb), 0.1);
    background: var(--jp-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.dropdown-mega:hover .mega-menu,
.dropdown-mega .mega-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) !important;
}

[data-bs-theme="dark"] .mega-menu {
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    background: rgba(15, 23, 42, 0.95);
}

/* Category Headers */
.mega-menu .dropdown-header {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(var(--jp-primary-rgb), 0.08) 0%, rgba(var(--jp-primary-rgb), 0.03) 100%);
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.mega-menu .dropdown-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--jp-gradient);
    border-radius: 0 3px 3px 0;
}

.mega-menu .dropdown-header i {
    font-size: 1rem;
    background: var(--jp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Game Items - Card Style */
.mega-menu .list-unstyled {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mega-menu .dropdown-item {
    padding: 0.7rem 1rem;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

/* Item hover effect */
.mega-menu .dropdown-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--jp-primary-rgb), 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mega-menu .dropdown-item:hover {
    background: var(--jp-bg-secondary);
    transform: translateX(6px) scale(1.02);
    border-color: rgba(var(--jp-primary-rgb), 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.mega-menu .dropdown-item:hover::before {
    opacity: 1;
}

/* Icon styling */
.mega-menu .dropdown-item i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border-radius: 8px;
    background: rgba(var(--jp-primary-rgb), 0.08);
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.mega-menu .dropdown-item:hover i {
    background: var(--jp-gradient);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 4px 12px rgba(var(--jp-primary-rgb), 0.3);
}

/* Badge for "New" or "Popular" items */
.mega-menu .dropdown-item .menu-badge,
.dropdown-menu .dropdown-item .menu-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    margin-left: auto;
    letter-spacing: 0.3px;
}

.mega-menu .dropdown-item .menu-badge--new,
.dropdown-menu .dropdown-item .menu-badge--new {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    animation: badgePulse 2s ease-in-out infinite;
}

.mega-menu .dropdown-item .menu-badge--popular,
.dropdown-menu .dropdown-item .menu-badge--popular {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.mega-menu .dropdown-item .menu-badge--hot,
.dropdown-menu .dropdown-item .menu-badge--hot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.mega-menu .dropdown-item .menu-badge--available,
.dropdown-menu .dropdown-item .menu-badge--available {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    animation: badgePulse 2s ease-in-out infinite;
}

.mega-menu .dropdown-item .menu-badge--count,
.dropdown-menu .dropdown-item .menu-badge--count {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    text-transform: none;
    animation: none;
}

.mega-menu .dropdown-item .menu-badge--pvp,
.dropdown-menu .dropdown-item .menu-badge--pvp {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    animation: badgePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Staggered animation for items */
.mega-menu .dropdown-item {
    animation: menuItemFadeIn 0.3s ease-out backwards;
}

.mega-menu .list-unstyled li:nth-child(1) .dropdown-item { animation-delay: 0.05s; }
.mega-menu .list-unstyled li:nth-child(2) .dropdown-item { animation-delay: 0.1s; }
.mega-menu .list-unstyled li:nth-child(3) .dropdown-item { animation-delay: 0.15s; }
.mega-menu .list-unstyled li:nth-child(4) .dropdown-item { animation-delay: 0.2s; }
.mega-menu .list-unstyled li:nth-child(5) .dropdown-item { animation-delay: 0.25s; }
.mega-menu .list-unstyled li:nth-child(6) .dropdown-item { animation-delay: 0.3s; }

@keyframes menuItemFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (min-width: 1200px) {
    .mega-menu {
        padding: 1.75rem 2rem !important;
    }
    
    .mega-menu .col-lg-3 {
        padding: 0 1.25rem;
        border-right: 1px solid var(--jp-border);
        position: relative;
    }
    
    .mega-menu .col-lg-3:last-child {
        border-right: none;
    }
    
    /* Hover effect on column */
    .mega-menu .col-lg-3::before {
        content: '';
        position: absolute;
        inset: -0.5rem;
        background: rgba(var(--jp-primary-rgb), 0.03);
        border-radius: 12px;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .mega-menu .col-lg-3:hover::before {
        opacity: 1;
    }
}

/* ============================================
   USER ACTIONS (Right Side)
   ============================================ */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    padding-left: 1rem;
}

/* ============================================
   BALANCE BADGES - Interactive Premium 2025
   ============================================ */

/* Points Badge */
.points-badge {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    background-size: 200% 200%;
    color: #fff;
    padding: 0.5rem 1.1rem;
    border-radius: var(--jp-radius-full, 50px);
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 
        0 4px 15px rgba(99, 102, 241, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    height: 40px;
    white-space: nowrap;
    position: relative;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

/* Animated gradient background */
.points-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    background-size: 200% 200%;
    animation: balanceGradientShift 4s ease infinite;
    z-index: -1;
}

@keyframes balanceGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Hover glow effect */
.points-badge:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.45),
        0 0 30px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Animated coin icon */
.points-badge i {
    font-size: 1rem;
    animation: coinSpin 8s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes coinSpin {
    0%, 100% { transform: rotateY(0deg); }
    25% { transform: rotateY(15deg); }
    75% { transform: rotateY(-15deg); }
}

.points-badge:hover i {
    animation: coinSpinFast 0.6s ease-in-out;
}

@keyframes coinSpinFast {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Points value with smooth transition */
.points-badge span {
    position: relative;
    z-index: 1;
}

/* Wallet Badge */
.wallet-badge {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
    color: #059669;
    padding: 0.5rem 1.1rem;
    border-radius: var(--jp-radius-full, 50px);
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid rgba(16, 185, 129, 0.25);
    height: 40px;
    white-space: nowrap;
    position: relative;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

/* Wallet hover effect */
.wallet-badge:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.12) 100%);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 
        0 8px 25px rgba(16, 185, 129, 0.2),
        0 0 20px rgba(16, 185, 129, 0.15);
}

[data-bs-theme="dark"] .wallet-badge {
    color: #34d399;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0.1) 100%);
}

[data-bs-theme="dark"] .wallet-badge:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.15) 100%);
}

/* Wallet icon animation */
.wallet-badge i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.wallet-badge:hover i {
    transform: scale(1.15) rotate(-10deg);
}

/* Wallet badge acts as currency dropdown trigger */
button.wallet-badge {
    border: 1px solid rgba(16, 185, 129, 0.25);
    cursor: pointer;
}

button.wallet-badge:hover {
    cursor: pointer;
}

.wallet-badge.dropdown-toggle::after {
    display: none !important;
}

/* Tooltip for balance details */
.points-badge[data-tooltip],
.wallet-badge[data-tooltip] {
    position: relative;
}

.points-badge[data-tooltip]::after,
.wallet-badge[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    padding: 0.6rem 1rem;
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.points-badge[data-tooltip]:hover::after,
.wallet-badge[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   NAV ICON BUTTONS - Premium 2025
   ============================================ */
.nav-icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: var(--jp-radius-full, 50%);
    background: linear-gradient(135deg, var(--jp-bg-secondary) 0%, var(--jp-bg) 100%);
    border: 1px solid var(--jp-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--jp-text-muted);
    text-decoration: none;
    overflow: visible;
}

/* Ripple effect on hover */
.nav-icon-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(var(--jp-primary-rgb), 0.15) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease;
    border-radius: 50%;
}

.nav-icon-btn:hover::before {
    opacity: 1;
    transform: scale(1.5);
}

.nav-icon-btn:hover {
    border-color: var(--jp-primary);
    color: var(--jp-primary);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 
        0 8px 20px rgba(99, 102, 241, 0.2),
        0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.nav-icon-btn i {
    font-size: 1.05rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.nav-icon-btn:hover i {
    transform: scale(1.1);
}

/* Modern Tinted Buttons */
.nav-icon-btn.btn-friend {
    color: #10b981;
    background: linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(16,185,129,0.05) 100%);
    border-color: rgba(16,185,129,0.2);
}
.nav-icon-btn.btn-friend:hover {
    background: rgba(16,185,129,0.15);
    box-shadow: 0 8px 20px rgba(16,185,129,0.25);
    border-color: rgba(16,185,129,0.4);
}

.nav-icon-btn.btn-message {
    color: #3b82f6;
    background: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(59,130,246,0.05) 100%);
    border-color: rgba(59,130,246,0.2);
}
.nav-icon-btn.btn-message:hover {
    background: rgba(59,130,246,0.15);
    box-shadow: 0 8px 20px rgba(59,130,246,0.25);
    border-color: rgba(59,130,246,0.4);
}

.nav-icon-btn.btn-notification {
    color: #f59e0b;
    background: linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(245,158,11,0.05) 100%);
    border-color: rgba(245,158,11,0.2);
}
.nav-icon-btn.btn-notification:hover {
    background: rgba(245,158,11,0.15);
    box-shadow: 0 8px 20px rgba(245,158,11,0.25);
    border-color: rgba(245,158,11,0.4);
}

.nav-icon-btn.btn-competition {
    color: #8b5cf6;
    background: linear-gradient(135deg, rgba(139,92,246,0.1) 0%, rgba(139,92,246,0.05) 100%);
    border-color: rgba(139,92,246,0.2);
}
.nav-icon-btn.btn-competition:hover {
    background: rgba(139,92,246,0.15);
    box-shadow: 0 8px 20px rgba(139,92,246,0.25);
    border-color: rgba(139,92,246,0.4);
}

[data-bs-theme="dark"] .nav-icon-btn.btn-friend { background: rgba(16,185,129,0.15); }
[data-bs-theme="dark"] .nav-icon-btn.btn-message { background: rgba(59,130,246,0.15); }
[data-bs-theme="dark"] .nav-icon-btn.btn-notification { background: rgba(245,158,11,0.15); }
[data-bs-theme="dark"] .nav-icon-btn.btn-competition { background: rgba(139,92,246,0.15); }

/* Notification Bell - Animated */
.notification-trigger-btn i {
    transform-origin: top center;
}

.notification-trigger-btn:hover i {
    animation: bellRing 0.5s ease-in-out;
}

.notification-trigger-btn.has-notifications i {
    animation: bellRing 1s ease-in-out infinite;
    animation-delay: 5s;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(12deg); }
    40% { transform: rotate(-12deg); }
    50% { transform: rotate(8deg); }
    60% { transform: rotate(-8deg); }
    70% { transform: rotate(4deg); }
    80% { transform: rotate(-4deg); }
    90% { transform: rotate(2deg); }
}

/* Notification Badge - Premium Animated */
.nav-icon-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 10;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: var(--jp-radius-full, 50px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 3px 8px rgba(239, 68, 68, 0.5),
        0 0 0 2px var(--jp-bg);
    animation: badgePulseNotif 2s ease-in-out infinite;
    border: 2px solid var(--jp-bg);
}

@keyframes badgePulseNotif {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 3px 8px rgba(239, 68, 68, 0.5), 0 0 0 2px var(--jp-bg);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 5px 15px rgba(239, 68, 68, 0.6), 0 0 0 2px var(--jp-bg), 0 0 15px rgba(239, 68, 68, 0.4);
    }
}

/* Badge appear animation */
.nav-icon-badge.new-notification {
    animation: badgeAppear 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes badgeAppear {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); opacity: 1; }
}

/* Pulse ring effect */
.nav-icon-badge.pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid rgba(239, 68, 68, 0.6);
    border-radius: 50%;
    animation: pulseRing 1.5s ease-out infinite;
    transition: var(--jp-transition-base);
}

.nav-icon-badge.active {
    animation: pulse-badge-active 0.6s ease-out;
}

@keyframes pulse-badge-active {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Currency Selector Button - Clean circular icon style */
.currency-selector-btn {
    position: relative;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--jp-radius-full, 50%);
    background: var(--jp-bg-secondary);
    border: 1px solid var(--jp-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--jp-text-muted);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: -0.5px;
}

.currency-selector-btn:hover {
    border-color: var(--jp-primary);
    color: var(--jp-primary);
    background: rgba(99, 102, 241, 0.1);
}

.currency-selector-btn::after {
    /* Hide Bootstrap dropdown arrow */
    display: none !important;
}

.currency-selector-btn .currency-code {
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: -0.3px;
}

/* Currency Dropdown Menu */
.currency-dropdown {
    min-width: 140px;
    border-radius: var(--jp-radius-lg, 12px);
    border: 1px solid var(--jp-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 0.5rem;
}

.currency-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--jp-radius-md, 8px);
    font-weight: 500;
}

.currency-dropdown .dropdown-item .currency-symbol {
    width: 24px;
    text-align: center;
    font-weight: 700;
}

.currency-dropdown .dropdown-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--jp-primary);
}

/* Notification Wrapper - ensures consistent styling */
.notification-wrapper {
    position: relative;
    display: inline-flex;
}

/* XP Level Badge */
.xp-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--jp-radius-full, 50px);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--jp-secondary);
    height: 38px;
    white-space: nowrap;
}

.xp-level-badge .level-num {
    background: var(--jp-secondary);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.xp-progress-mini {
    width: 40px;
    height: 4px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.xp-progress-mini .progress-fill {
    height: 100%;
    background: var(--jp-secondary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Theme Toggle */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--jp-radius-full, 50%);
    background: var(--jp-bg-secondary);
    border: 1px solid var(--jp-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--jp-text);
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--jp-primary);
    color: var(--jp-primary);
    background: rgba(99, 102, 241, 0.1);
}

.theme-toggle i {
    font-size: 0.95rem;
}

/* ============================================
   USER DROPDOWN - Premium 2025
   ============================================ */
.user-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem;
    padding-right: 0.85rem;
    border-radius: var(--jp-radius-full, 50px);
    background: linear-gradient(135deg, var(--jp-bg-secondary) 0%, var(--jp-bg) 100%);
    border: 1px solid var(--jp-border);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 44px;
    position: relative;
    overflow: visible;
}

/* Subtle gradient overlay on hover */
.user-dropdown::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--jp-primary-rgb), 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.user-dropdown:hover::before {
    opacity: 1;
}

.user-dropdown:hover {
    border-color: var(--jp-primary);
    box-shadow: 
        0 8px 25px rgba(var(--jp-primary-rgb), 0.15),
        0 0 0 3px rgba(var(--jp-primary-rgb), 0.08);
    transform: translateY(-1px);
}

/* 3D Avatar with Animated Border */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--jp-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    overflow: visible;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* Animated gradient ring */
.user-avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #6366f1,
        #8b5cf6,
        #a855f7,
        #ec4899,
        #6366f1
    );
    z-index: -1;
    animation: avatarRingSpin 8s linear infinite;
    opacity: 0.7;
}

@keyframes avatarRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Inner background for ring effect */
.user-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--jp-gradient);
    z-index: -1;
}

.user-dropdown:hover .user-avatar {
    transform: scale(1.08) rotateY(10deg);
}

.user-dropdown:hover .user-avatar::before {
    opacity: 1;
    animation-duration: 3s;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

/* Online status indicator */
.user-avatar-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid var(--jp-bg);
    border-radius: 50%;
    z-index: 10;
    animation: onlinePulse 2s ease-in-out infinite;
}

@keyframes onlinePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-info .name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--jp-text);
}

.user-info .role {
    font-size: 0.7rem;
    color: var(--jp-text-muted);
}

.user-dropdown .fa-chevron-down {
    font-size: 0.65rem;
    color: var(--jp-text-muted);
    margin-left: 0.25rem;
}

/* User Avatar Dropdown Menu */
.user-avatar-dropdown {
    min-width: 300px;
    max-width: 340px;
    padding: 0.75rem;
    gap: 0.35rem;
}

.user-avatar-dropdown .user-profile-card {
    padding: 1.1rem;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.09), rgba(139, 92, 246, 0.06));
    border-radius: 14px;
    border: 1px solid rgba(var(--jp-primary-rgb), 0.14);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

[data-bs-theme="dark"] .user-avatar-dropdown .user-profile-card {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.08), rgba(15, 23, 42, 0.65));
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.user-avatar-dropdown .user-avatar-lg {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--jp-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--jp-primary);
}

.user-avatar-dropdown .user-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar-dropdown .user-details h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--jp-text);
    margin-bottom: 0.15rem;
}

.user-avatar-dropdown .user-details .user-email {
    font-size: 0.75rem;
    color: var(--jp-text-muted);
    word-break: break-all;
}

.user-avatar-dropdown .user-meta .chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--jp-radius-full, 999px);
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(var(--jp-primary-rgb), 0.15);
    background: rgba(99, 102, 241, 0.08);
    color: var(--jp-text);
}

.chip-level {
    background: rgba(var(--jp-primary-rgb), 0.12);
    border-color: rgba(var(--jp-primary-rgb), 0.25);
}

.chip-streak {
    background: rgba(var(--jp-warning-rgb), 0.14);
    border-color: rgba(var(--jp-warning-rgb), 0.28);
    color: #b45309;
}

[data-bs-theme="dark"] .chip-streak {
    color: #fbbf24;
}

.chip-balance {
    background: rgba(var(--jp-success-rgb), 0.14);
    border-color: rgba(var(--jp-success-rgb), 0.28);
    color: #059669;
}

.chip-vip {
    background: rgba(var(--jp-warning-rgb), 0.14);
    border-color: rgba(var(--jp-warning-rgb), 0.30);
    color: #b45309;
}

[data-bs-theme="dark"] .chip-vip {
    color: #fbbf24;
}

[data-bs-theme="dark"] .chip-balance {
    color: #34d399;
}

.user-avatar-dropdown .xp-progress-section {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--jp-border);
}

.user-avatar-dropdown .xp-progress-section.enhanced {
    background: var(--jp-bg-secondary);
    border-radius: 12px;
    padding: 0.85rem;
    border: 1px solid var(--jp-border);
}

.user-avatar-dropdown .xp-progress-section .xp-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--jp-text-muted);
    margin-bottom: 0.4rem;
    gap: 0.5rem;
}

.user-avatar-dropdown .xp-progress {
    height: 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

[data-bs-theme="dark"] .user-avatar-dropdown .xp-progress {
    background: rgba(255, 255, 255, 0.08);
}

.user-avatar-dropdown .xp-progress .progress-bar {
    background: var(--jp-gradient);
}

.user-avatar-dropdown .dropdown-section {
    padding: 0.35rem 0;
    border-radius: 12px;
}

.user-avatar-dropdown .dropdown-section:not(:last-child) {
    margin-bottom: 0.35rem;
}

.user-avatar-dropdown .section-label {
    display: block;
    padding: 0.5rem 1rem 0.35rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--jp-text-muted);
}

.user-avatar-dropdown .section-label.with-icon {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    padding: 0.35rem 1rem 0.25rem;
}

.user-avatar-dropdown .section-label.with-icon i {
    color: var(--jp-text-muted);
    width: 1.1rem;
}

.dropdown-item.highlighted {
    background: rgba(var(--jp-warning-rgb), 0.1);
    border: 1px solid rgba(var(--jp-warning-rgb), 0.22);
}

.dropdown-item.highlighted:hover {
    background: rgba(var(--jp-warning-rgb), 0.16);
    color: var(--jp-warning-dark);
}

.dropdown-item.destructive {
    color: var(--jp-danger);
}

.dropdown-item.destructive:hover {
    background: rgba(var(--jp-danger-rgb), 0.1);
    color: var(--jp-danger);
}

/* ============================================
   RESPONSIVE - Mobile & Tablet
   ============================================ */
@media (max-width: 1199px) {
    .navbar {
        height: auto;
        padding: 0.5rem 0;
        min-height: 60px;
    }
    
    .navbar > .container,
    .navbar > .container-fluid {
        flex-wrap: wrap;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        gap: 0.5rem;
        max-width: 100%;
        position: relative;
    }
    
    .navbar-brand {
        flex-shrink: 0;
        margin-right: auto;
        order: 1;
    }
    
    .navbar-toggler {
        flex-shrink: 0;
        order: 2;
        margin-left: 0.5rem;
        z-index: 10;
    }
    
    /* User dropdown mobilon - ne fedje a menüt */
    .navbar .dropdown {
        order: 3;
        position: relative;
        z-index: 5;
    }
    
    .navbar-collapse {
        background: var(--jp-bg-card);
        padding: 1rem;
        border-radius: var(--jp-radius-xl, 12px);
        margin-top: 0.5rem;
        border: 1px solid var(--jp-border);
        box-shadow: var(--jp-shadow-lg);
        width: 100%;
        order: 10;
        max-height: calc(100vh - 85px);
        min-height: 400px;
        overflow-y: auto;
        overflow-x: hidden;
        position: relative;
        z-index: 100;
        flex-basis: 100%;
    }
    
    .navbar-collapse::-webkit-scrollbar {
        width: 6px;
    }
    
    .navbar-collapse::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb {
        background: var(--jp-primary);
        border-radius: 10px;
    }
    
    .navbar-nav.nav-main {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }
    
    .navbar-nav.nav-main .nav-link {
        padding: 0.95rem 1rem !important;
        justify-content: flex-start;
        min-height: 52px;
        display: flex;
        align-items: center;
        font-size: 0.95rem;
    }
    
    /* Dropdown toggle nyilak mobilon */
    .navbar-collapse .dropdown-toggle::after {
        margin-left: auto;
    }
    
    .navbar-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        margin: 0.85rem 0 0 0;
        padding: 0.85rem 0 0 0;
        border-top: 1px solid var(--jp-border);
        width: 100%;
    }
    
    .points-badge, 
    .wallet-badge {
        width: 100%;
        justify-content: center;
        height: 44px;
    }
    
    .theme-toggle {
        width: 100%;
        border-radius: 10px;
        height: 44px;
    }
    
    .navbar-actions .btn {
        width: 100%;
        height: 44px;
    }
    
    /* Static dropdowns inside collapsed menu */
    .navbar-collapse .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none;
        box-shadow: none;
        background: transparent;
        margin: 0.35rem 0;
        padding: 0.5rem;
        max-height: none;
        display: block !important;
        width: 100%;
    }
    
    .navbar-collapse .dropdown-menu .dropdown-item {
        padding: 0.7rem 0.85rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        gap: 0.65rem;
        border-radius: 8px;
        background: rgba(99, 102, 241, 0.05);
        margin-bottom: 0.25rem;
        font-size: 0.9rem;
        transition: all 0.2s ease;
    }
    
    .navbar-collapse .dropdown-menu .dropdown-item:hover {
        background: rgba(99, 102, 241, 0.12);
        transform: translateX(3px);
    }
    
    .navbar-collapse .dropdown-menu .dropdown-item i {
        width: 1.25rem;
        flex-shrink: 0;
    }
    
    /* Mega menu mobilon - teljes újragondolás */
    .navbar-collapse .mega-menu {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        background: transparent;
        border: none;
        box-shadow: none;
        margin: 0 0 1.5rem 0;
        transform: none !important;
        left: auto !important;
    }
    
    .navbar-collapse .mega-menu .row {
        margin: 0;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Mobilon minden kategória teljes szélességű */
    .navbar-collapse .mega-menu .col-lg-3,
    .navbar-collapse .mega-menu .col-md-6 {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100%;
        margin-bottom: 0;
    }
    
    /* Kategória fejlécek mobilon */
    .navbar-collapse .mega-menu .dropdown-header {
        font-size: 0.85rem;
        font-weight: 700;
        padding: 0.65rem 0.75rem;
        margin-bottom: 0;
        background: rgba(99, 102, 241, 0.08);
        border-radius: 8px;
        border: none;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Játék lista mobilon */
    .navbar-collapse .mega-menu .list-unstyled {
        margin: 0.35rem 0 0 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    /* Játék elemek mobilon - flexbox optimalizálás */
    .navbar-collapse .mega-menu .dropdown-item {
        padding: 0.7rem 0.85rem !important;
        border-radius: 8px;
        font-size: 0.9rem;
        display: flex !important;
        align-items: center;
        gap: 0.65rem;
        min-height: 44px;
        background: rgba(99, 102, 241, 0.03);
        transition: all 0.2s ease;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .navbar-collapse .mega-menu .dropdown-item:hover,
    .navbar-collapse .mega-menu .dropdown-item:active {
        background: rgba(99, 102, 241, 0.12);
        transform: translateX(3px);
    }
    
    /* Ikonok mobilon - fix méret */
    .navbar-collapse .mega-menu .dropdown-item i {
        width: 1.25rem;
        height: 1.25rem;
        font-size: 1rem;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Lock ikon */
    .navbar-collapse .mega-menu .dropdown-item .fa-lock {
        margin-left: auto;
        opacity: 0.5;
    }
    
    /* CoinRain unlock hint mobilon */
    .navbar-collapse .mega-menu .coinrain-unlock-hint {
        padding: 0.65rem 0.75rem !important;
        margin: 0.35rem 0 0.5rem 0 !important;
        border-radius: 8px;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .navbar-collapse .mega-menu .coinrain-unlock-hint .progress {
        height: 3px;
        margin-top: 0.5rem;
        background: rgba(0, 0, 0, 0.1);
    }
    
    /* User dropdown stays positioned correctly */
    .navbar > .container-fluid .dropdown .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        transform: none !important;
        /* No gap between toggle and menu (prevents accidental close) */
        margin-top: 0 !important;
        min-width: 260px;
        max-width: calc(100vw - 3rem);
        z-index: 1050;
    }
    
    /* User dropdown ne fedje a collapse menüt */
    .navbar .dropdown[style*="order: 2"],
    .navbar .dropdown.order-2 {
        position: relative;
        z-index: 5;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 70px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar > .container,
    .navbar > .container-fluid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        max-width: 100%;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
        margin-right: 0.5rem;
    }
    
    .navbar-brand i {
        font-size: 1.25rem;
    }
    
    .navbar-toggler {
        padding: 0.45rem 0.65rem;
        margin-left: 0.25rem;
    }
    
    .user-dropdown {
        padding: 0.4rem 0.6rem !important;
        min-height: 38px !important;
    }
    
    .user-avatar {
        width: 34px !important;
        height: 34px !important;
    }
    
    .user-avatar-dropdown {
        min-width: 260px;
        max-width: calc(100vw - 1rem);
        position: fixed !important;
        left: 0.5rem;
        right: 0.5rem;
        top: calc(var(--header-height, 64px) + 6px);
        width: auto;
        max-height: calc(100vh - var(--header-height, 64px) - 18px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 18px;
        box-shadow: var(--jp-shadow-2xl);
        padding: 1rem;
        z-index: 1100;
    }
    
    .navbar-collapse {
        margin-top: 0.5rem;
        padding: 1rem 0.75rem;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        border-radius: var(--jp-radius-lg, 10px);
        max-height: calc(100vh - 75px);
        min-height: 450px;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    /* Mega menü extra kicsi képernyőkön */
    .navbar-collapse .mega-menu .dropdown-item {
        font-size: 0.85rem;
        padding: 0.65rem 0.75rem !important;
    }
    
    .navbar-collapse .mega-menu .dropdown-header {
        font-size: 0.8rem;
        padding: 0.6rem 0.7rem;
    }
}

/* Extra kicsi telefonok (pl. iPhone SE, Galaxy Fold zárt) */
@media (max-width: 375px) {
    .navbar > .container,
    .navbar > .container-fluid {
        padding-left: 0.4rem !important;
        padding-right: 0.4rem !important;
    }
    
    .navbar-brand {
        font-size: 1rem;
        margin-right: 0.25rem;
    }
    
    .navbar-brand i {
        font-size: 1.1rem;
    }
    
    .user-dropdown {
        padding: 0.35rem 0.5rem !important;
        min-height: 36px !important;
    }
    
    .user-avatar {
        width: 30px !important;
        height: 30px !important;
    }
    
    .navbar-toggler {
        padding: 0.35rem 0.5rem;
        font-size: 0.9rem;
        margin-left: 0.25rem;
    }
    
    .navbar-collapse {
        padding: 0.85rem 0.65rem;
        margin-left: -0.4rem;
        margin-right: -0.4rem;
        max-height: calc(100vh - 70px);
        min-height: 400px;
    }
    
    /* Mega menü nagyon kicsi képernyőre */
    .navbar-collapse .mega-menu .dropdown-item {
        font-size: 0.8rem;
        padding: 0.6rem 0.7rem !important;
        gap: 0.5rem;
    }
    
    .navbar-collapse .mega-menu .dropdown-item i {
        width: 1.1rem;
        height: 1.1rem;
        font-size: 0.9rem;
    }
    
    .navbar-collapse .mega-menu .dropdown-header {
        font-size: 0.75rem;
        padding: 0.55rem 0.65rem;
    }
}

/* Hide user info on smaller screens */
@media (min-width: 1200px) and (max-width: 1450px) {
    .nav-link i {
        margin-right: 0 !important;
        font-size: 1.1rem;
    }
    .nav-link {
        padding: 0.6rem 0.75rem !important;
    }
    .navbar-actions {
        gap: 0.4rem;
    }
    .points-badge, .wallet-badge {
        padding: 0.5rem 0.75rem;
    }
    .user-info {
        display: none !important;
    }
}

/* Desktop hover dropdowns */
@media (min-width: 1200px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeInUp 0.2s ease forwards;
    }
    
    .navbar-nav .dropdown-menu {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .navbar-nav .dropdown:hover > .dropdown-menu {
        animation: fadeInUpCentered 0.2s ease forwards;
    }
    
    .dropdown:hover > .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 0;
        width: 100%;
        height: 10px;
    }
    
    .dropdown-menu-end {
        right: 0;
        left: auto;
    }
}

/* ============================================
   BALANCE FLASH ANIMATIONS
   ============================================ */
@keyframes balanceGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
    25% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 5px rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 30px 8px rgba(16, 185, 129, 0.6);
    }
    75% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 5px rgba(16, 185, 129, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes balanceGlowRed {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
    25% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 5px rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 30px 8px rgba(239, 68, 68, 0.6);
    }
    75% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 5px rgba(239, 68, 68, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes balanceTextPop {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.15);
        color: #10b981;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes balanceTextPopRed {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.15);
        color: #ef4444;
    }
    100% {
        transform: scale(1);
    }
}

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

.points-badge.balance-flash,
.wallet-badge.balance-flash {
    animation: balanceGlow 0.5s ease-out;
    position: relative;
    z-index: 1000;
}

.points-badge.balance-flash.losing,
.wallet-badge.balance-flash.losing {
    animation: balanceGlowRed 0.5s ease-out;
}

.points-badge.balance-flash span:last-child,
.wallet-badge.balance-flash span:last-child {
    animation: balanceTextPop 0.4s ease-out;
    display: inline-block;
}

.points-badge.balance-flash.losing span:last-child,
.wallet-badge.balance-flash.losing span:last-child {
    animation: balanceTextPopRed 0.4s ease-out;
}

.points-badge.balance-flash::after,
.wallet-badge.balance-flash::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: balanceShine 0.5s ease-out;
    pointer-events: none;
}

.points-badge.balance-flash.losing::after,
.wallet-badge.balance-flash.losing::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(239, 68, 68, 0.3) 50%,
        transparent 100%
    );
}

/* Floating +X Indicator */
.balance-gain-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    animation: gainPop 1.5s ease-out forwards;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    pointer-events: none;
}

/* Floating -X Indicator (piros) */
.balance-loss-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    animation: lossPop 1.5s ease-out forwards;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    pointer-events: none;
}

@keyframes gainPop {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.5);
    }
    15% {
        opacity: 1;
        transform: translateY(-5px) scale(1.2);
    }
    30% {
        transform: translateY(-3px) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-15px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-25px) scale(0.8);
    }
}

@keyframes lossPop {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.5);
    }
    15% {
        opacity: 1;
        transform: translateY(-5px) scale(1.2);
    }
    30% {
        transform: translateY(-3px) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-15px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-25px) scale(0.8);
    }
}

/* Enhanced balance badge on gain */
.points-badge.gaining,
.wallet-badge.gaining {
    animation: balancePulse 0.6s ease-out;
}

/* Enhanced balance badge on loss (piros) */
.points-badge.losing,
.wallet-badge.losing {
    animation: balancePulseRed 0.6s ease-out;
}

@keyframes balancePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    }
    25% { 
        transform: scale(1.08);
        box-shadow: 0 0 25px 8px rgba(34, 197, 94, 0.5);
    }
    50% { 
        transform: scale(1.12);
        box-shadow: 0 0 35px 12px rgba(34, 197, 94, 0.6);
    }
    75% { 
        transform: scale(1.08);
        box-shadow: 0 0 25px 8px rgba(34, 197, 94, 0.5);
    }
}

@keyframes balancePulseRed {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    }
    25% { 
        transform: scale(1.08);
        box-shadow: 0 0 25px 8px rgba(239, 68, 68, 0.5);
    }
    50% { 
        transform: scale(1.12);
        box-shadow: 0 0 35px 12px rgba(239, 68, 68, 0.6);
    }
    75% { 
        transform: scale(1.08);
        box-shadow: 0 0 25px 8px rgba(239, 68, 68, 0.5);
    }
}

/* Points counter animation */
.points-badge span:last-child,
.wallet-badge span:last-child {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpCentered {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* ============================================
   SCROLLBAR (Global)
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--jp-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--jp-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--jp-text-muted);
}

/* ============================================
   SCROLL PROGRESS INDICATOR - Premium 2025
   ============================================ */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.03);
    z-index: 10000;
    overflow: hidden;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(
        90deg, 
        #6366f1 0%, 
        #8b5cf6 20%, 
        #a855f7 40%, 
        #ec4899 60%, 
        #f43f5e 80%, 
        #6366f1 100%
    );
    background-size: 300% 100%;
    animation: progressGradient 4s ease infinite;
    transition: width 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 4px 4px 0;
    position: relative;
}

/* Glow effect */
.scroll-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

/* Shadow glow */
.scroll-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -4px;
    background: inherit;
    filter: blur(8px);
    opacity: 0.6;
    border-radius: 0 4px 4px 0;
}

@keyframes progressGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes progressShine {
    0% { transform: translateX(-100px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100vw); opacity: 0; }
}

/* ============================================
   HEADER VIP BADGE
   ============================================ */
.header-vip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.6rem;
    color: white;
    animation: vipGlow 2s ease-in-out infinite;
}

.header-vip-expiry {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--jp-text);
    background: rgba(99, 102, 241, 0.10);
    border: 1px solid rgba(var(--jp-primary-rgb), 0.18);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

[data-bs-theme="dark"] .header-vip-expiry {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.28);
}

@keyframes vipGlow {
    0%, 100% { box-shadow: 0 0 5px currentColor; }
    50% { box-shadow: 0 0 15px currentColor; }
}

/* ============================================
   HEADER STREAK BADGE
   ============================================ */
.header-streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.4rem;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 10px;
    animation: streakFlame 0.5s ease-in-out infinite;
}

.header-streak-badge i {
    font-size: 0.55rem;
}

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

/* ============================================
   DAILY BONUS QUICK BUTTON
   ============================================ */
.daily-bonus-quick-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: bonusPulseGlow 2s ease-in-out infinite;
}

.daily-bonus-quick-btn:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.5);
}

.daily-bonus-pulse {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--jp-bg);
    animation: dailyBonusPulse 1s infinite;
}

@keyframes bonusPulseGlow {
    0%, 100% { box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3); }
    50% { box-shadow: 0 2px 20px rgba(34, 197, 94, 0.5); }
}

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

/* ============================================
   ENHANCED USER DROPDOWN PROFILE
   ============================================ */
.user-profile-card {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.04));
    border-radius: 12px;
    margin: 0.5rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.user-avatar-lg {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--jp-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.user-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details h6 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--jp-text);
    font-size: 1rem;
}

.user-email {
    font-size: 0.75rem;
    color: var(--jp-text-secondary);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xp-progress-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(99, 102, 241, 0.15);
}

.xp-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--jp-text-secondary);
    margin-bottom: 0.5rem;
}

.xp-progress-section .progress {
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.xp-progress-section .progress-bar {
    background: var(--jp-gradient);
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* ============================================
   NAVBAR SCROLL STATE
   ============================================ */
.navbar.scrolled {
    background: var(--jp-navbar-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled .navbar-brand {
    font-size: 1.25rem;
}

.navbar.scrolled .user-avatar {
    width: 34px !important;
    height: 34px !important;
}

/* ============================================
   ENHANCED MOBILE MENU
   ============================================ */
@media (max-width: 1199.98px) {
    .navbar-collapse {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--jp-bg);
        padding: 1.5rem;
        overflow-y: auto;
        transform: translateX(-100%);
        opacity: 0;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }
    
    .navbar-collapse.show {
        transform: translateX(0);
        opacity: 1;
    }
    
    .navbar-collapse .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .navbar-collapse .nav-link {
        padding: 1rem 1.25rem !important;
        border-radius: 12px;
        font-size: 1rem;
    }
    
    .navbar-collapse .nav-link:hover {
        background: rgba(99, 102, 241, 0.1);
    }
    
    .navbar-collapse .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        background: rgba(99, 102, 241, 0.05);
        margin: 0.5rem 0;
        padding: 0.5rem;
        border-radius: 12px;
    }
    
    .navbar-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        padding: 1.5rem 0;
        border-top: 1px solid var(--jp-border);
        margin-top: 1rem;
    }
    
    .quick-action-btn {
        width: 44px;
        height: 44px;
    }
    
    .mega-menu {
        width: 95%;
        max-width: none;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 1rem !important;
    }
    
    .mega-menu .row {
        --bs-gutter-x: 1rem;
    }
    
    .mega-menu .col-lg-3 {
        margin-bottom: 1.5rem;
    }
}

/* ============================================
   BOTTOM NAVIGATION (Mobile)
   ============================================ */
@media (max-width: 767.98px) {
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--jp-bg);
        border-top: 1px solid var(--jp-border);
        padding: 0.5rem 0;
        z-index: 1000;
        display: flex;
        justify-content: space-around;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0.5rem 1rem;
        text-decoration: none;
        color: var(--jp-text-muted);
        transition: all 0.2s ease;
        border-radius: 12px;
        min-width: 60px;
    }
    
    .bottom-nav-item.active {
        color: var(--jp-primary);
        background: rgba(99, 102, 241, 0.1);
    }
    
    .bottom-nav-item i {
        font-size: 1.25rem;
    }
    
    .bottom-nav-item span {
        font-size: 0.7rem;
        font-weight: 500;
    }
    
    /* Body padding bottom for mobile nav */
    body {
        padding-bottom: 70px;
    }
}

/* ============================================
   DARK MODE ENHANCEMENTS
   ============================================ */
[data-bs-theme="dark"] .user-profile-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.08));
    border-color: rgba(99, 102, 241, 0.25);
}

[data-bs-theme="dark"] .xp-progress-section {
    border-color: rgba(99, 102, 241, 0.25);
}

[data-bs-theme="dark"] .scroll-progress-container {
    background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .daily-bonus-pulse {
    border-color: rgba(15, 23, 42, 0.95);
    background: var(--jp-danger);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* ============================================
   SEARCH MODAL - Command Palette Style 2025
   ============================================ */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-modal.show {
    opacity: 1;
    visibility: visible;
}

.search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.search-modal-container {
    position: relative;
    width: 95%;
    max-width: 640px;
    background: var(--jp-bg);
    border-radius: 20px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.25),
        0 10px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(var(--jp-primary-rgb), 0.15);
    transform: translateY(-30px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

[data-bs-theme="dark"] .search-modal-container {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.search-modal.show .search-modal-container {
    transform: translateY(0) scale(1);
}

/* Header with shortcut hint */
.search-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--jp-border);
    background: linear-gradient(180deg, rgba(var(--jp-primary-rgb), 0.03) 0%, transparent 100%);
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--jp-primary);
    pointer-events: none;
    z-index: 1;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.search-input:focus ~ .search-icon,
.search-input-wrapper:focus-within .search-icon {
    transform: scale(1.1);
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border: 2px solid transparent;
    border-radius: 14px;
    background: var(--jp-bg-secondary);
    color: var(--jp-text);
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: var(--jp-text-muted);
    font-weight: 400;
}

.search-input:focus {
    outline: none;
    border-color: var(--jp-primary);
    background: var(--jp-bg);
    box-shadow: 
        0 0 0 4px rgba(var(--jp-primary-rgb), 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Keyboard shortcut badge */
.search-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.6rem;
    background: var(--jp-bg-secondary);
    border: 1px solid var(--jp-border);
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--jp-text-muted);
    white-space: nowrap;
}

.search-shortcut kbd {
    padding: 0.15rem 0.4rem;
    background: var(--jp-bg);
    border: 1px solid var(--jp-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.7rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Search Results Categories */
.search-results-categories {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--jp-border);
    overflow-x: auto;
}

.search-category-btn {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--jp-border);
    background: var(--jp-bg-secondary);
    color: var(--jp-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.search-category-btn:hover,
.search-category-btn.active {
    background: var(--jp-primary);
    border-color: var(--jp-primary);
    color: #fff;
}

/* Recent Searches */
.search-recent {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--jp-border);
}

.search-recent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.search-recent-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--jp-text-muted);
}

.search-recent-clear {
    font-size: 0.75rem;
    color: var(--jp-primary);
    cursor: pointer;
    transition: opacity 0.2s;
}

.search-recent-clear:hover {
    opacity: 0.8;
}

.search-recent-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-recent-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: var(--jp-bg-secondary);
    border: 1px solid var(--jp-border);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--jp-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-recent-item:hover {
    background: rgba(var(--jp-primary-rgb), 0.1);
    border-color: var(--jp-primary);
}

.search-recent-item i {
    color: var(--jp-text-muted);
    font-size: 0.7rem;
}

.search-clear-btn {
    position: absolute;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--jp-text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-clear-btn:hover {
    background: var(--jp-bg-secondary);
    color: var(--jp-text);
}

.search-close-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--jp-border);
    border-radius: 8px;
    background: var(--jp-bg-secondary);
    color: var(--jp-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.search-close-btn:hover {
    background: var(--jp-bg);
    border-color: var(--jp-primary);
    color: var(--jp-primary);
}

.search-results-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    max-height: calc(80vh - 100px);
}

.search-empty-state,
.search-loading,
.search-error {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--jp-text-muted);
}

.search-empty-state i,
.search-error i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    display: block;
}

.search-empty-state kbd {
    background: var(--jp-bg-secondary);
    border: 1px solid var(--jp-border);
    border-radius: 4px;
    padding: 0.125rem 0.375rem;
    font-size: 0.75rem;
    font-family: monospace;
}

.search-section {
    margin-bottom: 1.5rem;
}

.search-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--jp-text-muted);
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.search-result-item {
    border-radius: 8px;
    transition: background 0.2s ease;
}

.search-result-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--jp-text);
    transition: all 0.2s ease;
}

.search-result-item:hover .search-result-link {
    background: var(--jp-bg-secondary);
    transform: translateX(4px);
}

.search-result-link i {
    width: 2rem;
    text-align: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    color: var(--jp-text);
    margin-bottom: 0.125rem;
}

.search-item-desc {
    color: var(--jp-text-muted);
    font-size: 0.85rem;
}

.search-trigger-btn {
    position: relative;
}

/* ============================================
   QUICK ACTIONS TOOLBAR - Premium 2025
   ============================================ */
.quick-actions-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-action-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--jp-bg-secondary) 0%, var(--jp-bg) 100%);
    border: 1px solid var(--jp-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--jp-text-muted);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Ripple background */
.quick-action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(var(--jp-primary-rgb), 0.15) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease;
}

.quick-action-btn:hover::before {
    opacity: 1;
    transform: scale(1.5);
}

.quick-action-btn i {
    font-size: 1rem;
    position: relative;
    z-index: 2;
    color: var(--jp-text-muted);
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    border-color: var(--jp-primary);
    color: var(--jp-primary);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(99, 102, 241, 0.25),
        0 0 0 3px rgba(99, 102, 241, 0.1);
}

.quick-action-btn:hover i {
    color: var(--jp-primary);
    transform: scale(1.15);
}

/* Progress Ring for Tasks */
.quick-action-btn .progress-indicator {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    z-index: 1;
    border: 3px solid transparent;
    transition: all 0.4s ease;
}

/* Daily Bonus Button - Golden Glow */
.daily-bonus-btn {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-color: rgba(250, 204, 21, 0.4);
    animation: dailyBonusPulse 2.5s ease-in-out infinite;
}

.daily-bonus-btn i {
    color: #f59e0b !important;
    animation: giftBounce 1.5s ease-in-out infinite;
}

@keyframes giftBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-2px) rotate(-5deg); }
    75% { transform: translateY(-2px) rotate(5deg); }
}

@keyframes dailyBonusPulse {
    0%, 100% {
        box-shadow: 
            0 0 0 0 rgba(250, 204, 21, 0.4),
            0 4px 12px rgba(250, 204, 21, 0.2);
    }
    50% {
        box-shadow: 
            0 0 0 10px rgba(250, 204, 21, 0),
            0 8px 25px rgba(250, 204, 21, 0.3);
    }
}

.daily-bonus-btn:hover {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.25) 0%, rgba(245, 158, 11, 0.2) 100%);
    border-color: #f59e0b;
}

/* Daily Tasks Button - Progress Ring */
.daily-tasks-btn {
    position: relative;
}

.daily-tasks-btn .progress-indicator {
    background: conic-gradient(
        var(--jp-primary) var(--progress, 0%),
        transparent var(--progress, 0%)
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
}

.daily-tasks-btn:hover .progress-indicator {
    box-shadow: 0 0 15px rgba(var(--jp-primary-rgb), 0.4);
}

/* Redeem Button */
.redeem-btn i {
    transition: transform 0.3s ease;
}

.redeem-btn:hover i {
    animation: exchangeRotate 0.6s ease-in-out;
}

@keyframes exchangeRotate {
    0% { transform: rotate(0deg) scale(1.15); }
    50% { transform: rotate(180deg) scale(1.15); }
    100% { transform: rotate(360deg) scale(1.15); }
}

/* Available state glow */
.quick-action-btn.available {
    animation: availablePulse 2s ease-in-out infinite;
}

@keyframes availablePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

/* Dark mode specific styles */
[data-bs-theme="dark"] .quick-action-btn {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .quick-action-btn i {
    color: #e2e8f0 !important;
    font-weight: 600;
    font-size: 1rem;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
}

[data-bs-theme="dark"] .quick-action-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--jp-primary);
    color: var(--jp-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

[data-bs-theme="dark"] .quick-action-btn:hover i {
    color: var(--jp-primary) !important;
}

[data-bs-theme="dark"] .quick-action-btn .progress-indicator {
    border-color: rgba(15, 23, 42, 0.95);
}

/* Progress indicator dark mode fix */
[data-bs-theme="dark"] .daily-tasks-btn .progress-indicator {
    background: conic-gradient(
        rgba(99, 102, 241, 0.9) var(--progress, 0%), 
        transparent var(--progress, 0%)
    );
    border-color: rgba(15, 23, 42, 0.95);
}

[data-bs-theme="dark"] .daily-bonus-btn {
    animation: pulse-glow-dark 2s infinite;
}

@keyframes pulse-glow-dark {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.6);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 193, 7, 0);
    }
}

/* Notification badge on quick action buttons */
.quick-action-btn .nav-icon-badge,
.quick-action-btn .daily-bonus-pulse {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    background: var(--jp-danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
    border: 2px solid #ffffff;
    z-index: 10;
}

[data-bs-theme="dark"] .quick-action-btn .nav-icon-badge,
[data-bs-theme="dark"] .quick-action-btn .daily-bonus-pulse {
    border-color: rgba(15, 23, 42, 0.95);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.7);
}

/* User Profile Card in Dropdown */
.user-profile-card {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.user-quick-stats {
    padding-top: 0.75rem;
    border-top: 1px solid var(--jp-border);
}

.user-quick-stats .d-flex {
    font-size: 0.875rem;
}

.user-quick-stats strong {
    color: var(--jp-text);
    font-weight: 600;
}

/* ============================================
   ACCESSIBILITY & PERFORMANCE - Premium 2025
   ============================================ */

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: var(--jp-primary);
    color: #fff;
    font-weight: 700;
    border-radius: 0 0 12px 12px;
    z-index: 10001;
    transition: top 0.3s ease;
    text-decoration: none;
}

.skip-to-main:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Enhanced Focus States */
.nav-link:focus-visible,
.dropdown-item:focus-visible,
.nav-icon-btn:focus-visible,
.theme-toggle:focus-visible,
.currency-selector-btn:focus-visible,
.quick-action-btn:focus-visible,
.points-badge:focus-visible,
.wallet-badge:focus-visible,
.user-dropdown:focus-visible,
.navbar-toggler:focus-visible {
    outline: 2px solid var(--jp-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(var(--jp-primary-rgb), 0.2);
}

/* High contrast mode focus */
@media (prefers-contrast: high) {
    .nav-link:focus-visible,
    .dropdown-item:focus-visible,
    .nav-icon-btn:focus-visible {
        outline-width: 3px;
        outline-color: currentColor;
    }
}

/* Performance: CSS containment */
.navbar {
    contain: layout style;
}

.dropdown-menu {
    contain: content;
}

.mega-menu {
    contain: content;
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations */
    .navbar,
    .navbar::before,
    .navbar::after,
    .dropdown-menu,
    .animate-dropdown.show,
    .nav-link,
    .dropdown-item,
    .mega-menu .dropdown-item,
    .points-badge,
    .points-badge::before,
    .wallet-badge,
    .user-avatar,
    .user-avatar::before,
    .nav-icon-btn,
    .nav-icon-btn::before,
    .nav-icon-badge,
    .quick-action-btn,
    .quick-action-btn::before,
    .daily-bonus-btn,
    .scroll-progress-bar,
    .scroll-progress-bar::before,
    .logo-icon,
    .sparkle-group,
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after,
    .navbar-toggler-icon span {
        transition: none !important;
        animation: none !important;
    }
    
    /* Keep essential transform but instant */
    .navbar.navbar-hidden {
        transition: transform 0.1s linear !important;
    }
    
    /* Disable hover transforms */
    .nav-link:hover,
    .dropdown-item:hover,
    .nav-icon-btn:hover,
    .quick-action-btn:hover,
    .points-badge:hover,
    .wallet-badge:hover,
    .user-dropdown:hover {
        transform: none !important;
    }
    
    /* Static badge */
    .nav-icon-badge {
        animation: none !important;
    }
    
    .nav-icon-badge.pulse::after {
        display: none;
    }
}

/* Print styles */
@media print {
    .navbar,
    .scroll-progress-container {
        display: none !important;
    }
}