.pwa-install-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.pwa-install-banner__text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.pwa-install-banner__text strong {
    display: block;
    margin-bottom: 0.15rem;
}

.pwa-install-banner__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pwa-install-banner__btn {
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.pwa-install-banner__btn--primary {
    background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
    color: #fff;
}

.pwa-install-banner__btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
}

.pwa-ios-guide {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.pwa-ios-guide[hidden] {
    display: none !important;
}

body.pwa-ios-guide-open {
    overflow: hidden;
}

.pwa-ios-guide__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.pwa-ios-guide__sheet {
    position: relative;
    width: min(100%, 480px);
    margin: 0 0 max(1rem, env(safe-area-inset-bottom));
    padding: 1.25rem 1.25rem 1.5rem;
    border-radius: 18px 18px 0 0;
    background: #111827;
    color: #fff;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: pwa-sheet-up 0.25s ease-out;
}

@keyframes pwa-sheet-up {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pwa-ios-guide__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.pwa-ios-guide__header strong {
    font-size: 1.05rem;
}

.pwa-ios-guide__close {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.pwa-ios-guide__intro,
.pwa-ios-guide__note {
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

.pwa-ios-guide__note {
    margin: 1rem 0;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.15);
    color: #dbeafe;
}

.pwa-ios-guide__steps {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.pwa-ios-guide__steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.92rem;
    line-height: 1.45;
}

.pwa-ios-guide__step-icon {
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
    font-size: 0.78rem;
    font-weight: 700;
}

@media (max-width: 640px) {
    .pwa-install-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .pwa-install-banner__actions {
        justify-content: flex-end;
    }
}
