/* ==========================================================
   SNTZ Application - Stylesheet
   النمط الصباحي: أزرق مع حليبي
   النمط الليلي: وردي مع أزرق غامق
   ========================================================== */

:root {
  /* نهاري: فيروزي مشبع وناعـم مع حليبي. */
  --bg-primary: #d8f5f1;
  --bg-secondary: #e5faf7;
  --bg-card: rgba(221, 250, 246, .94);
  --bg-translucent: rgba(194, 242, 236, .77);
  --header-bg: rgba(218, 250, 246, .94);
  --nav-bg: rgba(209, 247, 242, .95);
  --primary-accent: #078c91;
  --primary-gradient: linear-gradient(135deg, #079ba0, #27bbc0 65%, #4acfc8);
  --primary-light: rgba(50, 192, 186, .17);
  --primary-glow: rgba(13, 171, 170, .24);
  --section-tint: rgba(152, 225, 216, .34);
  --text-main: #103e49;
  --text-muted: #547b81;
  --text-on-accent: #fff;
  --border-color: rgba(63, 183, 176, .36);
  --divider-color: rgba(61, 180, 177, .28);
  --badge-bg: #ec6379;
  --shadow-sm: 0 2px 9px rgba(21, 99, 104, .07);
  --shadow-md: 0 8px 20px rgba(21, 99, 104, .12);
  --shadow-lg: 0 16px 38px rgba(21, 99, 104, .18);
  --reel-overlay: linear-gradient(180deg,rgba(0,0,0,.28),transparent 23%,transparent 61%,rgba(0,0,0,.83));
  --shell-gradient: linear-gradient(160deg,#f0fffc 0%,#d4f5ef 52%,#b7e7df 100%);
  --ambient-gradient: radial-gradient(ellipse at 11% 8%,rgba(255,255,255,.64),transparent 49%),radial-gradient(ellipse at 92% 85%,rgba(80,201,189,.22),transparent 47%);
  --button-gradient: linear-gradient(135deg,#068e93,#1bafb0 67%,#36bab2);
  --selected-color: #007c85;
  --drawer-gradient: linear-gradient(165deg,#e5fffb,#c3f0ea 60%,#a5e3da);
  --drawer-text: #103e49;
  --drawer-link-bg: linear-gradient(120deg,rgba(230,255,252,.9),rgba(147,221,213,.66));
}


/* النمط الليلي: وردي مع أزرق غامق */
body.theme-night {
  /* مسائي: قرمزي فاتح للخلفية، كحلي فاتح للأقسام. */
  --bg-primary: #c6758d;
  --bg-secondary: #40577d;
  --bg-card: rgba(59, 80, 119, .96);
  --bg-translucent: rgba(74, 96, 140, .82);
  --header-bg: rgba(65, 80, 117, .96);
  --nav-bg: rgba(61, 80, 118, .96);
  --primary-accent: #e6a0b5;
  --primary-gradient: linear-gradient(135deg,#bf617e,#d97f98 62%,#e4a0b5);
  --primary-light: rgba(240, 159, 188, .22);
  --primary-glow: rgba(184, 87, 117, .30);
  --section-tint: rgba(70, 89, 131, .44);
  --text-main: #f8faff;
  --text-muted: #d7e1f3;
  --text-on-accent: #fff;
  --border-color: rgba(199, 215, 247, .24);
  --divider-color: rgba(198, 211, 244, .20);
  --badge-bg: #f49ab1;
  --shadow-sm: 0 3px 11px rgba(49, 24, 57, .15);
  --shadow-md: 0 10px 26px rgba(49, 24, 57, .22);
  --shadow-lg: 0 18px 40px rgba(49, 24, 57, .30);
  --reel-overlay: linear-gradient(180deg,rgba(0,0,0,.40),transparent 24%,transparent 60%,rgba(0,0,0,.84));
  --shell-gradient: linear-gradient(155deg,#d997a8 0%,#c5768d 52%,#af627d 100%);
  --ambient-gradient: radial-gradient(ellipse at 10% 10%,rgba(255,220,230,.24),transparent 50%),radial-gradient(ellipse at 94% 85%,rgba(82,102,149,.24),transparent 48%);
  --button-gradient: linear-gradient(135deg,#a84f72,#c46d89 58%,#bd6885);
  --selected-color: #f8d2df;
  --drawer-gradient: linear-gradient(160deg,#526b95,#41577e 54%,#344970);
  --drawer-text: #f9fbff;
  --drawer-link-bg: linear-gradient(110deg,rgba(107,129,169,.7),rgba(58,79,119,.84));
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Alexandria', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-primary);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* حاوية التطبيق المتجاوبة */
.app-viewport {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--shell-gradient);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.app-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--ambient-gradient);
}

body.theme-night .app-viewport {
  background: var(--shell-gradient);
}

body.theme-night .app-viewport::before {
  background: var(--ambient-gradient);
}


@media (min-width: 900px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, #1d4ed8 0%, #070c18 65%);
  }
  .app-viewport {
    height: 94vh;
    border-radius: 36px;
    border: 3px solid var(--border-color);
  }
}

/* ==========================================================
   الهيدر العلوي: 3 شرطات + نهار/ليل + جرس في اليمين واسم التطبيق يسار
   ========================================================== */
.sntz-top-header {
  position: relative;
  z-index: 100;
  min-height: 58px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.sntz-top-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-accent), transparent);
  opacity: .55;
}

.header-left.brand-only {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

/* شفافية كاملة لحرف S، يتبدّل لون الصورة مع نمط التطبيق */
.sntz-brand-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 54px;
  min-width: 54px;
  gap: 0;
  margin: 0;
  padding: 0;
  line-height: 1;
  background: transparent;
  color: var(--primary-accent);
  font-family: 'Outfit', sans-serif;
  text-shadow: none;
  -webkit-text-fill-color: currentColor;
}
.sntz-brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  border: 0;
  background: none;
  filter: drop-shadow(0 2px 6px rgba(55,210,225,.24));
  transition: filter .22s ease, opacity .22s ease;
}
.sntz-brand-subtext {
  color: #1d9dac;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 2px;
  line-height: 10px;
  direction: ltr;
  margin-top: -1px;
  padding-left: 2px;
}
body.theme-night .sntz-brand-mark { filter: drop-shadow(0 2px 8px rgba(255,93,173,.34)); }
body.theme-night .sntz-brand-subtext { color: #ff9ccc; }

.header-right.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  direction: rtl;
  margin-inline-start: 0;
}

.icon-btn {
  position: relative;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.16);
  outline: none;
  color: var(--text-main);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.36), 0 6px 14px rgba(19, 46, 74, 0.08);
  transition: all 0.2s ease;
}

body.theme-night .icon-btn {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 6px 16px rgba(0, 0, 0, 0.24);
}

.icon-btn:hover {
  background: var(--primary-light);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-1px) scale(1.04);
}

.icon-btn:active { transform: scale(0.94); }

.theme-toggle-btn .sun-icon { display: none; font-size: 1.12rem; }
.theme-toggle-btn .moon-icon { display: inline-block; font-size: 1.08rem; }
body.theme-night .theme-toggle-btn .moon-icon { display: none; }
body.theme-night .theme-toggle-btn .sun-icon { display: inline-block; }

