/* PWA Guide Styles */
.pwa-guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.pwa-guide-overlay.hidden {
    display: none;
}

.pwa-arrow {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 60px;
    height: auto;
    animation: pwa-bounce 1.5s infinite;
}

@keyframes pwa-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

.pwa-step {
    margin: 15px 0;
    font-size: 18px;
    line-height: 1.5;
}

.pwa-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
    display: block;
    margin: 0 auto 10px;
}

.pwa-btn-install {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #16a34a;
    /* Green */
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
    z-index: 9999;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.pwa-btn-install:active {
    transform: translateX(-50%) scale(0.95);
}

.pwa-ios-tooltip {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #333;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 320px;
    z-index: 9999;
    text-align: center;
}

.pwa-ios-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    margin-left: -8px;
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.pwa-close {
    position: absolute;
    top: 5px;
    right: 10px;
    color: #999;
    font-size: 20px;
    cursor: pointer;
}

/* Engagement Modal */
.pwa-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-modal {
    background: #fff;
    width: 85%;
    max-width: 320px;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: pwa-fade-in 0.3s ease-out;
}

@keyframes pwa-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pwa-modal h3 {
    margin: 10px 0;
    font-size: 18px;
    color: #333;
}

.pwa-modal p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.pwa-modal-btn {
    background: #16a34a;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 15px;
    width: 100%;
    cursor: pointer;
}