/* Navigation Plus - Top Bar */
.nav-plus {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: #0F1419;
    border-bottom: 1px solid #1F2329;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
}

.nav-plus-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-plus-link {
    font-size: 0.688rem;
    font-weight: 600;
    text-decoration: none;
    color: #8B92A0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-plus-link.rewards {
    color: #22C55E;
}

.nav-plus-link:hover {
    color: #FFFFFF;
}

.nav-plus-link.rewards:hover {
    color: #16A34A;
}

.promo-code-btn {
    background: transparent;
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #FFC107;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.promo-code-btn:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.5);
}

.nav-plus-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.language-selector:hover {
    background: rgba(255, 255, 255, 0.05);
}

.language-current {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.688rem;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
}

.language-flag {
    width: 16px;
    height: 12px;
    border-radius: 2px;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #15191F;
    border: 1px solid #2A2D35;
    border-radius: 6px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 100px;
}

.language-selector:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.688rem;
    font-weight: 600;
    color: #8B92A0;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.language-option:hover {
    background: rgba(255, 193, 7, 0.05);
    color: #FFFFFF;
}

.language-option.active {
    color: #FFC107;
    background: rgba(255, 193, 7, 0.1);
}

.level-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.level-label {
    font-size: 0.688rem;
    color: #8B92A0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.level-number {
    font-size: 0.688rem;
    font-weight: 700;
    color: #FFC107;
    min-width: 16px;
}

.level-progress {
    width: 50px;
    height: 4px;
    background: #1A1D24;
    border-radius: 2px;
    overflow: hidden;
}

.level-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFC107, #F59E0B);
    border-radius: 2px;
    transition: width 0.3s;
}

/* Update main header position */
.header {
    top: 36px;
}

/* Update hero slider position */
.hero-slider {
    margin-top: 101px;
}

/* Update side chat position */
.side-chat {
    top: 101px;
    height: calc(100vh - 101px);
}

/* Balance Display in Main Header - IMPROVED WITH CLICK */
.balance-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid #2A2D35;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.balance-display:hover {
    border-color: #FFC107;
    background: rgba(255, 193, 7, 0.05);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.2);
}

.balance-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #FFC107, #F59E0B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.688rem;
    color: #000;
    flex-shrink: 0;
}

.balance-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.2;
}

.balance-label {
    font-size: 0.625rem;
    color: #8B92A0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.balance-amount {
    font-size: 0.875rem;
    font-weight: 700;
    color: #FFFFFF;
}

.balance-currency {
    font-size: 0.688rem;
    color: #FFC107;
    margin-left: 0.25rem;
    font-weight: 700;
}

/* Arrow indicator for clickable balance */
.balance-arrow {
    margin-left: 0.25rem;
    color: #8B92A0;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.balance-display:hover .balance-arrow {
    color: #FFC107;
    transform: translateY(2px);
}

/* REMOVED: Currency Dropdown - Now using Modal instead */
.currency-dropdown {
    display: none !important;
}

/* Deposit and Withdraw Buttons */
.wallet-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deposit-btn {
    background: linear-gradient(135deg, #22C55E, #16A34A);
    border: none;
    color: #FFFFFF;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.deposit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.withdraw-btn {
    background: transparent;
    border: 1px solid #2A2D35;
    color: #8B92A0;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.withdraw-btn:hover {
    border-color: #3A3E46;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.02);
}

/* ============================================ */
/* CURRENCY SELECTION MODAL */
/* ============================================ */

.currency-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    animation: modalFadeIn 0.3s ease;
}

.currency-modal-overlay.open {
    display: flex !important;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.currency-modal-container {
    background: #16181D;
    border: 1px solid #2A2D35;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    padding: 32px 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.currency-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #8B92A0;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.currency-modal-close:hover {
    background: #1F2329;
    color: #FFFFFF;
    transform: rotate(90deg);
}

.currency-modal-title {
    text-align: center;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.currency-modal-subtitle {
    text-align: center;
    color: #8B92A0;
    font-size: 13px;
    margin-bottom: 24px;
}

.currency-modal-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.currency-modal-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #1A1D24;
    border: 2px solid #2A2D35;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.currency-modal-option:hover {
    border-color: #FFC107;
    background: rgba(255, 193, 7, 0.05);
}

.currency-modal-option.selected {
    border-color: #FFC107;
    background: rgba(255, 193, 7, 0.1);
}

.currency-modal-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.currency-radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #2A2D35;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
}

.currency-modal-option.selected .currency-radio-custom {
    border-color: #FFC107;
}

.currency-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFC107;
    transition: transform 0.3s;
}

.currency-modal-option.selected .currency-radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.currency-modal-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    flex-shrink: 0;
}

.currency-modal-icon.coins-icon {
    background: linear-gradient(135deg, #FFC107, #F59E0B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #000;
}

.currency-modal-icon.flag-icon {
    border-radius: 4px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.currency-modal-info {
    flex: 1;
}

.currency-modal-name {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.currency-modal-code {
    color: #8B92A0;
    font-size: 12px;
    font-weight: 600;
}

.currency-modal-apply {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FFC107 0%, #F59E0B 100%);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.currency-modal-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.currency-modal-note {
    text-align: center;
    color: #8B92A0;
    font-size: 11px;
    line-height: 1.5;
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 1200px) {
    .nav-plus {
        padding: 0 2rem;
    }
}

@media (max-width: 968px) {
    .nav-plus {
        padding: 0 1rem;
        height: 32px;
    }
    
    .nav-plus-left,
    .nav-plus-right {
        gap: 1rem;
    }
    
    .level-indicator {
        display: none;
    }
    
    .promo-code-btn {
        padding: 0.25rem 0.625rem;
        font-size: 0.563rem;
    }
    
    .header {
        top: 32px;
    }
    
    .hero-slider {
        margin-top: 97px;
    }
    
    .side-chat {
        top: 97px;
        height: calc(100vh - 97px);
    }
}

@media (max-width: 768px) {
    .nav-plus {
        height: 30px;
    }
    
    .nav-plus-link {
        font-size: 0.625rem;
    }
    
    .language-selector,
    .promo-code-btn {
        display: none;
    }
    
    .nav-plus-left {
        gap: 0.75rem;
    }
    
    .header {
        top: 30px;
    }
    
    .hero-slider {
        margin-top: 95px;
    }
    
    .side-chat {
        top: 95px;
        height: calc(100vh - 95px);
    }
    
    .balance-display {
        padding: 0.375rem 0.625rem;
    }
    
    .balance-icon {
        width: 18px;
        height: 18px;
        font-size: 0.625rem;
    }
    
    .balance-amount {
        font-size: 0.75rem;
    }
    
    .balance-label {
        font-size: 0.563rem;
    }
    
    .wallet-actions {
        gap: 0.375rem;
    }
    
    .deposit-btn,
    .withdraw-btn {
        padding: 0.375rem 0.875rem;
        font-size: 0.688rem;
    }
    
    .currency-modal-container {
        padding: 24px 20px;
        max-width: 95%;
    }
}