/* ============================================
   HEADER COMPONENT STYLES
   ============================================ */

/* Header Container */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s var(--ease-smooth);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 41, 55, 0.95);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.4s var(--ease-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


.header.scrolled .header-background {
    background: rgba(17, 24, 39, 0.98);
    box-shadow: var(--shadow-xl);
    border-bottom-color: rgba(55, 65, 81, 0.8);
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    position: relative;
    z-index: 2;
}

/* Brand Section */
.nav-brand-container {
    flex-shrink: 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
}

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

.brand-icon {
    position: relative;
    width: 56px;
    height: 56px;
    background: var(--primary-purple);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-primary);
    transition: all 0.3s var(--ease-smooth);
}

.brand-icon:hover {
    transform: rotate(10deg) scale(1.1);
    box-shadow: var(--shadow-lg), var(--glow-primary);
}

.brand-icon i {
    font-size: 1.65rem;
    color: white;
    animation: coinSpin 3s ease-in-out infinite;
}

@keyframes coinSpin {
    0%, 100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
}

.icon-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 18px;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s var(--ease-smooth);
    z-index: -1;
}

.brand-icon:hover .icon-glow {
    opacity: 0.6;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.brand-name {
    font-size: clamp(1.35rem, 2.8vw, 1.8rem);
    font-weight: 800;
    background: var(--color-warning);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.brand-name-mobile {
    font-size: var(--font-size-h3);
    font-weight: 800;
    color: white;
    line-height: 1;
}

.brand-tagline {
    font-size: clamp(0.7rem, 1.3vw, 0.8rem);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Navigation Center */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    background: rgba(55, 65, 81, 0.5);
    padding: 0.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-small);
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    border-radius: 50px;
    transition: opacity 0.3s var(--ease-smooth);
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 0.15;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-link i {
    font-size: var(--icon-size-sm);
    transition: transform 0.3s var(--ease-smooth);
}

.nav-link:hover i {
    transform: scale(1.2);
}

.nav-indicator {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-smooth);
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
    transform: translateX(-50%) scaleX(1);
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Notification Container */
.notification-container {
    position: relative;
}

.notification-btn {
    position: relative;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    color: var(--text-primary);
}

.notification-btn:hover {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    transform: scale(1.1);
    box-shadow: var(--glow-primary);
    color: white;
}

.notification-btn i {
    font-size: var(--icon-size-sm);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-danger);
    color: white;
    font-size: var(--font-size-tiny);
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 50px;
    min-width: 18px;
    text-align: center;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

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

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s var(--ease-smooth);
    z-index: 100;
}

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

.notification-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-title {
    font-size: var(--font-size-h4);
    font-weight: 700;
    margin: 0;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
}

.notification-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.notification-action-btn:hover {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    color: white;
}

.notification-action-btn i {
    font-size: var(--icon-size-xs);
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.notification-item:hover {
    background: var(--bg-secondary);
}

.notification-item.unread {
    background: rgba(139, 92, 246, 0.05);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon i {
    font-size: var(--icon-size-sm);
}

.notification-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.notification-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.notification-icon.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-info);
}

.notification-content {
    flex: 1;
}

.notification-text {
    font-size: var(--font-size-small);
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.notification-time {
    font-size: var(--font-size-tiny);
    color: var(--text-muted);
}

.notification-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.view-all-btn {
    font-size: var(--font-size-small);
    font-weight: 600;
    color: var(--primary-purple);
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    color: var(--primary-cyan);
}

.notification-empty {
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--text-muted);
}

.notification-empty-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.notification-empty-text {
    font-size: var(--font-size-small);
    margin: 0;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    padding: 2px;
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    overflow: hidden;
}

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

.user-avatar:hover {
    border-color: var(--primary-purple);
    transform: scale(1.05);
    box-shadow: var(--glow-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    position: relative;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    overflow: hidden;
}

.hamburger {
    width: 20px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all 0.3s var(--ease-smooth);
    transform-origin: center;
}

.mobile-menu-toggle:hover {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    transform: scale(1.1);
    box-shadow: var(--glow-primary);
}

.mobile-menu-toggle:hover .hamburger-line {
    background: white;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Button Ripple Effect */
.btn-ripple {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
}

.btn-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.notification-btn:active .btn-ripple::before,
.theme-toggle:active .btn-ripple::before,
.mobile-menu-toggle:active .btn-ripple::before {
    width: 100px;
    height: 100px;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s var(--ease-smooth), opacity 0.3s var(--ease-smooth);
    pointer-events: none;
}

.mobile-sidebar.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
}

.sidebar-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    background: var(--bg-card);
    box-shadow: var(--shadow-xl);
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease-smooth);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
}