.badge-dot {
  position: absolute;
  top: 4px;
  inset-inline-start: 4px;
  width: 7px;
  height: 7px;
  background: var(--badge-bg);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--badge-bg);
}

.menu-btn svg, .notif-btn svg { stroke: currentColor; }

/* ==========================================================
   مساحة المحتوى الرئيسية والتبويبات
   ========================================================== */
.sntz-main-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: calc(100% - 58px - 62px);
}

.tab-pane {
  display: none;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-pane.active {
  display: block;
}

/* إخفاء شريط التمرير لمظهر أنيق */
.tab-pane::-webkit-scrollbar {
  display: none;
}

/* ==========================================================
   الهيدر السفلي (شريط التنقل)
   كوفي (يمين) | مراسيل (وسط) | خاص (يسار) | أنا (أقصى اليسار)
   ========================================================== */
.sntz-bottom-nav {
  position: relative;
  z-index: 100;
  height: 62px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.05);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.nav-item .nav-icon-wrapper {
  position: relative;
  font-size: 1.25rem;
  transition: transform 0.25s ease;
}

.nav-item .nav-label {
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 2px;
  transition: color 0.2s ease;
}

.nav-item.active {
  color: var(--primary-accent);
}

.nav-item.active .nav-icon-wrapper {
  transform: translateY(-3px) scale(1.15);
}

.nav-item.active .nav-label {
  font-weight: 800;
  color: var(--primary-accent);
}

.nav-badge-pill {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--badge-bg);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
}

.maraseel-pulsing {
  animation: maraseelPulse 2.5s infinite ease-in-out;
}

@keyframes maraseelPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

/* ==========================================================
   قسم مراسيل: ستوريات تيك توك التصفح فوق وتحت
   ========================================================== */
#paneMaraseel {
  overflow: hidden;
  position: relative;
}

.tiktok-feed-container {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.tiktok-feed-container::-webkit-scrollbar {
  display: none;
}

.reel-card {
  position: relative;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.reel-overlay {
  position: absolute;
  inset: 0;
  background: var(--reel-overlay);
  pointer-events: none;
}

/* معلومات صانع المحتوى والتفاصيل بالأسفل */
.reel-bottom-info {
  position: absolute;
  bottom: 16px;
  right: 14px;
  left: 70px;
  color: #fff;
  z-index: 10;
  pointer-events: auto;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.creator-handle {
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.creator-handle .follow-badge {
  background: var(--primary-accent);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  font-weight: 700;
}

.reel-caption {
  font-size: 0.82rem;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reel-music-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #e2e8f0;
}

.reel-music-row .music-note {
  animation: noteRotate 3s infinite linear;
}

@keyframes noteRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* شريط التفاعل الأيمن على التيك توك (في واجهة RTL يظهر على اليسار لتطابق التيك توك العربي) */
.reel-actions-column {
  position: absolute;
  left: 12px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 20;
}

.reel-action-btn {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.reel-action-btn:hover {
  transform: scale(1.15);
}

.reel-action-btn:active {
  transform: scale(0.9);
}

.reel-action-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: background 0.2s, color 0.2s;
}

.reel-action-btn.liked .reel-action-icon {
  background: #ff2d55;
  color: #fff;
  animation: heartBounce 0.4s ease;
}

@keyframes heartBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.reel-action-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.music-disc-spin {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 4px solid #111;
  animation: discSpin 4s infinite linear;
}

@keyframes discSpin {
  100% { transform: rotate(360deg); }
}

/* أزرار التنقل السريع للكمبيوتر */
.desktop-reel-nav {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}

.reel-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.reel-nav-btn:hover {
  background: var(--primary-accent);
  transform: scale(1.1);
}

/* ==========================================================
   قسم كوفي: رومات دائرية واسم الغرفة فوق
   ========================================================== */
.coffee-view-wrapper {
  padding: 16px;
}

.coffee-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.coffee-title-row h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.section-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.create-room-btn {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  outline: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all 0.2s;
}

.create-room-btn:hover {
  transform: translateY(-2px);
}

.coffee-chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.coffee-chips-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.chip.active, .chip:hover {
  background: var(--primary-accent);
  color: #fff;
  border-color: var(--primary-accent);
}

/* شبكة الغرف: اسم الغرفة فوق وصورة دائرية بدون كبسولة مربعة */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
  align-items: start;
}

.room-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 4px 2px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.25s ease, filter 0.25s ease;
  position: relative;
  overflow: visible;
}

.room-card:hover {
  transform: translateY(-4px);
  filter: saturate(1.04);
}

.room-name-top {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  max-width: 95%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-circle-avatar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(83, 223, 230, 0.55));
  box-shadow: 0 8px 22px rgba(54, 214, 222, 0.22);
  margin-bottom: 12px;
}

.room-circle-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.88);
}

.room-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(51, 214, 223, 0.65);
  animation: roomPulse 2.1s infinite ease-out;
}

@keyframes roomPulse {
  0% { transform: scale(1); opacity: 0.72; }
  100% { transform: scale(1.18); opacity: 0; }
}

.room-join-btn {
  min-width: 120px;
  background: linear-gradient(135deg, var(--primary-accent), #59dde1);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 8px 16px rgba(54, 214, 222, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.join-now-label, .join-room-count {
  display: inline-flex;
  align-items: center;
}

.room-card:hover .room-join-btn {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(54, 214, 222, 0.35);
}

/* ==========================================================
   قسم خاص: طلبات الصداقة والدردشات
   ========================================================== */
.khas-view-wrapper {
  padding: 14px;
}

.khas-subtabs-nav {
  display: flex;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  margin-bottom: 14px;
}

.subtab-btn {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 8px 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.subtab-btn.active {
  background: var(--primary-accent);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.subtab-badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.68rem;
}

body.theme-morning .subtab-btn:not(.active) .subtab-badge {
  background: var(--border-color);
  color: var(--text-main);
}

.khas-subpane {
  display: none;
}

.khas-subpane.active {
  display: block;
}

.search-khas-box {
  margin-bottom: 12px;
}

.khas-search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 9px 14px;
  border-radius: 14px;
  color: var(--text-main);
  outline: none;
  font-size: 0.82rem;
}

.khas-search-input:focus {
  border-color: var(--primary-accent);
}

/* كروت الدردشة الخاصة */
.chat-row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-row-item:hover {
  transform: translateX(-3px);
  border-color: var(--primary-accent);
}

.chat-row-avatar {
  position: relative;
  width: 46px;
  height: 46px;
}

.chat-row-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.chat-row-body {
  flex: 1;
}

.chat-row-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}

.chat-row-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
}

