/* ==================== Install App Button ==================== */
.install-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.install-btn:active {
    transform: translateY(0);
}

/* iOS Instructions */
.ios-instructions {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ios-step {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ios-step:last-child {
    margin-bottom: 0;
}

.ios-step strong {
    color: var(--text-primary);
}

/* ==================== Install Progress Animation ==================== */
.install-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.install-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.install-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.install-progress-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ==================== PWA Install Prompt Banner (Updated) ==================== */
.install-prompt {
    position: fixed;
    top: 80px; /* Below navbar */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    animation: slideDown 0.4s ease;
    pointer-events: auto;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.install-prompt-content {
    background: linear-gradient(135deg, #6366f1 0%, #4F5BD5 100%);
    color: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
    max-width: 320px;
    position: relative;
    display: block;
    margin: 0;
    border: none;
}

.install-prompt-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.install-prompt-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.install-prompt-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 12px;
    /* Prevent preloader animation */
    animation: none !important;
}

.install-prompt-icon::before,
.install-prompt-icon::after {
    /* Prevent any spinning animations */
    animation: none !important;
    content: none !important;
}

.install-prompt h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: white; /* Ensure title is white */
}

.install-prompt p {
    margin: 0 0 20px 0;
    font-size: 14px;
    opacity: 0.95;
    line-height: 1.5;
    color: white; /* Ensure text is white */
}

.install-prompt-buttons {
    display: flex;
    gap: 10px;
}

.install-btn-primary,
.install-btn-secondary {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    /* Reset previous styles */
    width: auto;
    background: initial;
    color: initial;
    box-shadow: none;
}

.install-btn-primary {
    background: white;
    color: #6366f1;
}

.install-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.install-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
}

.install-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .install-prompt {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        z-index: -1 !important;
    }
}

/* Prevent preloader animations on install elements */
.install-prompt *,
.install-btn *,
.install-prompt-icon * {
    animation: none !important;
}

.install-prompt *::before,
.install-prompt *::after,
.install-btn *::before,
.install-btn *::after {
    animation: none !important;
}


