/* ── Overlay (ẩn – không cần nền tối khi hiện góc phải) ── */
#gl-overlay {
    display: none;
}

/* ── Popup card – góc trên bên phải ── */
#gl-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    left: auto;
    z-index: 99999;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.22), 0 1px 6px rgba(0,0,0,0.12);
    width: 360px;
    max-width: calc(100vw - 32px);
    padding: 28px 28px 24px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
}
#gl-popup.gl-show {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* ── Header ── */
.gl-popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.gl-popup-header svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.gl-popup-header p {
    margin: 0;
    font-size: 15px;
    color: #202124;
    font-weight: 400;
    line-height: 1.4;
}

/* ── User row ── */
.gl-popup-user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid #e8eaed;
    border-bottom: 1px solid #e8eaed;
    margin-bottom: 18px;
}
.gl-popup-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.gl-popup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gl-popup-user-info strong {
    display: block;
    font-size: 15px;
    color: #202124;
    font-weight: 500;
}
.gl-popup-user-info span {
    font-size: 13px;
    color: #5f6368;
}

/* ── Continue button ── */
.gl-popup-btn {
    display: block;
    width: 100%;
    background: #1a73e8;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    letter-spacing: 0.25px;
    transition: background 0.15s, box-shadow 0.15s;
    margin-bottom: 14px;
}
.gl-popup-btn:hover {
    background: #1765cc;
    box-shadow: 0 2px 6px rgba(26,115,232,0.4);
    color: #fff !important;
}
.gl-popup-btn:active { background: #155bb5; }

/* ── Footer note ── */
.gl-popup-note {
    font-size: 12px;
    color: #5f6368;
    line-height: 1.5;
    margin: 0;
}

/* ── Close button ── */
.gl-popup-close {
    position: absolute;
    top: 1px;
    right: 1px;
    background: none;
    border: none;
    cursor: pointer;
    color: #5f6368;
    font-size: 20px;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 50%;
    transition: background 0.15s;
}
.gl-popup-close:hover { background: #f1f3f4; }

/* ── Loading state ── */
.gl-popup-btn.gl-loading::after {
    content: ' ...';
}

/* ── Mobile: xuống dưới cùng ── */
@media (max-width: 480px) {
    #gl-popup {
        top: auto;
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}
