.qp-hidden {
    display: none !important;
}

.qp-pwa-install {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
}

.qp-pwa-install:not(.qp-hidden) {
    pointer-events: auto;
}

.qp-pwa-install-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    animation: qpPwaFadeIn 0.25s ease;
}

.qp-pwa-install-card {
    position: relative;
    width: min(420px, 100%);
    padding: 1.5rem 1.35rem 1.1rem;
    border-radius: 22px 22px 18px 18px;
    background: linear-gradient(160deg, #101828 0%, #0b1220 55%, #111827 100%);
    border: 1px solid rgba(66, 165, 245, 0.25);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(0, 191, 255, 0.12);
    animation: qpPwaSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.qp-pwa-install-glow {
    position: absolute;
    top: -40px;
    right: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.35), transparent 70%);
    pointer-events: none;
}

.qp-pwa-install-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.qp-pwa-install-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.qp-pwa-install-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.qp-pwa-install-title {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: #fff;
}

.qp-pwa-install-sub {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 1rem;
    line-height: 1.5;
}

.qp-pwa-install-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    font-weight: 600;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
}

.qp-pwa-install-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #1565c0, #42a5f5);
    box-shadow: 0 8px 24px rgba(25, 118, 210, 0.35);
}

.qp-pwa-install-btn--primary:hover {
    filter: brightness(1.06);
}

.qp-pwa-install-hint {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    line-height: 1.5;
}

.qp-pwa-ios-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.qp-pwa-ios-steps li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.88);
}

.qp-pwa-ios-steps .material-icons {
    font-size: 1.2rem;
    color: #64b5f6;
}

.qp-pwa-install-later {
    display: block;
    margin: 0.85rem auto 0;
    padding: 0.35rem 0.75rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.qp-pwa-install-later:hover {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes qpPwaSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes qpPwaFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (min-width: 768px) {
    .qp-pwa-install {
        align-items: center;
    }

    .qp-pwa-install-card {
        border-radius: 22px;
    }
}
