/* ===== PAYMENT MODAL ===== */
.payment-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}
.payment-modal-overlay.show { display: flex; }

.payment-modal {
    background: #0f172a;
    border: 1.5px solid rgba(37,99,235,0.4);
    border-radius: 20px;
    padding: 36px 32px 28px;
    max-width: 480px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.8), 0 0 0 1px rgba(125,211,252,0.06);
    animation: paySlideIn 0.3s cubic-bezier(.22,.68,0,1.15);
}
@keyframes paySlideIn {
    from { transform: translateY(30px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.payment-modal-close {
    position: absolute;
    top: 14px; right: 16px;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
    line-height: 1;
}
.payment-modal-close:hover { color: #7DD3FC; }

.payment-modal-header { text-align: center; margin-bottom: 24px; }
.payment-modal-header .pay-icon { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.payment-modal-header h2 {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 6px;
}
.payment-modal-header .pay-package-name {
    color: #7DD3FC;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(125,211,252,0.1);
    padding: 4px 14px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(125,211,252,0.2);
}

/* Amount display */
.pay-amount-box {
    background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(5,150,105,0.1));
    border: 1px solid rgba(37,99,235,0.3);
    border-radius: 14px;
    padding: 16px 20px;
    text-align: center;
    margin-bottom: 20px;
}
.pay-amount-label { color: #94a3b8; font-size: 0.82rem; margin-bottom: 4px; }
.pay-amount-value {
    color: #FFD700;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

/* QR Box */
.pay-qr-box {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    margin-bottom: 18px;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pay-qr-box img {
    max-width: 100%;
    width: 220px;
    height: 220px;
    object-fit: contain;
    border-radius: 8px;
}
.pay-qr-loading {
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.pay-qr-spinner {
    width: 36px; height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: #2563EB;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Bank info */
.pay-bank-info {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pay-bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}
.pay-bank-row .label { color: #64748b; }
.pay-bank-row .value {
    color: #e2e8f0;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}
.copy-btn {
    background: rgba(37,99,235,0.2);
    border: 1px solid rgba(37,99,235,0.3);
    color: #7DD3FC;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.copy-btn:hover { background: rgba(37,99,235,0.4); }
.copy-btn.copied { background: rgba(5,150,105,0.3); color: #34d399; border-color: rgba(5,150,105,0.4); }

/* Transfer content highlight */
.pay-content-box {
    background: rgba(255,215,0,0.06);
    border: 1.5px solid rgba(255,215,0,0.25);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.pay-content-box .content-label { color: #94a3b8; font-size: 0.8rem; white-space: nowrap; }
.pay-content-box .content-value { color: #FFD700; font-weight: 700; font-family: 'Montserrat', sans-serif; font-size: 0.95rem; }

/* Status polling */
.pay-status {
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.pay-status.waiting {
    background: rgba(251,191,36,0.08);
    color: #fbbf24;
    border: 1px solid rgba(251,191,36,0.2);
}
.pay-status.success {
    background: rgba(5,150,105,0.12);
    color: #34d399;
    border: 1px solid rgba(5,150,105,0.3);
}
.pay-status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fbbf24;
    animation: blink 1.2s ease-in-out infinite;
}
.pay-status.success .pay-status-dot { background: #34d399; animation: none; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.pay-note {
    color: #475569;
    font-size: 0.78rem;
    text-align: center;
    line-height: 1.5;
}

/* Nút thanh toán trong pricing card */
.btn-pay {
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    width: 100%;
    padding: 13px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    box-shadow: 0 4px 14px rgba(5,150,105,0.3);
    margin-top: 8px;
}
.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5,150,105,0.45);
}

/* Success screen */
.pay-success-screen {
    display: none;
    text-align: center;
    padding: 20px 0;
}
.pay-success-screen.show { display: block; }
.pay-success-screen .success-icon { font-size: 4rem; display: block; margin-bottom: 16px; }
.pay-success-screen h3 { color: #34d399; font-family: 'Montserrat', sans-serif; font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.pay-success-screen p { color: #94a3b8; font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }

@media (max-width: 600px) {
    .payment-modal { padding: 28px 16px 20px; }
    .pay-amount-value { font-size: 1.6rem; }
    .pay-qr-box img { width: 180px; height: 180px; }
}

/* ===== PAYMENT INFO FORM ===== */
.pay-info-form {
    margin-bottom: 18px;
}
.pay-info-form .form-title {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.pay-info-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.pay-info-input {
    flex: 1;
    background: #0f172a;
    border: 1.5px solid #334155;
    border-radius: 10px;
    color: #f1f5f9;
    padding: 11px 14px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}
.pay-info-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.pay-info-input::placeholder { color: #475569; }
.pay-info-input.error { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.15); }

.btn-pay-confirm {
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(37,99,235,0.35);
    margin-top: 4px;
    letter-spacing: 0.03em;
}
.btn-pay-confirm:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.5); }

/* Step indicator */
.pay-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
}
.pay-step {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    padding: 6px 4px;
    border-bottom: 2px solid #334155;
    transition: all 0.3s;
}
.pay-step.active { color: #60a5fa; border-color: #2563eb; }
.pay-step.done   { color: #34d399; border-color: #059669; }
