/* PWA Install Overlay Styles */
:root {
    --pwa-accent: #6366F1;
    --pwa-bg: rgba(255, 255, 255, 0.85);
    --pwa-text: #1F2937;
}

@media (prefers-color-scheme: dark) {
    :root {
        --pwa-bg: rgba(17, 24, 39, 0.9);
        --pwa-text: #F9FAFB;
    }
}

#pwa-install-overlay {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 9999;
    background: var(--pwa-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--pwa-text);
    transform: translateY(120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

#pwa-install-overlay.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.pwa-content {
    width: 100%;
    position: relative;
    text-align: left;
}

.pwa-close-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--pwa-text);
    opacity: 0.6;
}

.pwa-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pwa-logo-wrapper {
    width: 48px;
    height: 48px;
    background: var(--pwa-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.pwa-logo {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
    /* Force white logo on purple bg */
}

.pwa-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.pwa-description {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1.25rem;
    opacity: 0.85;
}

.pwa-benefit-icon {
    color: var(--pwa-accent);
    font-size: 18px !important;
}

.pwa-install-btn {
    background: var(--pwa-accent);
    color: white;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.25);
}

.ios-instructions {
    margin-top: 0.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    font-size: 0.9rem;
}

@media (prefers-color-scheme: dark) {
    .ios-instructions {
        background: rgba(255, 255, 255, 0.05);
    }

    .pwa-close-btn {
        background: rgba(255, 255, 255, 0.1);
    }
}

.ios-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.ios-icon {
    height: 24px;
    width: auto;
    vertical-align: middle;
}