.chat-row-time {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.chat-row-msg {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.chat-unread-badge {
  background: var(--badge-bg);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}

/* قائمة طلبات الصداقة */
.request-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 10px;
}

.request-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.request-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.request-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.request-username {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.request-actions {
  display: flex;
  gap: 6px;
}

.btn-accept-req {
  background: var(--primary-accent);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-reject-req {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  cursor: pointer;
}

/* ==========================================================
   قسم أنا: صورة الحساب، تعديل المعلومات، الإعدادات، الأخبار، منشوراتي
   ========================================================== */
.profile-view-wrapper {
  padding-bottom: 24px;
}

.profile-banner {
  height: 110px;
  background: var(--primary-gradient);
  position: relative;
  overflow: hidden;
}

.banner-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.2) 0%, transparent 70%);
}

.profile-card-header {
  position: relative;
  margin-top: -45px;
  padding: 0 16px;
  text-align: center;
}

.profile-avatar-large-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 10px;
}

.profile-avatar-large {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-card);
  box-shadow: var(--shadow-md);
}

.avatar-edit-icon {
  position: absolute;
  bottom: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-accent);
  color: #fff;
  border: 2px solid var(--bg-card);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-full-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.profile-username {
  font-size: 0.8rem;
  color: var(--primary-accent);
  font-weight: 600;
  margin-top: 1px;
}

.profile-bio {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 320px;
  margin: 8px auto 14px;
  line-height: 1.4;
}

.profile-stats-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 16px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* أزرار التحكم المطلوبة في قسم أنا */
.profile-quick-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.action-btn:hover {
  background: var(--primary-accent);
  color: #fff;
  border-color: var(--primary-accent);
}

.profile-tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 8px;
}

.p-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.p-tab-btn.active {
  color: var(--primary-accent);
  border-bottom-color: var(--primary-accent);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 0 4px;
}

.grid-post-item {
  position: relative;
  aspect-ratio: 9 / 14;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.grid-post-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.grid-post-item:hover img {
  transform: scale(1.08);
}

.grid-post-views {
  position: absolute;
  bottom: 6px;
  right: 6px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* ==========================================================
   نافذة وسط الشاشة المربعة الصغيرة (المطلوبة بالضغط على الاسم/الصورة)
   ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.small-square-card-modal {
  position: relative;
  width: 290px;
  height: 290px; /* مربعة وصغيرة وسط الشاشة */
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 28px;
  box-shadow: var(--shadow-lg), 0 0 30px var(--primary-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  transform: scale(0.85);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .small-square-card-modal {
  transform: scale(1);
}

.close-modal-x {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(125, 125, 125, 0.15);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-main);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.close-modal-x:hover {
  background: #ef4444;
  color: #fff;
}

.square-avatar-center {
  position: relative;
  width: 76px;
  height: 76px;
  margin-bottom: 10px;
}

.square-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-accent);
}

.verified-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #0284c7;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--bg-card);
}

.square-account-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.square-username {
  font-size: 0.78rem;
  color: var(--primary-accent);
  font-weight: 600;
  margin-top: 2px;
}

.square-meta-chip {
  margin-top: 8px;
  background: var(--primary-light);
  color: var(--primary-accent);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.square-user-level {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.square-card-actions {
  margin-top: 12px;
  width: 100%;
}

.btn-primary-mini {
  width: 100%;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  padding: 7px 0;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px var(--primary-glow);
}

/* ==========================================================
   القائمة الجانبية (3 شرطات) - الدعم وبوت المساعد
   ========================================================== */
.side-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.side-drawer-overlay.active {
  display: block;
  opacity: 1;
}

.side-drawer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 310px;
  max-width: 85%;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px 16px;
}

.side-drawer-overlay.active .side-drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--divider-color);
}

.drawer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary-accent);
}

.drawer-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-right: 6px;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
}

.drawer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-accent);
}

.drawer-card.highlight-card {
  border-color: var(--primary-accent);
  background: var(--primary-light);
}

.card-icon-round {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.card-text h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
}

.card-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.drawer-arrow {
  margin-right: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.drawer-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 16px 0 8px;
}

.drawer-list {
  list-style: none;
}

.drawer-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-main);
  transition: background 0.2s;
}

.drawer-list li:hover {
  background: var(--bg-secondary);
}

.drawer-footer {
  margin-top: auto;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--divider-color);
}

/* ==========================================================
   نوافذ المحادثة والدعم وبوت المساعد
   ========================================================== */
.chat-modal-window, .support-modal-window {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.chat-modal-header, .support-modal-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.bot-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.bot-header-info h3 {
  font-size: 0.88rem;
  font-weight: 800;
}

.bot-online-tag {
  font-size: 0.68rem;
  color: #10b981;
}

.bot-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
}

.bot-msg {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}

.bot-msg.incoming {
  align-self: flex-start;
}

.bot-msg.outgoing {
  align-self: flex-end;
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.bot-msg.incoming .msg-bubble {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-bottom-right-radius: 4px;
}

.bot-msg.outgoing .msg-bubble {
  background: var(--primary-accent);
  color: #fff;
  border-bottom-left-radius: 4px;
}

.msg-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 3px;
  padding: 0 4px;
}

.bot-suggestions-chips {
  padding: 6px 14px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  background: var(--bg-secondary);
}

.bot-suggestions-chips::-webkit-scrollbar {
  display: none;
}

.suggestion-chip {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.suggestion-chip:hover {
  background: var(--primary-accent);
  color: #fff;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}

.chat-input-row input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 9px 12px;
  border-radius: 12px;
  outline: none;
  color: var(--text-main);
  font-size: 0.82rem;
}

.send-msg-btn {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

/* نموذج الدعم الفني وتعديل الحساب */
.support-modal-body {
  padding: 16px;
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-form label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 6px;
}

.support-select, .support-textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--text-main);
  outline: none;
  font-size: 0.82rem;
  font-family: inherit;
}

.support-textarea {
  resize: vertical;
  min-height: 90px;
}

.btn-submit-support {
  margin-top: 14px;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  padding: 11px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.room-avatar-picker {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.room-pick-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.room-pick-avatar.selected {
  border-color: var(--primary-accent);
  transform: scale(1.1);
}

/* ==========================================================
   نافذة الغرفة الصوتية المباشرة (Live Coffee Room)
   ========================================================== */
.room-live-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: none;
  align-items: flex-end;
}

.room-live-overlay.active {
  display: flex;
}

.room-live-sheet {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 20px 16px;
  border-top: 2px solid var(--primary-accent);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.4);
  animation: slideUpSheet 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.room-live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.live-dot-pulse {
  font-size: 0.72rem;
  color: #ef4444;
  font-weight: 800;
}

.room-live-top-title h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-top: 2px;
}

.leave-room-btn {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid #ef4444;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.room-speakers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 8px;
  margin-bottom: 24px;
  text-align: center;
}

.speaker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.speaker-avatar-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2px;
}

.speaker-avatar-wrap.talking {
  border: 2px solid #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
  animation: talkWave 1.2s infinite ease-in-out;
}

