/* [FDX_STUDIO] استوديو الضيف + بطاقة الخصوصية + غرفة الانتظار — RTL، أيقونات أوتلاين، صفر إيموجي */
:root{
  --app:#1D6FE3; --app-2:#3D8BF5;
  --st-panel:#1b1b27; --st-line:#2c2c3d; --st-tx:#e7e7f2; --st-tx2:#9a9ab4;
  --st-r:16px; --st-ease:cubic-bezier(.2,.8,.2,1);
}

/* ═══ ورقة الاختيار ═══ */
.fdx-sheet{position:fixed;inset:0;z-index:2400;background:rgba(6,6,12,.62);
  display:flex;align-items:flex-end;justify-content:center;padding:0;
  animation:fdxFade .16s var(--st-ease);backdrop-filter:blur(3px)}
@keyframes fdxFade{from{opacity:0}to{opacity:1}}
@keyframes fdxUp{from{transform:translateY(18px);opacity:.4}to{transform:none;opacity:1}}
.fdx-sh-c{width:min(560px,100%);background:var(--st-panel);color:var(--st-tx);
  border:1px solid var(--st-line);border-bottom:0;border-radius:20px 20px 0 0;
  padding:16px 16px 22px;animation:fdxUp .18s var(--st-ease);max-height:88vh;overflow:auto;
  box-shadow:0 -18px 60px rgba(0,0,0,.5)}
@media(min-width:700px){.fdx-sheet{align-items:center;padding:20px}
  .fdx-sh-c{border-radius:20px;border-bottom:1px solid var(--st-line)}}
.fdx-sh-h{display:flex;align-items:center;gap:8px;margin-bottom:12px;font-weight:800;font-size:16px}
.fdx-sh-h span{flex:1}
.fdx-sh-x{background:transparent;color:var(--st-tx2);width:36px;height:36px;border-radius:10px;
  display:grid;place-items:center;cursor:pointer}
