/* ============================================================
   حبكة — تخطيط الواجهة
   ============================================================ */

/* ===================== شاشة البداية (Splash) ===================== */
#splash {
  position: fixed; inset: 0; z-index: 9000;
  display: grid; place-items: center;
  background: radial-gradient(1200px 700px at 50% 45%, #161c2a 0%, var(--bg-0) 70%);
  transition: opacity .5s var(--ease), visibility .5s;
}
#splash.gone { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-inner { display: grid; place-items: center; gap: 22px; }
.splash-logo { width: min(340px, 78vw); height: auto; overflow: visible; }

/* الخيوط تتشابك ثم تتكوّن الكلمة */
.thread {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: .5;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: weave 1.5s var(--ease) forwards;
}
.thread:nth-child(2) { animation-delay: .1s;  stroke: var(--gold-soft); }
.thread:nth-child(3) { animation-delay: .2s;  stroke: var(--teal); opacity: .35; }
.thread:nth-child(4) { animation-delay: .3s; }

@keyframes weave { to { stroke-dashoffset: 0; } }

.splash-word {
  font-size: clamp(3.2rem, 13vw, 5.4rem);
  font-weight: 900;
  letter-spacing: .04em;
  background: linear-gradient(115deg, var(--gold-deep), var(--gold-soft) 45%, var(--gold) 70%, var(--gold-soft));
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: wordIn .8s var(--ease) .55s both, sheen 3.2s linear 1.3s infinite;
  filter: drop-shadow(0 6px 26px rgba(212,175,55,.3));
}
@keyframes wordIn { from { opacity: 0; transform: translateY(16px) scale(.94); letter-spacing: .3em; } }
@keyframes sheen  { to { background-position: 220% center; } }

.splash-sub {
  color: var(--tx-2); font-size: .95rem; font-weight: 600;
  animation: fadeIn .6s var(--ease) 1.05s both;
}

/* ===================== شاشة الترحيب ===================== */
#welcome {
  position: fixed; inset: 0; z-index: 8500;
  display: grid; place-items: center;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  transition: opacity .45s var(--ease), visibility .45s;
}
#welcome.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.welcome-box {
  text-align: center; padding: 34px 42px;
  animation: popIn .5s var(--ease) both;
}
.welcome-box h2 { font-size: clamp(1.5rem, 5.5vw, 2.1rem); margin-bottom: 8px; }
.welcome-box h2 span { color: var(--gold); }

/* ===================== المصادقة ===================== */
.auth-wrap {
  min-height: 100dvh;
  display: grid; place-items: center;
  padding: 26px 18px;
}
.auth-card {
  width: min(430px, 100%);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--sh-lg);
  animation: fadeUp .5s var(--ease) both;
}
.auth-brand { text-align: center; margin-bottom: 24px; }
.auth-brand .mark {
  font-size: 2.5rem; font-weight: 900;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold-soft), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-brand p { color: var(--tx-2); font-size: .92rem; margin-top: 4px; }

.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-switch {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.auth-switch p { color: var(--tx-2); font-size: .87rem; margin-bottom: 11px; }

.auth-error {
  background: rgba(239,68,68,.11);
  border: 1px solid rgba(239,68,68,.32);
  color: #fca5a5;
  padding: 11px 14px; border-radius: var(--r-sm);
  font-size: .87rem; font-weight: 600;
  animation: slideDown .25s var(--ease);
}

/* اختيار الصورة عند التسجيل */
.pick-avatar {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 6px 0 2px;
}
.pick-avatar .avatar { cursor: pointer; transition: transform var(--fast), box-shadow var(--fast); }
.pick-avatar .avatar:hover { transform: scale(1.06); box-shadow: var(--glow-gold); }

/* ===================== الهيكل العام ===================== */
#app { display: none; min-height: 100dvh; padding-bottom: calc(var(--nav-h) + 22px); }
#app.on { display: block; }

.site-header {
  position: sticky; top: 0; z-index: 500;
  height: var(--header-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 clamp(14px, 3vw, 30px);
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.site-header .brand {
  font-size: 1.45rem; font-weight: 900;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold-soft), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  cursor: pointer; flex: none;
}

/* شريط البحث */
.search-box { position: relative; flex: 1; max-width: 480px; }
.search-box .input { padding-inline-start: 40px; border-radius: var(--r-full); }
.search-box .ico {
  position: absolute; inset-inline-start: 13px; top: 50%;
  transform: translateY(-50%); color: var(--tx-3); pointer-events: none;
}
.search-results {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0; right: 0;
  max-height: 65vh; overflow-y: auto; z-index: 600;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
  padding: 7px; animation: slideDown .2s var(--ease);
}
.search-results:empty { display: none; }
.sr-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: var(--r-sm); cursor: pointer;
  transition: background var(--fast);
}
.sr-item:hover { background: var(--bg-3); }
.sr-item img, .sr-item .ph {
  width: 40px; height: 56px; border-radius: 7px; object-fit: cover;
  background: var(--bg-3); flex: none;
}
.sr-item .ph { display: grid; place-items: center; color: var(--tx-3); }

/* التنقّل (تبويبات) */
.tabs {
  position: sticky; top: var(--header-h); z-index: 400;
  display: flex; gap: 7px; overflow-x: auto;
  padding: 11px clamp(14px, 3vw, 30px);
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 17px; border-radius: var(--r-full);
  background: transparent; border: 1px solid transparent;
  color: var(--tx-2); font-weight: 700; font-size: .92rem;
  cursor: pointer; white-space: nowrap;
  transition: all var(--fast);
}
.tab:hover { background: var(--bg-2); color: var(--tx-1); }
.tab.active {
  background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(212,175,55,.07));
  border-color: rgba(212,175,55,.4);
  color: var(--gold-soft);
  box-shadow: 0 0 16px rgba(212,175,55,.14);
}

