/* Payment Modal Styles */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.payment-modal.active {
    opacity: 1;
    pointer-events: all;
}

.payment-content {
    background: #18191f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    ;
    width: 90%;
    max-width: 500px;
    padding: 3rem 2rem 2rem;
    /* Increased top padding */
    border-radius: 20px;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.payment-modal.active .payment-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.payment-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 12px;
}

.payment-tab {
    flex: 1;
    padding: 0.8rem;
    border: none;
    background: transparent;
    color: #9CA3AF;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.payment-tab.active {
    background: white;
    color: black;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.payment-tab.active.bkash {
    color: #E2136E;
}

.payment-tab.active.nagad {
    color: #EE4023;
}

.payment-details {
    display: none;
    animation: fadeIn 0.3s ease;
}

.payment-details.active {
    display: block;
}

.copy-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #9CA3AF;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: #D92525;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Language Toggle */
.modal-lang-toggle {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 2px;
    z-index: 10;
}

/* Adjust for small mobile screens if needed */
@media (max-width: 480px) {
    .modal-lang-toggle {
        top: 0.75rem;
        left: 0.75rem;
        transform: scale(0.9);
    }

    .close-modal {
        top: 0.75rem;
        right: 0.75rem;
        width: 28px;
        height: 28px;
    }

    .payment-content {
        padding: 2.5rem 1.25rem 1.5rem;
    }
}

/* Payment Status Indicator */
.status-message {
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease;
}

.status-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.status-message.error {
    background: rgba(217, 37, 37, 0.1);
    border: 1px solid rgba(217, 37, 37, 0.3);
    color: #D92525;
}