.fdx-sh-x:hover{background:#26263a;color:var(--st-tx)}
.fdx-sh-note{background:#20202f;border:1px solid var(--st-line);border-radius:12px;padding:11px 13px;
  font-size:12.8px;line-height:1.8;color:var(--st-tx2);margin-bottom:12px}
.fdx-sh-l{display:flex;flex-direction:column;gap:8px}
.fdx-sh-i{display:flex;align-items:center;gap:12px;width:100%;text-align:start;
  background:#20202f;border:1px solid var(--st-line);border-radius:14px;padding:12px 13px;
  color:var(--st-tx);cursor:pointer;min-height:56px;font:inherit;
  transition:background .13s var(--st-ease),border-color .13s var(--st-ease)}
.fdx-sh-i:hover{background:#26263a;border-color:#3a3a52}
.fdx-sh-ic{flex:0 0 auto;width:40px;height:40px;border-radius:11px;display:grid;place-items:center;
  background:rgba(29,111,227,.16);color:var(--app-2)}
.fdx-sh-tx{display:flex;flex-direction:column;gap:2px;min-width:0}
.fdx-sh-tx b{font-size:14.5px;font-weight:800}
.fdx-sh-tx i{font-style:normal;font-size:12.3px;color:var(--st-tx2);line-height:1.6}
.fdx-sh-f{margin-top:13px;font-size:12.4px;color:var(--st-tx2);text-align:center;line-height:1.7}

/* ═══ شريط العرض ═══ */
.fdx-bar{position:fixed;z-index:2350;inset-inline:0;bottom:calc(env(safe-area-inset-bottom,0px) + 86px);
  margin:auto;width:max-content;max-width:calc(100% - 20px);
  display:flex;align-items:center;gap:6px;padding:7px 9px;
  background:rgba(23,23,35,.96);border:1px solid var(--st-line);border-radius:999px;
  box-shadow:0 10px 34px rgba(0,0,0,.5);flex-wrap:wrap;justify-content:center}
.fdx-live{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:800;
  color:#fff;background:var(--app);border-radius:999px;padding:7px 12px;white-space:nowrap}
.fdx-live i{width:8px;height:8px;border-radius:50%;background:#fff;animation:fdxP 1.5s infinite}
@keyframes fdxP{0%,100%{opacity:1}50%{opacity:.3}}
.fdx-bm{display:flex;align-items:center;gap:4px;flex-wrap:wrap;justify-content:center}
.fdx-b{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;
  background:#26263a;color:var(--st-tx);cursor:pointer;border:1px solid transparent;
  transition:background .13s var(--st-ease)}
.fdx-b:hover{background:#32324a}
.fdx-b.on{background:var(--app);color:#fff}
.fdx-b.stop{width:auto;padding:0 15px;gap:7px;border-radius:999px;background:#e03b3b;color:#fff;
  display:inline-flex;align-items:center;font-weight:800;font-size:13px;font-family:inherit}
.fdx-b.stop:hover{background:#f14a4a}
.fdx-pg{font-size:12.5px;font-weight:800;color:var(--st-tx2);padding:0 6px;min-width:56px;text-align:center}
@media(max-width:520px){.fdx-bar{bottom:calc(env(safe-area-inset-bottom,0px) + 80px);gap:4px;padding:6px}
  .fdx-b{width:40px;height:40px}.fdx-live{font-size:11.5px;padding:6px 10px}}

/* سطح اللمس فوق الشاشة المعروضة (ليزر/قلم) */
.fdx-pad{position:absolute;inset:0;z-index:6;touch-action:none;cursor:crosshair;background:transparent}

/* ═══ نافذة القبول (مشاركة / غرفة انتظار) ═══ */
.fdx-ask{position:fixed;z-index:2500;inset-inline:0;top:calc(env(safe-area-inset-top,0px) + 64px);
  margin:auto;width:min(400px,calc(100% - 24px));background:var(--st-panel);color:var(--st-tx);
  border:1px solid var(--st-line);border-radius:var(--st-r);padding:15px 16px;
  box-shadow:0 18px 50px rgba(0,0,0,.55);animation:fdxUp .18s var(--st-ease)}
.fdx-ask-t{font-weight:800;font-size:15px;margin-bottom:5px}
.fdx-ask-s{font-size:12.8px;color:var(--st-tx2);line-height:1.7;margin-bottom:13px}
.fdx-ask-b{display:flex;gap:8px}
.fdx-ask-b button{flex:1;min-height:44px;border-radius:12px;font:inherit;font-weight:800;font-size:13.5px;cursor:pointer}
.fdx-ask-b .fdx-no{background:#26263a;color:var(--st-tx)}
.fdx-ask-b .fdx-no:hover{background:#32324a}
.fdx-ask-b .fdx-yes{background:var(--app);color:#fff}
.fdx-ask-b .fdx-yes:hover{background:var(--app-2)}

/* ═══ جسر الجهاز الثاني ═══ */
.fdx-br{text-align:center}
.fdx-br-s{font-size:12.8px;color:var(--st-tx2);line-height:1.85;margin-bottom:14px}
.fdx-br-s b{color:var(--st-tx)}
.fdx-br-w{font-size:13px;color:var(--st-tx2);padding:22px 0}
.fdx-qr{display:grid;place-items:center;margin:0 auto 12px;width:max-content;
  background:#fff;padding:8px;border-radius:12px}
.fdx-qr svg{display:block;width:min(196px,52vw);height:auto}
.fdx-code{font:800 32px/1.1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.16em;
  color:#fff;background:#101019;border:1px solid var(--st-line);border-radius:14px;
  padding:13px 8px;margin-bottom:10px;direction:ltr}
.fdx-br-u{display:flex;align-items:center;gap:8px;justify-content:center;flex-wrap:wrap;
  font-size:12.5px;color:var(--st-tx2);direction:ltr}
.fdx-cp{display:inline-flex;align-items:center;gap:5px;background:#26263a;color:var(--st-tx);
  border-radius:9px;padding:7px 11px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;min-height:36px}
.fdx-cp:hover{background:#32324a}
.fdx-br-t{margin-top:11px;font-size:12px;color:var(--st-tx2)}

/* ═══ ⑧ بطاقة الخصوصية ═══ */
.fdx-privacy{background:#20202f;border:1px solid var(--st-line);border-radius:14px;
  padding:13px 14px;margin:14px 0;text-align:start}
.fdx-pv-h{display:flex;align-items:center;gap:7px;font-weight:800;font-size:13.5px;
  color:var(--st-tx);margin-bottom:10px}
.fdx-pv-h svg{color:var(--app-2);flex:0 0 auto}
.fdx-pv-l{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.fdx-pv-l li{display:grid;grid-template-columns:auto auto 1fr;align-items:start;gap:8px;font-size:12.4px;line-height:1.65}
.fdx-pv-i{color:var(--st-tx2);display:grid;place-items:center;padding-top:1px}
.fdx-pv-k{color:var(--st-tx2);white-space:nowrap;font-weight:700}
.fdx-pv-v{color:var(--st-tx)}
.fdx-pv-n{margin-top:11px;font-size:11.8px;color:var(--st-tx2);line-height:1.7;
  border-top:1px solid var(--st-line);padding-top:10px}
.fdx-pv-rv{margin-top:11px;width:100%;min-height:40px;border-radius:10px;background:#2b2130;
  color:#ffb0b0;font:inherit;font-weight:700;font-size:12.5px;cursor:pointer}
.fdx-pv-rv:hover{background:#3a2a3a}

/* ═══ شاشة الانتظار (الضيف) ═══ */
.fdx-wait{display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px 0}
.fdx-wait-s{width:44px;height:44px;border-radius:50%;border:3px solid #2c2c3d;border-top-color:var(--app);
  animation:fdxSpin 1s linear infinite}
@keyframes fdxSpin{to{transform:rotate(360deg)}}
.fdx-wait-t{font-weight:800;font-size:15px;color:var(--st-tx)}
.fdx-wait-x{font-size:12.8px;color:var(--st-tx2);text-align:center;line-height:1.8}

/* ═══ ⑦ وضع التضمين — بلا شريط ثانٍ ولا حشوات زائدة ═══ */
html[data-fdx-embed="1"] .rtop .rt-logo,
html[data-fdx-embed="1"] #nav-brand,
html[data-fdx-embed="1"] .fdx-topbar{display:none!important}
html[data-fdx-embed="1"] body{overflow-x:hidden}
html[data-fdx-embed="1"] .wcard{box-shadow:none;border-radius:0}

@media (prefers-reduced-motion:reduce){
  .fdx-sh-c,.fdx-ask,.fdx-sheet{animation:none!important}
  .fdx-live i,.fdx-wait-s{animation:none!important}
}
