/* Payment Modal Styles */
.payment-modal {
    display: none;
    position: fixed;
    z-index: 10002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    overflow: auto;
    animation: fadeIn 0.3s;
}

.payment-modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98) 0%, rgba(40, 10, 10, 0.98) 100%);
    border: 2px solid rgba(200, 30, 30, 0.3);
    border-radius: 12px;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideIn 0.3s;
}

.payment-modal-close {
    color: #999;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s;
}

.payment-modal-close:hover {
    color: #c81e1e;
}

.payment-modal-body {
    padding: 50px 40px 40px;
}

.payment-modal-title {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
}

.payment-modal-subtitle {
    font-size: 14px;
    color: #b0b0b0;
    margin-bottom: 30px;
    text-align: center;
}

/* Payment Amounts */
.payment-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.amount-btn {
    background: rgba(200, 30, 30, 0.1);
    border: 2px solid rgba(200, 30, 30, 0.3);
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.amount-btn:hover {
    background: rgba(200, 30, 30, 0.2);
    border-color: #c81e1e;
    transform: translateY(-2px);
}

.amount-btn.active {
    background: linear-gradient(135deg, #c81e1e 0%, #8b0000 100%);
    border-color: #c81e1e;
    box-shadow: 0 0 20px rgba(200, 30, 30, 0.5);
}

/* Custom Amount */
.custom-amount {
    margin-bottom: 30px;
}

.custom-amount label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #b0b0b0;
    margin-bottom: 10px;
}

.custom-amount input {
    width: 100%;
    padding: 15px;
    background: rgba(200, 30, 30, 0.1);
    border: 2px solid rgba(200, 30, 30, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
}

.custom-amount input:focus {
    outline: none;
    border-color: #c81e1e;
    background: rgba(200, 30, 30, 0.15);
}

/* Payment Methods */
.payment-method {
    margin-bottom: 30px;
}

.payment-method h3 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.method-btn {
    background: rgba(200, 30, 30, 0.1);
    border: 2px solid rgba(200, 30, 30, 0.3);
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.method-btn:hover {
    background: rgba(200, 30, 30, 0.2);
    border-color: #c81e1e;
    transform: translateY(-2px);
}

.method-btn.active {
    background: linear-gradient(135deg, #c81e1e 0%, #8b0000 100%);
    border-color: #c81e1e;
    box-shadow: 0 0 20px rgba(200, 30, 30, 0.5);
}

.method-icon {
    font-size: 32px;
}

.method-btn span:last-child {
    font-size: 14px;
    font-weight: 600;
}

/* Payment Bonus */
.payment-bonus {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
}

.bonus-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ff4444;
    font-size: 14px;
    font-weight: 600;
}

.bonus-icon {
    font-size: 24px;
}

/* Pay Button */
.btn-pay {
    width: 100%;
    padding: 18px;
    font-size: 16px;
}

/* Payment Info */
.payment-info {
    margin-top: 20px;
}

/* Payment Waiting Modal */
.payment-waiting-icon {
    margin-bottom: 30px;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border: 4px solid rgba(200, 30, 30, 0.2);
    border-top-color: #c81e1e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.order-info {
    background: rgba(200, 30, 30, 0.1);
    border: 1px solid rgba(200, 30, 30, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.order-info p {
    color: #b0b0b0;
    font-size: 14px;
    margin: 0;
}

.order-info strong {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .payment-modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .payment-modal-body {
        padding: 40px 25px 30px;
    }
    
    .payment-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
}

/* Add balance button styles */
.btn-add-balance {
    background: linear-gradient(135deg, #ff4444 0%, #c81e1e 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
}

.btn-add-balance:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 68, 68, 0.5);
}
