/* ============================================================
   موقع شات — طبقة التطبيق (App shell v1)
   تُحمَّل بعد ui.css: شريط تنقل واحد، رؤوس صفحات، بطاقات،
   وإصلاحات الهاتف (safe-area · أهداف لمس · بلا تمرير أفقي).
   ============================================================ */

:root {
  --app-max: 720px;
  --tb-h: 64px;
  --brand: #F2723C;
  --brand-2: #FFA64D;
  --brand-ink: #B4441A;
  --brand-soft: rgba(242, 114, 60, 0.11);
  --ring: 0 0 0 3px rgba(242, 114, 60, 0.22);
}

html[data-theme="light"] {
  --bg: #FBF7F1;
  --bg-soft: #FFFFFF;
  --bg-deep: #F4EDE3;
  --cream: #F8F2E9;
  --text: #191410;
  --text-muted: #786A5D;
  --text-soft: #A79485;
  --hairline: rgba(25, 20, 16, 0.085);
  --border: rgba(25, 20, 16, 0.10);
  --sh-sm: 0 1px 2px rgba(40, 26, 12, .05), 0 4px 14px rgba(40, 26, 12, .05);
  --sh-md: 0 10px 30px rgba(52, 32, 12, .10);
  --grad-bg: radial-gradient(680px 420px at 96% -6%, rgba(255, 166, 77, .20), transparent 60%),
             radial-gradient(620px 420px at -8% 8%, rgba(242, 114, 60, .10), transparent 62%),
             var(--bg);
}

