/* =====================================================================
   HARIZTALK — النسخة 11: البار السفلي ثلاثي الأبعاد، الشريط المتحرك،
   صفحة HARIZTALK، الشعار الدائري الجديد، قناة UPDATES
   ===================================================================== */

/* ---------- الشعار الجديد في البار العلوي ---------- */
.ht-tile{width:46px;height:46px;border-radius:50%;background:none!important;box-shadow:0 4px 10px rgba(0,0,0,.45),0 0 0 2px rgba(233,200,115,.55)!important;overflow:hidden}
.logo-txt .ht-tile img{width:46px!important;height:46px!important;border-radius:50%!important}
.ht-mono{background:none;border:0;padding:0;cursor:pointer;position:relative}
.ht-mono b+b{margin-inline-start:1px}
.hta-pop{position:fixed;z-index:130;padding:10px 18px;border-radius:16px;font:800 17px "Sora","Cairo",sans-serif;letter-spacing:1.5px;color:#2A1C00;
  background:var(--gold-grad,#E9C873);box-shadow:0 5px 0 #6E4E10,0 14px 26px rgba(0,0,0,.5);animation:htaIn .35s cubic-bezier(.2,1.4,.4,1);pointer-events:none;white-space:nowrap}
.hta-pop::before{content:"";position:absolute;top:-8px;inset-inline-start:22px;border:8px solid transparent;border-top:0;border-bottom-color:#FBE7A4}
@keyframes htaIn{from{opacity:0;transform:translateY(-10px) scale(.8)}to{opacity:1;transform:none}}

/* ---------- الشعار ثلاثي الأبعاد في شاشة الدخول ---------- */
.logo3d{width:220px!important;height:250px!important}
.logo3d .auth-logo,.auth-card img.auth-logo{width:200px!important;border-radius:50%!important}
.logo3d .pedestal{bottom:0!important}
#welcome img.wel-logo{border-radius:50%;width:min(260px,55%)!important}
#onboard .ob-logo{border-radius:50%}

/* ---------- الشريط المتحرك ---------- */
.ticker{position:relative;margin:8px -16px 0;height:42px;overflow:hidden;display:flex;align-items:center;
  background:var(--tk-bg,linear-gradient(180deg,rgba(0,0,0,.28),rgba(0,0,0,.12)));border-top:1px solid rgba(233,200,115,.35);border-bottom:1px solid rgba(233,200,115,.35);
  box-shadow:inset 0 3px 6px rgba(0,0,0,.35)}
.ticker .tk-track{display:inline-flex;white-space:nowrap;will-change:transform;animation:tkMove var(--tk-dur,18s) linear infinite;padding-inline-start:100%}
.ticker .tk-item{font-family:var(--tk-font,"Cairo"),sans-serif;font-weight:800;font-size:var(--tk-size,18px);color:var(--tk-color,#F3D98C);padding:0 30px}
.ticker.d3 .tk-item{text-shadow:0 1px 0 rgba(0,0,0,.25),0 2px 0 rgba(0,0,0,.25),0 3px 0 rgba(0,0,0,.25),0 4px 0 rgba(0,0,0,.2),0 6px 10px rgba(0,0,0,.55),0 0 14px var(--tk-glow,rgba(233,200,115,.45))}
.ticker:hover .tk-track{animation-play-state:paused}
@keyframes tkMove{from{transform:translateX(0)}to{transform:translateX(-100%)}}
[dir=rtl] .ticker .tk-track{animation-name:tkMoveR}
@keyframes tkMoveR{from{transform:translateX(0)}to{transform:translateX(100%)}}
[dir=rtl] .ticker .tk-track{padding-inline-start:0;padding-inline-end:100%}
.ticker .tk-edit{position:absolute;inset-inline-start:6px;top:50%;transform:translateY(-50%);width:32px;height:32px;border-radius:50%;display:grid;place-items:center;
  background:var(--gold-grad,#E9C873);color:#2A1C00;box-shadow:0 3px 0 #6E4E10;z-index:2}
.ticker .tk-edit svg{width:16px;height:16px}
.tk-prev{border-radius:12px;overflow:hidden;margin:8px 0 12px}
.tk-prev .ticker{margin:0}
.tk-colors{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.tk-colors label{display:flex;flex-direction:column;gap:4px;font-size:12.5px;font-weight:700;color:var(--muted)}
.tk-colors input[type=color]{width:100%;height:38px;border:1px solid var(--line);border-radius:10px;padding:2px;background:var(--panel)}

/* ---------- البار السفلي ثلاثي الأبعاد ---------- */
#side{padding-bottom:0}
#side .list{padding-bottom:110px}
#bnav{position:absolute;z-index:5;left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));display:flex;justify-content:space-between;align-items:flex-end;gap:2px;
  padding:8px 6px 6px;border-radius:28px;background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(236,240,236,.94));
  box-shadow:0 10px 26px rgba(0,0,0,.35),0 3px 0 rgba(0,0,0,.12),inset 0 2px 0 #fff,inset 0 -3px 6px rgba(0,0,0,.08);backdrop-filter:blur(10px)}
:root[data-theme=dark] #bnav{background:linear-gradient(180deg,rgba(28,48,40,.97),rgba(10,26,20,.97));box-shadow:0 12px 28px rgba(0,0,0,.6),0 3px 0 rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.12),inset 0 -3px 8px rgba(0,0,0,.35);border:1px solid rgba(233,200,115,.25)}
#bnav .bn{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 0 4px;border-radius:20px;color:var(--text);transition:transform .15s,background .15s;min-width:0}
#bnav .bn small{font-weight:700;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
#bnav .bn-ic{position:relative;width:34px;height:34px;display:grid;place-items:center}
#bnav .bn-ic svg{width:27px;height:27px;stroke-width:1.9}
#bnav .bn.on{background:linear-gradient(180deg,rgba(0,0,0,.07),rgba(0,0,0,.02));box-shadow:inset 0 2px 5px rgba(0,0,0,.18);transform:translateY(-1px)}
:root[data-theme=dark] #bnav .bn{color:#DDEBE3}
:root[data-theme=dark] #bnav .bn.on{background:linear-gradient(180deg,rgba(233,200,115,.18),rgba(233,200,115,.06));box-shadow:inset 0 2px 6px rgba(0,0,0,.45);color:#F3D98C}
#bnav .bn.on small{color:var(--red)}
:root[data-theme=dark] #bnav .bn.on small{color:#F3D98C}
#bnav .bn-me img,#bnav .bn-me .av{width:32px;height:32px;border-radius:50%;object-fit:cover;font-size:14px}
#bnav .bn-hz .bn-ic{width:50px;height:50px;margin-top:-22px;border-radius:50%;box-shadow:0 6px 14px rgba(0,0,0,.45),0 0 0 3px rgba(233,200,115,.8);background:#0A2A1E;transform:translateZ(0)}
#bnav .bn-hz img{width:50px;height:50px;border-radius:50%}
#bnav .bn-hz.on .bn-ic{box-shadow:0 8px 18px rgba(0,0,0,.5),0 0 0 3px #F3D98C,0 0 16px rgba(233,200,115,.7)}
#bnav .badge{position:absolute;top:-6px;inset-inline-end:-12px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;display:grid;place-items:center;font-size:11.5px;font-weight:800;background:#1FA463!important;color:#fff!important;box-shadow:0 2px 5px rgba(0,0,0,.3)!important}
#bnav .badge.inv{inset-inline-end:auto;inset-inline-start:-10px;background:#E0162B!important}
#bnav .dot{position:absolute;top:0;inset-inline-end:0;width:11px;height:11px;border-radius:50%;background:#1FA463;box-shadow:0 0 0 2px var(--panel)}
#side .fab{bottom:104px}
:root[data-big="1"] #bnav .bn-ic svg{width:31px;height:31px}
:root[data-big="1"] #bnav .bn small{font-size:13.5px}
#side .search.hidden,#side .filters.hidden{display:none!important}
.top .tabs{display:none}

/* ---------- صفحة «أنت» ---------- */
.you-wrap{padding:8px 4px 10px}
.you-wrap .card0{margin:8px 8px 12px}

/* ---------- صفحة HARIZTALK ---------- */
.hz-page{padding:10px 10px 20px;min-height:100%}
.hz-hero{display:grid;place-items:center;padding:26px 0 10px;perspective:900px}
.hz-hero img{width:min(230px,62%);border-radius:50%;transform-style:preserve-3d;animation:hzSpin 9s ease-in-out infinite;
  filter:drop-shadow(0 22px 22px rgba(0,0,0,.55)) drop-shadow(0 0 26px rgba(233,200,115,.45))}
.hz-hero .hz-base{width:min(200px,54%);height:24px;margin-top:-6px;border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.55),transparent)}
@keyframes hzSpin{0%,100%{transform:rotateY(-14deg) rotateX(6deg) translateY(0)}50%{transform:rotateY(14deg) rotateX(-4deg) translateY(-8px)}}
:root[data-anim="off"] .hz-hero img{animation:none}
.hz-post{margin:12px 2px;border-radius:20px;padding:16px;background:var(--panel);border:1px solid var(--line);box-shadow:0 6px 16px rgba(0,0,0,.18);overflow:hidden;word-wrap:break-word;line-height:1.8}
:root[data-theme=dark] .hz-post{border-color:rgba(233,200,115,.3)}
.hz-post img,.hz-post video{max-width:100%;border-radius:14px;display:block;margin:8px auto}
.hz-post iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:14px;margin:8px 0}
.hz-post .hz-meta{display:flex;justify-content:space-between;align-items:center;font-size:12px;opacity:.65;margin-top:10px}
.hz-post .hz-acts{display:flex;gap:6px}
.hz-add{position:sticky;bottom:96px;margin:14px auto 0;display:flex;justify-content:center}
.hz-empty{text-align:center;color:var(--muted);padding:10px 20px}
/* محرر المحتوى */
.rte-bar{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:8px;padding:6px;border-radius:12px;background:var(--bg);border:1px solid var(--line)}
.rte-bar button,.rte-bar select,.rte-bar label{height:34px;min-width:34px;padding:0 8px;border-radius:9px;background:var(--panel);border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:13px;font-weight:700;color:var(--text);cursor:pointer}
.rte-bar svg{width:17px;height:17px}
.rte-bar input[type=color]{width:22px;height:22px;border:0;padding:0;background:none}
.rte{min-height:180px;max-height:46vh;overflow:auto;border-radius:14px;padding:14px;border:1.5px solid var(--line);outline:none;line-height:1.8;background:var(--panel)}
.rte:focus{border-color:var(--gold2,var(--red))}
.rte img,.rte video{max-width:100%;border-radius:12px}
.rte iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:12px}

/* ---------- قناة HARIZTALK UPDATES للأعضاء ---------- */
#chat.ch-view #chatMenu,#chat.ch-view .only-admins{display:none!important}
#chat.ch-view .chat-head .who{pointer-events:none}
.ch-like{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:6px 14px;border-radius:99px;font-weight:800;font-size:13.5px;
  background:rgba(0,0,0,.08);color:inherit;border:1px solid rgba(127,127,127,.25)}
.ch-like.on{background:rgba(224,22,43,.14);color:#E0162B;border-color:rgba(224,22,43,.35)}
.yt-embed{width:100%;aspect-ratio:16/9;border:0;border-radius:12px;margin:6px 0;min-width:240px}

/* ---------- البلاغات ---------- */
.rep-st{font-size:11.5px;font-weight:800;padding:2px 10px;border-radius:99px}
.rep-st.new{background:#E0162B;color:#fff}
.rep-st.review{background:#F59E0B;color:#2A1C00}
.rep-st.done{background:#1FA463;color:#fff}
.rep-msg{margin:6px 0;padding:8px 10px;border-radius:10px;background:rgba(224,22,43,.08);border-inline-start:3px solid #E0162B;font-size:13.5px;white-space:pre-wrap;word-break:break-word}
.rep-msg img{max-width:160px;border-radius:8px;display:block;margin-top:6px}
.rep-log{font-size:12px;opacity:.75;margin-top:4px}
.rep-flag{background:#7A0010;color:#fff;font-weight:800;font-size:11.5px;padding:2px 9px;border-radius:99px}
.notice-modal .nt-ic{font-size:44px;text-align:center}
.edit-hist{font-size:12px;margin:-8px 0 10px;padding:6px 10px;border-radius:10px;background:rgba(245,158,11,.12);display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}

/* ---------- التحديثات ---------- */
.upd-chip{position:fixed;z-index:140;top:max(10px,env(safe-area-inset-top));left:10px;display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:99px;
  background:var(--gold-grad,#E9C873);color:#2A1C00;font-weight:800;font-size:14px;box-shadow:0 5px 0 #6E4E10,0 14px 24px rgba(0,0,0,.45);cursor:pointer;animation:updIn .5s cubic-bezier(.2,1.4,.4,1)}
.upd-chip .spin{display:inline-block;animation:updSpin 1.4s linear infinite}
@keyframes updIn{from{opacity:0;transform:translateX(-30px)}to{opacity:1;transform:none}}
@keyframes updSpin{to{transform:rotate(360deg)}}
#updGate{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:24px;background:var(--royal-bg);color:#fff;text-align:center}
#updGate img{width:170px;border-radius:50%;filter:drop-shadow(0 16px 20px rgba(0,0,0,.5))}
#updGate h2{margin:16px 0 6px}
#updGate p{color:#D9EBE1;line-height:1.9;max-width:380px;margin:0 auto 18px}

/* ---------- جهات الاتصال ---------- */
.ph-head{display:flex;gap:10px;align-items:center;padding:12px;margin:6px 10px;border-radius:16px;background:var(--red-soft);cursor:pointer}
.ph-head b{display:block}
.wa-step{display:flex;gap:10px;align-items:flex-start;margin:8px 0;line-height:1.7}
.wa-step i{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-weight:800;background:#25D366;color:#fff}
.btn.wa{background:linear-gradient(180deg,#3DE07F,#1FAF5A);color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.3);box-shadow:0 4px 0 #11713A,0 10px 18px rgba(0,0,0,.3)}
