/* PWA Install Prompt Styling */
.pwa-install-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    animation: slideUpPWA 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.pwa-install-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 450px;
    position: relative;
}

.pwa-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 22px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.pwa-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.pwa-icon {
    font-size: 42px;
    animation: pulse 2s infinite;
}

.pwa-text h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
}

.pwa-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
}

.pwa-install-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 15px;
}

.pwa-install-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.pwa-install-btn:active {
    transform: translateY(-1px) scale(1.02);
}

@keyframes slideUpPWA {
    from {
        opacity: 0;
        transform: translate(-50%, 120px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pwa-install-prompt {
        left: 10px;
        right: 10px;
        transform: none;
        width: calc(100% - 20px);
        bottom: 10px;
    }

    .pwa-install-content {
        flex-direction: column;
        text-align: center;
        padding: 20px 18px;
    }

    .pwa-install-btn {
        width: 100%;
    }
}

/* ===== iOS Install Guide ===== */
.ios-install-guide {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    animation: slideUpPWA 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ios-guide-content {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 122, 255, 0.4);
    max-width: 400px;
    position: relative;
}

.ios-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.ios-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.ios-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ios-header i {
    font-size: 32px;
}

.ios-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.ios-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ios-step {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.step-number {
    background: white;
    color: #007AFF;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
}

.step-text strong {
    font-weight: 700;
}

.step-hint {
    font-size: 13px;
    opacity: 0.85;
    margin-top: 4px;
    font-style: italic;
}

.ios-note {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ios-note i {
    font-size: 18px;
}

/* Mobile specific for iOS guide */
@media (max-width: 768px) {
    .ios-install-guide {
        left: 10px;
        right: 10px;
        transform: none;
        width: calc(100% - 20px);
        bottom: 10px;
    }

    .ios-guide-content {
        max-width: none;
    }
}