/* Header Desktop Styles - Custom for Large Screens - Updated Color Scheme */

/* RTL Support - Enhanced */
[dir="rtl"] .header-desktop {
    direction: rtl;
}

[dir="rtl"] .nav-links-container-desktop {
    flex-direction: row-reverse;
}

[dir="rtl"] .action-section-desktop {
    flex-direction: row-reverse;
}

[dir="rtl"] .user-info-desktop {
    align-items: flex-end;
}

[dir="rtl"] .dropdown-arrow-desktop {
    transform: rotate(90deg);
}

[dir="rtl"] .dropdown-content-desktop {
    left: auto;
    right: 0;
}

[dir="rtl"] .dropdown-item-desktop {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .dropdown-item-desktop::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .dropdown-item-desktop:hover {
    padding-left: 1rem;
    padding-right: 1.5rem;
    transform: translateX(-5px);
}

[dir="rtl"] .dropdown-item-desktop.active {
    transform: translateX(-5px);
}

[dir="rtl"] .notification-dropdown-desktop {
    right: auto;
    left: 0;
}

[dir="rtl"] .notification-item-desktop {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .notification-item-desktop::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .notification-item-desktop:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .user-dropdown-trigger-desktop {
    flex-direction: row-reverse;
}

[dir="rtl"] .user-info-desktop {
    align-items: flex-end;
}

[dir="rtl"] .dropdown-arrow-desktop {
    transform: rotate(90deg);
}

[dir="rtl"] .user-dropdown-menu-desktop {
    right: auto;
    left: 0;
}

[dir="rtl"] .user-dropdown-header-desktop {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .balance-item-desktop {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .dropdown-menu-item-desktop {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .dropdown-menu-item-desktop::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .dropdown-menu-item-desktop:hover {
    padding-left: 1rem;
    padding-right: 1.75rem;
    transform: translateX(-5px);
}

[dir="rtl"] .dropdown-menu-item-desktop.active {
    transform: translateX(-5px);
}

[dir="rtl"] .logout-btn-desktop:hover i {
    transform: translateX(-3px);
}

/* Enhanced RTL Active States */
[dir="rtl"] .nav-item-desktop.active {
    transform: translateY(-2px);
}

[dir="rtl"] .nav-item-desktop.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 50%;
    transform: translateX(50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-game-neon-cyan), var(--color-game-purple-400));
    border-radius: 1px;
    animation: activeGlow 2s ease-in-out infinite alternate;
}

/* LTR Support for consistency */
[dir="ltr"] .header-desktop,
.header-desktop {
    direction: ltr;
}

[dir="ltr"] .nav-item-desktop.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-game-neon-cyan), var(--color-game-purple-400));
    border-radius: 1px;
    animation: activeGlow 2s ease-in-out infinite alternate;
}

/* Enhanced RTL/LTR Layout Support */
.header-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gradient-game-dark);
    color: #ffffff;
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 80px;
    border-bottom: 3px solid var(--color-game-purple-600);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: visible;
    transition: transform 0.3s ease;
}

/* RTL Layout Reordering */
[dir="rtl"] .header-desktop {
    flex-direction: row-reverse;
}

[dir="ltr"] .header-desktop {
    flex-direction: row;
}

/* RTL Logo Section */
[dir="rtl"] .logo-section-desktop {
    order: 3;
}

[dir="ltr"] .logo-section-desktop {
    order: 1;
}

/* RTL Navigation Section */
[dir="rtl"] .nav-section-desktop {
    order: 2;
}

[dir="ltr"] .nav-section-desktop {
    order: 2;
}

/* RTL Action Section */
[dir="rtl"] .action-section-desktop {
    order: 1;
}

[dir="ltr"] .action-section-desktop {
    order: 3;
}

/* RTL Navigation Links Container */
[dir="rtl"] .nav-links-container-desktop {
    flex-direction: row-reverse;
}

