.zard-pwa-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
    border-radius: 20px 20px 0 0;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999999;
    max-width: 500px;
    margin: 0 auto;
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
}

.zard-pwa-modal.active {
    transform: translateY(0);
}

.zard-pwa-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 999998;
}

.zard-pwa-overlay.active {
    opacity: 1;
    visibility: visible;
}

.zard-pwa-modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.zard-pwa-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-left: 12px;
    margin-right: 0;
    object-fit: cover;
}

.zard-pwa-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.zard-pwa-modal-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.zard-pwa-modal-content {
    margin-bottom: 20px;
}

.zard-pwa-modal-text {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.zard-pwa-modal-buttons {
    display: flex;
    gap: 12px;
}

.zard-pwa-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.zard-pwa-btn:hover {
    opacity: 0.9;
}

.zard-pwa-btn-install {
    color: #ffffff;
}

.zard-pwa-btn-cancel {
    background: #f0f0f0;
    color: #333;
}

.zard-pwa-ios-instructions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zard-pwa-ios-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 8px;
}

.zard-pwa-ios-step-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #007cba;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    margin-left: 0;
    margin-right: 0;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

.zard-pwa-ios-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .zard-pwa-modal {
        bottom: auto;
        top: 50%;
        transform: translateY(-50%) scale(0.9);
        opacity: 0;
        border-radius: 16px;
        max-width: 400px;
    }
    
    .zard-pwa-modal.active {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

.zard-loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #007cba;
    border-radius: 50%;
    animation: zard-spin 1s linear infinite;
}

@keyframes zard-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.zard-offline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
    padding: 40px 20px;
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
}

.zard-offline-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px 0;
}

.zard-offline-message {
    font-size: 16px;
    color: #666;
    margin: 0;
}

@media (display-mode: standalone) {
    html,
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    [style*="position: fixed"][style*="bottom"],
    .fixed-bottom,
    .bottom-menu,
    .bottom-nav,
    .bottom-bar,
    footer[style*="position: fixed"],
    nav[style*="position: fixed"][style*="bottom"] {
        bottom: 0 !important;
        padding-bottom: calc(env(safe-area-inset-bottom) + 10px) !important;
    }
    
    .elementor-location-footer[data-elementor-type="footer"],
    .site-footer {
        padding-bottom: env(safe-area-inset-bottom) !important;
    }
}
