:root {
    --ink: #0f2744;
    --muted: #4b6280;
    --line: rgba(18, 36, 26, .10);
    --gold: #d4a017;
    --gold-2: #f0d060;
    --gold-deep: #9a7209;
    --green: #0b4a9a;
    --green-2: #062a5c;
    --green-3: #1565c0;
    --cream: #f4f8fc;
    --card: #ffffff;
    --star: #e0b422;
    --star-off: #d7d1c3;
    --shadow: 0 18px 50px rgba(15, 36, 26, .22);
    --font: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
}

button, input {
    font-family: inherit;
}

a {
    color: var(--green);
}

#map {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #eef5fc;
    --sp-scale: 0.5;
    --map-label-size: 11px;
    --map-label-font: Tahoma, "Segoe UI", "Arial Unicode MS", sans-serif;
}

.leaflet-container {
    background: #eef5fc;
}

/* Xã chọn — cảm giác nhô 2.5D (CSS trên path SVG Leaflet, không canvas extrude) */
.leaflet-overlay-pane,
.leaflet-overlay-pane svg {
    overflow: visible !important;
}

.leaflet-overlay-pane path.xa-nho {
    transform: translate(-10px, -18px);
    filter:
        drop-shadow(4px 7px 0 rgba(155, 0, 0, 0.55))
        drop-shadow(9px 15px 0 rgba(100, 0, 0, 0.35))
        drop-shadow(14px 24px 0 rgba(70, 0, 0, 0.22))
        drop-shadow(18px 30px 8px rgba(0, 0, 0, 0.4));
}

.leaflet-control-zoom a {
    background: #ffffff !important;
    color: #0b4a9a !important;
    border-color: #bfdbfe !important;
}

.leaflet-control-layers {
    border: 0 !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: var(--shadow) !important;
}

.leaflet-container .leaflet-control-attribution {
    background: rgba(255, 253, 248, 0.94) !important;
    color: #12241a !important;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1.4;
    padding: 5px 10px !important;
    margin: 0 8px 8px 0 !important;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
    max-width: min(92vw, 460px);
}
.leaflet-control-attribution a {
    color: #0b4a9a !important;
    font-weight: 800;
    text-decoration: none;
}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
    text-decoration: underline;
}