[dir="ltr"] .nav-links-container-desktop {
    flex-direction: row;
}

/* RTL Action Section Internal Layout */
[dir="rtl"] .auth-buttons-group-desktop {
    flex-direction: row-reverse;
}

[dir="ltr"] .auth-buttons-group-desktop {
    flex-direction: row;
}

/* RTL Notification Icons */
[dir="rtl"] .notification-icons-desktop {
    flex-direction: row-reverse;
}

[dir="ltr"] .notification-icons-desktop {
    flex-direction: row;
}

/* RTL User Dropdown Container */
[dir="rtl"] .user-dropdown-container-desktop {
    order: 1;
}

[dir="ltr"] .user-dropdown-container-desktop {
    order: 2;
}

/* RTL Language Switcher */
[dir="rtl"] .language-switcher {
    order: 3;
}

[dir="ltr"] .language-switcher {
    order: 1;
}

/* RTL Action Divider */
[dir="rtl"] .action-divider-desktop {
    order: 2;
}

[dir="ltr"] .action-divider-desktop {
    order: 2;
}

/* RTL Auth Buttons Group */
[dir="rtl"] .auth-buttons-group-desktop {
    order: 1;
}

[dir="ltr"] .auth-buttons-group-desktop {
    order: 3;
}

/* RTL User Info */
[dir="rtl"] .user-info-desktop {
    text-align: right;
}

[dir="ltr"] .user-info-desktop {
    text-align: left;
}

/* RTL Dropdown Content */
[dir="rtl"] .dropdown-content-desktop {
    text-align: right;
}

[dir="ltr"] .dropdown-content-desktop {
    text-align: left;
}

/* RTL Balance Grid */
[dir="rtl"] .balance-grid-desktop {
    direction: rtl;
}

[dir="ltr"] .balance-grid-desktop {
    direction: ltr;
}

/* Body-based RTL/LTR Layout Support */
.rtl-layout .header-desktop {
    flex-direction: row-reverse;
}

.ltr-layout .header-desktop {
    flex-direction: row;
}

.rtl-layout .logo-section-desktop {
    order: 3;
}

.ltr-layout .logo-section-desktop {
    order: 1;
}

.rtl-layout .nav-section-desktop {
    order: 2;
}

.ltr-layout .nav-section-desktop {
    order: 2;
}

.rtl-layout .action-section-desktop {
    order: 1;
}

.ltr-layout .action-section-desktop {
    order: 3;
}

.rtl-layout .nav-links-container-desktop {
    flex-direction: row-reverse;
}

.ltr-layout .nav-links-container-desktop {
    flex-direction: row;
}

.rtl-layout .action-section-desktop {
    flex-direction: row-reverse;
}

.ltr-layout .action-section-desktop {
    flex-direction: row;
}

.rtl-layout .auth-buttons-group-desktop {
    flex-direction: row-reverse;
}

.ltr-layout .auth-buttons-group-desktop {
    flex-direction: row;
}

.rtl-layout .notification-icons-desktop {
    flex-direction: row-reverse;
}

.ltr-layout .notification-icons-desktop {
    flex-direction: row;
}

.rtl-layout .user-info-desktop {
    text-align: right;
}

.ltr-layout .user-info-desktop {
    text-align: left;
}

.rtl-layout .dropdown-content-desktop {
    text-align: right;
}

.ltr-layout .dropdown-content-desktop {
    text-align: left;
}

