/* ===== BANK TRANSFER MODAL V2 ===== */

.bank-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.bank-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 10001;
    width: 95%;
    max-width: 800px;
    max-height: 90vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.bank-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.bank-modal__inner {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.bank-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #666;
    transition: all 0.2s;
    z-index: 2;
}

.bank-modal__close:hover {
    background: #e0e0e0;
    color: #333;
}

/* Header */
.bank-modal__header {
    text-align: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
}

.bank-modal__header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px;
}

.bank-modal__header p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Body (2 columns) */
.bank-modal__body {
    display: flex;
    flex: 1;
    overflow-y: auto;
}

.bank-modal__qr-col {
    flex: 0 0 320px;
    padding: 2rem;
    background: #f9fafb;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bank-modal__info-col {
    flex: 1;
    padding: 2rem;
}

/* QR Code Section */
.bank-modal__qr-wrapper {
    width: 250px;
    height: 250px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

.bank-modal__qr-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.bank-modal__qr-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #888;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
}

.bank-modal__qr-wrapper.loaded img {
    display: block;
}

.bank-modal__qr-wrapper.loaded .bank-modal__qr-loading {
    display: none;
}

.bank-modal__qr-note {
    font-size: 0.85rem;
    color: #555;
    text-align: center;
    line-height: 1.4;
}

.bank-modal__qr-note i {
    color: #6366f1;
    margin-right: 4px;
}

/* Amount Box */
.bank-modal__amount-box {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.bank-modal__amount-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4px;
}

.bank-modal__amount-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ef4444;
}

/* Info List */
.bank-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bank-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed #eee;
}

.bank-info-row__label {
    font-size: 0.9rem;
    color: #666;
    width: 120px;
    flex-shrink: 0;
}

.bank-info-row__value {
    font-size: 0.95rem;
    color: #222;
    font-weight: 500;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.bank-info-row__value--highlight {
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 6px;
    margin-top: -6px;
}

.bank-copy-btn {
    background: #fff;
    border: 1px solid #ddd;
    color: #444;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.bank-copy-btn:hover {
    background: #f9fafb;
    border-color: #bbb;
}

.bank-copy-btn.copied {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

/* Notice */
.bank-modal__notice {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #92400e;
    line-height: 1.5;
}

/* Footer Actions */
.bank-modal__footer {
    padding: 1rem 2rem;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.bank-modal__footer .btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.bank-modal__footer .btn--primary {
    background: #ef4444;
    color: #fff;
    border: none;
}

.bank-modal__footer .btn--primary:hover {
    background: #dc2626;
}

.bank-modal__footer .btn--outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #444;
}

.bank-modal__footer .btn--outline:hover {
    background: #f9fafb;
}

/* Scrollbar */
.bank-modal__body::-webkit-scrollbar {
    width: 6px;
}
.bank-modal__body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .bank-modal {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        top: 0;
        left: 0;
        transform: translateY(20px);
        border-radius: 0;
    }

    .bank-modal.active {
        transform: translateY(0);
    }

    .bank-modal__inner {
        border-radius: 0;
        height: 100%;
    }

    .bank-modal__body {
        flex-direction: column;
    }

    .bank-modal__qr-col {
        flex: none;
        padding: 1.5rem;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .bank-modal__info-col {
        padding: 1.5rem;
    }

    .bank-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .bank-info-row__value {
        width: 100%;
        justify-content: space-between;
    }

    .bank-modal__footer {
        flex-direction: column-reverse;
        padding: 1rem 1.5rem;
    }

    .bank-modal__footer .btn {
        width: 100%;
    }
}
