/* --- SPLICE-STYLE PWA A2HS WIZARD --- */

.pwa-a2hs-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--splice-transition);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
}

.pwa-a2hs-overlay.show {
    opacity: 1;
    visibility: visible;
}

.pwa-a2hs-modal {
    background-color: var(--bg-card); /* Use theme card background */
    border: 1px solid var(--splice-border);
    border-radius: var(--splice-radius);
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--splice-shadow);
    transform: translateY(20px);
    transition: var(--splice-transition);
    position: relative;
    color: var(--text-primary); /* Base theme text */
}

.pwa-a2hs-overlay.show .pwa-a2hs-modal {
    transform: translateY(0);
}

.pwa-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary); /* Theme aware close icon */
    cursor: pointer;
    line-height: 1;
}

.pwa-icon {
    width: 64px;
    height: 64px;
    background-color: var(--zitopy-blue);
    border-radius: 12px;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white; /* Icon itself can stay white */
}

.pwa-title {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--text-primary); /* Fix: Theme aware title */
    margin-bottom: 0.75rem;
}

.pwa-description {
    font-size: 0.9rem;
    color: var(--text-secondary); /* Fix: Theme aware description */
    margin-bottom: 2rem;
    line-height: 1.5;
}

.pwa-install-btn {
    background-color: var(--zitopy-yellow);
    color: var(--splice-black);
    border: none;
    padding: 1rem 2rem;
    min-height: 48px; /* Fat-finger safety */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--splice-radius);
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    width: 100%;
    cursor: pointer;
    transition: var(--splice-transition);
    margin-bottom: 1rem;
}

@media (hover: hover) {
    .pwa-install-btn:hover {
        background-color: #ffc845;
        transform: translateY(-2px);
    }
}

.pwa-not-now-btn {
    background: none;
    border: none;
    color: var(--text-secondary); /* Theme aware secondary text */
    font-size: 0.75rem;
    font-weight: 700;
    min-height: 48px; /* Fat-finger safety */
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 0.05em;
    width: 100%;
}

/* iOS Specific Wizardry */
.pwa-ios-instructions {
    display: none;
    text-align: left;
    background-color: var(--splice-input);
    padding: 1.25rem;
    border-radius: var(--splice-radius);
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--zitopy-blue);
}

.pwa-ios-instructions p {
    margin: 0.75rem 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary); /* Fix: Theme aware iOS text */
    font-weight: 600;
}

.pwa-ios-instructions svg {
    color: var(--zitopy-blue);
    flex-shrink: 0;
}