/* Logo Section */
.logo-section-desktop {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.logo-container-desktop {
    position: relative;
}

.logo-wrapper-desktop {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-game-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.logo-wrapper-desktop:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: var(--shadow-game-purple);
}

.logo-inner-desktop img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.logo-text-desktop {
    display: flex;
    flex-direction: column;
}

.logo-title-desktop {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-game-neon-cyan);
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
    background: linear-gradient(45deg, var(--color-game-neon-cyan), var(--color-game-purple-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle-desktop {
    font-size: 0.875rem;
    color: #a0a0a0;
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* Navigation Section */
.nav-section-desktop {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 2rem;
}

.nav-links-container-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item-desktop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.nav-item-desktop::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.2), transparent);
    transition: left 0.5s;
}

.nav-item-desktop:hover::before {
    left: 100%;
}

.nav-item-desktop:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(147, 51, 234, 0.1));
    color: var(--color-game-neon-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.nav-item-desktop:hover i {
    color: var(--color-game-neon-cyan);
    transform: scale(1.1) rotate(5deg);
    transition: all 0.3s ease;
}

.nav-item-desktop:hover span {
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.nav-item-desktop.active {
    background: linear-gradient(135deg, var(--color-game-neon-cyan), var(--color-game-neon-cyan-dark));
    color: var(--color-text-primary);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
    animation: activeGlow 2s ease-in-out infinite alternate;
}

.nav-item-desktop.active i {
    color: var(--color-text-primary);
    animation: iconPulse 1.5s ease-in-out infinite;
}

.nav-item-desktop.active span {
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.nav-item-desktop i {
    font-size: 1.1rem;
    z-index: 1;
    position: relative;
    transition: transform 0.3s ease;
}

.nav-item-desktop:hover i {
    transform: scale(1.1) rotate(5deg);
}

.nav-item-desktop.primary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

/* Dropdown Styles */
.dropdown-desktop {
    position: relative;
}

.dropdown-content-desktop {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--gradient-game-dark);
    border: 2px solid var(--color-game-purple-600);
    border-radius: 12px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    box-shadow: var(--shadow-game-purple);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

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

.dropdown-item-desktop {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    cursor: pointer;
}

.dropdown-item-desktop::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #4ecdc4;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-item-desktop:hover::before {
    transform: scaleY(1);
}

.dropdown-item-desktop:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(147, 51, 234, 0.1));
    color: var(--color-game-neon-cyan);
    padding-left: 1.5rem;
    transform: translateX(5px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 255, 255, 0.15);
}

