.pwa-install-card {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 18px;
    z-index: 1105;
    display: none;
    max-width: 420px;
    margin: 0 auto;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 246, 255, 0.98) 100%);
    border: 1px solid rgba(92, 109, 196, 0.18);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.pwa-install-card.pwa-install-visible {
    display: block;
    animation: pwaCardRise 0.22s ease-out;
}

.pwa-install-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 12px;
    background: linear-gradient(135deg, #5c7df8 0%, #5b42e8 100%);
    color: #fff;
}

.pwa-install-card__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.pwa-install-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.pwa-install-card__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.pwa-install-card__eyebrow {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.86;
    margin-bottom: 2px;
}

.pwa-install-card__title {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.1;
}

.pwa-install-card__close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 999px;
}

.pwa-install-card__body {
    padding: 16px;
    color: #334155;
}

.pwa-install-card__body p {
    margin: 0 0 12px;
    font-size: 0.95rem;
    line-height: 1.45;
}

.pwa-install-card__hint {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(79, 70, 229, 0.08);
    color: #4338ca;
    font-size: 0.88rem;
    line-height: 1.4;
}

.pwa-install-card__hint strong {
    display: inline-block;
    margin-right: 4px;
}

.pwa-install-card__actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.pwa-install-card__button {
    flex: 1 1 auto;
    border: 0;
    border-radius: 14px;
    min-height: 46px;
    padding: 0 16px;
    font-weight: 800;
    font-size: 0.94rem;
}

.pwa-install-card__button--primary {
    background: linear-gradient(135deg, #5c7df8 0%, #5b42e8 100%);
    color: #fff;
    box-shadow: 0 14px 24px rgba(91, 66, 232, 0.24);
}

.pwa-install-card__button--ghost {
    background: #eef2ff;
    color: #4f46e5;
}

@keyframes pwaCardRise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .pwa-install-card {
        left: auto;
        right: 18px;
        bottom: 22px;
        margin: 0;
        width: min(420px, calc(100vw - 36px));
    }
}

@media (max-width: 420px) {
    .pwa-install-card {
        left: 10px;
        right: 10px;
        bottom: 10px;
        border-radius: 20px;
    }

    .pwa-install-card__header,
    .pwa-install-card__body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .pwa-install-card__actions {
        flex-direction: column;
    }
}
