/* Install app button (header) */
.install-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--brand-gradient);
    color: #fff;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.install-btn:hover { filter: brightness(1.1); }
.install-btn.hidden { display: none; }

/* Reassurance card under the button, before the browser's install prompt */
.install-wrap { position: relative; }
.install-card {
    position: absolute;
    inset-inline-end: 0;   /* right in LTR, left in RTL */
    top: calc(100% + 8px);
    z-index: 50;
    width: min(280px, calc(100vw - 32px));
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.install-card.hidden { display: none; }
.install-title {
    margin: 0 0 10px;
    margin-inline-end: 24px;   /* room for ✕ */
    font-weight: 700;
    color: var(--text-primary);
}
.install-trust {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.install-go {
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--brand-gradient);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.install-go:hover { filter: brightness(1.1); }
.install-close {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    cursor: pointer;
}
.install-close:hover { color: var(--text-primary); }