/* ---------- أساس آمن للهاتف ---------- */
html, body { max-width: 100%; overflow-x: hidden; }
body { -webkit-tap-highlight-color: transparent; }
img, svg, video { max-width: 100%; }
button, a, input, select, textarea { touch-action: manipulation; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   شريط التنقل السفلي (يظهر على كل المقاسات)
   ============================================================ */
.tabbar-wrap {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 120;
  display: flex; justify-content: center;
  padding: 0 12px calc(10px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.tabbar {
  pointer-events: auto;
  width: min(560px, 100%);
  display: flex; align-items: flex-end; justify-content: space-around;
  gap: 2px;
  background: color-mix(in srgb, var(--bg-soft) 93%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid var(--hairline);
  border-radius: 26px;
  box-shadow: 0 10px 34px rgba(52, 32, 12, .13), 0 2px 6px rgba(52, 32, 12, .05);
  padding: 7px 6px;
  position: relative;
}
html[data-theme="dark"] .tabbar {
  background: rgba(28, 23, 18, .92);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .5);
}

.tb-item {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 3px; padding: 6px 2px 5px;
  border: 0; background: none; font-family: inherit; cursor: pointer;
  color: var(--text-soft); text-decoration: none;
  border-radius: 18px;
  transition: color .18s var(--ease), transform .18s var(--ease), background .18s var(--ease);
}
.tb-item .tb-ico {
  position: relative;
  width: 34px; height: 30px; display: grid; place-items: center;
  border-radius: 12px;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.tb-item svg { width: 22px; height: 22px; }
.tb-item .tb-label {
  font-size: .66rem; font-weight: 700; letter-spacing: -.1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.tb-item:active .tb-ico { transform: scale(.9); }
.tb-item.active { color: var(--brand); }
.tb-item.active .tb-ico { background: var(--brand-soft); }
.tb-item.active .tb-label { font-weight: 800; }

/* زر الدردشة المركزي */
.tb-item.tb-center { flex: 0 0 66px; justify-content: flex-end; }
.tb-item.tb-center .tb-ico {
  width: 52px; height: 52px; border-radius: 20px;
  background: var(--grad-primary); color: #fff;
  box-shadow: 0 8px 20px rgba(242, 114, 60, .38);
  transform: translateY(-14px);
  border: 3px solid var(--bg-soft);
}
html[data-theme="dark"] .tb-item.tb-center .tb-ico { border-color: #1C1712; }
.tb-item.tb-center svg { width: 24px; height: 24px; }
.tb-item.tb-center .tb-label { display: none; }
.tb-item.tb-center { padding-bottom: 4px; }
.tb-item.tb-center.active .tb-ico { background: var(--grad-primary); }
.tb-item.tb-center.active .tb-label { color: var(--brand); }

.tb-badge[hidden] { display: none; }
.tb-badge {
  position: absolute; top: -6px; inset-inline-end: -7px;
  min-width: 15px; height: 15px; padding: 0 3px;
  border-radius: 999px; background: var(--danger); color: #fff;
  font-family: var(--font-num); font-size: .58rem; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--bg-soft);
}
html[data-theme="dark"] .tb-badge { border-color: #1C1712; }

/* مساحة أسفل الصفحات حتى لا يغطي الشريط المحتوى */
body.has-tabbar { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
.app-page, .dc-app, .ms-wrap, .rm-app {
  padding-bottom: calc(var(--tb-h) + 34px + env(safe-area-inset-bottom, 0px));
}

/* ============================================================
   رأس الصفحة الموحّد
   ============================================================ */
.ph {
  position: sticky; top: 0; z-index: 40;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 0 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.ph.stuck { border-bottom-color: var(--hairline); }
.ph-in { width: min(var(--app-max), 92vw); margin-inline: auto; }
.ph-row { display: flex; align-items: center; gap: 10px; }
.ph-titles { min-width: 0; flex: 1; }
.ph-eyebrow {
  font-family: var(--font-num); font-size: .64rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft);
  display: block; margin-bottom: 1px;
}
.ph-title { font-size: 1.5rem; font-weight: 900; letter-spacing: -.6px; line-height: 1.25; }
.ph-sub { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.ph-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 15px;
  display: grid; place-items: center; cursor: pointer;
  background: var(--bg-soft); border: 1px solid var(--hairline);
  color: var(--text-muted); box-shadow: var(--sh-sm);
  transition: transform .14s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-hover); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn.accent { color: #fff; background: var(--grad-primary); border-color: transparent; box-shadow: 0 6px 16px var(--primary-glow); }

.avatar-btn {
  width: 42px; height: 42px; border-radius: 15px; overflow: hidden;
  display: grid; place-items: center; cursor: pointer; padding: 0;
  background: var(--cream); border: 1px solid var(--hairline);
  box-shadow: var(--sh-sm); font-size: 1.15rem;
}
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   لوحة ترحيب بعد التسجيل
   ============================================================ */
.welcome {
  width: min(var(--app-max), 92vw); margin: 10px auto 4px;
  border-radius: 24px; padding: 18px;
  background: linear-gradient(135deg, rgba(242,114,60,.14), rgba(255,166,77,.07));
  border: 1px solid rgba(242,114,60,.20);
  display: flex; align-items: center; gap: 14px;
  animation: wIn .5s var(--ease) both;
}
@keyframes wIn { from { opacity: 0; transform: translateY(-8px); } }
.welcome .w-ico {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 16px;
  display: grid; place-items: center; color: #fff;
  background: var(--grad-primary); box-shadow: 0 8px 18px rgba(242,114,60,.3);
}
.welcome b { display: block; font-size: .95rem; font-weight: 800; }
.welcome span { display: block; font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.welcome .w-x { margin-inline-start: auto; }
.welcome[hidden] { display: none; }

/* ============================================================
   الغرف — نسخة التطبيق
   ============================================================ */
.rm-app { width: min(var(--app-max), 92vw); margin-inline: auto; }

.rm-hero {
  position: relative; overflow: hidden;
  border-radius: 26px; padding: 20px;
  background: linear-gradient(135deg, #F2723C 0%, #F79E4A 62%, #FFC06A 100%);
  color: #fff; box-shadow: 0 14px 34px rgba(242, 114, 60, .28);
  margin-bottom: 18px;
}
.rm-hero::after {
  content: ''; position: absolute; inset-block-start: -40%; inset-inline-end: -18%;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.rm-hero::before {
  content: ''; position: absolute; inset-block-end: -60%; inset-inline-start: -10%;
  width: 190px; height: 190px; border-radius: 50%;
  background: rgba(255, 255, 255, .10);
}
.rm-hero .h-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .68rem; font-weight: 800;
  background: rgba(255, 255, 255, .22); border-radius: 999px; padding: 4px 10px;
  position: relative; z-index: 1;
}
.rm-hero h2 { font-size: 1.42rem; font-weight: 900; margin: 10px 0 4px; letter-spacing: -.5px; position: relative; z-index: 1; }
.rm-hero p { font-size: .82rem; opacity: .92; position: relative; z-index: 1; }
.rm-hero .h-cta {
  position: relative; z-index: 1; margin-top: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 14px;
  background: #fff; color: var(--brand-ink); font-family: inherit;
  font-size: .86rem; font-weight: 800; text-decoration: none;
  box-shadow: 0 6px 16px rgba(90, 40, 10, .18);
}
.rm-hero .h-live {
  position: absolute; z-index: 1; inset-block-start: 18px; inset-inline-end: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-num); font-size: .74rem; font-weight: 800;
}
.rm-hero .h-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 2s infinite; }

.rm-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rm-chips::-webkit-scrollbar { display: none; }
.rm-chip {
  flex: 0 0 auto; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--bg-soft);
  font-family: inherit; font-size: .78rem; font-weight: 700; color: var(--text-muted);
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: all .16s var(--ease);
}
.rm-chip.on { background: var(--text); color: var(--bg-soft); border-color: var(--text); }

.rm-group { margin-bottom: 16px; }
.rm-group-h {
  display: flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 800; color: var(--text-soft);
  margin: 4px 4px 8px;
}
.rm-group-h::after { content: ''; height: 1px; flex: 1; background: var(--hairline); }

.rm-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.rm-grid > .rm-card:only-child { grid-column: 1 / -1; }
@media (min-width: 620px) { .rm-grid { grid-template-columns: 1fr 1fr; } }

.rm-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-soft); border: 1px solid var(--hairline);
  border-radius: 20px; padding: 12px 13px; text-decoration: none;
  box-shadow: var(--sh-sm);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease);
}
.rm-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--border-hover); }
.rm-card:active { transform: scale(.99); }
.rm-tile {
  width: 50px; height: 50px; flex: 0 0 50px; border-radius: 17px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(150deg, var(--cream), var(--bg-soft));
  border: 1px solid var(--hairline);
}
.rm-card.hot .rm-tile { background: linear-gradient(150deg, rgba(242,114,60,.16), rgba(255,166,77,.08)); border-color: rgba(242,114,60,.22); }
.rm-c-body { min-width: 0; flex: 1; }
.rm-c-name { font-size: .92rem; font-weight: 800; display: block; }
.rm-c-sub { display: flex; align-items: center; gap: 6px; font-size: .73rem; color: var(--text-muted); margin-top: 3px; }
.rm-c-sub .live { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.rm-c-sub .live.none { background: var(--text-soft); }
.rm-c-go {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 12px;
  display: grid; place-items: center; color: var(--text-soft);
  background: var(--cream);
}
.rm-card.hot .rm-c-go { background: var(--brand-soft); color: var(--brand); }
.rm-fallback { text-align: center; padding: 34px 10px; color: var(--text-muted); font-size: .86rem; }
.rm-fallback a { color: var(--brand); font-weight: 700; }

/* صفحات الدول (SEO) */
.rm-seo {
  margin-top: 22px; border-top: 1px solid var(--hairline); padding-top: 20px;
}
.rm-seo h2 { font-size: 1.08rem; font-weight: 800; margin-bottom: 6px; }
.rm-seo p { font-size: .82rem; color: var(--text-muted); line-height: 1.9; }
.rm-seo-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rm-seo-links a {
  font-size: .74rem; color: var(--text-muted); text-decoration: none;
  border: 1px solid var(--hairline); border-radius: 999px; padding: 5px 10px;
  background: var(--bg-soft);
}

/* ============================================================
   الإعدادات
   ============================================================ */
.set-sec { margin-bottom: 16px; }
#st-account + .set-sec, #st-account + .st-group { margin-top: 18px; }
.set-sec > h2 {
  font-size: .72rem; font-weight: 800; color: var(--text-soft);
  letter-spacing: .04em; margin: 0 6px 8px;
}
.set-card {
  background: var(--bg-soft); border: 1px solid var(--hairline);
  border-radius: 22px; overflow: hidden; box-shadow: var(--sh-sm);
}
.set-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  color: var(--text); text-decoration: none; min-height: 60px;
}
.set-row + .set-row, .set-card > .set-row + .set-field { border-top: 1px solid var(--hairline); }
.set-ico {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 12px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
}
.set-ico svg { width: 18px; height: 18px; }
.set-txt { min-width: 0; flex: 1; }
.set-txt b { display: block; font-size: .88rem; font-weight: 700; }
.set-txt span { display: block; font-size: .73rem; color: var(--text-muted); margin-top: 1px; }
.set-arrow { color: var(--text-soft); flex: 0 0 auto; }
.set-value { font-size: .78rem; color: var(--text-soft); font-weight: 700; }

.set-profile { display: flex; align-items: center; gap: 14px; padding: 18px 16px; position: relative; }
.set-profile > .icon-btn.accent { position: absolute; inset-inline-start: 16px; bottom: 16px; width: 38px; height: 38px; border-radius: 13px; }
.set-profile .p-av {
  width: 62px; height: 62px; flex: 0 0 62px; border-radius: 22px;
  display: grid; place-items: center; font-size: 1.8rem; overflow: hidden;
  background: var(--cream); border: 1px solid var(--hairline);
}
.set-profile .p-av img { width: 100%; height: 100%; object-fit: cover; }
.set-profile .p-info { min-width: 0; flex: 1; }
.set-profile .p-name { font-size: 1.05rem; font-weight: 900; display: block; }
.set-profile .p-meta { font-size: .76rem; color: var(--text-muted); margin-top: 2px; display: block; }
.set-profile .p-badge {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 6px;
  font-size: .68rem; font-weight: 800; color: #17805C;
  background: var(--accent-soft); border-radius: 999px; padding: 2px 9px;
}

.set-field { padding: 12px 15px; }
.set-field label { display: block; font-size: .73rem; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.set-field input, .set-field select {
  width: 100%; height: 44px; border-radius: 13px; padding: 0 12px;
  background: var(--cream); border: 1px solid var(--hairline);
  font-family: inherit; font-size: .9rem; color: var(--text); outline: none;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.set-field input:focus, .set-field select:focus { border-color: var(--brand); box-shadow: var(--ring); }
.set-actions { padding: 12px 15px 15px; }
.set-actions .btn { width: 100%; height: 46px; border-radius: 14px; }
.btn-danger-soft { color: var(--danger); }

/* ============================================================
   التسجيل السريع (v2)
   ============================================================ */
.jn-wrap { width: min(560px, 100%); margin-inline: auto; padding: 0 16px; }
.jn-hero { text-align: center; padding: 8px 0 18px; }
.jn-hero .badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .68rem; font-weight: 800; color: var(--brand);
  background: var(--brand-soft); border-radius: 999px; padding: 4px 11px;
}
.jn-hero h1 { font-size: 1.7rem; font-weight: 900; letter-spacing: -.8px; margin: 10px 0 6px; }
.jn-hero p { font-size: .84rem; color: var(--text-muted); line-height: 1.7; }

.jn-steps { display: flex; align-items: center; gap: 6px; justify-content: center; margin-bottom: 14px; }
.jn-steps i { height: 4px; border-radius: 999px; background: var(--hairline); flex: 1; max-width: 54px; }
.jn-steps i.on { background: var(--grad-primary); }

.jn-card { border-radius: 26px; padding: 18px 16px; }
.jn-avatar-block { margin-bottom: 14px; flex-direction: row; align-items: center; gap: 12px; }
.jn-av {
  width: 66px; height: 66px; flex: 0 0 66px; border-radius: 22px; font-size: 2rem;
  background: linear-gradient(150deg, var(--cream), var(--bg-soft));
  border: 1px solid var(--hairline);
  box-shadow: 0 10px 26px rgba(80, 50, 20, .10);
}
.jn-av-grid { gap: 6px; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 2px 2px 6px; scrollbar-width: none; }
.jn-av-grid::-webkit-scrollbar { display: none; }
.jn-av-grid button { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 13px; font-size: 1.15rem; }
.jn-field { margin-bottom: 13px; }
.jn-field input[type="text"], .jn-field input[type="password"], .jn-field select {
  height: 50px; border-radius: 15px; background: var(--cream);
}
.jn-cta { height: 54px; border-radius: 18px; font-size: 1rem; }
.jn-alt { text-align: center; margin-top: 12px; font-size: .8rem; color: var(--text-muted); }
.jn-alt a { color: var(--brand); font-weight: 800; }

/* شاشة نجاح التسجيل */
.jn-done {
  position: fixed; inset: 0; z-index: 400; display: none;
  place-items: center; padding: 24px;
  background: var(--bg); text-align: center;
}
.jn-done.on { display: grid; animation: wIn .3s var(--ease) both; }
.jn-done .tick {
  width: 86px; height: 86px; border-radius: 30px; margin: 0 auto 16px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #1FA97A, #35C795);
  box-shadow: 0 14px 32px rgba(31, 169, 122, .34);
  animation: tickIn .5s var(--spring) both;
}
@keyframes tickIn { from { transform: scale(.6); opacity: 0; } }
.jn-done h2 { font-size: 1.35rem; font-weight: 900; }
.jn-done p { font-size: .86rem; color: var(--text-muted); margin-top: 6px; }
.jn-done .loader {
  margin: 18px auto 0; width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid rgba(242,114,60,.25); border-top-color: var(--brand);
  animation: dcspin .8s linear infinite;
}

/* ============================================================
   لمسات على صفحة الاكتشاف والرسائل
   ============================================================ */
.dc-head-in { width: min(var(--app-max), 92vw); }
.dc-body { width: min(var(--app-max), 92vw); }
.ms-wrap { width: min(var(--app-max), 92vw); }
.dc-row { border-radius: 20px; }
.dc-row:active { background: var(--cream); }
.dc-me-btn { width: 42px; height: 42px; border-radius: 15px; }
.dc-icon-btn { width: 42px; height: 42px; border-radius: 15px; border: 1px solid var(--hairline); background: var(--bg-soft); box-shadow: var(--sh-sm); }
.dc-search-row input { height: 46px; }
.dc-filters-btn { height: 46px; flex-basis: 46px; }
.dc-chat-btn { width: 40px; height: 40px; flex-basis: 40px; border-radius: 14px; }

.ms-row { border-radius: 18px; }
.ms-nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: .78rem; font-weight: 800; text-decoration: none;
}

/* ============================================================
   شاشات صغيرة جداً
   ============================================================ */
@media (max-width: 720px) {
  .hero-cta { align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

@media (max-width: 640px) {
  .site-header .header-actions .btn-primary { display: none; }
}

@media (max-width: 430px) {
  .set-row { flex-wrap: wrap; row-gap: 8px; }
  .set-row .st-seg { order: 3; width: 100%; }
  .st-seg button { flex: 1; }
  .ms-nav-cta span { display: none; }
}

@media (max-width: 360px) {
  .ph-title { font-size: 1.3rem; }
  .tb-item .tb-label { font-size: .6rem; }
  .tb-item.tb-center .tb-ico { width: 46px; height: 46px; }
  .rm-hero h2 { font-size: 1.2rem; }
  .dc-brand { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tabbar, .rm-card, .welcome { transition: none !important; animation: none !important; }
}

/* قائمة المحظورين داخل صفحة الإعدادات */
.st-blocked { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; }
.st-blocked[hidden] { display: none !important; }
.st-blk-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-soft); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 9px 11px;
}
.st-blk-av {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1rem; flex: none; color: #fff;
}
.st-blk-nm { flex: 1; font-weight: 800; font-size: .87rem; }
.st-blk-un {
  border: 1px solid var(--hairline); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 7px 12px; font-family: inherit;
  font-size: .76rem; font-weight: 800;
}
.st-blk-empty { text-align: center; color: var(--text-muted); font-size: .84rem; padding: 12px 6px; }

/* ===== هوية موقع شات ===== */
:root, html[data-theme="light"]{
  --primary:#6D4AFF;--primary-2:#9B7BFF;
  --primary-glow:rgba(109,74,255,.22);
  --accent:#7C5CFF;--accent-soft:rgba(124,92,255,.12);
  --border-hover:rgba(109,74,255,.45);
  --grad-primary:linear-gradient(135deg,#6D4AFF 0%,#9B7BFF 100%);
  --sh-glow:0 10px 26px rgba(109,74,255,.24);
  --brand:#6D4AFF;--brand-2:#9B7BFF;--brand-ink:#4A2AD6;
  --brand-soft:rgba(109,74,255,.11);
  --ring:0 0 0 3px rgba(109,74,255,.22);
  --grad-bg:radial-gradient(760px 480px at 100% -8%, rgba(155,123,255,.20), transparent 62%),
            radial-gradient(680px 420px at -4% 104%, rgba(109,74,255,.12), transparent 60%);
}
html[data-theme="dark"]{
  --primary:#9B7BFF;--primary-2:#B79BFF;--accent:#B79BFF;
  --accent-soft:rgba(155,123,255,.16);--brand:#9B7BFF;--brand-2:#B79BFF;
  --brand-soft:rgba(155,123,255,.14);
}
