/* rb-herobg.css – 3 خلفيات برمجية لأعلى الصفحة (بدون إضاءة ولا توهج). المالك يختار وحدة */
.hero { position: relative; }
.shot-wrap::before { display: none; }               /* شلنا الإضاءة البنفسجية تحت اللقطة */
.hero-text, .shot-wrap { position: relative; z-index: 1; }
.hbg { position: absolute; inset: 0 0 auto; height: min(760px, 92vh); overflow: hidden; pointer-events: none; z-index: 0; display: none;
       -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
html[data-bg="1"] .hbg-1, html[data-bg="2"] .hbg-2, html[data-bg="3"] .hbg-3 { display: block; }

/* ١ · شرايط الأحداث: صفوف هدايا وفولو تمشي بهدوء، والنص فوقها في فراغ نظيف */
.hbg-1 { opacity: .55; -webkit-mask-image: radial-gradient(ellipse 40% 46% at 50% 40%, transparent 62%, #000 100%); mask-image: radial-gradient(ellipse 40% 46% at 50% 40%, transparent 62%, #000 100%); }
.ev-row { display: flex; gap: 14px; width: max-content; margin-top: 16px; animation: evMove var(--dur, 70s) linear infinite; }
.ev-row:nth-child(even) { animation-direction: reverse; }
@keyframes evMove { to { transform: translateX(50%); } }
.ev { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 8px; border-radius: 999px; background: #111018; border: 1px solid rgba(255, 255, 255, .07); color: #8d8c99; font-size: 13px; white-space: nowrap; }
.ev .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--f-num); color: #0B0B0F; background: var(--c, #CBF274); }
.ev b { color: #d9d8e2; font: 600 13px var(--f-num); direction: ltr; }
.ev em { font-style: normal; color: var(--c, #CBF274); font-weight: 600; }

/* ٢ · شبكة المخطط: شبكة خطوط ناعمة + علامات زوايا ليمونية (من بار فيجما) + ملصقات ثابتة */
.hbg-2 { background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 64px 64px; background-position: center -1px; }
.hbg-2 .mk { position: absolute; width: 9px; height: 9px; background: var(--lime); }
.hbg-2 .fr { position: absolute; inset: 64px 12%; border: 1px dashed rgba(203, 242, 116, .22); border-radius: 2px; }
.hbg-2 svg { position: absolute; filter: none; }
.hbg-2 .cell { position: absolute; width: 64px; height: 64px; background: rgba(163, 118, 251, .1); border: 1px solid rgba(163, 118, 251, .25); }
.hbg-2 .cell.l { background: rgba(203, 242, 116, .08); border-color: rgba(203, 242, 116, .22); }
.hbg-2 .tagx { position: absolute; font: 600 11px var(--f-num); color: rgba(203, 242, 116, .55); direction: ltr; letter-spacing: 1px; }

/* ٣ · فيد البث: عمودين على الجانبين فيهم أحداث تطلع لفوق ببطء (مثل Activity Feed) */
.hbg-3 .col { position: absolute; top: 0; width: 290px; display: flex; flex-direction: column; gap: 12px; animation: colUp var(--dur, 46s) linear infinite; }
.hbg-3 .col.r { right: 3%; }
.hbg-3 .col.l { left: 3%; animation-duration: 54s; }
@keyframes colUp { to { transform: translateY(-50%); } }
.fcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #0E0D13; border: 1px solid rgba(255, 255, 255, .06); border-inline-start: 3px solid var(--c, #CBF274); }
.fcard .av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; font: 800 14px var(--f-num); color: #0B0B0F; background: var(--c, #CBF274); }
.fcard p { margin: 0; font-size: 13px; color: #9b9aa8; line-height: 1.5; }
.fcard p b { color: #fff; font: 600 13px var(--f-num); direction: ltr; unicode-bidi: isolate; }
.fcard p em { font-style: normal; color: var(--c, #CBF274); font-weight: 600; }
.fcard .n { margin-inline-start: auto; font: 800 15px var(--f-num); color: var(--c, #CBF274); direction: ltr; }

.paused .ev-row, .paused .col { animation-play-state: paused; }
@media (max-width: 900px) { .hbg-3 .col { width: 220px; opacity: .5; } .hbg-3 .col.l { display: none; } }
@media (prefers-reduced-motion: reduce) { .ev-row, .hbg-3 .col { animation: none; } }

/* زر اختيار الخلفية (للاب بس) */
.bgpick { position: fixed; z-index: 60; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(14, 13, 19, .92); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); font-size: 13px; }
.bgpick span { padding: 0 8px; color: #9b9aa8; }
.bgpick button { min-width: 38px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: #14131A; color: #ddd; font: 600 13px var(--f-body); cursor: pointer; transition: background-color var(--t-1) var(--ease), color var(--t-1) var(--ease); }
.bgpick button.on { background: var(--lime); color: #0B0B0F; border-color: var(--lime); }