.dropdown-item-desktop:hover i {
    color: var(--color-game-neon-cyan);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.dropdown-item-desktop:hover span {
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.dropdown-item-desktop.active {
    background: linear-gradient(135deg, var(--color-game-neon-cyan), var(--color-game-neon-cyan-dark));
    color: var(--color-text-primary);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    transform: translateX(5px);
    animation: slideInActive 0.3s ease-out;
}

.dropdown-item-desktop.active i {
    color: var(--color-text-primary);
    animation: iconPulse 1.5s ease-in-out infinite;
}

.dropdown-item-desktop.active span {
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.dropdown-item-desktop:last-child {
    border-bottom: none;
}

.dropdown-item-desktop i {
    font-size: 1rem;
    color: #4ecdc4;
    transition: transform 0.3s ease;
}

.dropdown-item-desktop:hover i {
    transform: scale(1.1);
}

.dropdown-arrow-desktop {
    transition: all 0.3s ease;
    color: var(--color-game-neon-cyan);
}

.dropdown-desktop:hover .dropdown-arrow-desktop {
    transform: rotate(180deg);
    color: var(--color-game-purple-600);
}

/* Action Section */
.action-section-desktop {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

/* RTL Action Section Layout */
[dir="rtl"] .action-section-desktop {
    flex-direction: row-reverse;
}

[dir="ltr"] .action-section-desktop {
    flex-direction: row;
}


.action-divider-desktop {
    width: 2px;
    height: 40px;
    background: var(--gradient-game-secondary);
    border-radius: 1px;
}

.auth-buttons-group-desktop {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Notification Styles */
.notification-icons-desktop {
    display: flex;
    gap: 0.5rem;
}

.notification-icon-container-desktop {
    position: relative;
}

.notification-btn-desktop {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.625rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(5px);
}

.notification-btn-desktop:hover {
    background: var(--gradient-game-primary);
    border-color: var(--color-game-neon-cyan);
    transform: translateY(-2px);
    box-shadow: var(--shadow-game-purple);
}

.notification-btn-desktop i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.notification-btn-desktop:hover i {
    transform: scale(1.1);
}

.notification-badge-desktop {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gradient-game-primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid var(--color-game-dark-surface);
    box-shadow: var(--shadow-game-purple);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 0 10px var(--color-game-purple-600); }
    100% { transform: scale(1); }
}

.notification-dropdown-desktop {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--gradient-game-dark);
    border: 2px solid var(--color-game-purple-600);
    border-radius: 12px;
    width: 320px;
    max-height: 450px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    box-shadow: var(--shadow-game-purple);
    backdrop-filter: blur(15px);
}

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

.notification-header-desktop {
    padding: 1.25rem;
    border-bottom: 2px solid rgba(147, 51, 234, 0.3);
    background: var(--gradient-game-primary);
}

.notification-header-desktop h4 {
    margin: 0;
    color: var(--color-game-neon-cyan);
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

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

.notification-item-desktop {
    display: flex;
    gap: 0.875rem;
    padding: 1.125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.notification-item-desktop::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gradient-game-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.notification-item-desktop:hover::before {
    transform: scaleY(1);
}

.notification-item-desktop:hover {
    background: rgba(0, 255, 255, 0.05);
    transform: translateX(5px);
}

.notification-item-desktop:last-child {
    border-bottom: none;
}

.notification-icon-desktop {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-game-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-game-neon-cyan);
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: var(--shadow-game-purple);
}

.notification-content-desktop {
    flex: 1;
}

.notification-text-desktop {
    color: #ffffff;
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.375rem;
    font-weight: 400;
}

.notification-time-desktop {
    color: #a0a0a0;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* User Dropdown Styles - Professional Desktop Version */
.user-dropdown-container-desktop {
    position: relative;
}

.user-dropdown-trigger-desktop {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.625rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.user-dropdown-trigger-desktop::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.2), transparent);
    transition: left 0.5s;
}

.user-dropdown-trigger-desktop:hover::before {
    left: 100%;
}

.user-dropdown-trigger-desktop:hover {
    background: var(--gradient-game-primary);
    border-color: var(--color-game-neon-cyan);
    transform: translateY(-2px);
    box-shadow: var(--shadow-game-purple);
}

.user-dropdown-trigger-desktop.loading {
    opacity: 0.7;
    pointer-events: none;
}

.user-dropdown-trigger-desktop.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--color-game-neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.user-avatar-desktop {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-game-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-game-dark-surface);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-game-purple);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.user-dropdown-trigger-desktop:hover .user-avatar-desktop {
    transform: scale(1.1);
}

.user-info-desktop {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    flex: 1;
}

.user-greeting-desktop {
    font-size: 0.75rem;
    color: #a0a0a0;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-name-desktop {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.dropdown-arrow-desktop {
    transition: all 0.3s ease;
    color: var(--color-game-neon-cyan);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.user-dropdown-trigger-desktop[aria-expanded="true"] .dropdown-arrow-desktop {
    transform: rotate(180deg);
    color: var(--color-game-purple-600);
}

.user-dropdown-menu-desktop {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--gradient-game-dark);
    border: 2px solid var(--color-game-purple-600);
    border-radius: 15px;
    width: 320px;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    box-shadow: var(--shadow-game-purple);
    backdrop-filter: blur(15px);
    display: none;
}

.user-dropdown-menu-desktop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    display: block;
}

.user-dropdown-header-desktop {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 2px solid rgba(147, 51, 234, 0.3);
    background: var(--gradient-game-primary);
    position: sticky;
    top: 0;
    z-index: 1;
}

.user-avatar-large-desktop {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--gradient-game-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-game-dark-surface);
    font-size: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-game-purple);
    flex-shrink: 0;
}