.mobile-sidebar.active .sidebar-content {
    transform: translateX(0);
}

.sidebar-header {
    position: sticky;
    top: 0;
    z-index: 2;
    flex-shrink: 0;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gradient-primary);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-header .brand-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
}

.sidebar-header .brand-icon i {
    font-size: 1.4rem;
}

.sidebar-header .brand-name-mobile {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
}

.sidebar-header .brand-tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.sidebar-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.sidebar-close i {
    font-size: var(--icon-size-sm);
}

/* Mobile sidebar profile header - lassana design */
.sidebar-profile-wrap {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, transparent 100%);
}

.sidebar-profile-btn {
    width: 100%;
    padding: 1rem 1.25rem;
    margin: 0;
    border: none;
    border-radius: 14px;
    background: var(--bg-card);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.25s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sidebar-profile-btn:hover {
    background: var(--bg-secondary);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.12);
}

.sidebar-profile-btn:active {
    transform: scale(0.98);
}

.sidebar-profile-avatar-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 1px var(--bg-card), 0 4px 12px rgba(139, 92, 246, 0.25);
}

.sidebar-profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-profile-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar-profile-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.sidebar-profile-level {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    width: fit-content;
    color: #fff;
}

.sidebar-profile-level i {
    font-size: 0.65rem;
    color: #fff;
}

.sidebar-profile-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    flex-shrink: 0;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.sidebar-profile-btn:hover .sidebar-profile-arrow {
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-purple);
}

/* Legacy - profile-avatar etc if used elsewhere */
.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--primary-purple);
    overflow: hidden;
}

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

.profile-info h4 {
    font-size: var(--font-size-h4);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.profile-info p {
    font-size: var(--font-size-small);
    color: var(--text-muted);
    margin-bottom: 0;
}

.profile-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.15);
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.35);
}

.profile-level-badge i {
    font-size: 0.65rem;
    color: #a78bfa;
}

.sidebar-menu {
    flex: 1;
    padding: 0.5rem 0.25rem;
}

