/* =========================================================
   الصفحة الرئيسية — smart Meet | ذكي
   ========================================================= */
body.hp { min-height: 100dvh; overflow-x: hidden; background: #050d19; }

/* --- خلفية متحركة --- */
.hp-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.b1 { width: 520px; height: 520px; background: #1faec1; top: -180px; right: -140px; animation: drift1 18s ease-in-out infinite alternate; }
.b2 { width: 460px; height: 460px; background: #1d4471; bottom: -160px; left: -120px; animation: drift2 22s ease-in-out infinite alternate; }
.b3 { width: 320px; height: 320px; background: #7c5cff; top: 40%; left: 35%; opacity: .22; animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-120px, 140px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(160px, -120px) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-180px, 80px) scale(1.3); } }
.grid-lines { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }

/* --- ظهور تدريجي --- */
.reveal { opacity: 0; transform: translateY(22px); animation: reveal .8s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* --- الشريط العلوي --- */
.hp-nav { max-width: 1180px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 20px 0; display: flex; align-items: center; justify-content: space-between; }
.hp-logo { height: 54px; width: auto; display: block; }
.hp-tag { display: inline-flex; align-items: center; gap: .45rem; direction: ltr; font-size: .82rem; font-weight: 600; color: var(--brand-2);
  padding: .4rem .85rem; border-radius: 999px; background: rgba(31, 174, 193, .1); border: 1px solid rgba(31, 174, 193, .25); }
.hp-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }

/* --- المحتوى --- */
.hp-main { max-width: 1180px; margin: 0 auto; padding: 2.2rem 20px 2rem; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 980px) { .hp-main { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; padding-top: 4rem; } }

.hp-eyebrow { margin: 0 0 .9rem; font-size: .9rem; font-weight: 600; color: var(--brand-2); }
.hp-hero h1 { margin: 0 0 1rem; font-size: clamp(2.1rem, 6.2vw, 3.6rem); line-height: 1.2; letter-spacing: -.01em; }
.rot { display: inline-block; background: linear-gradient(90deg, #4fd1e0, #1faec1 40%, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity .35s, transform .35s, filter .35s; }
.rot.out { opacity: 0; transform: translateY(-14px); filter: blur(6px); }
.hp-lead { margin: 0 0 1.8rem; color: #a9bbd1; font-size: 1.08rem; line-height: 1.9; max-width: 560px; }

/* --- كارت البداية --- */
.hp-start { background: linear-gradient(180deg, rgba(25, 48, 77, .7), rgba(13, 27, 46, .85)); border: 1px solid var(--line-2);
  border-radius: 26px; padding: 1.2rem; backdrop-filter: blur(14px); box-shadow: 0 30px 70px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); max-width: 560px; }
.hp-field { display: block; margin-bottom: .8rem; }
.hp-field > span { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .35rem; }
.hp-field input, .hp-join input { width: 100%; padding: .8rem 1rem; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(7, 17, 31, .6);
  outline: none; transition: border-color .2s, box-shadow .2s; }
.hp-field input:focus, .hp-join input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(31, 174, 193, .15); }
.hp-actions { display: grid; gap: .7rem; margin-top: .3rem; }
@media (min-width: 560px) { .hp-actions { grid-template-columns: auto 1fr; } }
.hp-cta { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.4rem; border: 0; border-radius: 16px; font-weight: 700; font-size: 1rem; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, #1faec1, #127f8e); box-shadow: 0 12px 30px rgba(31, 174, 193, .35);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s; }
.hp-cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 3.2s ease-in-out infinite 1.5s; }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.hp-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(31, 174, 193, .45); }
.hp-cta:active { transform: scale(.97); }
.hp-cta.loading { opacity: .7; }
.hp-join { display: flex; gap: .5rem; }
.hp-join input { flex: 1; min-width: 0; text-align: left; }
.hp-join-btn { flex: none; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); border-radius: 14px; padding: 0 1.2rem; font-weight: 700;
  transition: background .2s, border-color .2s; }
.hp-join-btn:hover { background: rgba(31, 174, 193, .15); border-color: var(--brand); }

.hp-points { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hp-points li { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: #c4d3e4; padding: .4rem .8rem; border-radius: 999px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.hp-points li span { color: var(--brand-2); display: inline-grid; }

/* --- معاينة الاجتماع --- */
.hp-preview { position: relative; perspective: 1400px; padding: 1.5rem .5rem; }
.pv-window { position: relative; border-radius: 22px; padding: 12px; background: linear-gradient(180deg, #12243b, #0b1729);
  border: 1px solid var(--line-2); box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(31, 174, 193, .08);
  transform: rotateY(-7deg) rotateX(4deg); animation: float 7s ease-in-out infinite; transition: transform .25s ease-out; transform-style: preserve-3d; }
@media (max-width: 979px) { .pv-window { transform: none; } }
@keyframes float { 50% { translate: 0 -10px; } }
.pv-top { display: flex; align-items: center; gap: .6rem; padding: 2px 4px 10px; font-size: .78rem; color: var(--muted); }
.pv-dots { display: flex; gap: 5px; direction: ltr; }
.pv-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a3c55; }
.pv-dots i:nth-child(1) { background: #ef4444; } .pv-dots i:nth-child(2) { background: #f59e0b; } .pv-dots i:nth-child(3) { background: #22c55e; }
.pv-title { flex: 1; font-weight: 600; color: #dbe6f3; }
.pv-rec { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; color: #fda4af; letter-spacing: .05em; }
.pv-rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); animation: pulse 1.2s infinite; }
.pv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv-tile { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 20%, #1a3558, #0d1b2e 70%); border: 1px solid var(--line);
  transition: border-color .4s, box-shadow .4s; }
.pv-tile.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand), 0 0 26px rgba(31, 174, 193, .4); }
.pv-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--a); font-size: 1.1rem; }
.pv-tile .pv-av { box-shadow: 0 0 0 6px rgba(255, 255, 255, .05); transition: transform .4s; }
.pv-tile.on .pv-av { animation: speak 1.2s ease-out infinite; transform: scale(1.06); }
.wave { position: absolute; bottom: 9px; inset-inline-end: 9px; display: flex; align-items: flex-end; gap: 2px; height: 14px; opacity: 0; transition: opacity .3s; }
.wave i { width: 3px; border-radius: 2px; background: var(--brand-2); height: 30%; animation: bars .9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .15s; } .wave i:nth-child(3) { animation-delay: .3s; } .wave i:nth-child(4) { animation-delay: .45s; } .wave i:nth-child(5) { animation-delay: .6s; }
.pv-tile.on .wave { opacity: 1; }
@keyframes bars { 50% { height: 100%; } }
.pv-grid { position: relative; }
.pv-emojis { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 14px; }
.pv-emojis span { position: absolute; bottom: 0; font-size: 1.4rem; animation: emo 2.6s ease-out forwards; }
@keyframes emo { 0% { transform: translateY(10px) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-10px) scale(1.1); } 100% { transform: translateY(-160px) scale(.9) rotate(12deg); opacity: 0; } }
.pv-nm { position: absolute; bottom: 6px; inset-inline-start: 6px; font-size: .68rem; font-weight: 600; padding: .15rem .5rem; border-radius: 999px; background: rgba(7, 17, 31, .75); }
.pv-caps { position: relative; height: 58px; margin: 10px 0 8px; }
.pv-cap { position: absolute; inset: 0; margin: auto; width: fit-content; max-width: 92%; padding: .45rem .8rem; border-radius: 12px;
  background: rgba(7, 17, 31, .85); border: 1px solid var(--line); font-size: .82rem; line-height: 1.5; text-align: center;
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.pv-cap.show { opacity: 1; transform: none; }
.pv-cap small.in { animation: trIn .5s ease; }
@keyframes trIn { from { opacity: 0; filter: blur(4px); transform: translateY(4px); } }
.pv-cap b { color: var(--brand-2); margin-inline-end: .3rem; }
.pv-cap small { display: block; color: #a5f3fc; font-size: .74rem; }
.pv-dock { display: flex; justify-content: center; gap: 8px; padding: 8px; border-radius: 16px; background: rgba(7, 17, 31, .55); border: 1px solid var(--line); }
.pv-dock i { width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(145deg, #2a4a72, #19304d); }
.pv-dock .o1, .pv-dock .o2 { background: linear-gradient(145deg, #1faec1, #127f8e); }
.pv-dock .o1 { animation: talk 1.1s ease-out infinite; }
.pv-dock .o5 { background: linear-gradient(145deg, #f2545b, #c62f3a); }
.pv-float { position: absolute; display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; padding: .55rem .85rem; border-radius: 14px;
  background: rgba(13, 27, 46, .92); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); backdrop-filter: blur(10px); white-space: nowrap; }
.pv-float span { color: var(--brand-2); display: inline-grid; }
.f1 { top: 0; inset-inline-start: -4px; animation: bob 5s ease-in-out infinite; }
.f2 { bottom: 4px; inset-inline-end: 0; animation: bob 6s ease-in-out infinite 1s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 560px) { .pv-float { font-size: .72rem; } .f1 { top: -6px; } }

/* --- اجتماعاتك الأخيرة --- */
.hp-recent { grid-column: 1 / -1; }
.hp-recent h2 { font-size: 1.05rem; margin: 0 0 .8rem; color: #dbe6f3; }
.hp-recent ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
@media (min-width: 700px) { .hp-recent ul { grid-template-columns: repeat(3, 1fr); } }
.hp-recent li { opacity: 0; animation: reveal .6s ease forwards; animation-delay: calc(var(--i) * 80ms + 700ms); transform: translateY(14px); }
.hp-recent a { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; padding: .8rem .95rem; border-radius: 18px;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line); transition: transform .2s, border-color .2s, background .2s; }
.hp-recent a:hover { transform: translateY(-3px); border-color: rgba(31, 174, 193, .5); background: rgba(31, 174, 193, .07); }
.r-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(145deg, #1faec1, #127f8e); }
.r-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.r-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-t small { color: var(--muted); font-size: .78rem; }
.r-go { color: var(--muted); transform: scaleX(-1); transition: transform .2s, color .2s; }
.hp-recent a:hover .r-go { color: var(--brand-2); transform: scaleX(-1) translateX(4px); }





/* --- خلفية الشبكة + نور الماوس --- */
#net { position: absolute; inset: 0; }
.cursor-glow { position: fixed; top: 0; left: 0; width: 400px; height: 400px; border-radius: 50%; pointer-events: none; z-index: -1; opacity: 0;
  background: radial-gradient(circle, rgba(31, 174, 193, .16), transparent 65%); transition: opacity .4s; will-change: transform; }

/* --- مؤشر الكتابة --- */
.caret { display: inline-block; width: 3px; height: .9em; margin-inline-start: 4px; vertical-align: -.08em; border-radius: 2px;
  background: var(--brand-2); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* --- حدود منوّرة بتلف حوالين الكارت --- */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.glow-border { position: relative; isolation: isolate; }
.glow-border::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--ang), transparent 0 70%, #4fd1e0 80%, #a78bfa 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinBorder 5s linear infinite; }
@keyframes spinBorder { to { --ang: 360deg; } }

/* --- ظهور مع النزول --- */
.sr { opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--sd, 0) * 110ms); }
.sr.in { opacity: 1; transform: none; }

/* --- الأرقام --- */
.hp-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 900px) { .hp-stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 1.1rem 1rem; border-radius: 20px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); text-align: center; }
.stat b { display: block; font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1.1; direction: ltr;
  background: linear-gradient(135deg, #4fd1e0, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: .35rem; color: var(--muted); font-size: .85rem; line-height: 1.5; }

/* --- الشريط المتحرك --- */
.hp-marquee { grid-column: 1 / -1; overflow: hidden; padding: .4rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-track { display: flex; gap: .7rem; width: max-content; animation: marquee 32s linear infinite; }
.hp-marquee:hover .mq-track { animation-play-state: paused; }
.mq-track span { white-space: nowrap; padding: .55rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: .9rem; color: #c4d3e4; }
@keyframes marquee { to { transform: translateX(50%); } }

/* --- كروت المميزات --- */
.hp-features { grid-column: 1 / -1; display: grid; gap: .9rem; }
@media (min-width: 700px) { .hp-features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .hp-features { grid-template-columns: repeat(4, 1fr); } }
.fcard { position: relative; overflow: hidden; padding: 1.3rem; border-radius: 22px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line);
  transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .3s ease-out, border-color .3s; transition-delay: calc(var(--sd, 0) * 110ms), 0s, 0s; }
.fcard::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c1) 22%, transparent), transparent 70%); }
.fcard:hover { border-color: color-mix(in srgb, var(--c1) 55%, transparent); }
.fcard:hover::before { opacity: 1; }
.f-orb { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; color: #fff; margin-bottom: .9rem;
  background: linear-gradient(145deg, var(--c1), var(--c2)); box-shadow: 0 10px 26px color-mix(in srgb, var(--c1) 40%, transparent);
  animation: orbFloat 4s ease-in-out infinite; }
.fcard:nth-child(2) .f-orb { animation-delay: .5s; } .fcard:nth-child(3) .f-orb { animation-delay: 1s; } .fcard:nth-child(4) .f-orb { animation-delay: 1.5s; }
@keyframes orbFloat { 50% { transform: translateY(-5px) rotate(-5deg); } }
.fcard h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.fcard p { margin: 0; color: var(--muted); line-height: 1.75; font-size: .92rem; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hp-recent li, .sr { opacity: 1; transform: none; }
  .mq-track { animation: none; }
}

/* =========== الفوتر =========== */
.sf { position: relative; margin-top: 2.5rem; border-top: 1px solid transparent; overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 27, 46, .55), rgba(5, 13, 25, .95)); }
.sf::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #1faec1, #a78bfa, #4fd1e0, transparent); background-size: 200% 100%; animation: sfLine 6s linear infinite; }
@keyframes sfLine { to { background-position: -200% 0; } }
.sf-glow { position: absolute; width: 520px; height: 260px; top: -180px; left: 50%; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(31, 174, 193, .22), transparent); filter: blur(10px); animation: sfGlow 7s ease-in-out infinite alternate; pointer-events: none; }
@keyframes sfGlow { to { transform: translateX(-35%) scale(1.15); opacity: .7; } }
.sf-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 2.2rem 20px max(1.6rem, env(safe-area-inset-bottom)); display: grid; gap: 1.6rem; }
@media (min-width: 900px) { .sf-inner { grid-template-columns: 1fr 1.1fr; align-items: center; } .sf-links { grid-column: 1 / -1; } }