.user-details-desktop {
    flex: 1;
    min-width: 0;
}

.user-details-desktop h4 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status-desktop {
    color: var(--color-game-neon-cyan);
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.balance-section-desktop {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.balance-title-desktop {
    margin: 0 0 1rem 0;
    color: var(--color-game-neon-cyan);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.balance-grid-desktop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.balance-item-desktop {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    padding: 0.625rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: default;
}

.balance-item-desktop:hover {
    background: var(--gradient-game-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-game-purple);
}

.balance-icon-desktop {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.balance-icon-desktop.balance {
    background: linear-gradient(45deg, #9c27b0, #ba68c8);
    color: white;
    box-shadow: 0 0 15px rgba(156, 39, 176, 0.3);
}

.balance-icon-desktop.gift_balance {
    background: linear-gradient(45deg, #ff9800, #ffb74d);
    color: #1a1a2e;
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.3);
}

.balance-icon-desktop.silk_gift {
    background: linear-gradient(45deg, #e91e63, #f06292);
    color: white;
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.3);
}

.balance-icon-desktop.silk_own {
    background: linear-gradient(45deg, #ffeb3b, #fff176);
    color: #1a1a2e;
    box-shadow: 0 0 15px rgba(255, 235, 59, 0.3);
}

.balance-info-desktop {
    flex: 1;
    min-width: 0;
}

.balance-label-desktop {
    font-size: 0.75rem;
    color: #a0a0a0;
    display: block;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.balance-amount-desktop {
    font-weight: bold;
    color: #ffffff;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-menu-items-desktop {
    padding: 0.625rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.dropdown-menu-item-desktop {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.dropdown-menu-item-desktop:focus {
    outline: 2px solid var(--color-game-neon-cyan);
    outline-offset: -2px;
}

.dropdown-menu-item-desktop::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gradient-game-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-menu-item-desktop:hover::before,
.dropdown-menu-item-desktop:focus::before {
    transform: scaleY(1);
}

.dropdown-menu-item-desktop:hover,
.dropdown-menu-item-desktop:focus {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(147, 51, 234, 0.1));
    color: var(--color-game-neon-cyan);
    padding-left: 1.75rem;
    transform: translateX(5px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 255, 255, 0.15);
}

.dropdown-menu-item-desktop:hover i,
.dropdown-menu-item-desktop:focus i {
    color: var(--color-game-neon-cyan);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.dropdown-menu-item-desktop:hover span,
.dropdown-menu-item-desktop:focus span {
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.dropdown-menu-item-desktop.active {
    background: linear-gradient(135deg, var(--color-game-neon-cyan), var(--color-game-neon-cyan-dark));
    color: var(--color-text-primary);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    transform: translateX(5px);
    animation: slideInActive 0.3s ease-out;
}

.dropdown-menu-item-desktop.active i {
    color: var(--color-text-primary);
    animation: iconPulse 1.5s ease-in-out infinite;
}

.dropdown-menu-item-desktop.active span {
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.dropdown-menu-item-desktop:last-child {
    border-bottom: none;
}

.dropdown-menu-item-desktop i {
    font-size: 1rem;
    color: var(--color-game-neon-cyan);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.dropdown-menu-item-desktop:hover i,
.dropdown-menu-item-desktop:focus i {
    transform: scale(1.1);
}

.dropdown-divider-desktop {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-game-purple-600), transparent);
    margin: 0.625rem 0;
}

.dropdown-logout-form-desktop {
    padding: 0 1.25rem 1.25rem 1.25rem;
}

.logout-btn-desktop {
    width: 100%;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.logout-btn-desktop:hover {
    background: linear-gradient(135deg, #ff5252, #ff3838);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

.logout-btn-desktop:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

.logout-btn-desktop i {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logout-btn-desktop:hover i {
    transform: translateX(3px);
}

/* Desktop balance styling with enhanced visual effects */
.gaming-balance-display.desktop {
    width: auto;
    min-width: 320px;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(13, 71, 161, 0.1));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.gaming-balance-display.desktop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2196f3, #ff9800, #e91e63, #ffeb3b);
    animation: shimmer 3s linear infinite;
}

.gaming-balance-display.desktop .balance-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, max-content);
    grid-template-columns: repeat(4, minmax(0, max-content));
    gap: 1rem;
    align-items: center;
}

.gaming-balance-display.desktop .balance-item {
    min-width: 64px;
    padding: 0.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
}

.gaming-balance-display.desktop .balance-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.06),
        transparent
    );
    transition: left 0.6s ease;
}

.gaming-balance-display.desktop .balance-item:hover::before {
    left: 100%;
}

.gaming-balance-display.desktop .balance-item:hover {
    transform: translateY(-1px) scale(1.01);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border-color: rgba(255, 255, 255, 0.15);
}

/* Individual balance type styling with contained colors */
.gaming-balance-display.desktop .balance-item.balance {
    border-color: rgba(33, 150, 243, 0.2);
}

.gaming-balance-display.desktop .balance-item.balance:hover {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.08), rgba(33, 150, 243, 0.03));
    border-color: rgba(33, 150, 243, 0.3);
    box-shadow: inset 0 0 20px rgba(33, 150, 243, 0.1);
}

.gaming-balance-display.desktop .balance-item.gift_balance {
    border-color: rgba(255, 152, 0, 0.2);
}

.gaming-balance-display.desktop .balance-item.gift_balance:hover {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.08), rgba(255, 152, 0, 0.03));
    border-color: rgba(255, 152, 0, 0.3);
    box-shadow: inset 0 0 20px rgba(255, 152, 0, 0.1);
}

.gaming-balance-display.desktop .balance-item.silk_gift {
    border-color: rgba(233, 30, 99, 0.2);
}

.gaming-balance-display.desktop .balance-item.silk_gift:hover {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.08), rgba(233, 30, 99, 0.03));
    border-color: rgba(233, 30, 99, 0.3);
    box-shadow: inset 0 0 20px rgba(233, 30, 99, 0.1);
}

.gaming-balance-display.desktop .balance-item.silk_own {
    border-color: rgba(255, 235, 59, 0.2);
}

.gaming-balance-display.desktop .balance-item.silk_own:hover {
    background: linear-gradient(135deg, rgba(255, 235, 59, 0.08), rgba(255, 235, 59, 0.03));
    border-color: rgba(255, 235, 59, 0.3);
    box-shadow: inset 0 0 20px rgba(255, 235, 59, 0.1);
}

.gaming-balance-display.desktop .balance-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gaming-balance-display.desktop .balance-item:hover .balance-icon {
    transform: scale(1.05);
}

.gaming-balance-display.desktop .balance-info {
    flex: 0 0 auto;
    min-width: 2.5rem;
    text-align: center;
    overflow: hidden;
}

.gaming-balance-display.desktop .balance-amount {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.25rem;
    color: #ffffff;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.5),
        0 0 8px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.gaming-balance-display.desktop .balance-item:hover .balance-amount {
    transform: scale(1.02);
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.6),
        0 0 10px rgba(255, 255, 255, 0.2);
}

/* Responsive Adjustments for Large Screens */
@media (min-width: 1280px) {
    .header-desktop {
        padding: 1.25rem 3rem;
    }

    .nav-links-container-desktop {
        gap: 2.5rem;
    }

    .logo-title-desktop {
        font-size: 1.75rem;
    }

    .action-section-desktop {
        gap: 2rem;
    }

    .user-dropdown-menu-desktop {
        width: 320px;
    }
}

/* Scrolled State */
.header-desktop.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
    border-bottom-color: var(--color-game-purple-600);
}

/* Hide/Show on Scroll */
.header-desktop.hide {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.header-desktop.show {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notification-dropdown-desktop.show,
.user-dropdown-menu-desktop.show {
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar */
.notification-list-desktop::-webkit-scrollbar,
.user-dropdown-menu-desktop .balance-section-desktop .balance-grid-desktop::-webkit-scrollbar {
    width: 6px;
}

.notification-list-desktop::-webkit-scrollbar-track,
.user-dropdown-menu-desktop .balance-section-desktop .balance-grid-desktop::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.notification-list-desktop::-webkit-scrollbar-thumb,
.user-dropdown-menu-desktop .balance-section-desktop .balance-grid-desktop::-webkit-scrollbar-thumb {
    background: var(--gradient-game-primary);
    border-radius: 3px;
}

.notification-list-desktop::-webkit-scrollbar-thumb:hover,
.user-dropdown-menu-desktop .balance-section-desktop .balance-grid-desktop::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-game-secondary);
}

/* Enhanced Active States Animations */
@keyframes activeGlow {
    0% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
    }
}

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

@keyframes slideInActive {
    0% {
        transform: translateX(0);
        opacity: 0.7;
    }
    100% {
        transform: translateX(5px);
        opacity: 1;
    }
}

/* RTL Navigation Menu Order */
[dir="rtl"] .nav-item-desktop:nth-child(1) { order: 4; } /* Home */
[dir="rtl"] .nav-item-desktop:nth-child(2) { order: 3; } /* Download */
[dir="rtl"] .nav-item-desktop:nth-child(3) { order: 2; } /* Ranking */
[dir="rtl"] .dropdown-desktop { order: 1; } /* More dropdown */

/* LTR Navigation Menu Order (default) */
[dir="ltr"] .nav-item-desktop:nth-child(1) { order: 1; } /* Home */
[dir="ltr"] .nav-item-desktop:nth-child(2) { order: 2; } /* Download */
[dir="ltr"] .nav-item-desktop:nth-child(3) { order: 3; } /* Ranking */
[dir="ltr"] .dropdown-desktop { order: 4; } /* More dropdown */

/* Alternative RTL Menu Order - More logical for Arabic users */
[dir="rtl"] .nav-links-container-desktop {
    flex-direction: row-reverse;
}

/* RTL Menu Items Specific Styling */
[dir="rtl"] .nav-item-desktop {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-item-desktop i {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="ltr"] .nav-item-desktop i {
    margin-right: 0.5rem;
    margin-left: 0;
}

/* Balance Display Below Header */
.balance-display-below-header {
    position: fixed;
    top: 110px;
    z-index: 999;
    display: flex;
    justify-content: flex-end;
}

[dir="ltr"] .balance-display-below-header {
    right: 20px;
}

[dir="rtl"] .balance-display-below-header {
    left: 20px;
}

/* Hide on medium and smaller screens */
@media (max-width: 1279px) {
    .balance-display-below-header {
        display: none;
    }
}

/* Gaming Balance Display - Miniaturized Version */
.gaming-balance-display {
    background: linear-gradient(145deg,
        rgba(26, 26, 46, 0.95),
        rgba(10, 10, 15, 0.9));
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    box-shadow:
        0 10px 30px rgba(147, 51, 234, 0.2),
        0 0 20px rgba(0, 255, 255, 0.2);
    width: 250px;
    margin: 0 auto;
    position: relative;
}

.balance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.balance-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Balance Items - Updated for new currency keys */
.balance-item.balance {
    border-color: rgba(156, 39, 176, 0.3); /* Purple for Balance */
    box-shadow: 0 0 10px rgba(156, 39, 176, 0.2);
}

.balance-item.balance .balance-icon {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
    color: #fff;
}

.balance-item.balance .balance-amount {
    color: #9c27b0;
    text-shadow: 0 0 8px rgba(156, 39, 176, 0.5);
}

.balance-item.balance .balance-label {
    color: #ba68c8;
}

/* Gift Balance */
.balance-item.gift_balance {
    border-color: rgba(255, 152, 0, 0.3); /* Orange for Gift Balance */
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.2);
}

.balance-item.gift_balance .balance-icon {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    color: #000;
}

.balance-item.gift_balance .balance-amount {
    color: #ff9800;
    text-shadow: 0 0 8px rgba(255, 152, 0, 0.5);
}

.balance-item.gift_balance .balance-label {
    color: #ffb74d;
}

/* Silk Gift (4T Donate) */
.balance-item.silk_gift {
    border-color: rgba(233, 30, 99, 0.3); /* Pink/Red for 4T Donate */
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.2);
}

