/* بنر اپ باستان‌شناس — لایت و دارک */
.bs-app-promo {
    --ap-bg: linear-gradient(135deg, #fffaf2 0%, #ffffff 60%);
    --ap-border: #f1dfc3; --ap-title: #111827; --ap-muted: #6b7280; --ap-kicker: #c2410c;
    --ap-chip-bg: #fff3e0; --ap-chip-text: #9a3412; --ap-logo-bg: #ffffff; --ap-logo-border: #f1dfc3;
    --ap-glow: rgba(245, 158, 11, .22); --ap-shadow: 0 14px 34px -18px rgba(217, 119, 6, .45);
    --ap-more: #b45309;
    position: relative; isolation: isolate; overflow: hidden; direction: rtl; box-sizing: border-box;
    margin: 26px 0 18px; padding: 20px 22px 16px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 22px; align-items: center;
    background: var(--ap-bg); border: 1px solid var(--ap-border); border-radius: 24px; box-shadow: var(--ap-shadow);
}
html[data-theme="dark"] .bs-app-promo {
    --ap-bg: linear-gradient(135deg, #1b1610 0%, #131929 62%);
    --ap-border: #3a2f17; --ap-title: #f8fafc; --ap-muted: #94a3b8; --ap-kicker: #fbbf24;
    --ap-chip-bg: rgba(251, 191, 36, .12); --ap-chip-text: #fcd34d; --ap-logo-bg: #0e1422; --ap-logo-border: #3a2f17;
    --ap-glow: rgba(251, 191, 36, .2); --ap-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8); --ap-more: #fbbf24;
}
.bs-app-promo__glow { position: absolute; z-index: -1; top: -60px; right: -40px; width: 260px; height: 200px; background: radial-gradient(closest-side, var(--ap-glow), transparent); pointer-events: none; }
.bs-app-promo::after { content: ''; position: absolute; z-index: -1; inset: 0 auto auto 0; width: 100%; height: 4px; background: linear-gradient(90deg, #f59e0b, #dc2626); opacity: .9; }

.bs-app-promo__head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.bs-app-promo__logo { flex-shrink: 0; display: grid; place-items: center; width: 84px; height: 84px; padding: 6px; border-radius: 22px; background: var(--ap-logo-bg); border: 1px solid var(--ap-logo-border); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }
.bs-app-promo__logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; display: block; }
.bs-app-promo__copy { display: grid; gap: 5px; min-width: 0; }
.bs-app-promo__copy small { font-size: 11px; font-weight: 800; color: var(--ap-kicker); }
.bs-app-promo__copy strong { font-size: 21px; font-weight: 900; line-height: 1.5; color: var(--ap-title); }
.bs-app-promo__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.bs-app-promo__chips span { padding: 3px 10px; border-radius: 999px; background: var(--ap-chip-bg); color: var(--ap-chip-text); font-size: 10.5px; font-weight: 700; }

.bs-app-promo__actions { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 10px; }
.bs-app-promo__btn { display: flex; align-items: center; gap: 11px; padding: 11px 16px; border-radius: 16px; color: #fff !important; text-decoration: none !important; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .55); transition: transform .18s, box-shadow .18s, filter .18s; }
.bs-app-promo__btn:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 16px 28px -12px rgba(0, 0, 0, .6); }
.bs-app-promo__btn svg { width: 28px; height: 28px; flex-shrink: 0; }
.bs-app-promo__btn span { display: grid; gap: 1px; line-height: 1.35; min-width: 0; }
.bs-app-promo__btn small { font-size: 9.5px; font-weight: 600; opacity: .85; }
.bs-app-promo__btn b { font-size: 16px; font-weight: 900; }
.bs-app-promo__btn em { font-style: normal; font-size: 9.5px; font-weight: 600; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-app-promo__btn.is-android { background: linear-gradient(135deg, #22c55e, #15803d); }
.bs-app-promo__btn.is-windows { background: linear-gradient(135deg, #2b8be0, #1456b8); }

.bs-app-promo__more { grid-column: 1 / -1; justify-self: start; padding-top: 12px; width: 100%; border-top: 1px dashed var(--ap-border); color: var(--ap-more) !important; font-size: 11.5px; font-weight: 800; text-decoration: none !important; }
.bs-app-promo__more:hover { text-decoration: underline !important; }

@media (max-width: 760px) {
    .bs-app-promo { grid-template-columns: 1fr; margin: 22px 0 16px; padding: 18px 16px 14px; border-radius: 20px; }
    .bs-app-promo__logo { width: 68px; height: 68px; border-radius: 18px; }
    .bs-app-promo__copy strong { font-size: 18px; }
    .bs-app-promo__actions { grid-template-columns: 1fr 1fr; }
    .bs-app-promo__btn { padding: 10px 12px; gap: 9px; }
    .bs-app-promo__btn svg { width: 24px; height: 24px; }
}
@media (max-width: 380px) {
    .bs-app-promo__actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .bs-app-promo__btn { transition: none; } .bs-app-promo__btn:hover { transform: none; } }
