/* ===== OVERLAY ===== */
#popupOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9998;
    opacity: 0;
    transition: opacity .25s ease;
}

#popupOverlay.active {
    display: block;
    opacity: 1;
}

/* ===== POPUP ===== */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

/* KHUNG POPUP CĂN GIỮA */
.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.95);
    opacity: 0;

    width: 500px;
    max-width: 95%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);

    transition: .25s ease;
}

/* Khi popup active */
.popup.active .popup-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ===== HEADER ===== */
.header-popup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
}

.header-popup h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.header-popup .close-main {
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: .2s;
}

.header-popup .close-main:hover {
    color: #000;
}

/* ===== LIST ===== */
.method-list {
    padding: 8px 0;
}

.method-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    transition: .2s;
}

.method-item:hover {
    background: #f9f9f9;
}

.method-icon img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
}

.method-info .name {
    font-size: 16px;
    font-weight: 600;
}

.method-info .desc {
    font-size: 13px;
    color: #777;
}