main.page { padding: 22px clamp(14px, 3vw, 30px); max-width: 1280px; margin: 0 auto; }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 15px; flex-wrap: wrap;
}
.section-head h2 { font-size: 1.22rem; display: flex; align-items: center; gap: 9px; }

/* ===================== الصفحة الرئيسية ===================== */
.hero {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.35fr);
  gap: 18px; margin-bottom: 26px;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

.hero-me {
  background:
    linear-gradient(150deg, rgba(212,175,55,.11), transparent 55%),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 16px;
}
.hero-id { display: flex; align-items: center; gap: 14px; }
.hero-id h3 { font-size: 1.25rem; }

.clock { display: flex; flex-direction: column; gap: 3px; }
.clock .t {
  font-size: 2.1rem; font-weight: 900; letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dates { display: flex; flex-wrap: wrap; gap: 7px; }

.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.mini-stat {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 11px 8px; text-align: center;
}
.mini-stat b { display: block; font-size: 1.3rem; color: var(--gold-soft); }
.mini-stat span { font-size: .72rem; color: var(--tx-3); font-weight: 700; }

/* الجدول الأسبوعي المصغّر */
.week-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
@media (max-width: 620px) { .week-grid { grid-template-columns: repeat(4, 1fr); } }

.day {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 9px 7px;
  min-height: 92px; cursor: pointer;
  transition: all var(--fast);
  display: flex; flex-direction: column; gap: 5px;
}
.day:hover { border-color: var(--gold-deep); background: var(--bg-3); transform: translateY(-2px); }
.day.today { border-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(212,175,55,.28); }
.day .dn { font-size: .74rem; font-weight: 800; color: var(--tx-2); text-align: center; }
.day.today .dn { color: var(--gold-soft); }
.day .dd { font-size: .66rem; color: var(--tx-3); text-align: center; margin-top: -3px; }

.chip {
  font-size: .7rem; font-weight: 700;
  padding: 3px 7px; border-radius: 6px;
  background: var(--bg-3); color: var(--tx-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border-inline-start: 3px solid var(--tx-3);
}
.chip.important {
  background: rgba(212,175,55,.15);
  color: var(--gold-soft);
  border-inline-start-color: var(--gold);
  box-shadow: 0 0 10px rgba(212,175,55,.25);
  animation: pulseGold 2.6s var(--ease) infinite;
}
.chip.done { opacity: .45; text-decoration: line-through; }
@keyframes pulseGold {
  0%,100% { box-shadow: 0 0 8px rgba(212,175,55,.2); }
  50%     { box-shadow: 0 0 18px rgba(212,175,55,.42); }
}

/* ===================== شبكة الأعمال ===================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 16px;
}
@media (max-width: 480px) { .grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; } }

.title-card { cursor: pointer; animation: fadeUp .4s var(--ease) both; }
.poster {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: transform var(--mid), box-shadow var(--mid), border-color var(--mid);
}
.title-card:hover .poster {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--sh-md), 0 0 0 1px rgba(212,175,55,.3);
  border-color: var(--gold-deep);
}
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--tx-3); font-size: 2rem; }
.poster::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, transparent 45%);
  opacity: 0; transition: opacity var(--mid);
}
.title-card:hover .poster::after { opacity: 1; }

.poster .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; transition: opacity var(--mid);
}
.title-card:hover .poster .play { opacity: 1; }
.play span {
  width: 46px; height: 46px; border-radius: var(--r-full);
  background: rgba(212,175,55,.92); color: #16130a;
  display: grid; place-items: center;
  box-shadow: var(--glow-gold);
  transform: scale(.85); transition: transform var(--mid);
}
.title-card:hover .play span { transform: scale(1); }

.poster .tag {
  position: absolute; top: 8px; inset-inline-start: 8px;
  font-size: .68rem; font-weight: 800;
  padding: 3px 9px; border-radius: var(--r-full);
  background: rgba(11,14,20,.8); color: var(--gold-soft);
  backdrop-filter: blur(6px); border: 1px solid rgba(212,175,55,.3);
}
.title-card .meta { padding: 9px 3px 0; }
.title-card .meta b { display: block; font-size: .9rem; font-weight: 700; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.title-card .meta span { font-size: .74rem; color: var(--tx-3); }

/* بطاقة إضافة */
.add-card .poster {
  border-style: dashed; border-color: var(--line);
  display: grid; place-items: center;
  background: transparent;
}
.add-card:hover .poster { border-color: var(--gold); background: rgba(212,175,55,.05); }
.add-card .poster div { text-align: center; color: var(--tx-3); }
.add-card:hover .poster div { color: var(--gold-soft); }

/* ===================== المشاركات ===================== */
.posts { display: grid; gap: 15px; }
.post {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 17px;
  animation: fadeUp .4s var(--ease) both;
  transition: border-color var(--fast);
}
.post:hover { border-color: var(--line-soft); }
.post-head { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.post-head .who b { display: block; font-size: .93rem; }
.post-head .who span { font-size: .74rem; color: var(--tx-3); }

.post-body { display: flex; gap: 14px; }
.post-body .pimg {
  width: 96px; aspect-ratio: 2/3; border-radius: var(--r-sm);
  object-fit: cover; flex: none; background: var(--bg-3);
  border: 1px solid var(--line);
}
.post-body .pimg.ph { display: grid; place-items: center; color: var(--tx-3); }
.post-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.post-info h4 { font-size: 1.03rem; }
.post-text { color: var(--tx-2); font-size: .9rem; line-height: 1.8; white-space: pre-wrap; }

.post-foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line);
}
.replies { display: grid; gap: 9px; margin-top: 12px; }
.reply {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 12px;
  display: flex; gap: 10px;
}
.reply .rb { flex: 1; min-width: 0; }
.reply b { font-size: .85rem; }
.reply p { font-size: .85rem; color: var(--tx-2); margin-top: 3px; }

/* ===================== صفحة العمل ===================== */
.detail-hero {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 700px) { .detail-hero { grid-template-columns: 1fr; } }
.detail-hero .poster { max-width: 220px; }
.detail-info { display: flex; flex-direction: column; gap: 14px; }
.detail-info h1 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
.detail-desc { color: var(--tx-2); line-height: 1.9; white-space: pre-wrap; }

.music-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-full); padding: 8px 8px 8px 16px;
  width: fit-content; max-width: 100%;
}
.music-bar.playing { border-color: rgba(212,175,55,.4); box-shadow: 0 0 18px rgba(212,175,55,.14); }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq i {
  width: 3px; background: var(--gold); border-radius: 2px; height: 30%;
  animation: eqb .9s ease-in-out infinite;
}
.eq i:nth-child(2){ animation-delay:.15s } .eq i:nth-child(3){ animation-delay:.3s }
.eq i:nth-child(4){ animation-delay:.45s }
@keyframes eqb { 0%,100%{height:25%} 50%{height:100%} }
.music-bar:not(.playing) .eq i { animation: none; height: 25%; opacity: .4; }

