.hdv2-pwa-install {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.hdv2-pwa-install.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hdv2-pwa-install__card {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
    padding: 12px 14px;
    border-radius: 16px;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 40px hsl(0 0% 0% / 0.18);
    font-family: Inter, system-ui, -apple-system, sans-serif;
}

.hdv2-pwa-install__icon img {
    display: block;
    border-radius: 10px;
}

.hdv2-pwa-install__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hdv2-pwa-install__body strong {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
}

.hdv2-pwa-install__body span {
    font-size: 0.8rem;
    line-height: 1.35;
    color: #64748b;
}

.hdv2-pwa-install__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.hdv2-pwa-install__btn {
    appearance: none;
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    background: #4b21ef;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.hdv2-pwa-install__btn:hover {
    background: #3d1bc4;
}

.hdv2-pwa-install__dismiss {
    appearance: none;
    border: 0;
    background: transparent;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.hdv2-pwa-install__dismiss:hover {
    background: #f1f5f9;
    color: #475569;
}

html.dark .hdv2-pwa-install__card,
[data-theme="dark"] .hdv2-pwa-install__card {
    background: #111827;
    color: #f8fafc;
    border-color: #334155;
}

html.dark .hdv2-pwa-install__body span,
[data-theme="dark"] .hdv2-pwa-install__body span {
    color: #94a3b8;
}

html.dark .hdv2-pwa-install__dismiss:hover,
[data-theme="dark"] .hdv2-pwa-install__dismiss:hover {
    background: #1f2937;
    color: #e2e8f0;
}

@media (min-width: 768px) {
    .hdv2-pwa-install {
        display: none !important;
    }
}