.balance-item.silk_gift .balance-icon {
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: #fff;
}

.balance-item.silk_gift .balance-amount {
    color: #e91e63;
    text-shadow: 0 0 8px rgba(233, 30, 99, 0.5);
}

.balance-item.silk_gift .balance-label {
    color: #f06292;
}

/* Silk Own */
.balance-item.silk_own {
    border-color: rgba(255, 235, 59, 0.3); /* Yellow for Silk */
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.2);
}

.balance-item.silk_own .balance-icon {
    background: linear-gradient(135deg, #ffeb3b, #fff176);
    color: #000;
}

.balance-item.silk_own .balance-amount {
    color: #ffeb3b;
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.5);
}

.balance-item.silk_own .balance-label {
    color: #fff176;
}

.balance-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.balance-info {
    flex: 1;
    text-align: left;
    position: relative;
    z-index: 2;
}

.balance-amount {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    min-width: 3ch;
    text-align: center;
}

.balance-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Animation for balance updates - Removed */
/* .balance-item.updated {
    animation: balanceUpdate 0.6s ease-out;
}

@keyframes balanceUpdate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px currentColor;
    }
    100% {
        transform: scale(1);
    }
} */

/* Pulse animation for icons - Removed */
/* @keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
} */

/* Admin Panel */
.admin-panel {
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    padding: 1rem;
    min-width: 200px;
    text-align: center;
    z-index: 10;
}