/* ===================== البروفايل ===================== */
.profile-head {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(150deg, rgba(212,175,55,.1), transparent 60%), var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; margin-bottom: 22px;
}
.locked-note {
  display: grid; place-items: center; gap: 10px;
  padding: 46px 20px; text-align: center;
  background: var(--bg-2); border: 1px dashed var(--line);
  border-radius: var(--r-md); color: var(--tx-2);
}
.locked-note svg { color: var(--rose); }

/* ===================== المحادثات ===================== */
.chat-layout { display: grid; grid-template-columns: 270px 1fr; gap: 16px; height: calc(100dvh - var(--header-h) - var(--nav-h) - 60px); }
@media (max-width: 760px) { .chat-layout { grid-template-columns: 1fr; } .chat-list.hide-m { display: none; } }
.chat-list { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); overflow-y: auto; padding: 8px; }
.chat-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r-sm); cursor: pointer; transition: background var(--fast); }
.chat-item:hover, .chat-item.active { background: var(--bg-3); }
.chat-main { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 9px; }
.msg { max-width: 74%; padding: 9px 14px; border-radius: 16px; font-size: .9rem; line-height: 1.6; animation: popIn .2s var(--ease) both; }
.msg.in  { align-self: flex-start; background: var(--bg-3); border-bottom-inline-start-radius: 5px; }
.msg.out { align-self: flex-end; background: linear-gradient(135deg, var(--gold-deep), var(--gold)); color: #16130a; font-weight: 600; }
.msg .tm { display: block; font-size: .66rem; opacity: .6; margin-top: 3px; }
.chat-input { display: flex; gap: 8px; padding: 11px; border-top: 1px solid var(--line); }

/* ===================== الإعدادات ===================== */
.set-group { margin-bottom: 22px; }
.set-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line);
}
.set-row:last-child { border-bottom: 0; }
.set-row .lb b { display: block; font-size: .95rem; }
.set-row .lb span { font-size: .79rem; color: var(--tx-3); }

