/* PWA Install Banner & Push Modal - Clean Modern UI (No side borders) */

.pwa-install-banner {
    position: fixed;
    bottom: 25px;
    right: 20px;
    max-width: 440px;
    width: calc(100% - 40px);
    z-index: 999990;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    font-family: 'Heebo', system-ui, -apple-system, sans-serif;
    direction: rtl;
    text-align: right;
}

.pwa-install-banner.pwa-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.pwa-banner-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 20px 16px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.04);
}

.pwa-close-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pwa-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.pwa-banner-body {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding-left: 20px;
}

.pwa-app-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.pwa-text-content {
    flex: 1;
}

.pwa-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3px;
    line-height: 1.3;
}

.pwa-desc {
    font-size: 0.88rem;
    color: #475569;
    margin: 0;
    line-height: 1.4;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pwa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.pwa-btn-primary {
    background: #fa5252;
    color: #ffffff;
    flex: 1;
    box-shadow: 0 4px 12px rgba(250, 82, 82, 0.25);
}

.pwa-btn-primary:hover {
    background: #e03131;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(250, 82, 82, 0.35);
}

.pwa-btn-subtle {
    background: transparent;
    color: #64748b;
    border: 1px solid #cbd5e1;
    padding: 9px 15px;
}

.pwa-btn-subtle:hover {
    background: #f8fafc;
    color: #334155;
    border-color: #94a3b8;
}

/* iOS Instructions Modal */
.pwa-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: 'Heebo', system-ui, -apple-system, sans-serif;
    direction: rtl;
    text-align: right;
}

.pwa-modal-backdrop.pwa-modal-visible {
    opacity: 1;
    pointer-events: auto;
}

.pwa-modal-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    max-width: 440px;
    width: 100%;
    padding: 28px 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    border: 1px solid #e2e8f0;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.pwa-modal-backdrop.pwa-modal-visible .pwa-modal-card {
    transform: scale(1);
}

.pwa-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-modal-header {
    text-align: center;
    margin-bottom: 22px;
}

.pwa-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.pwa-modal-header h3 {
    margin: 0 0 6px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
}

.pwa-modal-header p {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
}

.ios-steps-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.ios-step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f8fafc;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.step-num {
    background: #fa5252;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.step-text {
    font-size: 0.95rem;
    color: #1e293b;
    line-height: 1.45;
}

.ios-share-badge {
    display: inline-flex;
    vertical-align: middle;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 6px;
    margin-right: 4px;
}

.ios-share-badge svg {
    display: block;
    color: #007aff;
}

/* Feedback toast */
.pwa-feedback-toast {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #0f172a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 9999999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    font-family: 'Heebo', system-ui, -apple-system, sans-serif;
    direction: rtl;
}

.pwa-feedback-toast.toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
    .pwa-install-banner {
        right: 12px;
        left: 12px;
        bottom: 15px;
        width: auto;
        max-width: none;
    }
    .pwa-banner-card {
        padding: 16px 16px 14px;
    }
}