.admin-panel button {
    background: #059669;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.admin-panel div {
    color: #00ff88;
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .gaming-balance-display {
        width: 350px;
        padding: 0.75rem;
    }

    .balance-grid {
        gap: 0.5rem;
        grid-template-columns: repeat(2, 1fr);
    }

    .balance-item {
        padding: 0.5rem;
    }

    .balance-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .balance-amount {
        font-size: 1.2rem;
    }

    .balance-label {
        font-size: 0.7rem;
    }
}

/* RTL Support */
[dir="rtl"] .admin-panel {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

[dir="rtl"] .balance-info {
    text-align: right;
}

/* SVG Balance Icons Styling - Contained effects */
.balance-icon-svg {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
    overflow: hidden;
}

.gaming-balance-display.desktop .balance-item:hover .balance-icon-svg {
    transform: scale(1.03);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.gaming-balance-display.tablet .balance-item:hover .balance-icon-svg {
    transform: scale(1.02);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

/* SVG Animation keyframes - Subtle effects */
@keyframes svgPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.balance-icon-svg:hover {
    animation: svgPulse 2s infinite ease-in-out;
}

/* Balance Toggle Button Styles */
.balance-container-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.balance-toggle-btn {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(33, 150, 243, 0.05));
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.balance-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.25), rgba(33, 150, 243, 0.1));
    border-color: rgba(33, 150, 243, 0.4);
    color: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

.balance-toggle-btn.desktop {
    width: 40px;
    height: 40px;
}

.balance-toggle-btn.tablet {
    width: 36px;
    height: 36px;
}

/* Balance Visibility Animations */
.balance-visible {
    animation: balanceSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes balanceSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.balance-enter {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.balance-enter-start {
    opacity: 0;
    transform: translateX(-20px) scale(0.95);
}

.balance-enter-end {
    opacity: 1;
    transform: translateX(0) scale(1);
}

