/* Mobile install banner and the post-install notification sheet. */

.hv-install-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 100040;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .32);
    color: #fff;
    animation: hvInstallIn .28s ease-out;
}

.hv-install-banner--above-cookie {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.hv-install-banner-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    flex: 0 0 auto;
}

.hv-install-banner-copy {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
}

.hv-install-banner-copy b {
    font-size: .86rem;
    line-height: 1.25;
}

.hv-install-banner-copy span {
    font-size: .72rem;
    color: #cbd5e1;
    line-height: 1.3;
}

.hv-install-banner-btn {
    flex: 0 0 auto;
    border: 0;
    border-radius: 10px;
    padding: 9px 13px;
    background: linear-gradient(135deg, #2E7BFF, #9B3DFF);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.hv-install-banner-close {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #cbd5e1;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.hv-onb-overlay {
    z-index: 100060;
    padding: 18px;
}

.hv-onb-card {
    width: 100%;
    max-width: 430px;
    margin: auto;
    background: var(--theme-card, #fff);
    border: 1px solid var(--theme-border, #e5e7eb);
    border-radius: 20px;
    padding: 22px 20px 16px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .38);
    color: var(--theme-text, #111827);
    text-align: center;
    animation: hvOnbIn .28s ease-out;
}

.hv-onb-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    background: linear-gradient(135deg, rgba(46, 123, 255, .16), rgba(214, 75, 255, .18));
    border: 1px solid rgba(46, 123, 255, .22);
}

.hv-onb-icon--ok {
    color: #16a34a;
    background: rgba(34, 197, 94, .12);
    border-color: rgba(34, 197, 94, .25);
    font-weight: 800;
}

.hv-onb-icon--warn {
    color: #f59e0b;
    background: rgba(245, 158, 11, .12);
    border-color: rgba(245, 158, 11, .25);
}

.hv-onb-card h2 {
    margin: 0 0 8px;
    font-size: 1.12rem;
    line-height: 1.25;
}

.hv-onb-card p {
    margin: 0 0 12px;
    font-size: .88rem;
    line-height: 1.5;
    color: var(--theme-text2, #6b7280);
}

.hv-onb-list,
.hv-onb-steps {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0 0 16px;
    font-size: .84rem;
    line-height: 1.45;
}

.hv-onb-list div,
.hv-onb-steps div {
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(148, 163, 184, .10);
    border: 1px solid var(--theme-border, #e5e7eb);
}

.hv-onb-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.hv-onb-btn {
    border-radius: 11px;
    padding: 10px 16px;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
}

.hv-onb-btn.primary {
    background: linear-gradient(135deg, #2E7BFF, #9B3DFF);
    color: #fff;
}

.hv-onb-btn.secondary {
    background: var(--theme-card, #fff);
    color: var(--theme-text, #111827);
    border-color: var(--theme-border, #334155);
}

.hv-onb-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--theme-border, #e5e7eb);
    font-size: .76rem;
    color: var(--theme-text2, #6b7280);
}

.hv-onb-foot label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.hv-onb-link {
    border: 0;
    background: transparent;
    color: var(--theme-text2, #6b7280);
    font-size: .76rem;
    cursor: pointer;
}

@keyframes hvInstallIn {
    from { transform: translateY(18px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@keyframes hvOnbIn {
    from { transform: translateY(14px) scale(.98); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@media (min-width: 900px) {
    .hv-install-banner {
        display: none;
    }
}

@media (max-width: 420px) {
    .hv-install-banner-copy b {
        font-size: .82rem;
    }
    .hv-install-banner-btn {
        padding: 8px 11px;
    }
}

.hv-onb-error {
    color: #dc2626;
    font-size: .8rem;
    line-height: 1.4;
    margin: 10px 0 0;
}

.hv-install-demo {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 12px 0 0;
    padding: 8px;
    border: 1px solid var(--theme-border, #e5e7eb);
    border-radius: 12px;
    background: rgba(148, 163, 184, .08);
    cursor: pointer;
    text-align: left;
    color: var(--theme-text, #111827);
}

.hv-install-demo img {
    width: 46px;
    height: 82px;
    object-fit: cover;
    border-radius: 8px;
    flex: 0 0 auto;
    border: 1px solid rgba(148, 163, 184, .24);
}

.hv-install-demo-copy {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hv-install-demo-copy b {
    font-size: .86rem;
}

.hv-install-demo-copy span {
    font-size: .74rem;
    color: var(--theme-text2, #6b7280);
}

.hv-install-demo-play {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2E7BFF, #9B3DFF);
    color: #fff;
    font-size: .72rem;
    padding-left: 2px;
}

#hv-install-demo-overlay {
    position: fixed;
    inset: 0;
    z-index: 100070;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#hv-install-demo-overlay img {
    max-width: min(420px, 100%);
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}

.hv-install-demo-close {
    position: absolute;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
