/* Prosper Digital — PWA install prompt (bar + iOS instructions sheet).
   Loaded by the public, auth and portal layouts alongside pwa.js.
   The bar only appears when the browser can actually install the app
   (or on iOS, where installing is a manual Share-menu step). */

.pd-pwa-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 1090;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1C2340;
    color: #fff;
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 12px 32px rgba(15, 22, 41, .35);
    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
}
.pd-pwa-bar.show { transform: none; opacity: 1; pointer-events: auto; }
.pd-pwa-ic { width: 38px; height: 38px; border-radius: 9px; flex: 0 0 auto; }
.pd-pwa-tx { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.pd-pwa-tx strong {
    display: block; font-size: 14px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pd-pwa-tx span {
    display: block; font-size: 12px; opacity: .75;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pd-pwa-go {
    background: #C2410C; border: 0; color: #fff; cursor: pointer;
    font-weight: 700; font-size: 13px; padding: 8px 14px;
    border-radius: 9px; flex: 0 0 auto;
}
.pd-pwa-x {
    background: transparent; border: 0; color: #fff; opacity: .7;
    font-size: 18px; line-height: 1; padding: 4px 2px; cursor: pointer;
    flex: 0 0 auto;
}

@media (min-width: 768px) {
    .pd-pwa-bar { left: auto; right: 20px; bottom: 20px; width: 360px; }
}
@media (max-width: 380px) {
    .pd-pwa-tx span { display: none; }
}

/* iOS "Add to Home Screen" instructions sheet */
.pd-pwa-sheetwrap {
    position: fixed; inset: 0; z-index: 1095;
    background: rgba(15, 22, 41, .5);
    display: none; align-items: flex-end; justify-content: center;
}
.pd-pwa-sheetwrap.show { display: flex; }
.pd-pwa-sheet {
    background: #fff; color: #1C2340; width: 100%; max-width: 480px;
    border-radius: 18px 18px 0 0; padding: 20px 20px calc(18px + env(safe-area-inset-bottom));
}
.pd-pwa-sheet h4 { font-size: 16px; font-weight: 800; margin: 0 0 10px; }
.pd-pwa-sheet ol { margin: 0 0 16px; padding-left: 20px; font-size: 14px; line-height: 1.55; }
.pd-pwa-done {
    width: 100%; background: #C2410C; border: 0; color: #fff;
    font-weight: 700; font-size: 14px; padding: 11px; border-radius: 10px;
    cursor: pointer;
}
