/* PWA Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    /* Very thin */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

body.dark-mode .pwa-install-banner {
    background: rgba(30, 30, 30, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pwa-install-banner.visible {
    transform: translateY(0);
}

.pwa-content {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
    cursor: pointer;
}

.pwa-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.pwa-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-install-btn-small {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 10px;
}

.pwa-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    padding: 0 8px;
    cursor: pointer;
    line-height: 1;
}

/* iOS Install Modal */
.ios-install-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    width: 90%;
    max-width: 350px;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ios-install-modal.visible {
    display: flex;
    animation: fadeInScale 0.3s ease-out forwards;
}

.ios-steps {
    margin: 20px 0;
    width: 100%;
}

.ios-step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-primary);
    text-align: right;
    width: 100%;
}

.ios-step i {
    font-size: 1.5rem;
    color: #007aff;
    /* iOS Blue */
    width: 30px;
    text-align: center;
}

@media (min-width: 768px) {
    .pwa-install-banner {
        display: none !important;
    }
}