/* App download promo modal + sticky bar */
.app-promo-lock { overflow: hidden; }

.app-promo-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
}
.app-promo-modal.open {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.app-promo-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(8px);
}

.app-promo-panel {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: #0e1012;
    color: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55);
    transform: translateY(24px) scale(0.98);
    transition: transform 0.35s ease;
}
.app-promo-modal.open .app-promo-panel { transform: none; }

.app-promo-visual {
    min-height: 320px;
    background: linear-gradient(160deg, #1a0506, #111);
}
.app-promo-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-promo-copy {
    padding: clamp(1.5rem, 4vw, 2.4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.app-promo-brand {
    font-family: Syne, 'Noto Kufi Arabic', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}
.app-promo-copy h2 {
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 700;
    margin-bottom: 0.65rem;
    line-height: 1.35;
}
.app-promo-copy p {
    opacity: 0.8;
    font-size: 0.95rem;
    margin-bottom: 1.35rem;
}
.app-promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.btn-ghost-dark {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.14); color: #fff; }

.app-promo-close {
    position: absolute;
    top: 0.85rem;
    inset-inline-end: 0.85rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    line-height: 1;
}

.app-sticky-bar {
    position: fixed;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 4000;
    display: none;
    align-items: center;
    gap: 0.75rem;
    width: min(520px, calc(100% - 1.5rem));
    padding: 0.65rem 0.75rem;
    background: #111;
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    transition: transform 0.35s ease;
}
.app-sticky-bar.show {
    display: flex;
    transform: translateX(-50%) translateY(0);
}
.app-sticky-bar[hidden] {
    display: none !important;
}
.app-sticky-bar img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
}
.app-sticky-text { flex: 1; min-width: 0; }
.app-sticky-text strong { display: block; font-size: 0.92rem; }
.app-sticky-text span { font-size: 0.75rem; opacity: 0.75; }
.app-sticky-x {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.7;
}

@media (max-width: 760px) {
    .app-promo-panel { grid-template-columns: 1fr; }
    .app-promo-visual { min-height: 200px; }
    body:has(.mobile-nav) .app-sticky-bar {
        bottom: calc(4.5rem + env(safe-area-inset-bottom));
    }
}
