/* Shared install prompt for HALO Klient and HALO Salon. */
[data-halo-pwa-install][hidden],
.halo-pwa-dialog__secondary[hidden] {
    display: none;
}
.halo-pwa-install-control { cursor: pointer; }
.halo-pwa-account-install {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-top: 10px;
    padding: 8px 15px;
    border: 1px solid rgba(218, 164, 102, .55);
    border-radius: 999px;
    background: rgba(218, 164, 102, .12);
    color: #f4c695;
    font: 700 13px/1.35 system-ui, sans-serif;
}
.halo-pwa-dialog {
    position: fixed;
    box-sizing: border-box;
    width: min(450px, calc(100vw - 24px));
    max-width: 450px;
    max-height: calc(100dvh - 28px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid rgba(220, 164, 112, .43);
    border-radius: 27px;
    background: radial-gradient(ellipse at 80% 0%, rgba(174, 102, 66, .22), transparent 45%),
                linear-gradient(150deg, #32221d 0%, #211713 63%, #17110e 100%);
    color: #fff1e5;
    box-shadow: 0 28px 92px rgba(0, 0, 0, .62), inset 0 1px rgba(255, 246, 230, .07);
}
.halo-pwa-dialog::backdrop { background: rgba(9, 6, 5, .7); backdrop-filter: blur(5px); }
.halo-pwa-dialog__content { position: relative; padding: 32px 30px 27px; }
.halo-pwa-dialog__close {
    position: absolute;
    top: 15px;
    right: 15px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(240, 210, 179, .17);
    border-radius: 50%;
    background: rgba(255, 255, 255, .045);
    color: #f9e9d9;
    font: 400 27px/1 system-ui, sans-serif;
    cursor: pointer;
}
.halo-pwa-dialog__icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: 0 0 19px;
    padding: 7px;
    border: 1px solid rgba(234, 181, 118, .31);
    border-radius: 24px;
    background: rgba(255, 248, 236, .05);
    box-shadow: 0 12px 32px rgba(8, 4, 3, .25);
}
.halo-pwa-dialog__icon img {
    display: block;
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 16px;
}
.halo-pwa-dialog__eyebrow {
    display: block;
    color: #efbe88;
    font: 800 10px/1.4 system-ui, sans-serif;
    letter-spacing: .15em;
}
.halo-pwa-dialog h2 {
    margin: 9px 0 12px;
    color: #fff7ed;
    font: 750 clamp(23px, 6vw, 29px)/1.16 system-ui, sans-serif;
    letter-spacing: -.02em;
}
.halo-pwa-dialog p {
    margin: 0;
    color: #e5d2c2;
    font: 400 15px/1.65 system-ui, sans-serif;
}
.halo-pwa-dialog__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
    gap: 10px;
    margin-top: 26px;
}
.halo-pwa-dialog__button,
.halo-pwa-dialog__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    padding: 12px 15px;
    border-radius: 14px;
    font: 750 14px/1.3 system-ui, sans-serif;
    cursor: pointer;
}
.halo-pwa-dialog__button {
    border: 1px solid #e9b380;
    background: linear-gradient(130deg, #f5c891, #c58c5e);
    color: #23150e;
}
.halo-pwa-dialog__secondary {
    border: 1px solid rgba(232, 183, 142, .3);
    background: rgba(255, 249, 241, .055);
    color: #ead2bc;
}
.halo-pwa-dialog__secondary[hidden] + .halo-pwa-dialog__button {
    grid-column: 1 / -1;
}
.halo-pwa-dialog__button:focus-visible,
.halo-pwa-dialog__secondary:focus-visible,
.halo-pwa-dialog__close:focus-visible,
.halo-pwa-install-control:focus-visible {
    outline: 2px solid #fbd4ab;
    outline-offset: 3px;
}
@media (max-width: 440px) {
    .halo-pwa-dialog__content { padding: 25px 19px 21px; }
    .halo-pwa-dialog__icon { width: 74px; height: 74px; padding: 5px; margin-bottom: 15px; }
    .halo-pwa-dialog__icon img { width: 62px; height: 62px; }
    .halo-pwa-dialog__actions { margin-top: 22px; }
    .halo-pwa-dialog__button, .halo-pwa-dialog__secondary { font-size: 13px; }
}
/* A persistent, nonblocking dashboard entry point even if an automatic offer was deferred. */
.halo-pwa-dashboard-offer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding: 12px 16px;
    border: 1px solid rgba(213, 166, 111, .34);
    border-radius: 18px;
    background: linear-gradient(110deg, rgba(107, 66, 43, .25), rgba(37, 24, 21, .45));
    color: #f4e1d2;
    box-shadow: inset 0 1px 0 rgba(255, 247, 230, .06);
}
.halo-pwa-dashboard-offer__icon {
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    background: rgba(232, 176, 112, .14);
    color: #f1c08b;
    font-size: 18px;
}
.halo-pwa-dashboard-offer__copy {
    flex: 1 1 auto;
    min-width: 0;
    font: 600 13px/1.45 system-ui, sans-serif;
}
.halo-pwa-dashboard-offer__button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid rgba(238, 190, 134, .72);
    border-radius: 12px;
    background: linear-gradient(130deg, #f4c58d, #d49d68);
    color: #281a12;
    font: 800 12px/1.35 system-ui, sans-serif;
    cursor: pointer;
}
.halo-pwa-dashboard-offer__button:focus-visible {
    outline: 2px solid #f7d0a3;
    outline-offset: 3px;
}
@media (max-width: 550px) {
    .halo-pwa-dashboard-offer {
        flex-wrap: wrap;
        gap: 10px;
        padding: 13px;
    }
    .halo-pwa-dashboard-offer__button {
        flex: 1 0 100%;
        text-align: center;
    }
}
/* Hide installed or explicitly dismissed PWA offers, including on desktop. */
.halo-pwa-dashboard-offer[hidden]{display:none}
@media (display-mode:standalone){.halo-pwa-dashboard-offer{display:none}}
