/* PWA install banner */

.pwa-install-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    max-width: 420px;
    margin: 0 auto;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(49, 46, 129, 0.94));
    border: 1px solid rgba(99, 102, 241, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    color: #f8fafc;
}

.pwa-install-banner[hidden] {
    display: none !important;
}

.pwa-install-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pwa-install-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #6366f1;
}

.pwa-install-copy {
    flex: 1;
    min-width: 0;
}

.pwa-install-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    font-weight: 800;
    font-size: 0.95rem;
    margin: 0 0 0.2rem;
    line-height: 1.3;
}

.pwa-install-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(52, 211, 153, 0.45);
}

.pwa-install-text {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(248, 250, 252, 0.75);
    line-height: 1.4;
}

.pwa-install-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.pwa-install-actions .btn {
    font-size: 0.78rem;
    font-weight: 700;
}

.pwa-install-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(248, 250, 252, 0.65);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
}

.pwa-install-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.pwa-ios-hint {
    margin-top: 0.55rem;
    font-size: 0.72rem;
    color: rgba(248, 250, 252, 0.8);
    line-height: 1.45;
}

@media (min-width: 576px) {
    .pwa-install-banner {
        left: auto;
        right: 1.25rem;
        bottom: 1.25rem;
        margin: 0;
    }
}
