/* PWA — banner & modal install */
.pwa-install-bar {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1200;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #14532d;
    color: #ecfdf5;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    font-size: 13px;
}

.pwa-install-bar.is-visible {
    display: flex;
}

.pwa-install-bar span {
    flex: 1;
    line-height: 1.35;
}

.pwa-install-bar button {
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.pwa-install-bar .pwa-install-go {
    background: #22c55e;
    color: #052e16;
}

.pwa-install-bar .pwa-install-dismiss {
    background: rgba(255, 255, 255, 0.12);
    color: #ecfdf5;
}

.pwa-install-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(15, 23, 42, 0.72);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pwa-install-modal.is-open {
    display: flex;
}

body.pwa-modal-open {
    overflow: hidden;
}

.pwa-install-dialog {
    width: 100%;
    max-width: 340px;
    background: #fff;
    color: #0f172a;
    border-radius: 16px;
    padding: 24px 20px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.pwa-install-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
}

.pwa-install-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 16px;
    margin: 0 auto 12px;
    display: block;
}

.pwa-install-dialog h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #14532d;
}

.pwa-install-desc {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.45;
}

.pwa-install-ios,
.pwa-install-manual {
    margin: 0 0 14px;
    font-size: 0.82rem;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    line-height: 1.45;
}

.pwa-install-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pwa-install-primary {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    background: #16a34a;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}

.pwa-install-later {
    width: 100%;
    border: none;
    background: transparent;
    color: #64748b;
    padding: 8px;
    font-size: 0.88rem;
    cursor: pointer;
}