.sf-brand { display: flex; gap: 1rem; align-items: flex-start; }
.sf-mark { flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; position: relative;
  background: linear-gradient(145deg, rgba(31, 174, 193, .22), rgba(124, 92, 255, .14)); border: 1px solid rgba(31, 174, 193, .35); }
.sf-mark img { width: 32px; height: auto; animation: sfFloat 4s ease-in-out infinite; }
.sf-mark::after { content: ''; position: absolute; inset: -4px; border-radius: 22px; border: 1px solid rgba(79, 209, 224, .35); animation: sfPulse 3s ease-out infinite; }
@keyframes sfFloat { 50% { transform: translateY(-3px) rotate(-4deg); } }
@keyframes sfPulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.25); } }
.sf-name { margin: 0 0 .35rem; font-size: 1.15rem; font-weight: 700; letter-spacing: .06em; direction: ltr; text-align: right; }
.sf-name b { color: var(--brand-2); }
.sf-name span { letter-spacing: 0; font-weight: 500; color: var(--muted); font-size: .9rem; }
.sf-copy { margin: 0 0 .25rem; color: #c4d3e4; font-size: .9rem; line-height: 1.7; }
.sf-own { margin: 0; color: var(--muted); font-size: .82rem; }

.sf-panel { display: grid; gap: .8rem; padding: 1rem; border-radius: 22px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  backdrop-filter: blur(10px); }
.sf-status { display: flex; align-items: center; gap: .8rem; padding: .7rem .85rem; border-radius: 16px; transition: background .4s, border-color .4s;
  background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .25); }
