/* === DEPOSIT MODAL === */

/* Deposit Button in Profile */
.deposit-btn-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--gradient-yellow), #fcd34d);
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    animation: pulse-deposit 2s infinite;
}

@keyframes pulse-deposit {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
    }
}

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

.deposit-btn-profile:hover::before {
    width: 300px;
    height: 300px;
}

/* Modal Overlay */
.deposit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
}

.deposit-overlay.active {
    display: flex;
}

/* Modal */
.deposit-modal {
    background: linear-gradient(180deg, rgba(20, 20, 20, 1) 0%, rgba(10, 10, 10, 1) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 450px;
    max-height: 90vh;
    width: 100%;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.deposit-modal::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Edge */
}

.deposit-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.deposit-close:hover {
    color: var(--gradient-red);
}

.deposit-header {
    margin-bottom: 1.5rem;
}

.deposit-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.user-balance-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-label {
    color: var(--text-secondary);
}

.balance-value {
    color: var(--gradient-yellow);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.bonus-info-box {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.05);
}

.bonus-info-text {
    color: var(--gradient-yellow);
    font-size: 0.9rem;
}

.quick-amounts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.quick-amount-btn {
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(251, 191, 36, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-amount-btn:hover {
    border-color: var(--gradient-yellow);
    background: rgba(251, 191, 36, 0.1);
}

.quick-amount-btn.active {
    background: var(--gradient-yellow);
    color: #000;
    border-color: var(--gradient-yellow);
}

.amount-input-section {
    margin-bottom: 1.5rem;
}

.input-section-label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.amount-input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.amount-input-wrapper::after {
    content: '₽';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gradient-yellow);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    pointer-events: none;
}

.deposit-amount-input {
    width: 100%;
    padding: 0.8rem 3rem 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-align: left;
    transition: all 0.3s ease;
}

.deposit-amount-input:focus {
    outline: none;
    border-color: var(--gradient-yellow);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.deposit-amount-slider {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.deposit-amount-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--gradient-yellow);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.deposit-amount-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--gradient-yellow);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.amount-error-message {
    color: var(--gradient-red);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.amount-error-message.show {
    display: block;
}

.bonus-display-box {
    text-align: center;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.bonus-amount-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #22c55e;
}

.deposit-actions {
    display: flex;
    gap: 1rem;
}

.deposit-cancel-btn {
    flex: 1;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.deposit-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.deposit-submit-btn {
    flex: 2;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--gradient-yellow), #fcd34d);
    border: none;
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.deposit-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}

.deposit-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Mobile button positioning */
.mobile-deposit-wrapper {
    display: none;
    text-align: center;
    margin-top: 1rem;
}

.mobile-deposit-btn {
    display: inline-flex;
}

/* Mobile adaptations */
@media (max-width: 768px) {
    .deposit-overlay {
        padding: 0.5rem;
    }

    .deposit-modal {
        padding: 1.5rem;
        max-width: 100%;
        max-height: 95vh;
    }

    .quick-amounts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .deposit-title {
        font-size: 1.5rem;
    }
    
    .deposit-header {
        margin-bottom: 1rem;
    }
    
    .user-balance-box,
    .bonus-info-box,
    .amount-input-section,
    .bonus-display-box {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .deposit-modal {
        padding: 1.2rem;
        border-radius: 12px;
    }
    
    .deposit-title {
        font-size: 1.3rem;
    }
}

/* Show/hide deposit button based on screen size */
@media (min-width: 1366px) {
    .mobile-deposit-wrapper {
        display: none;
    }
}

@media (max-width: 1365px) {
    .mobile-deposit-wrapper {
        display: block;
    }
}

