/* الشريط العلوي في الرئيسية بتصميم Gemini (طلب علي 2026-11-11).
   البروفايل على اليمين (طلب علي)، وبعده اسم الموقع، والأزرار على اليسار بأيقونة وكلمة ولون متوهج لكل زر.
   بالتلفون: صف واحد مربعات (أيقونة فوق وكلمة تحت). يتحمل بعد neon-home.css. للرجوع: شيل سطره من index.html */

.site-bar { background: rgba(14, 7, 38, .92) !important; border-bottom: 1px solid rgba(168, 85, 247, .35) !important;
  box-shadow: 0 8px 26px -14px rgba(168, 85, 247, .7); }
.site-bar .site-bar-inner { display: flex; flex-wrap: nowrap !important; align-items: center; gap: 8px; padding-block: 10px; }
/* نرتب كل الأزرار في صف واحد، بغض النظر وين هي في الصفحة */
.site-bar .bar-start, .site-bar .site-nav { display: contents !important; }
.site-bar .admin-open { display: none !important; }
.site-bar .profile-btn { order: 0; }
.site-bar .dash-btn { order: 1; }
.site-bar .logo { order: 2; margin-inline-end: auto; }
.site-bar .site-nav > a { order: 3; }
.site-bar .score-menu { order: 4; }
.site-bar .online-now { order: 5; }
.site-bar .chat-open.chat-in-home-bar { order: 6; }
.site-bar .copy-link { order: 7; }
.site-bar .online-panel { order: 9; }