.sf-status b { display: block; font-size: 1rem; color: #a7f3d0; transition: color .4s; }
.sf-dot { position: relative; flex: none; width: 14px; height: 14px; }
.sf-dot i { position: absolute; inset: 0; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px rgba(52, 211, 153, .8); }
.sf-dot::before, .sf-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ok); animation: sfRing 2.2s ease-out infinite; }
.sf-dot::after { animation-delay: 1.1s; }
@keyframes sfRing { from { transform: scale(1); opacity: .8; } to { transform: scale(2.8); opacity: 0; } }
.sf-status[data-state="partial"] { background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .3); }
.sf-status[data-state="partial"] b { color: #fde68a; }
.sf-status[data-state="partial"] .sf-dot i { background: var(--warn); box-shadow: 0 0 12px rgba(251, 191, 36, .8); }
.sf-status[data-state="partial"] .sf-dot::before, .sf-status[data-state="partial"] .sf-dot::after { border-color: var(--warn); }
.sf-status[data-state="down"] { background: rgba(229, 72, 77, .1); border-color: rgba(229, 72, 77, .35); }
.sf-status[data-state="down"] b { color: #fecdd3; }
.sf-status[data-state="down"] .sf-dot i { background: var(--danger); box-shadow: none; }
.sf-status[data-state="down"] .sf-dot::before, .sf-status[data-state="down"] .sf-dot::after { border-color: var(--danger); }
.sf-status[data-state="loading"] { background: rgba(255, 255, 255, .03); border-color: var(--line); }
.sf-status[data-state="loading"] b { color: var(--muted); }
.sf-status[data-state="loading"] .sf-dot i { background: var(--muted); box-shadow: none; animation: pulse 1s infinite; }
.sf-status[data-state="loading"] .sf-dot::before, .sf-status[data-state="loading"] .sf-dot::after { display: none; }
.sf-services { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.sf-svc { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; padding: .15rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .05); color: #c4d3e4;
  opacity: 0; animation: emoIn .4s cubic-bezier(.34, 1.56, .64, 1) forwards; animation-delay: calc(var(--i) * 90ms + 150ms); }
.sf-svc i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.sf-svc.warn i { background: var(--warn); }
@keyframes emoIn { from { opacity: 0; transform: scale(.6) translateY(6px); } to { opacity: 1; transform: none; } }

.sf-meta { display: grid; gap: .1rem; }
.sf-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .5rem .3rem; border-bottom: 1px dashed var(--line); }
.sf-row:last-child { border-bottom: 0; }
.sf-k { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .85rem; }
.sf-k span { color: var(--brand-2); display: inline-grid; }
.sf-ver { position: relative; overflow: hidden; direction: ltr; font-weight: 800; font-size: .95rem; color: #fff; padding: .25rem .75rem; border-radius: 10px;
  background: linear-gradient(135deg, rgba(31, 174, 193, .35), rgba(124, 92, 255, .3)); border: 1px solid rgba(79, 209, 224, .4); }
.sf-ver::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 4s ease-in-out infinite 1s; }
.sf-build { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .8rem; color: #a9bbd1; }
.sf-time { text-align: left; font-size: .85rem; }
.sf-time b { font-weight: 600; color: #dbe6f3; }
.sf-time small { color: var(--muted); }

.sf-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem .9rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.sf-links i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: .6; }
.sf-links a { position: relative; color: #c4d3e4; text-decoration: none; font-size: .9rem; padding: .2rem 0; transition: color .2s; }
.sf-links a::after { content: ''; position: absolute; bottom: -2px; inset-inline: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #1faec1, #a78bfa);
  transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.sf-links a:hover { color: #fff; }
.sf-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* =========== صفحات الشروط والخصوصية =========== */
.legal .hp-tag { text-decoration: none; }
.lg-main { max-width: 820px; margin: 0 auto; padding: 1.8rem 20px 3rem; }
.lg-card { background: linear-gradient(180deg, rgba(25, 48, 77, .7), rgba(13, 27, 46, .88)); border: 1px solid var(--line-2); border-radius: 28px;
  padding: clamp(1.3rem, 4vw, 2.4rem); backdrop-filter: blur(14px); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.lg-eyebrow { margin: 0 0 .4rem; color: var(--brand-2); font-weight: 600; font-size: .9rem; }
.lg-card h1 { margin: 0; font-size: clamp(1.8rem, 6vw, 2.6rem); background: linear-gradient(90deg, #fff, #9be7f1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-date { margin: .4rem 0 1.2rem; color: var(--muted); font-size: .85rem; }
.lg-lead { margin: 0 0 1.2rem; color: #c4d3e4; line-height: 1.9; font-size: 1.02rem; }
.lg-card section { padding: 1rem 0; border-top: 1px dashed var(--line); }
.lg-card h2 { margin: 0 0 .6rem; font-size: 1.1rem; color: var(--brand-2); }
.lg-card ul { margin: 0; padding-inline-start: 1.2rem; display: grid; gap: .45rem; }
.lg-card li, .lg-card section p { color: #c4d3e4; line-height: 1.85; }
.lg-card li::marker { color: var(--brand); }
.lg-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 1.4rem; }
.lg-note a { color: var(--brand-2); }

/* المحتوى يستنى لحد ما الشاشة الافتتاحية تخلص */
html.splashing .reveal { animation-play-state: paused; }
