/* rb-opt-foot.css – خيارات «نهاية الصفحة» (rb-opt-foot.js يبني الأشكال 2–4 من روابط الفوتر نفسها) */

/* العرض والإخفاء */
.foot .fv { display: none; }
html[data-foot="2"] .foot .fv2, html[data-foot="3"] .foot .fv3, html[data-foot="4"] .foot .fv4 { display: block; }
html[data-foot="2"] .foot > .foot-in, html[data-foot="2"] .foot > .foot-end,
html[data-foot="3"] .foot > .foot-in, html[data-foot="3"] .foot > .foot-end,
html[data-foot="4"] .foot > .foot-in, html[data-foot="4"] .foot > .foot-end { display: none; }
html[data-foot="2"] .foot, html[data-foot="3"] .foot, html[data-foot="4"] .foot { overflow: hidden; }

.fv p, .fv b, .fv a { text-wrap: pretty; }
.fv .bar-logo span { display: inline; white-space: nowrap; }
.fv .foot-end, .fv2-end, .fv3-end, .fv4-end { color: var(--dim); font-size: 13px; }
.fv2-end span, .fv3-end span, .fv4-end span { display: inline-flex; align-items: center; gap: 6px; }

/* ============ 2: الاسم الكبير ============ */
.fv2-top { max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gut) 40px; display: grid; grid-template-columns: minmax(220px, 1.3fr) 3fr; gap: 40px; }
.fv2-brand p { margin-top: 14px; color: var(--muted); font-size: 14px; max-width: 260px; }
.fv2-soc { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.fv2-soc a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); transition: border-color var(--t-1) var(--ease), transform var(--t-1) var(--ease); }
.fv2-soc a:hover { border-color: var(--lime); transform: translateY(-2px); }
.fv2-soc svg { width: 18px; height: 18px; fill: #ddd; }
.fv2-soc svg.line { fill: none; stroke: #ddd; stroke-width: 1.8; }
.fv2-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.fv2-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.fv2-col b { font: 700 14px var(--f-title); color: #fff; margin-bottom: 4px; }
.fv2-col a { color: var(--muted); width: fit-content; transition: color var(--t-1) var(--ease); }
.fv2-col a:hover { color: var(--lime); }
.fv2-end { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gut); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.fv2-word { padding: 8px var(--gut) 0; overflow: hidden; direction: ltr; user-select: none; }
.fv2-lines { display: flex; gap: .22em; width: max-content; margin: 0 auto; font: 800 100px/.8 var(--f-num); letter-spacing: -.035em; color: var(--lime); margin-bottom: -.13em; }
.fv2-line { display: flex; width: max-content; overflow: hidden; padding-top: .1em; }
.fv2-l { display: block; transform: translateY(105%); translate: 0 var(--ly, 0); transition: transform var(--t-3) var(--ease), translate var(--t-2) var(--ease); transition-delay: calc(var(--i) * 55ms), 0ms; }
.foot.fv-in .fv2-l { transform: none; }

/* ============ 3: لايف ============ */
.fv3-strip { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); background: var(--panel); padding: 12px 0; padding-inline-start: var(--gut); }
.fv3-tag { flex: none; }
.fv3-tag svg { width: 72px; height: 29px; display: block; }
.fv3-vp { flex: 1; min-width: 0; overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.fv3-track { display: flex; width: max-content; animation: fv3-slide 48s linear infinite; animation-play-state: paused; }
.foot.fv-run .fv3-track { animation-play-state: running; }
.fv3-strip:hover .fv3-track { animation-play-state: paused; }
.fv3-run { display: flex; gap: 10px; padding-inline-end: 10px; }
@keyframes fv3-slide { to { transform: translateX(-50%); } }
.fv3-ev { direction: rtl; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: #ddd; font-size: 13px; white-space: nowrap; }
.fv3-ev b { font: 700 13px var(--f-num); color: #fff; }
.fv3-ev i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #0B0B0F; flex: none; }
.fv3-ev i svg { width: 13px; height: 13px; fill: #fff; }
.fv3-ev i.p-tw svg { fill: var(--pur); }
.fv3-ev i.p-kk svg { fill: var(--lime); }

.fv3-in { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gut) 48px; padding-left: calc(var(--gut) + 200px); display: grid; grid-template-columns: minmax(300px, 1.3fr) 3fr; gap: 40px; }
.fv3-brand { position: relative; z-index: 1; }
.fv3-brand p { margin-top: 14px; color: var(--muted); font-size: 14px; max-width: 260px; }
.fv3-soc { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.fv3-soc a { --bc: var(--panel-2); --ic: #ddd; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); transition: background var(--t-2) var(--ease), border-color var(--t-2) var(--ease), transform var(--t-2) var(--ease); }
.fv3-soc svg { width: 21px; height: 21px; fill: #ddd; transition: fill var(--t-2) var(--ease), stroke var(--t-2) var(--ease); }
.fv3-soc svg.line { fill: none; stroke: #ddd; stroke-width: 1.8; }
.fv3-soc a[data-net="tiktok"] { --bc: #FE2C55; --ic: #fff; }
.fv3-soc a[data-net="x"] { --bc: #fff; --ic: #0B0B0F; }
.fv3-soc a[data-net="instagram"] { --bc: #E1306C; --ic: #fff; }
.fv3-soc a[data-net="youtube"] { --bc: #FF0000; --ic: #fff; }
.fv3-soc a[data-net="discord"] { --bc: #5865F2; --ic: #fff; }
.fv3-soc a:hover, .fv3-soc a:focus-visible { background: var(--bc); border-color: var(--bc); transform: translateY(-2px); }
.fv3-soc a:hover svg, .fv3-soc a:focus-visible svg { fill: var(--ic); }
.fv3-soc a:hover svg.line, .fv3-soc a:focus-visible svg.line { fill: none; stroke: var(--ic); }
.fv3-cols { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.fv3-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.fv3-col b { font: 700 14px var(--f-title); color: #fff; margin-bottom: 4px; }
.fv3-col a { color: var(--muted); width: fit-content; transition: color var(--t-1) var(--ease); }
.fv3-col a:hover { color: var(--lime); }
.fv3-deco { position: absolute; inset: 0; pointer-events: none; }
.fv3-deco .fv3-st { position: absolute; display: block; }
.fv3-badge { width: 116px; height: 116px; left: var(--gut); bottom: -34px; transform: rotate(-12deg); }
.fv3-eyes { width: 74px; height: 74px; left: calc(var(--gut) + 104px); bottom: 58px; transform: rotate(9deg); }
.fv3-end { position: relative; z-index: 2; background: #08080B; max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gut) 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ============ 4: لوحة ============ */
.fv4 { padding: 40px var(--gut) 28px; }
.fv4-panel { position: relative; max-width: var(--wrap); margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 32px; padding: 36px clamp(20px, 3.4vw, 44px) 22px; overflow: hidden; }
.fv4-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--lime); transform: scaleX(0); transform-origin: right; transition: transform 1.4s var(--ease); }
.foot.fv-in .fv4-panel::before { transform: none; }
.fv4-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.fv4-brand { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.fv4-brand p { color: var(--muted); font-size: 14px; }
.fv4-soc { display: flex; gap: 8px; flex-wrap: wrap; }
.fv4-soc a { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); transition: background var(--t-1) var(--ease), border-color var(--t-1) var(--ease); }
.fv4-soc svg { width: 17px; height: 17px; fill: #ddd; transition: fill var(--t-1) var(--ease), stroke var(--t-1) var(--ease); }
.fv4-soc svg.line { fill: none; stroke: #ddd; stroke-width: 1.8; }
.fv4-soc a:hover { background: var(--lime); border-color: var(--lime); }
.fv4-soc a:hover svg { fill: #0B0B0F; }
.fv4-soc a:hover svg.line { fill: none; stroke: #0B0B0F; }
.fv4-groups { display: flex; flex-wrap: wrap; gap: 24px 44px; padding: 28px 0; }
.fv4-g { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; max-width: 100%; }
.fv4-g b { flex-basis: 100%; font: 600 12px var(--f-title); color: var(--dim); letter-spacing: .2px; margin-bottom: 2px; }
.fv4-g a { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: #ddd; font-size: 13.5px; white-space: nowrap; transition: background var(--t-1) var(--ease), color var(--t-1) var(--ease), border-color var(--t-1) var(--ease); }
.fv4-g a:hover { background: var(--lime); border-color: var(--lime); color: #0B0B0F; }
.fv4-end { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.fv4-up { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 0; padding-inline: 16px 5px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); color: #eee; font: 600 13px var(--f-body); transition: border-color var(--t-1) var(--ease); }
.fv4-up i { width: 30px; height: 30px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; overflow: hidden; }
.fv4-up svg { width: 16px; fill: none; stroke: #0B0B0F; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.foot.fv-run .fv4-up svg { animation: fv4-rise 3.4s ease-in-out infinite; }
.fv4-up:hover { border-color: var(--lime); }
@keyframes fv4-rise { 0%, 50% { transform: none; opacity: 1; } 70% { transform: translateY(-20px); opacity: 0; } 71% { transform: translateY(20px); opacity: 0; } 92%, 100% { transform: none; opacity: 1; } }
/* زر «ارجع فوق» الثابت يختفي لما الزر اللي داخل اللوحة ظاهر */
html[data-foot="2"].fv-near #toTop, html[data-foot="3"].fv-near #toTop, html[data-foot="4"].fv-near #toTop { opacity: 0; pointer-events: none; }

/* ============ المقاسات ============ */
@media (max-width: 1080px) {
    .fv2-top, .fv3-in { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .fv2-cols, .fv3-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
    .fv2-lines { flex-direction: column; align-items: center; gap: 0; }
    .fv2-top { padding-top: 48px; }
    .fv3-in { padding: 44px var(--gut) 120px; }
    .fv3-badge { width: 96px; height: 96px; bottom: -24px; }
    .fv3-eyes { width: 62px; height: 62px; left: calc(var(--gut) + 86px); bottom: 40px; }
    .fv4 { padding: 28px var(--gut) 20px; }
    .fv4-panel { border-radius: 26px; }
    .fv4-groups { flex-direction: column; gap: 22px; }
    .fv4-brand { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .fv2-l, .foot.fv-in .fv2-l { transform: none; translate: none; transition: none; }
    .fv3-track, .foot.fv-run .fv3-track { animation: none; }
    .fv3-vp { overflow-x: auto; scrollbar-width: none; }
    .fv4-panel::before { transform: none; transition: none; }
    .foot.fv-run .fv4-up svg { animation: none; }
}