/* Nhãn xã: chữ trắng, viền nét 1px (không blur) để khỏi thành mảng đen khi zoom. */
.leaflet-container .leaflet-marker-icon.xa-label {
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
    font-family: "Segoe UI", Tahoma, "Arial Unicode MS", sans-serif;
    font-weight: 800;
    font-synthesis: none;
    font-size: var(--map-label-size, 12px);
    line-height: 1;
    color: #fff !important;
    text-shadow:
        1px 0 0 #12304f,
        -1px 0 0 #12304f,
        0 1px 0 #12304f,
        0 -1px 0 #12304f;
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.leaflet-container .leaflet-marker-icon.xa-label.is-on {
    color: #c41622 !important;
    font-size: calc(var(--map-label-size, 12px) + 2px);
    text-shadow:
        1px 0 0 #fff,
        -1px 0 0 #fff,
        0 1px 0 #fff,
        0 -1px 0 #fff;
}

.leaflet-marker-pane {
    overflow: visible !important;
}

.leaflet-div-icon.sp-div-icon,
.sp-div-icon,
.leaflet-div-icon.xa-cluster-icon,
.xa-cluster-icon {
    background: transparent !important;
    border: none !important;
    display: flex !important;
    align-items: flex-end;
    justify-content: center;
    overflow: visible !important;
}

.home-diem-icon { background: transparent !important; border: none !important; }
.home-diem-pin {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.home-diem-pin.vnl { background: #15803d; }
.home-diem-pin.db { background: #1d4ed8; }
.home-diem-pop { font-size: .85rem; line-height: 1.35; }
.home-diem-pop .sp { margin-top: 4px; color: #0f3d28; font-weight: 700; }

/* Không transform:scale + filter — Chrome vẽ ảnh tròn thành ô đen khi zoom xa */
.sp-pin {
    width: calc(56px * var(--sp-scale, 1));
    height: calc(66px * var(--sp-scale, 1));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

    .sp-pin.dn-pin .thumb,
    .xa-cluster.dn-pin .thumb {
        background: #fff;
        color: #1e3a8a;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .leaflet-container .sp-pin.dn-pin .thumb img,
    .leaflet-container .xa-cluster.dn-pin .thumb img,
    .xa-sp img.dn,
    .list .ava.dn {
        object-fit: contain !important;
        background: #fff;
    }

    .xa-cluster.dn-pin .thumb.dn-mosaic {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1px;
        padding: 2px;
        background: #fff;
    }

    .list .ava.dn {
        object-fit: contain;
        background: #fff;
    }

    .sp-pin .thumb,
    .xa-cluster .thumb {
        width: calc(52px * var(--sp-scale, 1));
        height: calc(52px * var(--sp-scale, 1));
        border-radius: 50%;
        border: 2.5px solid #fff;
        background: #1b5e3b;
        box-sizing: border-box;
        overflow: hidden;
        box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
        flex-shrink: 0;
    }

        .leaflet-container .sp-pin .thumb img,
        .leaflet-container .xa-cluster .thumb img {
            display: block;
            width: 100% !important;
            height: 100% !important;
            object-fit: cover;
            border: 0;
            max-width: none !important;
            max-height: none !important;
            padding: 0;
        }

        .sp-pin .thumb.empty,
        .xa-cluster .thumb.empty {
            display: grid;
            place-items: center;
            color: #fff;
            font-size: calc(16px * var(--sp-scale, 1));
            background: linear-gradient(160deg, #2a8a56, #134e32);
        }

    .sp-pin .sao,
    .xa-cluster .sao {
        margin-top: calc(-8px * var(--sp-scale, 1));
        min-width: calc(28px * var(--sp-scale, 1));
        padding: 1px calc(6px * var(--sp-scale, 1));
        border-radius: 999px;
        font-family: "Segoe UI", Tahoma, sans-serif;
        font-size: calc(10px * var(--sp-scale, 1));
        font-weight: 800;
        color: #3b2a04;
        background: linear-gradient(180deg, #f5d76e, #d4a017);
        border: 1.5px solid #fff;
        letter-spacing: .02em;
        text-align: center;
        line-height: 1.3;
    }

    .sp-pin.sao5 .thumb, .xa-cluster.sao5 .thumb {
        box-shadow: 0 0 0 2px #d4a017, 0 3px 8px rgba(0, 0, 0, .35);
    }

    .sp-pin.sao4 .sao, .xa-cluster.sao4 .sao {
        background: linear-gradient(180deg, #93c5fd, #2563eb);
        color: #fff;
    }

    .sp-pin.sao3 .sao, .xa-cluster.sao3 .sao {
        background: linear-gradient(180deg, #86efac, #16a34a);
        color: #fff;
    }

.xa-cluster {
    width: calc(64px * var(--sp-scale, 1));
    height: calc(74px * var(--sp-scale, 1));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    position: relative;
}

    .xa-cluster .thumb {
        width: calc(56px * var(--sp-scale, 1));
        height: calc(56px * var(--sp-scale, 1));
    }

    .xa-cluster .badge {
        position: absolute;
        top: calc(-4px * var(--sp-scale, 1));
        right: calc(-2px * var(--sp-scale, 1));
        min-width: calc(20px * var(--sp-scale, 1));
        height: calc(20px * var(--sp-scale, 1));
        padding: 0 calc(5px * var(--sp-scale, 1));
        border-radius: 999px;
        background: #dc2626;
        color: #fff;
        font-family: "Segoe UI", Tahoma, sans-serif;
        font-size: calc(11px * var(--sp-scale, 1));
        font-weight: 800;
        display: grid;
        place-items: center;
        border: 2px solid #fff;
        line-height: 1;
        z-index: 2;
    }

.sp-pin .thumb,
.xa-cluster .thumb,
.sp-pin .sao,
.xa-cluster .sao {
    position: relative;
    z-index: 1;
}

.sp-pin .sp-ripple,
.xa-cluster .sp-ripple {
    position: absolute;
    left: 50%;
    top: calc(26px * var(--sp-scale, 1));
    width: calc(58px * var(--sp-scale, 1));
    height: calc(58px * var(--sp-scale, 1));
    margin-left: calc(-29px * var(--sp-scale, 1));
    margin-top: calc(-29px * var(--sp-scale, 1));
    border-radius: 50%;
    border: 2.5px solid rgba(212, 160, 23, .88);
    box-shadow: 0 0 0 1px rgba(245, 215, 110, .35);
    box-sizing: border-box;
    pointer-events: none;
    opacity: 0;
    z-index: 0;
}

.xa-cluster .sp-ripple {
    top: calc(28px * var(--sp-scale, 1));
    width: calc(64px * var(--sp-scale, 1));
    height: calc(64px * var(--sp-scale, 1));
    margin-left: calc(-32px * var(--sp-scale, 1));
    margin-top: calc(-32px * var(--sp-scale, 1));
}

.sp-pin .sp-ripple-d,
.xa-cluster .sp-ripple-d {
    border-color: rgba(180, 35, 56, .72);
}

#map.pins-pulse .sp-pin .sp-ripple,
#map.pins-pulse .xa-cluster .sp-ripple {
    animation: sp-pin-glow 2.4s ease-out infinite;
}

#map.pins-pulse .sp-pin .sp-ripple-d,
#map.pins-pulse .xa-cluster .sp-ripple-d {
    animation-delay: 1.2s;
}

@keyframes sp-pin-glow {
    0% {
        transform: scale(1);
        opacity: 0.88;
    }

    70%, 100% {
        transform: scale(2.35);
        opacity: 0;
    }
}

.dock {
    position: absolute;
    z-index: 1100;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(400px, 38vw);
    height: 100%;
    max-height: none;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .97);
    border: 0;
    border-right: 1px solid #dbeafe;
    border-radius: 0;
    box-shadow: 8px 0 28px rgba(15, 36, 26, .16);
    backdrop-filter: blur(14px);
    overflow: hidden;
    transition: transform .38s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

.ocop-stage.dock-collapsed .dock {
    transform: translateX(calc(-100% - 2px));
    pointer-events: none;
}

.dock-toggle {
    position: absolute;
    z-index: 1200;
    top: 50%;
    left: min(400px, 38vw);
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1.5px solid #93c5fd;
    border-radius: 50%;
    background: #ffffff;
    color: #0b4a9a;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(15, 36, 26, .16);
    transition: left .38s cubic-bezier(.22, 1, .36, 1), transform .38s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease;
}

    .dock-toggle:hover {
        background: #e8f3ff;
        box-shadow: 0 6px 20px rgba(11, 74, 154, .22);
    }

.dock-toggle-pulse {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, .75);
    opacity: 0;
    pointer-events: none;
}

    .dock-toggle-pulse::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        border: 2px solid rgba(147, 197, 253, .7);
    }

.ocop-stage.dock-collapsed .dock-toggle-pulse {
    animation: dock-toggle-glow 2.4s ease-out infinite;
}

    .ocop-stage.dock-collapsed .dock-toggle-pulse::after {
        animation: dock-toggle-glow 2.4s ease-out infinite;
        animation-delay: 1.2s;
    }

@keyframes dock-toggle-glow {
    0% {
        transform: scale(1);
        opacity: 0.72;
    }

    65%, 100% {
        transform: scale(1.75);
        opacity: 0;
    }
}

.dock-toggle-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    transition: transform .28s ease;
}

.dock-toggle-svg {
    width: 24px;
    height: 24px;
    display: block;
}

.ocop-stage.dock-collapsed .dock-toggle-icon {
    transform: scaleX(-1);
}

.ocop-stage.dock-collapsed .dock-toggle {
    left: 14px;
    transform: translate(0, -50%);
    box-shadow: 0 4px 18px rgba(212, 160, 23, .35);
}

.dock-head {
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--line);
}

.dock-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.dock-head h2 {
    margin: 0 0 4px;
    font-size: .95rem;
    font-weight: 800;
    color: var(--green-2);
}

.btn-back {
    flex-shrink: 0;
    border: 1px solid #bfdbfe;
    background: #fff;
    color: var(--green-2);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
}

    .btn-back[hidden] {
        display: none !important;
    }

.dock-head p {
    margin: 0;
    font-size: .76rem;
    color: var(--muted);
    font-weight: 600;
}

.search {
    width: 100%;
    margin-top: 10px;
    border: 1px solid #bfdbfe;
    border-radius: 11px;
    padding: 9px 12px;
    font-size: .88rem;
    background: #fff;
    outline: none;
}

    .search:focus {
        border-color: #1d4ed8;
        box-shadow: 0 0 0 3px rgba(29, 78, 216, .16);
    }

.xa-combo {
    position: relative;
    z-index: 6;
    margin-top: 10px;
}

    .xa-combo .search {
        margin-top: 0;
    }

/* Gợi ý xã: neo ngay dưới ô tìm, nền khác danh sách DN (trắng) */
.xa-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 30;
    margin: 0;
    padding: 6px;
    list-style: none;
    max-height: min(240px, 36vh);
    overflow-y: auto;
    background: #e8f2ff;
    border: 1px solid #93c5fd;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(11, 74, 154, .18);
}

    .xa-suggest[hidden] {
        display: none !important;
    }

    .xa-suggest li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 10px;
        border-radius: 9px;
        font-size: .84rem;
        font-weight: 700;
        color: var(--ink);
        cursor: pointer;
    }

        .xa-suggest li:hover, .xa-suggest li.is-on {
            background: #cfe2ff;
            color: #c62828;
        }

        .xa-suggest li.is-on {
            font-weight: 800;
        }

        .xa-suggest li .xa-has {
            flex-shrink: 0;
            font-size: .68rem;
            font-weight: 800;
            letter-spacing: .04em;
            color: #0b4a9a;
            background: #fff;
            border: 1px solid #bfdbfe;
            border-radius: 999px;
            padding: 2px 7px;
        }

    .xa-suggest .xa-empty {
        color: var(--muted);
        cursor: default;
        font-weight: 600;
    }

        .xa-suggest .xa-empty:hover {
            background: transparent;
        }

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    padding: .32rem .85rem;
    border: 1px solid rgba(155, 27, 46, .14);
    border-radius: 10px;
    background: #fff;
    color: #7a1515;
    font-size: .75rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(18, 53, 92, .04);
    transition: background .15s ease, border-color .15s ease, color .15s ease,
        transform .15s ease, box-shadow .15s ease;
}

    .chip:hover {
        color: #9b1b2e;
        border-color: rgba(155, 27, 46, .35);
        background: #fffdf8;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(155, 27, 46, .1);
    }

    .chip.is-on {
        color: #fff;
        border-color: transparent;
        background: linear-gradient(145deg, #b42338 0%, #9b1b2e 45%, #7a1515 100%);
        box-shadow: 0 0 0 1px rgba(201, 162, 39, .55), 0 8px 18px rgba(122, 21, 21, .28);
    }

        .chip.is-on:hover {
            color: #fff;
            transform: translateY(-1px);
        }

.legend {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 8px 14px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--muted);
    border-bottom: 1px dashed #bfdbfe;
}

    .legend i {
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        margin-right: 4px;
        vertical-align: -1px;
    }

.lg-has {
    background: #1d4ed8;
}

.lg-none {
    background: #94a3b8;
}

.list {
    list-style: none;
    margin: 0;
    padding: 6px 8px 10px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    position: relative;
    z-index: 1;
}

    .list li {
        display: flex;
        gap: 10px;
        align-items: center;
        padding: 6px 8px;
        border-radius: 12px;
        cursor: pointer;
    }

        .list li:hover, .list li.is-active {
            background: #fff6d8;
        }

    .list .ava {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        flex-shrink: 0;
        object-fit: cover;
        background: #e8f5ee;
        border: 1px solid #ead9a8;
    }

        .list .ava.ph {
            display: grid;
            place-items: center;
            font-size: 18px;
        }

    .list .meta {
        min-width: 0;
        flex: 1;
    }

        .list .meta strong {
            display: block;
            font-size: .84rem;
            line-height: 1.25;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

    .list .sub {
        font-size: .72rem;
        color: var(--muted);
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.list .dock-tinh {
    flex: 0 0 auto;
    margin-left: 6px;
    align-self: center;
}

.list .dock-tinh .dn-hang {
    font-size: .78rem;
}

.list .dock-tinh .xep-tinh {
    font-size: 1rem;
    margin-left: 4px;
}

.list .dock-tinh .dn-hang-i {
    font-size: .85rem;
}

.stars {
    color: var(--star);
    letter-spacing: 1px;
    font-weight: 800;
    font-size: .82rem;
}

    .stars .off {
        color: var(--star-off);
    }

.dock-count {
    flex-shrink: 0;
    padding: 8px 14px 6px;
    font-size: .72rem;
    color: var(--muted);
    font-weight: 700;
    text-align: center;
}

.dock-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 12px 14px 14px;
    border-top: 0;
    background: linear-gradient(105deg, #062a5c 0%, #0b4a9a 55%, #1565c0 100%);
    text-align: center;
    box-shadow: 0 -10px 22px rgba(6, 42, 92, .22);
}

.dock-footer-org {
    margin: 0 0 6px;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #ffffff;
}

.dock-footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dock-footer-logo {
    display: block;
    height: 32px;
    width: auto;
    max-width: 88px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    padding: 3px 6px;
}

.dock-footer-company {
    font-size: .72rem;
    font-weight: 700;
    color: #e8f3ff;
    line-height: 1.25;
    text-align: left;
}

/* Popup Leaflet — danh sách SP của xã */
.leaflet-popup.xa-leaflet-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 22px 50px rgba(8, 20, 14, .35);
    border: 1px solid rgba(212, 160, 23, .35);
}

.leaflet-popup.xa-leaflet-popup .leaflet-popup-content {
    margin: 0;
    min-width: 280px;
    max-width: 340px;
    line-height: 1.4;
}

.leaflet-popup.xa-leaflet-popup .leaflet-popup-tip {
    background: #fffdf8;
}

.leaflet-popup.xa-leaflet-popup .leaflet-popup-close-button {
    color: #fff4c2 !important;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    font-size: 18px;
    font-weight: 700;
}

.xa-pop {
    font-family: var(--font);
    background: #fffdf8;
    color: var(--ink);
}

.xa-pop-head {
    padding: 12px 28px 12px 12px;
    background: linear-gradient(135deg, #1b5e3b, #0f3d28);
    color: #fff;
}

.xa-pop-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.xa-pop-logo {
    height: 40px;
    width: auto;
    max-width: 128px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    background: linear-gradient(180deg, #fffefb, #fff4d0);
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid #f0d060;
}

.xa-pop-head.is-dn h3,
.xa-pop-head.is-list h3 {
    text-align: left;
}

.xa-pop-logo.dn {
    width: 52px;
    height: 52px;
    max-width: 52px;
    object-fit: contain;
    padding: 4px;
    background: #fff;
}

.dn-hang {
    display: inline-flex;
    align-items: center;
    margin-top: 2px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .01em;
}

.hang-tientien { color: #14532d; background: #dcfce7; }
.hang-tbtt { color: #1e3a8a; background: #dbeafe; }
.hang-tb { color: #854d0e; background: #fef3c7; }
.hang-lachau { color: #991b1b; background: #fee2e2; }
.hang-chua { color: #334155; background: #e2e8f0; }

.xa-sp-stars .dn-hang {
    margin-right: 8px;
}

.xa-pop-head h3 {
    margin: 0;
    flex: 1;
    min-width: 0;
    text-align: right;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
}

.xa-pop-head p {
    margin: 6px 0 0;
    font-size: .75rem;
    opacity: .92;
    font-weight: 600;
    line-height: 1.5;
}

.xa-pop-head .xa-pop-stars {
    color: #f5d76e;
    letter-spacing: .04em;
    font-size: .82rem;
}

.xa-pop-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
}

.xa-sp {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 8px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
}

    .xa-sp:hover {
        background: #fff6d8;
    }

    .xa-sp img, .xa-sp .ph {
        width: 52px;
        height: 52px;
        border-radius: 12px;
        flex-shrink: 0;
        object-fit: cover;
        background: #e8f5ee;
        border: 1px solid #ead9a8;
    }

    .xa-sp img.dn {
        object-fit: contain;
        background: #fff;
    }

    .xa-sp .ph {
        display: grid;
        place-items: center;
        color: var(--gold-deep);
        font-size: 18px;
    }

    .xa-sp-body {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .xa-sp strong {
        display: block;
        font-size: .86rem;
        font-weight: 800;
        line-height: 1.25;
        color: var(--ink);
    }

.xa-sp .mst-boxes.xa-mst {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 3px;
}

.xa-sp .mst-boxes.xa-mst .mst-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    min-width: 22px;
    height: 26px;
    flex: 0 0 22px;
    padding: 0;
    text-align: center;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
    color: #1e3a8a;
    border: 1px solid #93c5fd;
    border-radius: 5px;
    background: #eff6ff;
    box-sizing: border-box;
}

.xa-sp-stars {
    margin-top: 2px;
    font-size: .75rem;
    font-weight: 700;
    color: var(--muted);
}

    .xa-sp-stars em {
        font-style: normal;
        color: var(--gold-deep);
        margin-left: 4px;
    }

.xa-sp-danhgia {
    margin-top: 2px;
}

.xa-sp-danhgia .dn-kq-mini {
    width: 100%;
    box-sizing: border-box;
}

/* Modal chi tiết sản phẩm — cao theo nội dung, không khóa max-height / không cuộn trong hộp */
.modal-bg {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(6, 14, 10, .68);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .42s ease, visibility .42s ease;
}

    .modal-bg.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .modal-bg.is-instant,
    .modal-bg.is-instant .modal {
        transition: none !important;
        animation: none !important;
    }

.modal {
    width: min(580px, 100%);
    max-height: none;
    height: auto;
    overflow: hidden;
    flex-shrink: 0;
    margin: auto;
    background: radial-gradient(120% 80% at 100% 0%, rgba(240, 208, 96, .18), transparent 55%), linear-gradient(180deg, #fffefb 0%, var(--card) 42%, #f7f3ea 100%);
    border-radius: 26px;
    border: 1px solid rgba(212, 160, 23, .35);
    box-shadow: 0 36px 90px rgba(0, 0, 0, .48), 0 0 0 1px rgba(255, 255, 255, .35) inset;
    transform: translateY(28px) scale(.96);
    opacity: 0;
    transition: transform .48s cubic-bezier(.22, 1, .36, 1), opacity .48s ease;
}

.modal-bg.is-open .modal {
    transform: none;
    opacity: 1;
}

.modal-hero {
    position: relative;
    height: 288px;
    background: #123528 center/cover no-repeat;
    border-radius: 26px 26px 0 0;
    overflow: hidden;
}

    .modal-hero::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 110px;
        background: linear-gradient(transparent, rgba(18, 36, 26, .28) 40%, var(--card));
        pointer-events: none;
    }

    .modal-hero.empty {
        background: radial-gradient(circle at 70% 20%, rgba(240, 208, 96, .35), transparent 45%), linear-gradient(160deg, #1b5e3b, #0f3d28);
    }

    .modal-hero.is-dn {
        height: auto;
        min-height: 0;
        padding: 18px 16px 16px;
        background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 58%, #0f172a 100%);
    }

    .modal-hero.is-dn::after {
        display: none;
    }

    .modal-hero.is-dn .modal-sao-float {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-right: 40px;
    }

.modal-dn-top {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.modal-dn-logo {
    width: 92px;
    height: 92px;
    border-radius: 18px;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .28);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

    .modal-dn-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.modal-dn-head {
    flex: 1;
    min-width: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .modal-dn-head h3 {
        margin: 0;
        color: #fff;
        font-size: 1.28rem;
        line-height: 1.28;
        font-weight: 800;
        text-align: left;
    }

    .modal-dn-head .mst-boxes.xa-mst {
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
        gap: 4px;
    }

    .modal-dn-head .mst-boxes.xa-mst .mst-box {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        min-width: 28px;
        height: 34px;
        flex: 0 0 28px;
        padding: 0;
        text-align: center;
        font-size: .95rem;
        font-weight: 800;
        line-height: 1;
        color: #1e3a8a;
        border: 1px solid #93c5fd;
        border-radius: 6px;
        background: #eff6ff;
        box-sizing: border-box;
        box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset;
    }

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 6;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    border: 0;
    background: #dc2626;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 38, 38, .45);
    -webkit-tap-highlight-color: transparent;
}

    .modal-close:hover {
        background: #b91c1c;
    }

.modal-sao-float {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 22px;
    z-index: 3;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.modal-sao-logo-plate,
.modal-sao-text {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 132px;
    height: 64px;
    min-width: 132px;
    min-height: 64px;
    padding: 6px 10px;
    background: linear-gradient(180deg, #fffefb, #fff4d0);
    border: 1px solid #f0d060;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(18, 36, 26, .22);
}

.modal-sao-logo-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .modal-sao-logo-plate img {
        height: 48px;
        width: auto;
        max-width: 112px;
        object-fit: contain;
        display: block;
    }

.modal-sao-text {
    margin-left: auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    text-align: center;
    color: var(--gold-deep);
    white-space: nowrap;
}

    .modal-sao-text .stars {
        display: block;
        font-size: .95rem;
        line-height: 1.1;
        color: #d4a017;
        letter-spacing: .04em;
    }

    .modal-sao-text .sao-label {
        display: block;
        font-weight: 900;
        font-size: 1.12rem;
        line-height: 1.15;
        color: var(--ink);
        letter-spacing: -.01em;
    }

.modal-body {
    padding: 8px 22px 24px;
}

.dn-kq-khung {
    margin: 2px 0 14px;
    padding: 18px 16px 18px;
    border-radius: 18px;
    text-align: center;
    color: #0f2744;
    background: linear-gradient(180deg, #f7fbff 0%, #eef5fc 100%);
    border: 1px solid #d5e4f4;
    box-shadow: 0 12px 28px rgba(15, 39, 68, .1);
}

.dn-kq-ky {
    display: block;
    margin: 0 0 10px;
    color: #0b3a73;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.dn-kq-chon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 12px;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dn-ky-select {
    min-width: 190px;
    max-width: min(100%, 280px);
    min-height: 42px;
    padding: 6px 12px;
    border: 1px solid #c9d8ea;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}

.dn-kq-muc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    min-width: 200px;
    padding: 10px 18px 10px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .01em;
    box-shadow: 0 4px 12px rgba(15, 39, 68, .06);
}

.dn-kq-hang-i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
    background: #64748b;
    flex: 0 0 auto;
}

.dn-kq-khung.hang-tientien { background: linear-gradient(165deg, #f0fdf4, #dcfce7); border-color: #86efac; }
.dn-kq-khung.hang-tientien .dn-kq-hang-i { background: #15803d; }
.dn-kq-khung.hang-tientien .dn-kq-muc { color: #15803d; border-color: #bbf7d0; }
.dn-kq-khung.hang-tbtt { background: linear-gradient(165deg, #eff6ff, #dbeafe); border-color: #93c5fd; }
.dn-kq-khung.hang-tbtt .dn-kq-hang-i { background: #1d4ed8; }
.dn-kq-khung.hang-tbtt .dn-kq-muc { color: #1d4ed8; border-color: #bfdbfe; }
.dn-kq-khung.hang-tb { background: linear-gradient(165deg, #fffbeb, #fef3c7); border-color: #fcd34d; }
.dn-kq-khung.hang-tb .dn-kq-hang-i { background: #d97706; }
.dn-kq-khung.hang-tb .dn-kq-muc { color: #b45309; border-color: #fde68a; }
.dn-kq-khung.hang-lachau { background: linear-gradient(165deg, #fef2f2, #fee2e2); border-color: #fca5a5; }
.dn-kq-khung.hang-lachau .dn-kq-hang-i { background: #dc2626; }
.dn-kq-khung.hang-lachau .dn-kq-muc { color: #b91c1c; border-color: #fecaca; }
.dn-kq-khung.hang-chua .dn-kq-muc { color: #334155; }
.dn-kq-khung.hang-chua .dn-kq-hang-i { background: #64748b; }

.dn-kq-mini {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    line-height: 1.25;
}

.dn-kq-mini-muc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    font-weight: 900;
}

.dn-kq-mini-muc .dn-kq-hang-i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: .82rem;
}

.dn-kq-mini-ky {
    font-size: .7rem;
    font-weight: 700;
    opacity: .85;
    padding-left: 36px;
}

.dn-kq-mini.hang-tientien { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.dn-kq-mini.hang-tientien .dn-kq-hang-i { background: #15803d; }
.dn-kq-mini.hang-tbtt { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.dn-kq-mini.hang-tbtt .dn-kq-hang-i { background: #1d4ed8; }
.dn-kq-mini.hang-tb { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.dn-kq-mini.hang-tb .dn-kq-hang-i { background: #d97706; }
.dn-kq-mini.hang-lachau { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.dn-kq-mini.hang-lachau .dn-kq-hang-i { background: #dc2626; }
.dn-kq-mini.hang-chua { background: #f8fafc; border-color: #e2e8f0; color: #475569; }
.dn-kq-mini.hang-chua .dn-kq-hang-i { background: #64748b; }

.xa-pop-kq {
    margin-top: 8px;
    width: 100%;
}

.xa-pop-kq .dn-kq-mini {
    width: 100%;
    box-sizing: border-box;
}

.dn-hang {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px 2px 6px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .01em;
    vertical-align: middle;
}

.dn-hang-i {
    font-size: .75rem;
}

.dock-hang .dn-hang {
    margin-left: 2px;
}

.xep-tinh {
    margin-left: 2px;
    font-size: .92em;
}

.xep-tinh.is-chinh { color: #15803d !important; }
.xep-tinh.is-du { color: #d97706 !important; }
.xep-tinh.is-chua { color: #64748b !important; }

.dn-kq-muc .xep-tinh,
.dn-kq-mini-muc .xep-tinh {
    font-size: .85em;
}

.modal-title-row {
    display: block;
    margin: 0 0 12px;
}

.modal-title-main {
    min-width: 0;
}

.kicker {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin: 0 0 5px;
}

.modal-body h3 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.28;
    letter-spacing: -.02em;
    color: var(--ink);
}

.modal-party-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 0 0 12px;
}

.modal-party {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5 55%, #fffbeb);
    border: 1px solid #bbf7d0;
    box-shadow: 0 4px 14px rgba(15, 61, 40, .06);
}

.modal-party-ico {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #166534, #14532d);
    color: #fef9c3;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(20, 83, 45, .28);
}

.modal-party-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.modal-party-lbl {
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
}

.modal-party-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.35;
    word-break: break-word;
}

.modal-party-sub {
    font-size: .8rem;
    font-weight: 600;
    color: #3d5c4a;
    line-height: 1.4;
}

.modal-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
}

.modal-chip,
.modal-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: .74rem;
    font-weight: 800;
    line-height: 1.2;
}

.modal-chip {
    background: #eef7f1;
    color: var(--green-2);
    border: 1px solid #c6e9d4;
}

    .modal-chip > i {
        color: #16a34a;
    }

.modal-status.is-ok {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #6ee7b7;
}

    .modal-status.is-ok > i {
        color: #16a34a;
    }

.modal-status.is-warn {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fdba74;
}

    .modal-status.is-warn > i {
        color: #ea580c;
    }

.desc {
    font-size: .94rem;
    line-height: 1.58;
    color: #33443b;
    margin: 0 0 14px;
}

.modal-info-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 4px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(212, 160, 23, .22);
    box-shadow: 0 8px 22px rgba(18, 36, 26, .05);
}

.modal-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fffefb, #f7f3ea);
    border: 1px solid #ead9a8;
    min-width: 0;
}

    .modal-info-row.is-price {
        background: linear-gradient(180deg, #fffbeb, #fef3c7);
        border-color: #f0d060;
    }

    .modal-info-row.is-wide {
        grid-column: 1 / -1;
    }

.modal-info-ico {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #ecfdf5;
    color: #15803d;
    font-size: .92rem;
    border: 1px solid #bbf7d0;
}

.modal-info-row.is-price .modal-info-ico {
    background: #fff7ed;
    color: #b45309;
    border-color: #fcd34d;
}

.modal-info-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.modal-info-lbl {
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.modal-info-val {
    font-size: .92rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.4;
    word-break: break-word;
    text-align: right;
    padding-top: 5px;
}

.modal-info-row.is-price .modal-info-val {
    color: #92400e;
    font-size: 1rem;
    font-weight: 800;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.modal-qr {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffef8 0%, #fff4c2 48%, #ffe89a 100%);
    border: 1px solid #f0d060;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 4px 14px rgba(154, 114, 9, .12);
}

.modal-qr-img-wrap {
    flex: 0 0 auto;
    display: block;
    line-height: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 61, 40, .12);
    border: 1px solid rgba(15, 61, 40, .08);
}

.modal-qr-img {
    display: block;
    width: 120px;
    height: 120px;
    image-rendering: pixelated;
}

.modal-qr-brand {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 4px 4px 2px;
}

.modal-qr-logo {
    display: block;
    width: auto;
    height: 56px;
    max-width: 160px;
    object-fit: contain;
}

.modal-qr-sao {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.modal-qr-stars {
    font-size: 1.4rem;
    line-height: 1;
    letter-spacing: .08em;
    color: #a16207;
    text-shadow: 0 1px 0 rgba(255,255,255,.55), 0 0 1px rgba(120, 53, 15, .35);
    -webkit-text-stroke: .35px #854d0e;
}

.modal-qr-sao-lbl {
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .14em;
    color: #854d0e;
}

.modal-qr-hint {
    margin: 8px 0 0;
    text-align: center;
    font-size: .72rem;
    line-height: 1.4;
    color: var(--muted, #5b6b60);
}

.modal-qr-link {
    display: block;
    margin: 6px 0 0;
    padding: 6px 8px;
    border-radius: 8px;
    background: #f7faf7;
    border: 1px dashed rgba(22, 101, 52, .22);
    font-size: .68rem;
    font-weight: 600;
    color: #166534;
    word-break: break-all;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
    font-size: .9rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

    .btn:hover {
        transform: translateY(-1px);
    }

    .btn > i {
        font-size: .95rem;
    }

.btn-gold {
    color: #3b2a04;
    background: linear-gradient(180deg, #f5d76e, #d4a017);
    box-shadow: 0 8px 18px rgba(212,160,23,.38);
    flex: 1 1 160px;
}

    .btn-gold:hover {
        filter: brightness(1.04);
    }

.btn-zalo {
    background: linear-gradient(180deg, #2b7cff, #0068ff);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 104, 255, .32);
    flex: 1 1 120px;
}

    .btn-zalo:hover {
        filter: brightness(1.05);
    }

.btn-ghost {
    background: #fff;
    color: var(--green-2);
    border-color: #e6d7a8;
}

.related {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px dashed rgba(18, 36, 26, .12);
}

    .related h4 {
        margin: 0 0 10px;
        font-size: .76rem;
        font-weight: 800;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--muted);
    }

.related-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.rel-card {
    flex: 0 0 118px;
    border: 0;
    background: #fff;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #ead9a8;
    text-align: left;
    font-family: inherit;
    transition: transform .15s ease, box-shadow .2s ease;
}

    .rel-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(18, 36, 26, .12);
    }

    .rel-card img, .rel-card .ph {
        width: 100%;
        height: 78px;
        object-fit: cover;
        display: block;
        background: #e8f5ee;
    }

    .rel-card .ph {
        display: grid;
        place-items: center;
        height: 78px;
    }

    .rel-card span {
        display: block;
        padding: 6px 8px 8px;
        font-size: .72rem;
        font-weight: 800;
        line-height: 1.25;
        color: var(--ink);
    }

.toast {
    position: fixed;
    z-index: 1300;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    background: rgba(11, 74, 154, .94);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    display: none;
}

@media (max-width: 820px) {
    .dock {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 46vh;
        max-height: 46vh;
        border-right: 0;
        border-top: 1px solid rgba(212, 160, 23, .35);
        border-radius: 16px 16px 0 0;
        transform: none;
    }

    .ocop-stage.dock-collapsed .dock {
        transform: translateY(calc(100% + 2px));
    }

    .dock-toggle {
        top: auto;
        bottom: 46vh;
        left: 50%;
        transform: translate(-50%, 50%);
        transition: bottom .38s cubic-bezier(.22, 1, .36, 1), transform .38s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease;
    }

    .dock-toggle-icon {
        transform: rotate(90deg);
    }

    .ocop-stage.dock-collapsed .dock-toggle-icon {
        transform: rotate(-90deg) scaleX(-1);
    }

    .ocop-stage.dock-collapsed .dock-toggle {
        bottom: 14px;
        left: 50%;
        transform: translate(-50%, 0);
    }

    .modal-hero {
        height: 210px;
    }

    .modal-party-row {
        flex-direction: column;
    }

    .modal-info-list {
        grid-template-columns: 1fr;
    }

    .modal-info-row.is-wide {
        grid-column: auto;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-qr {
        gap: 14px;
        padding: 14px 12px;
    }

    .modal-qr-img {
        width: 108px;
        height: 108px;
    }

    .modal-qr-logo {
        height: 48px;
        max-width: 130px;
    }

    .modal-qr-stars {
        font-size: 1.15rem;
    }

    .modal-qr-sao-lbl {
        font-size: .85rem;
    }

    .btn-gold, .btn-zalo {
        flex: 1 1 auto;
        width: 100%;
    }
}