/* Smart PWA Install Popup */
.pwa-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    /* Start slightly below/hidden */
    width: 90%;
    max-width: 400px;
    background: rgba(0, 86, 179, 0.85);
    /* Dark Blue */
    backdrop-filter: blur(12px);
    /* Glassmorphism */
    -webkit-backdrop-filter: blur(12px);
    /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 20px;
    z-index: 9999;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    gap: 15px;
    color: white;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
}

.pwa-popup.show {
    display: flex;
    /* Or block, handled by JS primarily for opacity transition */
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.pwa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pwa-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.pwa-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
}

.pwa-close:hover {
    color: white;
}

.pwa-body {
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.pwa-actions {
    display: flex;
    gap: 10px;
}

.pwa-btn-install {
    flex: 1;
    background-color: #FFD700;
    /* Electric Yellow */
    color: #333;
    /* Dark Text */
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    text-align: center;
}

.pwa-btn-install:hover {
    background-color: #ffea00;
    transform: translateY(-2px);
}

.pwa-btn-dismiss {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.pwa-btn-dismiss:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile specific tweaks if needed */
@media (min-width: 768px) {
    .pwa-popup {
        right: 20px;
        left: auto;
        transform: translateY(100px);
        /* On desktop, animate from bottom right */
    }

    .pwa-popup.show {
        transform: translateY(0);
    }
}