.menu-section {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.menu-title {
    font-size: var(--font-size-tiny);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.sidebar-item:hover,
.sidebar-item.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: translateX(5px);
}

.item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sidebar-item:hover .item-icon {
    background: var(--gradient-primary);
    color: white;
}

.item-icon i {
    font-size: var(--icon-size-sm);
}

.item-content {
    flex: 1;
}

.item-title {
    font-size: var(--font-size-small);
    font-weight: 600;
    display: block;
    margin-bottom: 0.125rem;
}

.item-desc {
    font-size: var(--font-size-tiny);
    color: var(--text-muted);
}

.item-arrow {
    font-size: var(--icon-size-xs);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.sidebar-item:hover .item-arrow {
    transform: translateX(5px);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-btn {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.footer-btn:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-purple);
    color: white;
    transform: translateY(-2px);
}

.footer-btn i {
    font-size: var(--icon-size-sm);
}

.footer-btn span {
    font-size: var(--font-size-tiny);
    font-weight: 600;
}

.footer-info {
    text-align: center;
}

.footer-info p {
    font-size: var(--font-size-tiny);
    color: var(--text-muted);
}

/* User Menu Modal - Compact */
/* User menu modal - colorful design */
.modal-content-user {
    max-width: 320px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 80px rgba(139, 92, 246, 0.12);
    background: var(--bg-card);
}

.user-menu-header-compact {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 35%, #a855f7 70%, #c084fc 100%);
    position: relative;
    overflow: hidden;
}

.user-menu-header-compact::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 100% 80% at 50% -20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.user-info-compact {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.user-avatar-wrap-compact {
    flex-shrink: 0;
    padding: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.user-avatar-img-compact {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    object-fit: cover;
    display: block;
}

.user-details-compact {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.user-name-compact {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.02em;
}

.user-level-compact {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    width: fit-content;
    color: #fff;
}

.user-level-compact i {
    font-size: 0.6rem;
    color: #fff;
}

.modal-close-compact {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.modal-close-compact:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
    transform: scale(1.05);
}

.user-menu-body-compact {
    padding: 0.75rem 0.875rem 1rem;
    max-height: 58vh;
    overflow-y: auto;
    background: var(--bg-secondary);
}

.menu-item-compact.menu-item-profile {
    margin-bottom: 0.35rem;
    padding: 0.6rem 0.875rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.menu-item-compact.menu-item-profile:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(139, 92, 246, 0.35);
}

.menu-items-compact {
    gap: 0.2rem;
}

.menu-item-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.875rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    transition: all 0.2s ease;
}

.menu-item-compact:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateX(4px);
}

.menu-icon-compact {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.menu-icon-profile {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff !important;
}

.menu-icon-about {
    background: rgba(59, 130, 246, 0.18);
    color: #2563eb;
}

.menu-item-about:hover .menu-icon-about {
    background: rgba(59, 130, 246, 0.28);
}

.menu-icon-contact {
    background: rgba(6, 182, 212, 0.18);
    color: #0891b2;
}

.menu-item-contact:hover .menu-icon-contact {
    background: rgba(6, 182, 212, 0.28);
}

.menu-icon-help {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
}

.menu-item-help:hover .menu-icon-help {
    background: rgba(245, 158, 11, 0.3);
}

.menu-icon-appeal {
    background: rgba(249, 115, 22, 0.2);
    color: #ea580c;
}

.menu-item-appeal:hover .menu-icon-appeal {
    background: rgba(249, 115, 22, 0.3);
}

.menu-icon-privacy {
    background: rgba(16, 185, 129, 0.18);
    color: #059669;
}

.menu-item-privacy:hover .menu-icon-privacy {
    background: rgba(16, 185, 129, 0.28);
}

.menu-icon-terms {
    background: rgba(100, 116, 139, 0.2);
    color: #475569;
}

.menu-item-terms:hover .menu-icon-terms {
    background: rgba(100, 116, 139, 0.3);
}

.menu-item-compact span {
    flex: 1;
    font-weight: 500;
}

.menu-item-compact .menu-arrow {
    font-size: 0.6rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.menu-item-compact:hover .menu-arrow {
    transform: translateX(2px);
    color: var(--text-secondary);
}

.menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 0.5rem 0.75rem 0.4rem;
}

.menu-item-logout {
    color: #dc2626;
    margin-top: 0.15rem;
    padding: 0.6rem 0.875rem;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.menu-item-logout:hover {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.25);
}

.menu-icon-logout {
    background: rgba(220, 38, 38, 0.18) !important;
    color: #dc2626 !important;
}

.menu-item-logout:hover .menu-icon-logout {
    background: rgba(220, 38, 38, 0.28) !important;
}

.menu-items-compact .menu-divider {
    margin: 0.4rem 0.75rem;
}

.user-menu-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--bg-secondary);
}

.user-info {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.user-avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-purple);
    object-fit: cover;
}

.user-details h3 {
    font-size: var(--font-size-h4);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.user-details p {
    font-size: var(--font-size-small);
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.user-level {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 20px;
    font-size: var(--font-size-tiny);
    font-weight: 600;
    color: var(--primary-purple);
}

.user-level i {
    font-size: var(--icon-size-xs);
}

.user-menu-body {
    padding: 0.75rem;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: translateX(5px);
}

.menu-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 8px;
    color: white;
}

.menu-icon i {
    font-size: var(--icon-size-sm);
}

.menu-item span {
    flex: 1;
    font-size: var(--font-size-small);
    font-weight: 500;
}

.menu-arrow {
    font-size: var(--icon-size-xs);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.menu-item:hover .menu-arrow {
    transform: translateX(5px);
}

.menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.menu-item-logout {
    color: var(--color-danger);
}

.menu-item-logout .menu-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Withdraw Modal Styles */
.balance-display {
    background: var(--gradient-primary);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.balance-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.balance-label {
    font-size: var(--font-size-small);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.balance-amount {
    font-size: var(--font-size-h1);
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.amount-input {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    font-size: var(--font-size-h4);
    font-weight: 700;
    color: var(--text-secondary);
    pointer-events: none;
}

.amount-input .form-control {
    padding-left: 4rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.625rem 1rem;
    }
}

/* Hide navigation center at 1000px */
@media (max-width: 1000px) {
    .nav-center {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide Sign In/Sign Up buttons in header on mobile - show only in sidebar */
    .header-auth-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .nav-brand {
        gap: 1rem;
    }
    
    .brand-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    
    .brand-icon i {
        font-size: 1.25rem;
    }
    
    .brand-name {
        font-size: 1.35rem;
    }
    
    .brand-tagline {
        font-size: 0.7rem;
    }
    
    .nav-center {
        display: none;
    }
    
    .user-avatar {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide Sign In/Sign Up buttons in header on mobile */
    .header-auth-btn {
        display: none !important;
    }
    
    .notification-dropdown {
        position: fixed;
        left: 50%;
        right: auto;
        top: 72px;
        width: calc(100vw - 2rem);
        max-width: 340px;
        transform: translate(-50%, -10px);
        border-radius: 14px;
    }
    
    .notification-dropdown.show {
        transform: translate(-50%, 0);
    }
    
    .notification-header {
        padding: 0.875rem 1rem;
    }
    
    .notification-title {
        font-size: var(--font-size-h4);
    }
    
    .notification-action-btn {
        width: 30px;
        height: 30px;
    }
    
    .notification-list {
        max-height: 320px;
    }
    
    .notification-item {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }
    
    .notification-icon {
        width: 36px;
        height: 36px;
    }
    
    .notification-icon i {
        font-size: var(--icon-size-xs);
    }
    
    .notification-text {
        font-size: 0.8125rem;
    }
    
    .notification-time {
        font-size: 0.6875rem;
    }
    
    .notification-footer {
        padding: 0.625rem 1rem;
    }
    
    .view-all-btn {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.875rem 0;
    }
    
    .nav-brand {
        gap: 0.875rem;
    }
    
    .brand-icon {
        width: 44px;
        height: 44px;
        border-radius: 11px;
    }
    
    .brand-icon i {
        font-size: 1.1rem;
    }
    
    .brand-name {
        font-size: 1.25rem;
    }
    
    .brand-tagline {
        font-size: 0.65rem;
    }
    
    .brand-text {
        gap: 0.125rem;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    /* Hide Sign In/Sign Up buttons in header on mobile */
    .header-auth-btn {
        display: none !important;
    }
    
    .notification-btn,
    .theme-toggle {
        width: 40px;
        height: 40px;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }
    
    .notification-dropdown {
        width: calc(100vw - 1.5rem);
        max-width: 320px;
        top: 68px;
        border-radius: 12px;
    }
    
    .notification-header {
        padding: 0.75rem 1rem;
    }
    
    .notification-title {
        font-size: var(--font-size-body);
    }
    
    .notification-action-btn {
        width: 28px;
        height: 28px;
    }
    
    .notification-list {
        max-height: 280px;
    }
    
    .notification-item {
        padding: 0.75rem 1rem;
        gap: 0.625rem;
    }
    
    .notification-icon {
        width: 32px;
        height: 32px;
    }
    
    .notification-text {
        font-size: 0.75rem;
    }
    
    .notification-time {
        font-size: 0.625rem;
    }
    
    .notification-footer {
        padding: 0.5rem 1rem;
    }
    
    .view-all-btn {
        font-size: 0.75rem;
    }
    
    .modal-content-user {
        max-width: min(300px, 92vw);
    }
}
