/* Dashboard Styles */
:root {
    --header-logo-scale: 1;
}

/* Initial Loading Overlay */
.initial-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999999;
    pointer-events: all;
    transition: opacity 0.3s ease;
}

.initial-loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.initial-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.dashboard-body {
    padding: 0;
    display: block;
    min-height: 100vh;
    background: linear-gradient(135deg, #0F0F23 0%, #1A1A2E 100%);
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* Header */
.dashboard-header {
    background: var(--dark-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    min-height: 60px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
    height: 100%;
    position: relative;
    padding: 0;
}

.menu-toggle {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    height: 40px;
    width: 40px;
    margin: 0;
}

.menu-toggle:hover {
    color: var(--primary-purple-light);
}

.menu-toggle .fa-arrow-left {
    display: none;
}

.menu-toggle.active .fa-bars {
    display: none;
}

.menu-toggle.active .fa-arrow-left {
    display: block;
}

.header-left .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    height: 40px;
    margin: 0;
    padding: 0;
    transform: scale(var(--header-logo-scale));
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.logo-image {
    height: 100%;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
}

.logo-fallback {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.header-left .logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-light);
    letter-spacing: -1px;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.header-left .logo-highlight {
    color: var(--accent-yellow);
}

.header-left .logo-domain {
    font-size: 0.9rem;
    color: var(--accent-yellow);
    font-weight: 600;
    line-height: 1;
}

/* Navigation Center */
.header-center {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    background: var(--dark-bg);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.nav-btn:hover {
    background: rgba(107, 70, 193, 0.2);
    border-color: var(--primary-purple);
}

.nav-btn-active {
    background: linear-gradient(135deg, var(--primary-purple-dark) 0%, var(--primary-purple) 50%, var(--primary-purple-light) 100%);
    border-color: var(--primary-purple);
    box-shadow: 0 0 15px rgba(107, 70, 193, 0.3);
}

.nav-btn i {
    font-size: 1rem;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

.user-balance {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--dark-bg);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.balance-amount {
    font-weight: 600;
    color: var(--text-light);
    font-size: 1rem;
}

.refresh-balance {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s;
}

.refresh-balance:hover {
    color: var(--primary-purple-light);
    transform: rotate(180deg);
}

.btn-deposit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-purple-dark) 0%, var(--primary-purple) 50%, var(--primary-purple-light) 100%);
    color: var(--text-light);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(107, 70, 193, 0.3);
}

.btn-deposit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(107, 70, 193, 0.5);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.user-profile:hover {
    background: rgba(107, 70, 193, 0.1);
}

.profile-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.level-badge {
    position: absolute;
    bottom: -2px;
    left: -2px;
    background: var(--dark-bg);
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    border: 2px solid var(--primary-purple);
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.profile-id {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.profile-dropdown-icon {
    font-size: 0.8rem;
    color: var(--text-gray);
    transition: transform 0.3s;
}

.user-profile.active .profile-dropdown-icon {
    transform: rotate(180deg);
}

.notification-btn,
.support-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
    position: relative;
    transition: all 0.3s;
    border-radius: 8px;
}

.notification-btn:hover,
.support-btn:hover {
    background: rgba(107, 70, 193, 0.2);
    color: var(--primary-purple-light);
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--error-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: 70px;
    right: 30px;
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1001;
    overflow: hidden;
}

.profile-dropdown.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.dropdown-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-info {
    flex: 1;
}

.dropdown-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
}

.dropdown-id {
    font-size: 0.85rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-id-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s;
}

.copy-id-btn:hover {
    color: var(--primary-purple-light);
}

.dropdown-menu {
    padding: 10px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.dropdown-item:hover {
    background: rgba(107, 70, 193, 0.1);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--text-gray);
}

.dropdown-item.logout-item {
    color: var(--error-red);
}

.dropdown-item.logout-item i {
    color: var(--error-red);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin-left: auto;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark-bg);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--success-green);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.item-badge {
    background: var(--error-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

/* Notifications Panel */
.notifications-panel {
    position: fixed;
    top: 70px;
    right: 30px;
    width: 400px;
    max-height: 600px;
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    z-index: 1002;
    overflow: hidden;
}

.notifications-panel.show {
    display: flex;
    animation: slideDown 0.3s ease;
}

.panel-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

.close-panel {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s;
}

.close-panel:hover {
    color: var(--text-light);
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-item {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    transition: all 0.3s;
}

.notification-item:hover {
    border-color: var(--primary-purple);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--error-red);
    border-radius: 50%;
}

.notification-date {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.notification-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
}

.notification-content {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.notification-expand {
    background: transparent;
    border: none;
    color: var(--primary-purple-light);
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.panel-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.btn-delete {
    flex: 1;
    padding: 10px;
    background: var(--error-red);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-delete:hover {
    background: #DC2626;
}

.btn-receive {
    flex: 1;
    padding: 10px;
    background: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-receive:hover {
    background: var(--primary-purple-light);
}

/* Support Popup */
.support-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    z-index: 1003;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.support-popup.show {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.support-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-purple-dark) 0%, var(--primary-purple) 50%, var(--primary-purple-light) 100%);
}

.support-logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.support-logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-light);
    letter-spacing: -1px;
}

.support-logo-highlight {
    color: var(--accent-yellow);
}

.support-logo-domain {
    font-size: 0.8rem;
    color: var(--accent-yellow);
    font-weight: 600;
}

.support-close {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s;
}

.support-close:hover {
    opacity: 0.7;
}

.support-content {
    padding: 25px;
}

.support-welcome {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.support-welcome h2 {
    font-size: 1.8rem;
    color: var(--text-light);
    font-weight: 700;
}

.waving-hand {
    font-size: 2rem;
    animation: wave 1s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

.support-message {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.support-service {
    background: var(--dark-bg);
    border-radius: 12px;
    padding: 20px;
}

.support-service h3 {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-agent {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.agent-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-purple-dark) 0%, var(--primary-purple-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-light);
}

.agent-info {
    flex: 1;
}

.agent-status {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.agent-status span:first-child {
    color: var(--text-light);
    font-weight: 600;
}

.status-online {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-yellow);
    font-size: 0.9rem;
}

.btn-send-message {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-purple-dark) 0%, var(--primary-purple) 50%, var(--primary-purple-light) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-send-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(107, 70, 193, 0.5);
}

/* Support Float Button */
.support-float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s;
    z-index: 999;
}

.support-float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.support-popup.show ~ .support-float-btn {
    display: none;
}

/* Announcements Container */
.announcements-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: 90%;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.announcements-container .announcement-item {
    pointer-events: all;
}

.announcement-item {
    position: relative;
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-purple);
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.announcement-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
}

.announcement-content {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.announcement-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s;
}

.announcement-close:hover {
    color: var(--text-light);
}

/* Main Content */
.dashboard-main {
    padding: 30px;
    min-height: calc(100vh - 80px);
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Casino background - blue gradient */
.dashboard-main.has-casino-active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(30, 64, 175, 0.06) 50%, rgba(37, 99, 235, 0.03) 100%);
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--dark-surface);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.content-wrapper h1 {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.content-wrapper p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-center {
        display: none;
    }
    
    /* User balance will be shown in mobile section below */
}

@media (max-width: 768px) {
    :root {
        --header-logo-scale: 0.85;
    }
    
    .dashboard-main {
        padding: 0 !important; /* Remove padding on mobile */
        padding-bottom: 70px !important; /* Keep space for bottom nav */
        margin-left: 0 !important; /* Remove sidebar margin on mobile */
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .dashboard-header {
        padding: 10px 8px;
        flex-wrap: nowrap;
        gap: 8px;
        align-items: center;
        min-height: 55px;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .header-left {
        flex: 0 0 auto;
        order: 1;
        transform-origin: left center;
        min-width: 0;
        gap: 5px; /* Reduced gap on mobile */
    }
    
    .header-left .logo {
        height: 35px;
        max-width: 120px;
        transform: scale(var(--header-logo-scale));
        transform-origin: left center;
    }
    
    .logo-image {
        max-width: 120px;
        height: 100%;
    }
    
    .header-left .logo-text {
        font-size: 1.2rem;
    }
    
    .header-left .logo-domain {
        font-size: 0.65rem;
    }
    
    /* Scale logo further on very small screens */
    @media (max-width: 480px) {
        :root {
            --header-logo-scale: 0.75;
        }
        
        .header-left {
            gap: 3px; /* Even smaller gap */
        }
        
        .menu-toggle {
            padding: 3px;
            width: 26px;
            height: 26px;
        }
        
        .user-balance {
            max-width: 100px;
            padding: 4px 5px;
        }
    }
    
    @media (max-width: 360px) {
        :root {
            --header-logo-scale: 0.65;
        }
        
        .header-left {
            gap: 2px; /* Minimal gap */
        }
        
        .menu-toggle {
            padding: 2px;
            width: 24px;
            height: 24px;
        }
        
        .user-balance {
            max-width: 90px;
            padding: 3px 4px;
        }
    }
    
    .menu-toggle {
        font-size: 1rem;
        padding: 4px; /* Reduced padding on mobile */
        width: 28px; /* Smaller width */
        height: 28px; /* Smaller height */
        flex-shrink: 0;
        margin: 0;
    }
    
    /* Hide navigation buttons on mobile */
    .header-center {
        display: none;
    }
    
    /* Header right - aligned properly with scale */
    .header-right {
        order: 2;
        flex: 1;
        justify-content: flex-end;
        align-items: center;
        gap: 4px; /* Reduced gap on mobile */
        min-width: 0;
        transform-origin: right center;
    }
    
    /* Buttons - scaled to fit */
    .btn-login,
    .btn-register {
        padding: 8px 12px;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .btn-login span,
    .btn-register span {
        font-size: 0.8rem;
    }
    
    /* User balance - show on mobile, compact */
    .user-balance {
        display: flex !important;
        order: 1;
        flex: 0 0 auto;
        padding: 5px 6px; /* Reduced padding */
        gap: 4px; /* Reduced gap */
        align-items: center;
        flex-shrink: 0;
        min-width: 0;
        max-width: 110px; /* Slightly smaller max-width */
        background: var(--dark-bg);
        border: 1px solid var(--border-color);
        border-radius: 6px;
    }
    
    .balance-amount {
        font-size: 0.8rem;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: var(--text-light);
        line-height: 1.2;
    }
    
    .refresh-balance {
        font-size: 0.7rem;
        padding: 2px;
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-deposit {
        padding: 8px 10px;
        font-size: 0.8rem;
        order: 2;
        flex-shrink: 0;
    }
    
    .btn-deposit span {
        display: none;
    }
    
    .btn-deposit i {
        font-size: 0.9rem;
    }
    
    /* User profile - only avatar, scaled */
    .user-profile {
        order: 3;
        padding: 2px;
        gap: 0;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .profile-info {
        display: none;
    }
    
    .profile-avatar {
        width: 32px;
        height: 32px;
    }
    
    .profile-dropdown-icon.desktop-only {
        display: none;
    }
    
    .notification-btn,
    .support-btn {
        padding: 6px;
        font-size: 0.9rem;
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    
    .notification-btn {
        order: 4;
    }
    
    .support-btn {
        order: 5;
    }
    
    .profile-dropdown {
        right: 10px;
        width: calc(100% - 20px);
        max-width: 320px;
    }
    
    .notifications-panel {
        right: 10px;
        width: calc(100% - 20px);
        max-width: 400px;
    }
    
    .support-popup {
        right: 10px;
        width: calc(100% - 20px);
        max-width: 400px;
    }
    
    .announcements-container {
        width: calc(100% - 20px);
        left: 10px;
        transform: translate(-50%, -50%);
    }
    
    /* Mobile Bottom Navigation - Redesigned */
    .mobile-bottom-nav {
        display: flex;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: var(--dark-surface, #16213E);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 6px 0;
        padding-bottom: max(6px, env(safe-area-inset-bottom));
        z-index: 1000;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
        justify-content: space-around;
        align-items: flex-end;
        box-sizing: border-box;
        overflow: visible;
        transform: translateY(0) !important; /* Keep it at bottom */
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 6px 10px;
        color: rgba(255, 255, 255, 0.5);
        text-decoration: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        flex: 1;
        min-width: 0;
        max-width: 20%;
        box-sizing: border-box;
        position: relative;
        border-radius: 12px;
    }
    
    .mobile-nav-item i {
        font-size: 1.3rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }
    
    .mobile-nav-item span {
        font-size: 0.65rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        letter-spacing: 0.3px;
    }
    
    .mobile-nav-item:hover {
        color: rgba(255, 255, 255, 0.8);
        background: rgba(255, 255, 255, 0.05);
    }
    
    .mobile-nav-item:hover i {
        transform: translateY(-2px) scale(1.1);
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    }
    
    .mobile-nav-item.active {
        color: #3b82f6;
        background: rgba(59, 130, 246, 0.15);
    }
    
    .mobile-nav-item.active i {
        color: #3b82f6;
        transform: scale(1.15);
        filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.6));
    }
    
    .mobile-nav-item.active span {
        color: #3b82f6;
        font-weight: 700;
    }
    
    .mobile-nav-item:active {
        transform: scale(0.92);
    }
    
    /* Center button (Esportes) - Round and larger with enhanced design */
    .mobile-nav-item.mobile-nav-center {
        flex: 0 0 auto;
        width: 65px;
        height: 65px;
        min-width: 65px;
        max-width: 65px;
        border-radius: 50%;
        background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6),
                    0 2px 8px rgba(0, 0, 0, 0.3);
        padding: 6px;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        position: relative;
        z-index: 10;
        transform: translateY(0);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-nav-item.mobile-nav-center::before {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(59, 130, 246, 0.3));
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-nav-item.mobile-nav-center:hover::before {
        opacity: 1;
    }
    
    .mobile-nav-item.mobile-nav-center .sports-icon-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .mobile-nav-item.mobile-nav-center .sports-icon-wrapper i.fa-futbol {
        font-size: 1.4rem;
        color: #ffffff;
        line-height: 1;
        position: relative;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }
    
    .mobile-nav-item.mobile-nav-center span {
        font-size: 0.65rem;
        font-weight: 700;
        color: #ffffff;
        white-space: nowrap;
        text-align: center;
        line-height: 1;
        margin-top: 2px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-nav-item.mobile-nav-center.active {
        background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
        box-shadow: 0 8px 24px rgba(59, 130, 246, 0.8),
                    0 4px 12px rgba(0, 0, 0, 0.4);
        transform: translateY(0) scale(1.05);
    }
    
    .mobile-nav-item.mobile-nav-center.active .sports-icon-wrapper i {
        transform: scale(1.1);
        filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
    }
    
    .mobile-nav-item.mobile-nav-center.active::before {
        opacity: 1;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(96, 165, 250, 0.5));
    }
    
    .mobile-nav-item.mobile-nav-center:active {
        transform: translateY(0) scale(0.95);
        box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5);
    }
    
    /* Ensure other nav items stay aligned */
    .mobile-nav-item:not(.mobile-nav-center) {
        padding-bottom: 6px;
    }
    
    /* Add padding to main content on mobile to account for bottom nav */
    .dashboard-main {
        padding-bottom: 70px !important; /* Keep space for bottom nav */
    }
    
    /* Remove dashboard-main interference when sports is active */
    #sportsContent.active ~ .dashboard-main,
    body:has(#sportsContent.active) .dashboard-main {
        padding: 0 !important;
        margin: 0 !important;
        margin-left: 0 !important;
        max-width: none !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    /* Sports content on mobile - between header and navbar */
    #sportsContent.active {
        position: fixed !important;
        left: 0 !important;
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 999 !important;
        overflow: hidden !important;
    }
    
    #sportsContent.active iframe {
        width: 100% !important;
        height: 100% !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
}

/* Sports Loading Screen - Global */
.sports-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0F0F23 0%, #1A1A2E 50%, #16213E 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.sports-loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.sports-loading-logo {
    width: 200px;
    height: auto;
    max-width: 80%;
    margin-bottom: 40px;
    animation: logoPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(37, 99, 235, 0.5));
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.sports-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(37, 99, 235, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 30px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.sports-loading-text {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: textFade 2s ease-in-out infinite;
}

@keyframes textFade {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.sports-loading-dots {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.sports-loading-dot {
    width: 10px;
    height: 10px;
    background: #3b82f6;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.sports-loading-dot:nth-child(1) {
    animation-delay: 0s;
}

.sports-loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.sports-loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Hide mobile bottom nav on desktop */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none;
    }
    
    .dashboard-main {
        padding-bottom: 0;
    }
}