/* مفتاح التبديل */
.switch { position: relative; width: 50px; height: 28px; flex: none; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .sl {
  position: absolute; inset: 0; background: var(--bg-3);
  border: 1px solid var(--line); border-radius: var(--r-full);
  transition: all var(--mid);
}
.switch .sl::before {
  content: ''; position: absolute; width: 20px; height: 20px;
  top: 3px; inset-inline-start: 3px;
  background: var(--tx-3); border-radius: var(--r-full);
  transition: all var(--mid);
}
.switch input:checked + .sl { background: rgba(212,175,55,.25); border-color: var(--gold); }
.switch input:checked + .sl::before {
  background: var(--gold); transform: translateX(22px);
  box-shadow: 0 0 10px var(--gold);
}
[dir="rtl"] .switch input:checked + .sl::before { transform: translateX(-22px); }

/* شريط الصوت */
.range { -webkit-appearance: none; appearance: none; width: 150px; height: 5px;
  background: var(--bg-3); border-radius: var(--r-full); outline: none; }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 17px; height: 17px; border-radius: var(--r-full);
  background: var(--gold); cursor: pointer; box-shadow: 0 0 9px rgba(212,175,55,.55);
  transition: transform var(--fast);
}
.range::-webkit-slider-thumb:hover { transform: scale(1.18); }
.range::-moz-range-thumb { width: 17px; height: 17px; border: 0; border-radius: 50%; background: var(--gold); cursor: pointer; }

/* اختيار اللغة */
.lang-pick { display: flex; gap: 8px; }
.lang-box {
  padding: 9px 20px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--bg-1);
  cursor: pointer; font-weight: 700; transition: all var(--fast);
}
.lang-box.on { border-color: var(--gold); background: rgba(212,175,55,.13); color: var(--gold-soft); }

/* ===================== النافذة المنبثقة ===================== */
.modal-bg {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5,7,12,.72); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 18px;
  animation: fadeIn .2s var(--ease);
  overflow-y: auto;
}
.modal {
  width: min(520px, 100%);
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  max-height: 92dvh; overflow-y: auto;
  animation: popIn .26s var(--ease);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--bg-2); z-index: 2;
}
.modal-body { padding: 22px; display: flex; flex-direction: column; gap: 15px; }
.modal-foot { padding: 0 22px 22px; display: flex; gap: 10px; justify-content: flex-end; }

/* ===================== التنبيهات ===================== */
#toasts {
  position: fixed; bottom: calc(var(--nav-h) + 16px); inset-inline-start: 50%;
  transform: translateX(-50%); z-index: 2000;
  display: flex; flex-direction: column; gap: 9px; align-items: center;
  pointer-events: none;
}
[dir="rtl"] #toasts { transform: translateX(50%); }
.toast {
  padding: 11px 20px; border-radius: var(--r-full);
  background: var(--bg-3); border: 1px solid var(--line);
  box-shadow: var(--sh-md); font-size: .88rem; font-weight: 700;
  animation: fadeUp .28s var(--ease);
}
.toast.ok  { border-color: rgba(52,211,153,.45); color: var(--green); }
.toast.err { border-color: rgba(239,68,68,.45);  color: #fca5a5; }

/* ===================== الشريط السفلي (جوال) ===================== */
.bottom-nav {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 700;
  height: var(--nav-h);
  display: none; align-items: center; justify-content: space-around;
  background: var(--bg-glass);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 760px) { .bottom-nav { display: flex; } }
.bn-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--tx-3); font-size: .66rem; font-weight: 700;
  cursor: pointer; padding: 6px 12px; border-radius: var(--r-sm);
  transition: color var(--fast);
}
.bn-item.active { color: var(--gold); }
.bn-item.active svg { filter: drop-shadow(0 0 7px rgba(212,175,55,.55)); }

/* ===================== الحالة الفارغة ===================== */
.empty {
  display: grid; place-items: center; gap: 12px;
  padding: 56px 20px; text-align: center; color: var(--tx-3);
}
.empty svg { opacity: .35; }
.empty b { color: var(--tx-2); font-size: 1rem; }