/* ===== اسم الموقع ===== */
.site-bar .logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
/* site-menu.js يخفي العلامة بـ !important، فنستخدم محدد أقوى */
.site-bar .logo .logo-mark { display: inline-block !important; width: auto; height: auto; padding: 0; border: 0; background: none !important; box-shadow: none !important; font-size: 0; }
.site-bar .logo-mark::before { content: '🎮'; font-size: 26px; filter: drop-shadow(0 0 8px rgba(236, 72, 153, .8)); }
.site-bar .logo-text { display: inline; background: linear-gradient(180deg, #67e8f9 15%, #e879f9 85%); -webkit-background-clip: text; background-clip: text;
  color: transparent !important; font-size: 21px; font-weight: 800; line-height: 1.05; filter: drop-shadow(0 0 10px rgba(168, 85, 247, .55)); }

/* ===== الأزرار: كل واحد بلونه ===== */
.site-bar .site-nav > a { --c: #ec4899; }
.site-bar .score-menu-btn { --c: #a855f7; }
.site-bar .online-now { --c: #22d3ee; }
.site-bar .chat-open.chat-in-home-bar { --c: #3b82f6; }
.site-bar .copy-link { --c: #f472b6; }
.site-bar .dash-btn { --c: #facc15; }
.site-bar .site-nav > a, .site-bar .site-nav .score-menu-btn, .site-bar .online-now, .site-bar .chat-open.chat-in-home-bar, .site-bar .copy-link, .site-bar .dash-btn {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; min-height: 42px; margin: 0;
  padding: 6px 14px !important; border: 2px solid var(--c) !important; border-radius: 14px !important;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(20, 10, 51, .75)) !important; color: #fff !important;
  font: inherit; font-size: 14px !important; font-weight: 800; white-space: nowrap; text-decoration: none; cursor: pointer;
  box-shadow: 0 0 12px color-mix(in srgb, var(--c) 55%, transparent), inset 0 0 12px color-mix(in srgb, var(--c) 18%, transparent) !important;
  transition: box-shadow .2s, translate .2s; }
@media (hover: hover) {
  .site-bar .site-nav > a:hover, .site-bar .site-nav .score-menu-btn:hover, .site-bar .online-now:hover, .site-bar .chat-open.chat-in-home-bar:hover, .site-bar .copy-link:hover, .site-bar .dash-btn:hover {
    translate: 0 -2px; box-shadow: 0 0 20px var(--c), inset 0 0 14px color-mix(in srgb, var(--c) 30%, transparent) !important; }
}
.site-bar .site-nav > a::before { content: '🎮'; }
.site-bar .copy-link::before { content: '🔗'; }
.site-bar .wide-only { display: inline !important; }
.site-bar .online-now i { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.site-bar .online-now b { color: #fff !important; }
.site-bar .online-now > .wide-only { color: #fff !important; }
.site-bar .chat-open .chat-word { display: inline !important; }

/* ===== البروفايل: دائرة متوهجة ===== */
.site-bar .profile-btn { width: 44px; height: 44px; margin: 0; border: 2px solid #a855f7 !important; background: #1d0f47 !important; color: #fff !important;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, .5), 0 0 14px rgba(168, 85, 247, .7) !important; }
.site-bar .profile-btn.guest { width: auto; height: 42px; border-radius: 14px; padding: 0 12px; }

/* ===== قائمة الكأس بخطوتين (طلب علي 2026-11-11): الألعاب، بعدها لاعب واحد / تحدي أصدقاء / غرفة ===== */
.site-bar .score-menu-list.sm-games { min-width: 260px; padding: 10px !important; border: 1px solid rgba(168, 85, 247, .55) !important; border-radius: 18px !important;
  background: #1d0f47 !important; box-shadow: 0 0 22px rgba(168, 85, 247, .45), 0 20px 40px -12px rgba(0, 0, 0, .8) !important; list-style: none; }
.sm-games .sm-step { display: grid; gap: 8px; }
.sm-games .sm-step[hidden] { display: none; }
.sm-games .sm-title { margin: 2px 4px 2px; color: #67e8f9; font-size: 15px; font-weight: 800; text-align: start; }
.sm-games .sm-game, .sm-games .sm-kind { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 50px; padding: 10px 14px;
  border: 2px solid rgba(168, 85, 247, .45); border-radius: 14px; background: rgba(255, 255, 255, .05); color: #fff !important;
  font: inherit; font-size: 16px; font-weight: 800; text-align: start; text-decoration: none; cursor: pointer; }
.sm-games .sm-game:hover, .sm-games .sm-kind:hover, .sm-games .sm-game:focus-visible, .sm-games .sm-kind:focus-visible {
  border-color: #22d3ee; background: rgba(34, 211, 238, .12); box-shadow: 0 0 12px rgba(34, 211, 238, .4); outline: none; }
.sm-games .sm-kind[data-kind="solo"] { border-color: rgba(34, 211, 238, .6); }
.sm-games .sm-kind[data-kind="challenges"] { border-color: rgba(236, 72, 153, .6); }
.sm-games .sm-kind[data-kind="rooms"] { border-color: rgba(250, 204, 21, .6); }
.sm-games .sm-back { justify-self: start; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 99px; background: transparent;
  color: #c4b5fd; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }

/* ===== زر «☰ المزيد» وقائمته: بالكمبيوتر مخفي، يطلع بالتلفون بس ===== */
.site-bar .nav-more { --c: #e879f9; display: none; order: 8; position: relative; align-items: center; justify-content: center; gap: 6px; min-height: 42px;
  padding: 6px 14px; border: 2px solid var(--c); border-radius: 14px; background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(20, 10, 51, .75));
  color: #fff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
  box-shadow: 0 0 12px color-mix(in srgb, var(--c) 55%, transparent), inset 0 0 12px color-mix(in srgb, var(--c) 18%, transparent); }
.site-bar .nav-more .nm-dot { position: absolute; top: 5px; left: 6px; width: 10px; height: 10px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.nav-more-menu { position: fixed; z-index: 96; display: grid; gap: 4px; min-width: 230px; padding: 8px; border: 1px solid rgba(168, 85, 247, .55); border-radius: 16px;
  background: #1d0f47; box-shadow: 0 0 22px rgba(168, 85, 247, .45), 0 20px 40px -12px rgba(0, 0, 0, .8); direction: rtl; }
.nav-more-menu[hidden] { display: none; }
/* أزرار «المزيد» داخل قائمة الصورة + نقطة حمرا على الصورة لرسالة مشرف */
.nm-in-profile { display: flex !important; align-items: center; gap: 8px; }
.nm-in-profile .nm-emoji { font-size: 17px; }
.nm-in-profile .nm-count { margin-inline-start: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 12px; text-align: center; }
.site-bar .profile-btn { position: relative; overflow: visible !important; }
.site-bar .profile-btn img { border-radius: 50%; }
.site-bar .profile-btn.has-dot::after { content: ""; position: absolute; top: -2px; left: -2px; width: 11px; height: 11px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.nav-more-menu .nm-item { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 0; border-radius: 12px; background: transparent;
  color: #fff; font: inherit; font-size: 15px; font-weight: 800; text-align: start; cursor: pointer; }
.nav-more-menu .nm-item:hover, .nav-more-menu .nm-item:focus-visible { background: rgba(34, 211, 238, .12); outline: none; }
.nav-more-menu .nm-emoji { font-size: 20px; }
.nav-more-menu .nm-count { margin-inline-start: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 12px; text-align: center; }

/* ===== لابتوب صغير وتابلت: الأزرار ما تكفيها الشاشة فالصفحة كانت تنزاح لجنب (2026-11-15).
   نشيل اسم الموقع جنب الشعار ونصغر الأزرار شوي ===== */
@media (min-width: 761px) and (max-width: 1180px) {
  .site-bar .logo-text { display: none !important; }
  .site-bar .site-bar-inner { gap: 6px; }
  .site-bar .site-nav > a, .site-bar .site-nav .score-menu-btn, .site-bar .online-now, .site-bar .chat-open.chat-in-home-bar, .site-bar .copy-link, .site-bar .dash-btn {
    padding: 6px 9px !important; font-size: 13px !important; }
}

/* ===== التلفون: صف واحد مربعات، أيقونة فوق وكلمة تحت ===== */
@media (max-width: 760px) {
  .site-bar .site-bar-inner { gap: 5px; padding-inline: 8px; }
  .site-bar .logo { display: none !important; }
  .site-bar .profile-btn { width: 42px; height: 42px; margin-inline-end: 2px; }
  .site-bar .score-menu { display: flex; flex: 1 1 0; min-width: 55px; }
  .site-bar .site-bar-inner { gap: 4px; }
  .site-bar .site-nav > a, .site-bar .site-nav .score-menu-btn, .site-bar .online-now, .site-bar .chat-open.chat-in-home-bar, .site-bar .copy-link, .site-bar .dash-btn {
    flex: 1 1 0; min-width: 0; flex-direction: column; flex-wrap: wrap; align-content: center; gap: 1px 3px; min-height: 54px;
    padding: 5px 2px !important; border-radius: 12px !important; font-size: 10.5px !important; line-height: 1.25; white-space: normal; text-align: center; }
  .site-bar .site-nav .score-menu-btn { width: 100%; }
  .site-bar .site-nav > a::before, .site-bar .copy-link::before, .site-bar .chat-open .chat-icon { font-size: 18px; line-height: 1.1; }
  /* الكأس نص عادي داخل الزر: نكبّر الزر كله ونصغّر الكلمة بس */
  .site-bar .site-nav .score-menu-btn { font-size: 18px !important; line-height: 1.1; }
  .site-bar .score-menu-btn .wide-only { font-size: 10.5px; line-height: 1.25; }
  /* المتصلين: النقطة والعدد فوق، والكلمة تحت */
  .site-bar .online-now { flex-direction: row; }
  .site-bar .online-now > .wide-only { flex-basis: 100%; text-align: center; }
  .site-bar .online-now b { font-size: 15px; }
  .site-bar .online-caret { display: none !important; }
  .site-bar .copy-link { font-size: 0 !important; }
  .site-bar .copy-link::after { content: 'نسخ'; font-size: 10.5px; }
  .site-bar .copy-link::before { font-size: 18px; }
  .site-bar .dash-btn { font-size: 10px !important; }
  /* زر «☰ المزيد»: المشرفين ونسخ الرابط ولوحة التحكم وكود الغرفة تروح داخله (nav-more.js) */
  .site-bar .chat-open.chat-in-home-bar, .site-bar .copy-link, .site-bar .dash-btn { display: none !important; }
  .site-bar .nav-more { display: inline-flex !important; flex: 1 1 0; min-width: 0; flex-direction: column; gap: 1px; min-height: 54px;
    padding: 5px 2px; border-radius: 12px; font-size: 10.5px; line-height: 1.25; }
  .site-bar .nav-more .nm-icon { font-size: 18px; line-height: 1.1; }
  /* اللي مسجل: «المزيد» داخل قائمة الصورة، فالزر يختفي (طلب علي 2026-11-12) */
  body.more-in-profile .site-bar .nav-more { display: none !important; }
  /* كود الغرفة يختفي من الرئيسية، ويطلع لمن تختاره من القائمة */
  body:not(.show-room) .room-entry { display: none !important; }
  /* قائمة السكورات: تنفتح بالنص تحت الشريط، ما تطلع برا الشاشة */
  .site-bar .score-menu-list { position: fixed !important; top: 76px !important; left: 12px !important; right: 12px !important; width: auto !important; min-width: 0 !important; translate: none !important; }
}