@keyframes talkWave {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.speaker-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.speaker-mic-tag {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 0.75rem;
  background: var(--bg-card);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.speaker-name {
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 6px;
  color: var(--text-main);
  max-width: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.speaker-role {
  font-size: 0.62rem;
  color: var(--primary-accent);
}

.room-bottom-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.room-action-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.room-action-circle.mic-active {
  background: var(--primary-accent);
  color: #fff;
  border-color: var(--primary-accent);
}

/* ==========================================================
   نافذة التعليقات التيك توكية
   ========================================================== */
.comments-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: none;
  align-items: flex-end;
}

.comments-sheet-overlay.active {
  display: flex;
}

.comments-sheet {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  animation: slideUpSheet 0.25s ease;
}

.comments-sheet-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.comments-sheet-header h4 {
  font-size: 0.9rem;
  font-weight: 800;
}

.comments-list {
  flex: 1;
  padding: 14px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-row {
  display: flex;
  gap: 10px;
}

.comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-content {
  flex: 1;
}

.comment-author {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

.comment-text {
  font-size: 0.78rem;
  color: var(--text-main);
  margin-top: 2px;
  line-height: 1.35;
}

.comment-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.add-comment-row {
  padding: 10px 14px;
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--border-color);
}

.add-comment-row input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 12px;
  outline: none;
  color: var(--text-main);
  font-size: 0.8rem;
}

.send-comment-btn {
  background: var(--primary-accent);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================
   توست الإشعارات السريعة
   ========================================================== */
.sntz-toast {
  position: absolute;
  top: 65px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--text-main);
  color: var(--bg-card);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2000;
  white-space: nowrap;
}

.sntz-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================
   التحديث المعتمد: هيدر سفلي زجاجي بسبعة مواضع (RTL)
   ========================================================== */
.sntz-main-content { height: auto; min-height: 0; }
.sntz-bottom-nav {
  flex: 0 0 auto;
  height: calc(72px + env(safe-area-inset-bottom, 0px));
  padding: 7px 4px calc(5px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(48px, 1.14fr) repeat(3, minmax(0, 1fr));
  align-items: center;
  column-gap: 0;
  direction: rtl;
  border-top: 1px solid rgba(255,255,255,.8);
  background: rgba(232, 249, 250, .78);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -7px 24px rgba(20, 113, 129, .09);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}
body.theme-night .sntz-bottom-nav {
  background: rgba(12, 21, 41, .84);
  border-top-color: rgba(255,255,255,.14);
}
.sntz-bottom-nav .nav-item {
  min-width: 0;
  width: 100%;
  height: 59px;
  padding: 6px 1px 5px;
  gap: 2px;
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  transition: color .2s, background .2s;
}
.sntz-bottom-nav .nav-item .nav-icon-wrapper {
  width: 28px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255,255,255,.14);
}
.sntz-bottom-nav .nav-item .nav-line-icon {
  width: 24px;
  height: 24px;
  display: block;
  filter: drop-shadow(0 2px 3px rgba(0, 103, 122, .10));
}
.sntz-bottom-nav .nav-item .nav-label {
  text-align: center;
  width: 100%;
  font-size: clamp(.52rem, 2.1vw, .64rem);
  font-weight: 650;
  line-height: 1.15;
  margin-top: 1px;
  white-space: nowrap;
  letter-spacing: -.02em;
}
.sntz-bottom-nav .nav-item.active {
  color: #00aeb8;
  background: transparent;
}
body.theme-night .sntz-bottom-nav .nav-item.active { color: #ff77b0; }
.sntz-bottom-nav .nav-item.active .nav-icon-wrapper {
  transform: none;
  background: rgba(0, 190, 203, .11);
}
.sntz-bottom-nav .nav-item.active .nav-label {
  color: inherit;
  font-weight: 800;
}
.sntz-bottom-nav .nav-item.active::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  width: 21px;
  height: 3px;
  background: currentColor;
  border-radius: 6px;
}
.nav-story-plus {
  cursor: pointer;
  place-self: center;
  width: 53px;
  height: 53px;
  border-radius: 50%;
  color: white;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.95);
  background: linear-gradient(145deg,#16e1d9,#0098aa);
  box-shadow: 0 0 0 4px rgba(21,223,224,.12), 0 6px 19px rgba(0,175,183,.32);
  transition: transform .18s, box-shadow .18s;
}
.nav-story-plus .nav-line-icon { width: 29px; height: 29px; stroke-width: 2.3; }
.nav-story-plus:active { transform: scale(.92); }
body.theme-night .nav-story-plus { background: linear-gradient(145deg,#ff60ad,#c92b83); box-shadow: 0 0 0 4px rgba(255,70,155,.12), 0 6px 19px rgba(255,45,135,.32); }

/* صفحات الاكتشاف والألعاب المتناسقة مع الستايل الزجاجي */
.feature-page { padding: 25px 18px 32px; min-height: 100%; background: radial-gradient(circle at top right, rgba(56,209,217,.10), transparent 55%); }
.feature-heading { font-size: 1.55rem; font-weight: 900; color: var(--text-main); margin-bottom: 8px; }
.feature-heading span { color: #05bac1; }
.feature-subtitle { font-size: .82rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 17px; }
.feature-search-box { display: flex; align-items: center; gap: 8px; padding: 12px 13px; margin-bottom: 20px; background: var(--bg-translucent); border: 1px solid var(--border-color); border-radius: 16px; }
.feature-search-box input { flex: 1; min-width: 0; border: none; outline: none; color: var(--text-main); background: transparent; font-size: .82rem; }
.discover-section-title { font-size: 1rem; font-weight: 800; margin: 15px 0 10px; }
.discover-card-list { display: flex; flex-direction: column; gap: 9px; }
.discover-card { display: flex; text-align: right; align-items: center; width: 100%; border: 1px solid var(--border-color); border-radius: 18px; padding: 9px; background: var(--bg-translucent); color: var(--text-main); gap: 11px; cursor: pointer; }
.discover-card img,.discover-story-avatar { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--primary-light); display: grid; place-items: center; }
.discover-card-main { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 7px; }
.discover-card-main strong { font-size: .82rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.discover-card-main small { font-size: .69rem; color: var(--text-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.discover-card-arrow { color: #06acb9; font-size: 1.4rem; padding-inline: 5px; }
.discover-empty { padding: 20px; color: var(--text-muted); }
.games-feature-card { display: flex; gap: 14px; align-items: center; border: 1px solid var(--border-color); background: var(--bg-translucent); border-radius: 20px; padding: 20px 15px; margin: 16px 0; }
.games-feature-icon { font-size: 2.5rem; }
.games-feature-card h3 { font-size: 1rem; margin-bottom: 10px; }
.games-feature-card p { font-size: .78rem; color: var(--text-muted); line-height: 1.8; }
.games-room-link { display: block; width: 100%; text-align: center; padding: 14px; border-radius: 20px; border: 0; background: linear-gradient(135deg,#04b3be,#20d5d0); color: #fff; font-weight: 800; cursor: pointer; }
.story-composer-modal { width: min(94vw, 430px); max-height: 85dvh; overflow-y: auto; }
.story-composer-modal input[type=file] { display: block; width: 100%; font-size: .78rem; color: var(--text-main); }
.story-media-preview { display: grid; place-items: center; width: 100%; min-height: 130px; max-height: 230px; overflow: hidden; background: var(--bg-primary); border: 1px dashed var(--border-color); border-radius: 18px; color: var(--text-muted); font-size: .77rem; text-align: center; padding: 10px; }
.story-preview-asset { display: block; max-width: 100%; max-height: 210px; object-fit: contain; border-radius: 12px; }
.story-demo-note { font-size: .7rem; line-height: 1.65; color: var(--text-muted); }
@media (max-width: 355px) {
  .sntz-bottom-nav { grid-template-columns: repeat(3, minmax(0,1fr)) 47px repeat(3,minmax(0,1fr)); padding-inline: 2px; }
  .nav-story-plus { width: 44px; height: 44px; }
  .sntz-bottom-nav .nav-item .nav-label { font-size: .49rem; }
  .sntz-bottom-nav .nav-item .nav-line-icon { width: 21px; height: 21px; }
}
/* الحفاظ على وضوح تسمية الملف الشخصي في الشاشات الضيقة */
.sntz-bottom-nav .nav-item:last-child .nav-label {
  white-space: normal;
  overflow-wrap: normal;
  font-size: clamp(.49rem, 2vw, .59rem);
  line-height: 1.05;
}
@media (max-width: 355px) {
  .sntz-top-header { padding-inline: 5px; }
  .sntz-top-header .header-right { gap: 5px; }
  .sntz-top-header .header-left { gap: 2px; }
  .sntz-top-header .icon-btn { width: 28px; height: 28px; }
  .sntz-top-header .sntz-brand-logo { width: 47px; min-width: 47px; }
  .sntz-top-header .sntz-brand-mark { width: 39px; height: 39px; }
  .sntz-top-header .sntz-brand-subtext { font-size: 9px; }
  .coffee-title-row .create-room-btn { font-size: .7rem; padding: 7px 8px; }
}

/* ================== SNTZ / profile side drawer v3 ================== */
.side-drawer-overlay {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(4, 17, 30, 0.59);
  backdrop-filter: blur(3px);
  transition: opacity .27s ease, visibility .27s;
}
.side-drawer-overlay.active {
  display: block;
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}
.side-drawer {
  left: auto;
  right: 0;
  width: 40%;
  max-width: none;
  box-sizing: border-box;
  min-width: 0;
  border-left: 1px solid rgba(100,244,243,.45);
  border-right: none;
  padding: 8px 6px max(12px,env(safe-area-inset-bottom));
  transform: translateX(100%);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  background: linear-gradient(165deg,rgba(8,72,86,.98),rgba(5,30,54,.98) 52%,rgba(5,43,54,.99));
  box-shadow: -6px 0 35px rgba(0,0,0,.35),inset 1px 0 rgba(255,255,255,.13);
  color: #f2ffff;
}
.side-drawer::before {
  content:"";
  position:absolute;
  inset:0;
  height:210px;
  pointer-events:none;
  background:radial-gradient(circle at 20% 20%,rgba(231,252,255,.6) 0 1px,transparent 2px),radial-gradient(circle at 80% 48%,rgba(231,252,255,.7) 0 1px,transparent 2px),radial-gradient(circle at 60% 10%,rgba(231,252,255,.65) 0 1px,transparent 2px), radial-gradient(ellipse at top,rgba(38,188,201,.48),transparent 75%);
}
.side-drawer-overlay.active .side-drawer { transform: translateX(0); }
.drawer-header {
  position:relative;
  z-index:1;
  border:0;
  padding:1px 0 4px;
  margin:0;
  min-height:27px;
  direction:rtl;
}
.drawer-logo { font-size:.75rem; color:#d8ffff; text-shadow:0 0 12px rgba(100,250,243,.7) }
.drawer-close-btn { color:#efffff; background:rgba(255,255,255,.10); border:1px solid rgba(207,255,255,.27); border-radius:50%; font-size:1rem; width:24px; height:24px; line-height:1; }
.drawer-body { position:relative; z-index:1; display:flex;flex-direction:column;gap:7px; }
.drawer-profile-block { display:flex; flex-direction:column; align-items:center; text-align:center; gap:3px; padding:5px 0 8px; }
.drawer-profile-avatar { width:clamp(43px,8vw,75px); height:clamp(43px,8vw,75px); border:2px solid #8cffff; border-radius:50%;object-fit:cover; box-shadow:0 0 15px rgba(37,232,234,.6); }
.drawer-profile-name { color:white;font-size:clamp(10px,1.05vw + 6px,15px);font-weight:800;line-height:1.45;overflow-wrap:anywhere; }
.drawer-profile-user { color:#aafafa;font-size:clamp(9px,.7vw + 6px,12px);max-width:100%;overflow-wrap:anywhere;direction:ltr; }
.drawer-member-since { color:#e5f5f5;font-size:clamp(8px,.7vw + 5px,11px);line-height:1.4;overflow-wrap:anywhere; }
.drawer-achievements { display:flex; flex-direction:column; align-items:center; gap:3px; text-align:center; padding:7px 3px; border:1px solid rgba(123,236,237,.32);border-radius:11px;background:rgba(0,0,0,.21);box-shadow:inset 0 1px rgba(255,255,255,.08); }
.drawer-achievements-icon {font-size:19px;}
.drawer-achievements strong { display:block; font-size:clamp(10px,.8vw + 7px,13px);color:#f2ffff;line-height:1.5; }
.drawer-achievements small {display:block;color:#bde2e6;font-size:clamp(8px,.5vw + 6px,10px);line-height:1.45;overflow-wrap:anywhere;}
.drawer-menu-items {display:flex;flex-direction:column;gap:5px;padding-top:3px;}
.drawer-link {display:flex;align-items:center;gap:5px;min-height:42px;padding:5px;border:1px solid rgba(134,234,242,.25);border-radius:11px;background:linear-gradient(100deg,rgba(17,130,149,.29),rgba(4,20,33,.55));color:#f7ffff;cursor:pointer;min-width:0; width:100%;font-family:inherit;text-align:right;}
.drawer-link:active {transform:scale(.98)}
.drawer-link:focus-visible {outline:2px solid #7ffffb; outline-offset:2px}
.drawer-link-icon { flex:0 0 23px;height:25px;display:grid;place-items:center;font-size:16px;border-radius:7px;background:rgba(6,201,209,.17);box-shadow:inset 0 0 8px rgba(76,255,249,.15); }
.drawer-link-label { flex:1 1 auto;min-width:0;font-weight:700;font-size:clamp(9px, .45vw + 7px, 13px);line-height:1.35;overflow-wrap:anywhere; }
.drawer-link-soon { flex:0 0 auto; font-size:clamp(7px,.3vw + 5px,9px); border-radius:8px;padding:2px 3px;color:#e6c985;background:rgba(179,144,44,.14); }
.drawer-link-chevron {color:#85ffff;font-size:20px;line-height:1;}
.counters-modal-window {max-width:min(420px,90vw)}
.counters-owner-card {display:flex;align-items:center;gap:12px;border:1px solid var(--border-color);border-radius:14px;padding:12px;margin-bottom:12px;background:var(--bg-secondary)}
.counters-owner-card img {width:47px;height:47px;border-radius:50%;object-fit:cover;}
.counters-owner-card strong,.counters-owner-card span {display:block;overflow-wrap:anywhere}
.counters-owner-card span{color:var(--text-muted);font-size:.8rem}
.counters-empty {color:var(--text-muted);line-height:1.9;text-align:center;background:var(--bg-secondary);padding:14px;border-radius:14px;font-size:.85rem}
.my-counter-entry {display:flex;justify-content:space-between;padding:12px;border:1px solid var(--border-color);border-radius:14px;margin-top:8px;}
.my-counter-entry span{color:var(--text-muted)}
@media (max-width:370px) {
 .side-drawer{padding-inline:4px}
 .drawer-link{padding:4px 3px;gap:3px;min-height:40px}
 .drawer-link-icon{flex-basis:20px;font-size:14px}
 .drawer-link-soon{font-size:7px;padding:2px}
}
@media (prefers-reduced-motion:reduce){.side-drawer,.side-drawer-overlay{transition:none}}

/* ================= Global themed surfaces ================= */
.sntz-main-content, .tab-pane, .coffee-view-wrapper,
.khas-view-wrapper, .profile-view-wrapper, .feature-page { position:relative;z-index:1; }
.tab-pane { background:transparent; }
.coffee-view-wrapper,.khas-view-wrapper,.profile-view-wrapper,.feature-page,
.social-home,.me-settings-screen {
  background:linear-gradient(180deg,var(--section-tint),transparent 88%);
}
.chip,.khas-subtabs-nav,.chat-row,.friend-request-card,.profile-posts-section,
.profile-quick-actions .action-btn,.discover-card,.games-feature-card,
.feature-search-box,.modal-sheet,.support-modal-sheet,.chat-modal-sheet,
.room-live-sheet,.comment-sheet,.counters-sheet,.story-create-sheet {
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.chip:not(.active),.subtab-btn:not(.active),.discover-card,.games-feature-card,
.feature-search-box,.profile-posts-section,.chat-row,.friend-request-card,.drawer-link {
  background:var(--bg-translucent);
}
.chip.active,.subtab-btn.active,.room-join-btn,.games-room-link,.btn-submit-support,
.save-profile-btn,.edit-profile-btn,.nav-story-plus,.quick-create-story-btn {
  background:var(--button-gradient);
  color:white;
  box-shadow:0 8px 18px var(--primary-glow);
}
.profile-banner { background:var(--primary-gradient); }

.sntz-top-header { direction: rtl; }
.sntz-top-header .header-actions { flex: 0 0 auto; margin: 0; }
.sntz-top-header .brand-only { flex: 0 0 auto; margin-inline-start: auto; }
@media (max-width: 355px) {
  .sntz-top-header .header-actions { gap: 4px; }
  .sntz-top-header .icon-btn { width: 30px; height: 30px; }
}

/* =================== SNTZ social reorganization 2026 =================== */
.sntz-bottom-nav {
  direction: rtl;
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  justify-items: stretch;
  column-gap: 2px;
  height: calc(68px + env(safe-area-inset-bottom,0px));
  padding: 5px 7px calc(5px + env(safe-area-inset-bottom,0px));
}
.sntz-bottom-nav .nav-item { height: 57px; gap: 2px; }
.sntz-bottom-nav .nav-item .nav-label,
.sntz-bottom-nav .nav-item:last-child .nav-label {font-size: clamp(.64rem,2.7vw,.77rem);white-space: nowrap;line-height:1.3;}
.sntz-bottom-nav .nav-item[data-target="paneHome"] .nav-icon-wrapper {
  width: 39px;height:35px;border-radius:15px;
  background:linear-gradient(145deg,rgba(255,183,218,.35),rgba(54,214,220,.24));
}
.sntz-bottom-nav .nav-item[data-target="paneHome"].active .nav-icon-wrapper {box-shadow:0 0 12px rgba(255,103,171,.28);}
@media (max-width:355px) {
  .sntz-bottom-nav { grid-template-columns:repeat(5,minmax(0,1fr));padding-inline:3px; }
  .sntz-bottom-nav .nav-item .nav-label,.sntz-bottom-nav .nav-item:last-child .nav-label { font-size:.60rem; }
}
.social-home {max-width: 100%;padding: 12px 10px 24px; min-height:100%;background:linear-gradient(180deg,var(--section-tint),transparent 46%);}
.feed-heading {display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding: 8px 5px 12px;}
.feed-heading h2 {font-size:1.14rem;font-weight:900;color:var(--text-main);}
.feed-heading span {font-size:.69rem;color:var(--text-muted);}
.social-compose-trigger {display:flex;align-items:center;gap:9px;width:100%;padding:11px;background:var(--bg-card);border:1px solid var(--border-color);border-radius:18px;color:var(--text-muted);font-weight:650;box-shadow:var(--shadow-sm);cursor:pointer;text-align:start;font-size:.80rem;margin-bottom:13px;}
.social-compose-trigger>span:nth-child(2) { flex:1; }
.social-compose-trigger img {width:36px;height:36px;object-fit:cover;border-radius:50%;}
.compose-photo-icon {font-size:1.5rem;color:#f38ab8;}
.social-posts-list {display:flex;flex-direction:column;gap:12px;}
.social-post-card {background:var(--bg-card);border:1px solid var(--border-color);border-radius:18px;padding:12px;overflow:hidden;box-shadow:var(--shadow-sm);backdrop-filter:blur(15px);}
.social-post-owner {display:flex;align-items:center;gap:10px;min-width:0;}
.social-post-owner img {width:43px;height:43px;object-fit:cover;border-radius:50%;border:2px solid #ffd6ea;}
.social-post-owner>div {display:flex;flex-direction:column;gap:5px;min-width:0;flex:1;}
.social-post-owner strong {font-size:.83rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.social-post-owner small {text-align:start;color:var(--text-muted);font-size:.71rem;}
.social-post-menu {color:var(--text-muted);}
.social-post-body {font-size:.81rem;line-height:1.85;margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text;}
.social-post-picture {display:block;width:100%;max-height:420px;object-fit:cover;border-radius:14px;}
.social-post-metrics {font-size:.70rem;color:var(--text-muted);padding:9px 0;border-bottom:1px solid var(--border-color);}
.social-post-actions {display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:6px 0;}
.social-post-actions button {background:transparent;color:var(--text-main);font-size:.75rem;border:none;padding:9px 2px;cursor:pointer;border-radius:12px;}
.social-post-actions button:hover {background:var(--primary-light);}
.social-post-comments {font-size:.76rem;line-height:1.8;display:flex;flex-direction:column;gap:4px;}
.feed-comment {background:var(--bg-translucent);padding:7px 10px;border-radius:12px;overflow-wrap:anywhere;user-select:text;}
.feed-comment-form {display:flex;gap:6px;margin-top:8px;}
.feed-comment-form input {min-width:0;flex:1;border:1px solid var(--border-color);background:var(--bg-secondary);color:var(--text-main);border-radius:99px;padding:10px 12px;font-size:.76rem;}
.feed-comment-form button {border:0;border-radius:99px;background:linear-gradient(135deg,#f89cc3,#75d9e3);color:#fff;padding:8px 12px;font-weight:800;font-size:.74rem;cursor:pointer;}
.local-demo-disclaimer {font-size:.68rem;color:var(--text-muted);text-align:center;line-height:1.8;padding:14px 6px;}
.social-form-window,.profile-settings-window {width:min(95vw,460px);max-height:88dvh;overflow-y:auto;}
.social-post-form {display:flex;flex-direction:column;gap:9px;}
.social-post-form textarea {min-height:115px;}
#postImagePreview:not([hidden]) {display:block;max-width:100%;max-height:220px;object-fit:contain;border-radius:12px;}
/* Discover is completely immersive; hide both headers while its pane is active. */
body.immersive-discover .sntz-top-header,
body.immersive-discover .sntz-bottom-nav {display:none!important;}
body.immersive-discover .sntz-main-content {flex:1 1 auto;height:100%;min-height:0;}
body.immersive-discover #paneDiscover {height:100%;padding:0;overflow:hidden;}
#paneDiscover {background:#090b16;overflow:hidden;}
#paneDiscover.active {display:flex;flex-direction:column;}
#paneDiscover .discover-fullscreen-bar {position:absolute;top:0;left:0;right:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:calc(12px + env(safe-area-inset-top,0px)) 13px 9px;color:white;pointer-events:none;}
#paneDiscover .discover-fullscreen-bar>* {pointer-events:auto;}
.discover-fullscreen-bar strong {font-size:1.1rem;text-shadow:0 2px 8px #000;}
.discover-back-btn,.discover-publish-btn {background:rgba(7,16,32,.55);color:white;border:1px solid rgba(255,255,255,.23);border-radius:28px;padding:9px 11px;font-size:.72rem;font-weight:800;display:flex;align-items:center;gap:6px;cursor:pointer;backdrop-filter:blur(10px);}
.discover-back-btn span:first-child {font-size:1.1rem;}
#paneDiscover #reelsContainer {height:100%;max-height:100%;width:100%;scroll-snap-type:y mandatory;overflow-y:auto;overscroll-behavior-y:contain;}
#paneDiscover .reel-card {height:100%;height:100dvh;min-height:100%;width:100%;scroll-snap-align:start;scroll-snap-stop:always;}
#paneDiscover .reel-media {width:100%;height:100%;object-fit:cover;pointer-events:auto;}
#paneDiscover .reel-overlay {background:linear-gradient(180deg,rgba(0,0,0,.38) 0%,transparent 30%,transparent 60%,rgba(0,0,0,.8) 100%);}
#paneDiscover .reel-bottom-info {left:70px;right:15px;bottom:calc(30px + env(safe-area-inset-bottom,0px));text-align:right;direction:rtl;}
#paneDiscover .reel-actions-column {position:absolute;left:7px;right:auto;bottom:calc(80px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;align-items:center;gap:10px;z-index:10;}
#paneDiscover .reel-action-btn {width:55px;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;font-size:.66rem;text-shadow:0 1px 5px #000;}
#paneDiscover .reel-action-icon {font-size:1.7rem;}
.discover-creator {display:flex;align-items:center;gap:8px;margin-bottom:8px;}
.discover-creator img {width:42px;height:42px;object-fit:cover;border-radius:50%;border:2px solid white;}
.discover-creator span {display:flex;flex-direction:column;align-items:flex-start;gap:5px;}
.discover-creator strong {font-size:.9rem;}
.discover-creator small {font-size:.71rem;}
#paneDiscover .reel-caption {font-size:.78rem;line-height:1.9;}
.discover-no-comments {font-size:.8rem;color:var(--text-muted);padding:12px;}
.me-settings-screen {padding:19px 13px 35px;min-height:100%;background:linear-gradient(180deg,var(--section-tint),transparent 60%);}
.me-settings-screen h2 {font-size:1.34rem;margin-bottom:16px;color:var(--text-main);}
.me-account-card {width:100%;display:flex;gap:12px;align-items:center;text-align:start;padding:14px;border:1px solid var(--border-color);border-radius:20px;background:var(--bg-card);color:var(--text-main);box-shadow:var(--shadow-sm);cursor:pointer;}
.me-account-card img {width:68px;height:68px;border-radius:50%;object-fit:cover;border:2px solid #f797c4;}
.me-account-card>span {min-width:0;flex:1;display:flex;flex-direction:column;gap:6px;}
.me-account-card strong {font-size:.90rem;}
.me-account-card small {font-size:.70rem;color:var(--text-muted);}
.me-account-card b {font-size:1.4rem;color:var(--primary-accent);}
.settings-panel {border-radius:20px;overflow:hidden;border:1px solid var(--border-color);background:var(--bg-card);margin:18px 0;}
.settings-option {display:flex;justify-content:space-between;align-items:center;min-height:62px;gap:12px;padding:12px;border-bottom:1px solid var(--border-color);font-size:.81rem;color:var(--text-main);}
.settings-option:last-child {border:0;}
.settings-option>span {max-width:55%;line-height:1.65;}
.settings-option select {max-width:50%;min-width:112px;padding:7px 5px;border:1px solid var(--border-color);border-radius:9px;color:var(--text-main);background:var(--bg-secondary);font-size:.74rem;}
.settings-option input[type=checkbox] {width:23px;height:23px;accent-color:#e888b4;}
.me-settings-link {width:100%;display:flex;align-items:center;gap:8px;padding:15px;color:var(--text-main);border:1px solid var(--border-color);border-radius:15px;background:var(--bg-card);margin:9px 0;font-size:.84rem;text-align:start;cursor:pointer;}
.me-settings-link b {margin-inline-start:auto;font-size:1.2rem;}
.me-settings-link.logout-link {color:#e56582;}
.settings-demo-note,.settings-limit-note {display:block;font-size:.69rem;color:var(--text-muted);line-height:1.8;padding:9px 3px;}
.profile-edit-picture {display:flex;align-items:center;gap:14px;flex-wrap:wrap;}
.profile-edit-picture img {width:75px;height:75px;object-fit:cover;border-radius:50%;border:2px solid #ed96c3;}
.profile-edit-picture label {color:var(--primary-accent);font-size:.8rem;}
.profile-edit-picture input {width:100%;font-size:.73rem;}
body.lang-ltr .me-account-card,body.lang-ltr .settings-option,body.lang-ltr .social-post-card {direction:ltr;text-align:left;}
body.lang-ltr .feed-heading {direction:ltr;}
body.lang-ltr #paneDiscover .reel-bottom-info {direction:ltr;text-align:left;}
/* Preserve physical right-to-left placement of the bottom tabs independent of language. */
body.lang-ltr .sntz-bottom-nav,body.lang-ltr .sntz-top-header {direction:rtl;}

.me-status-badge { color:#16b8ac!important;font-size:.66rem!important;font-weight:750; }
body.theme-night .me-status-badge {color:#ffb0d2!important;}

/* ==========================================================
   SNTZ NEW MORNING/NIGHT PALETTE -- consistent across every page
   ========================================================== */
@media (min-width:900px) {
  body {background:var(--shell-gradient);}
}
body.theme-morning,body.theme-night {background-color:var(--bg-primary);}
.sntz-top-header,.sntz-bottom-nav {
  background:var(--header-bg);
  border-color:var(--border-color);
  color:var(--text-main);
  backdrop-filter:blur(15px) saturate(125%);
}
.sntz-bottom-nav {background:var(--nav-bg);}
body.theme-night .sntz-bottom-nav {background:var(--nav-bg);border-color:var(--border-color);}
.sntz-bottom-nav .nav-item {color:var(--text-muted);}
.sntz-bottom-nav .nav-item.active,body.theme-night .sntz-bottom-nav .nav-item.active {
  color:var(--selected-color);
}
.sntz-bottom-nav .nav-item.active .nav-icon-wrapper,
.sntz-bottom-nav .nav-item[data-target="paneHome"] .nav-icon-wrapper {
  background:var(--primary-light);
}
.sntz-bottom-nav .nav-item[data-target="paneHome"].active .nav-icon-wrapper {
  box-shadow:0 0 10px var(--primary-glow);
}
.icon-btn {color:var(--text-main);background:var(--primary-light);border-color:var(--border-color);}
body.theme-night .icon-btn {background:rgba(251,232,244,.10);border-color:var(--border-color);}
.sntz-top-header .sntz-brand-subtext,
body.theme-night .sntz-top-header .sntz-brand-subtext {color:var(--selected-color);}
.sntz-top-header::after {background:linear-gradient(90deg,transparent,var(--primary-accent),transparent);}
.social-home,.me-settings-screen,.coffee-view-wrapper,.khas-view-wrapper,
.profile-view-wrapper,.feature-page {background:linear-gradient(180deg,var(--section-tint),transparent 90%);}
.social-post-card,.social-compose-trigger,.me-account-card,.settings-panel,
.me-settings-link,.khas-subtabs-nav,.chat-row,.friend-request-card,
.profile-posts-section,.discover-card,.games-feature-card,
.feature-search-box,.profile-quick-actions .action-btn,
.chat-modal,.support-modal,.modal-window {
  background:var(--bg-card);
  border-color:var(--border-color);
  color:var(--text-main);
}
.feed-comment,.social-post-actions button:hover,
.chip:not(.active),.discover-card,.games-feature-card,
.subtab-btn:not(.active),.room-speaker,.drawer-link {
  background:var(--bg-translucent);
}
.social-post-owner img,.me-account-card img,.profile-edit-picture img {
  border-color:var(--primary-accent);
}
.compose-photo-icon,.feature-heading span,.discover-card-arrow {
  color:var(--primary-accent);
}
.chip.active,.subtab-btn.active,.room-join-btn,.games-room-link,
.create-room-btn,.btn-submit-support,.nav-story-plus,
.feed-comment-form button,.quick-create-story-btn {
  background:var(--button-gradient);
  color:#fff;
  border-color:var(--border-color);
  box-shadow:0 5px 14px var(--primary-glow);
}
.social-post-actions button,.settings-option,.me-settings-link,
.social-post-body,.room-name-top {color:var(--text-main);}
.settings-option select,.feed-comment-form input,textarea,input:not([type=checkbox]):not([type=radio]) {
  accent-color:var(--primary-accent);
}
.settings-option select,.feed-comment-form input {background:var(--bg-secondary);color:var(--text-main);border-color:var(--border-color);}
.settings-option input[type=checkbox] {accent-color:var(--primary-accent);}
body.theme-night .side-drawer {background:var(--drawer-gradient);color:var(--drawer-text);border-left-color:var(--border-color);}
body.theme-morning .side-drawer {background:var(--drawer-gradient);color:var(--drawer-text);border-left-color:var(--border-color);}
.side-drawer::before {
  background:radial-gradient(ellipse at top,rgba(255,255,255,.18),transparent 77%);
}
.side-drawer .drawer-link {background:var(--drawer-link-bg);border-color:var(--border-color);color:var(--drawer-text);}
.side-drawer .drawer-link-icon {background:var(--primary-light);}
.side-drawer .drawer-link-chevron {color:var(--selected-color);}
.side-drawer .drawer-logo,.side-drawer .drawer-profile-name,
.side-drawer .drawer-member-since,.side-drawer .drawer-achievements strong,
.side-drawer .drawer-achievements small,.side-drawer .drawer-profile-user,
.side-drawer .drawer-close-btn {color:var(--drawer-text);}
.side-drawer .drawer-profile-avatar {border-color:var(--primary-accent);}
.side-drawer .drawer-achievements {background:var(--bg-translucent);border-color:var(--border-color);}
.side-drawer .drawer-close-btn {background:var(--primary-light);border-color:var(--border-color);}
/* Videos occupy the whole screen: no colored overlay obscures the media. */
#paneDiscover {background:var(--bg-secondary);}
#paneDiscover .discover-back-btn,#paneDiscover .discover-publish-btn {
  background:rgba(15,30,53,.65);color:white;
}
@media (prefers-reduced-motion:reduce){
  .app-viewport,.sntz-top-header,.sntz-bottom-nav {transition:none;}
}
/* Readable labels and placeholders in both palettes. */
input::placeholder,textarea::placeholder {
  color:var(--text-muted);
  opacity:.92;
}
body.theme-night .settings-option select:focus,
body.theme-night input:focus,body.theme-night textarea:focus,
body.theme-morning .settings-option select:focus,
body.theme-morning input:focus,body.theme-morning textarea:focus {
  outline-color:var(--primary-accent);
}


/* ====================================================
   وضع الروم بملء الشاشة: إخفاء هيدر التطبيق العلوي والسفلي
   ==================================================== */
body.immersive-room .sntz-top-header,
body.immersive-room .sntz-bottom-nav {
  display: none !important;
}
body.immersive-room .sntz-main-content {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
}
/* الروم يملأ حاوية التطبيق، لا نافذة من أسفل الشاشة. */
.app-viewport .room-live-overlay {
  position: absolute;
  inset: 0;
  z-index: 1300;
  width: 100%;
  height: 100%;
  align-items: stretch;
  justify-content: center;
  background: var(--bg-secondary);
}
.app-viewport .room-live-overlay:not(.active) { display: none; }
.app-viewport .room-live-overlay.active { display: flex; }
.app-viewport .room-live-overlay .room-live-sheet {
  width: 100%;
  max-width: none;
  min-height: 0;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: none;
  background:
    radial-gradient(ellipse at 25% 8%, var(--primary-light), transparent 60%),
    var(--bg-secondary);
}
.app-viewport .room-live-header {
  flex-shrink: 0;
  gap: 10px;
  margin-bottom: 26px;
}
.app-viewport .room-live-top-title { min-width: 0; }
.app-viewport .room-live-top-title h3 { max-width: 100%; overflow-wrap: anywhere; }
.app-viewport .room-speakers-grid {
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 5px;
  margin-bottom: 20px;
}
.app-viewport .room-bottom-controls {
  flex-shrink: 0;
  margin-top: auto;
}
.app-viewport .leave-room-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 350px) {
  .app-viewport .room-live-overlay .room-live-sheet { padding-inline: 8px; }
  .app-viewport .room-speakers-grid { gap: 12px 3px; }
  .app-viewport .room-live-top-title h3 { font-size: .84rem; }
}
