/* Popup chọn nhóm cộng đồng Telegram / Zalo, dùng chung trang chủ và /live/ (2026-11-13, Claude).
   Tự đặt đủ màu, cỡ chữ để không lệ thuộc giao diện sáng/tối của trang chứa nó. */
.lm-join {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: calc(100% - 32px);
    max-width: 400px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 24px 20px 20px;
    overflow: auto;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    background: #fff;
    color: #172554;
    color-scheme: light;
    box-shadow: 0 24px 80px rgb(15 23 42 / 30%);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.lm-join:not([open]) {
    display: none;
}

.lm-join[open] {
    animation: lm-join-in .22s cubic-bezier(.2, .9, .3, 1.2);
}

.lm-join::backdrop {
    background: rgb(15 23 42 / 58%);
}

.lm-join *,
.lm-join *::before,
.lm-join *::after {
    box-sizing: border-box;
}

.lm-join__close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #475569;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.lm-join__close:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.lm-join__icon {
    display: grid;
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #0068ff, #229ed9);
    color: #fff;
}

.lm-join .lm-join__title {
    margin: 0;
    padding: 0;
    color: #172554;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
    text-transform: none;
}

.lm-join .lm-join__desc {
    margin: 8px 0 18px;
    padding: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}

.lm-join__opts {
    display: grid;
    gap: 10px;
}

.lm-join .lm-join__opt {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px 14px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 8px 20px rgb(15 23 42 / 16%);
    transition: transform .16s, box-shadow .16s, filter .16s;
    -webkit-tap-highlight-color: transparent;
}

.lm-join .lm-join__opt:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgb(15 23 42 / 24%);
    filter: brightness(1.05);
}

.lm-join .lm-join__opt--tele {
    background: #229ed9;
}

.lm-join .lm-join__opt--zalo {
    background: #0068ff;
}

.lm-join__logo {
    display: grid;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 13px;
    background: #fff;
    color: #229ed9;
}

.lm-join__logo--text {
    color: #0068ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .2px;
}

.lm-join__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    line-height: 1.3;
}

.lm-join .lm-join__text strong {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.lm-join .lm-join__text small {
    color: #fff;
    font-size: 12.5px;
    font-weight: 500;
    opacity: .92;
}

.lm-join__go {
    flex-shrink: 0;
    opacity: .9;
}

.lm-join :focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

@keyframes lm-join-in {
    from { opacity: 0; transform: translateY(10px) scale(.96); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .lm-join[open] {
        animation: none;
    }
}
