/* Модальное окно пополнения */
.topup-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.topup-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.topup-modal {
    background-color: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.topup-modal-overlay.active .topup-modal {
    transform: scale(1);
    opacity: 1;
}

.topup-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topup-modal-header h2 {
    margin: 0;
    color: #0f172a;
}

.topup-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topup-modal-close svg {
    width: 24px;
    height: 24px;
}

.topup-modal-body {
    padding: 20px;
}

.topup-preset-amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.topup-preset-btn {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.topup-preset-btn:hover {
    border-color: #64748b;
    background-color: #f8fafc;
}

.topup-preset-btn.active {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.topup-preset-coins {
    color: #0f172a;
    font-weight: 500;
}

.topup-preset-price {
    color: #64748b;
    font-weight: 500;
}

.topup-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 24px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topup-divider span {
    background-color: #ffffff;
    padding: 0 12px;
    color: #64748b;
}

.topup-slider-section {
    margin-bottom: 24px;
}

.topup-slider-label {
    margin-bottom: 12px;
    color: #0f172a;
    font-weight: 600;
}

.topup-slider-container {
    margin-bottom: 16px;
}

.topup-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.topup-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.topup-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.topup-slider-display {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topup-slider-coins {
    color: #0f172a;
    font-weight: 600;
}

.topup-slider-price {
    color: #64748b;
    font-weight: 600;
}

.topup-modal-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
}

.topup-cancel-btn {
    flex: 1;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    font-weight: 690;
}

.topup-cancel-btn:hover {
    background-color: #f8fafc;
}

.topup-confirm-btn {
    flex: 1;
    background-color: #10b981;
    border: none;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.2s ease;
    font-weight: 600;
}

.topup-confirm-btn:hover {
    background-color: #059669;
}

.topup-confirm-btn:disabled {
    background-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    font-weight: 600;
}