#pwa-install-banner {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    left: 24px;
    right: 24px;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
    z-index: 2147483647; /* Highest possible z-index */
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#pwa-install-banner.fade-out {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

.pwa-banner-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pwa-icon-wrapper img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    object-fit: cover;
}

.pwa-content-wrapper {
    flex: 1;
}

.pwa-content-wrapper h3 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.pwa-content-wrapper p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.pwa-action-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    position: relative;
}

#pwa-install-btn {
    background: var(--primary-color, linear-gradient(135deg, #6366f1 0%, #4f46e5 100%));
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

#pwa-install-btn:hover:not([disabled]) {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.4);
}

#pwa-install-btn:active:not([disabled]) {
    transform: translateY(0);
}

#pwa-install-btn[disabled] {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.pwa-close-x {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

.pwa-close-x:hover {
    color: #4b5563;
}

.pwa-nag-active {
    animation: pwa-slide-up 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pwa-slide-up {
    from {
        transform: translateY(100px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Responsive adjustment */
@media (max-width: 480px) {
    #pwa-install-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 12px;
    }
    
    .pwa-icon-wrapper img {
        width: 48px;
        height: 48px;
    }
    
    .pwa-content-wrapper h3 {
        font-size: 1rem;
    }
}
