/* ============================================================
   MUSTABSIR — Main Stylesheet
   Clean, modern, mobile-first
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Sora:wght@600;700&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --pink:     #EE0B69;
  --violet:   #B6359C;
  --gold:     #FFD700;
  --bg:       #0D0D14;
  --surface:  #16161f;
  --surface2: #1e1e2c;
  --border:   rgba(255,255,255,0.07);
  --text:     #F0EEF6;
  --text2:    #9B99AA;
  --text3:    #5A5870;
  --success:  #1EDA8A;
  --warning:  #F59E0B;
  --danger:   #F43F5E;
  --radius:   14px;
  --radius-sm:8px;
  --shadow:   0 8px 32px rgba(0,0,0,0.4);
  --font:     'Plus Jakarta Sans', sans-serif;
  --font-hd:  'Sora', sans-serif;
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  --gradient: linear-gradient(135deg, var(--pink), var(--violet));
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }

/* RTL support */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .me-auto { margin-right: 0 !important; margin-left: auto !important; }

/* ── Layout ─────────────────────────────────────────────── */
.app-wrapper { display: flex; min-height: 100vh; }
.sidebar {
  width: 200px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 20px 16px;
  position: fixed; left: 0; top: 0; bottom: 0;
  z-index: 100;
}
.sidebar.expanded { width: 200px; }
.main-content {
  flex: 1;
  margin-left: 200px;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
.page-content { flex: 1; padding: 24px; max-width: 1200px; margin: 0 auto; width: 100%; }

/* ── Logo ───────────────────────────────────────────────── */
.logo {
  font-family: var(--font-hd);
  font-size: 22px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 8px 0 24px;
  letter-spacing: -0.5px;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 24px;
  flex-shrink: 0;
}

/* ── Sidebar nav ────────────────────────────────────────── */
.nav-item {
  display: flex; align-items: center; justify-content: flex-start;
  width: 100%; padding: 0 12px;
  height: 44px;
  border-radius: 12px;
  color: var(--text2);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  margin-bottom: 4px;
  text-decoration: none;
}
.nav-item:hover, .nav-item.active {
  background: rgba(238,11,105,0.12);
  color: var(--pink);
}
.nav-item .badge {
  position: absolute; top: 6px; right: 6px;
  background: var(--pink); color: #fff;
  font-size: 10px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.nav-label { display: block; margin-left: 10px; font-size: 13px; font-weight: 500; white-space: nowrap; }

/* ── Topbar ─────────────────────────────────────────────── */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 90;
}
.topbar-title { font-family: var(--font-hd); font-size: 18px; flex: 1; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card-sm { padding: 16px; }
.card-hover {
  transition: transform var(--transition), border-color var(--transition);
}
.card-hover:hover { transform: translateY(-2px); border-color: rgba(238,11,105,0.3); }

/* ── Profile Cards ──────────────────────────────────────── */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}
.profile-card:hover { transform: translateY(-4px); border-color: rgba(238,11,105,0.4); box-shadow: 0 12px 40px rgba(238,11,105,0.15); }
.profile-card-photo {
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
  background: var(--surface2);
}
.profile-card-photo-placeholder {
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(135deg, var(--surface2), #2a1f35);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--text3);
}
.profile-card-body { padding: 12px; }
.profile-card-name { font-weight: 600; font-size: 15px; }
.profile-card-meta { font-size: 12px; color: var(--text2); margin-top: 2px; }
.profile-card-actions { display: flex; gap: 8px; padding: 0 12px 12px; }

/* ── Avatar ─────────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-placeholder {
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff;
  flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  cursor: pointer; border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface2); color: var(--text); }
.btn-danger { background: rgba(244,63,94,0.15); color: var(--danger); border: 1px solid rgba(244,63,94,0.3); }
.btn-danger:hover { background: rgba(244,63,94,0.25); }
.btn-success { background: rgba(30,218,138,0.15); color: var(--success); border: 1px solid rgba(30,218,138,0.3); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-icon { padding: 8px; width: 36px; height: 36px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-like {
  background: rgba(238,11,105,0.1);
  border: 1px solid rgba(238,11,105,0.2);
  color: var(--pink);
  padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all var(--transition);
}
.btn-like:hover, .btn-like.liked { background: var(--pink); color: #fff; border-color: var(--pink); }

/* ── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text2); margin-bottom: 6px;
}
.form-control {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--pink); }
.form-control::placeholder { color: var(--text3); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

.form-hint { font-size: 12px; color: var(--text3); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }

.input-group { position: relative; }
.input-group .form-control { padding-right: 44px; }
.input-group-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text3); }

/* ── Auth Pages ─────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(238,11,105,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(182,53,156,0.08) 0%, transparent 60%);
}
.auth-box {
  width: 100%; max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
}
.auth-logo {
  font-family: var(--font-hd);
  font-size: 28px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 8px;
}
.auth-subtitle { text-align: center; color: var(--text2); font-size: 14px; margin-bottom: 32px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text2); }
.auth-footer a { color: var(--pink); font-weight: 600; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.lang-selector { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.lang-btn {
  padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); cursor: pointer; transition: all var(--transition);
}
.lang-btn.active, .lang-btn:hover { background: var(--pink); color: #fff; border-color: var(--pink); }

/* ── Toast / Alerts ─────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  color: var(--text);
  font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
  max-width: 340px;
}
.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--danger);  }
.toast.warning { border-color: var(--warning); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(20px); } }

/* ── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: all 0.25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  width: 100%; max-width: 480px;
  transform: scale(0.95);
  transition: transform 0.25s;
  position: relative;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--surface2); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text2); font-size: 18px;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--danger); color: #fff; }
.modal-title { font-family: var(--font-hd); font-size: 18px; margin-bottom: 20px; }

/* ── Chat ───────────────────────────────────────────────── */
.chat-layout { display: flex; height: calc(100vh - 100px); gap: 0; }
.chat-list {
  width: 300px; flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) 0 0 var(--radius);
  overflow-y: auto;
}
.chat-main {
  flex: 1;
  display: flex; flex-direction: column;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
}
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.chat-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; align-items: center;
  background: var(--surface);
}
.chat-input {
  flex: 1; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 24px;
  color: var(--text); padding: 10px 16px; font-size: 14px;
  outline: none; transition: border-color var(--transition);
  resize: none; max-height: 120px;
}
.chat-input:focus { border-color: var(--pink); }

.message {
  max-width: 70%; padding: 10px 14px;
  border-radius: 18px; font-size: 14px; line-height: 1.5;
  word-break: break-word;
}
.message.sent { background: var(--gradient); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.message.received { background: var(--surface); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.message.admin-msg { background: rgba(255,215,0,0.1); border: 1px solid rgba(255,215,0,0.3); color: var(--gold); align-self: center; max-width: 90%; border-radius: 12px; }
.message-time { font-size: 11px; color: var(--text3); margin-top: 4px; }
.message.sent .message-time { text-align: right; color: rgba(255,255,255,0.6); }

.conv-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}
.conv-item:hover, .conv-item.active { background: var(--surface2); }
.conv-item-name { font-weight: 600; font-size: 14px; }
.conv-item-preview { font-size: 12px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-unread { background: var(--pink); color: #fff; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-left: auto; flex-shrink: 0; }

/* ── Search ─────────────────────────────────────────────── */
.search-bar {
  display: flex; gap: 10px; align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 8px 16px;
  margin-bottom: 24px;
}
.search-bar input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 14px;
}
.filter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  display: none;
}
.filter-panel.open { display: block; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }

/* ── Trust Score Badge ──────────────────────────────────── */
.trust-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.trust-badge.low    { background: rgba(244,63,94,0.15);   color: var(--danger); }
.trust-badge.medium { background: rgba(245,158,11,0.15);  color: var(--warning); }
.trust-badge.high   { background: rgba(30,218,138,0.15);  color: var(--success); }

/* ── Stats ──────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.stat-value { font-family: var(--font-hd); font-size: 32px; font-weight: 700; }
.stat-label { font-size: 13px; color: var(--text2); margin-top: 4px; }
.stat-card.pink   { border-top: 3px solid var(--pink); }
.stat-card.violet { border-top: 3px solid var(--violet); }
.stat-card.gold   { border-top: 3px solid var(--gold); }
.stat-card.green  { border-top: 3px solid var(--success); }

/* ── Table ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 12px 16px; color: var(--text2); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Status badges ──────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.status-active     { background: rgba(30,218,138,0.15); color: var(--success); }
.status-unverified { background: rgba(245,158,11,0.15); color: var(--warning); }
.status-restricted { background: rgba(245,158,11,0.15); color: var(--warning); }
.status-suspended  { background: rgba(244,63,94,0.15);  color: var(--danger); }
.status-banned     { background: rgba(244,63,94,0.3);   color: var(--danger); }

/* ── Notifications panel ────────────────────────────────── */
.notif-dropdown {
  position: absolute; top: 100%; right: 0;
  width: 320px; max-height: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-y: auto;
  z-index: 200;
  display: none;
}
.notif-dropdown.open { display: block; }
.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px; cursor: pointer;
  transition: background var(--transition);
  overflow: hidden;
  word-wrap: break-word;
  word-break: break-word;
}
.notif-item .notif-content {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
.notif-item:hover { background: var(--surface2); }
.notif-item.unread { background: rgba(238,11,105,0.05); }
.notif-time { font-size: 11px; color: var(--text3); margin-top: 2px; }
#notif-panel { max-width: 320px !important; width: 320px !important; overflow: hidden; }

/* ── Profile detail page ────────────────────────────────── */
.profile-detail-header {
  display: flex; gap: 24px; align-items: flex-start;
  margin-bottom: 24px; flex-wrap: wrap;
}
.profile-detail-photo {
  width: 120px; height: 120px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--pink);
}
.profile-detail-photo-placeholder {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: #fff;
  border: 3px solid var(--pink);
}
.profile-meta-list { list-style: none; }
.profile-meta-list li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; color: var(--text2); }
.profile-meta-list li span { color: var(--text); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.gallery-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: pointer; }

/* ── Admin sidebar ──────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-main { flex: 1; padding: 32px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 14px; color: var(--text2);
  cursor: pointer; margin-bottom: 4px;
  transition: all var(--transition);
}
.admin-nav-item:hover, .admin-nav-item.active { background: rgba(238,11,105,0.12); color: var(--pink); }

/* ── Upload area ────────────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px; text-align: center;
  cursor: pointer;
  transition: border-color var(--transition);
}
.upload-area:hover { border-color: var(--pink); }
.upload-preview { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; }

/* ── Empty state ────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 48px 24px;
  color: var(--text3);
}
.empty-state-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state-title { font-size: 18px; font-weight: 600; color: var(--text2); margin-bottom: 8px; }

/* ── Progress bar ───────────────────────────────────────── */
.progress { height: 6px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 3px; background: var(--gradient); transition: width 0.6s ease; }

/* ── Tabs ───────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  padding: 10px 20px; font-size: 14px; font-weight: 500;
  color: var(--text2); cursor: pointer; border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--pink); border-bottom-color: var(--pink); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Loading spinner ────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(238,11,105,0.3);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .page-content { padding: 16px; }
  .auth-box { padding: 28px 20px; }
  .chat-layout { flex-direction: column; height: auto; }
  .chat-list { width: 100%; max-height: 300px; }
  .chat-main { height: 500px; }
  .profile-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-sidebar { display: none; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  /* Mobile nav bottom bar */
  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 8px 0; z-index: 100;
    justify-content: space-around;
  }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text2); font-size: 10px; padding: 4px 12px; }
  .mobile-nav a.active { color: var(--pink); }
  .mobile-nav a svg { width: 22px; height: 22px; }
  body { padding-bottom: 70px; }
}
@media (min-width: 769px) { .mobile-nav { display: none; } }

/* ── Utilities ──────────────────────────────────────────── */
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex-1 { flex: 1; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-pink   { color: var(--pink); }
.text-muted  { color: var(--text2); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }
.fs-12  { font-size: 12px; }
.fs-13  { font-size: 13px; }
.page-title { font-family: var(--font-hd); font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.section-title { font-family: var(--font-hd); font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pointer { cursor: pointer; }
.hidden { display: none !important; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text2); }

/* ── Online status ──────────────────────────────────────── */
.online-dot { position:absolute;bottom:1px;right:1px;width:11px;height:11px;background:#10b981;border-radius:50%;border:2px solid var(--surface); }
.online-dot-sm { display:inline-block;width:8px;height:8px;background:#10b981;border-radius:50%;border:1.5px solid var(--surface); }


/* ============================================================ */
/* RTL — Arabic complete support                                 */
/* ============================================================ */

/* ── Font ─────────────────────────────────────────────────── */
[dir="rtl"] {
  font-family: 'Noto Sans Arabic', 'Plus Jakarta Sans', sans-serif;
  direction: rtl;
  text-align: right;
}

/* ── Layout: sidebar flips to right ──────────────────────── */
[dir="rtl"] .sidebar {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid var(--border);
}
[dir="rtl"] .main-content {
  margin-left: 0;
  margin-right: 200px;
}

/* ── Sidebar nav items ────────────────────────────────────── */
[dir="rtl"] .nav-item {
  flex-direction: row-reverse;
  justify-content: flex-end;
}
[dir="rtl"] .nav-label {
  margin-left: 0;
  margin-right: 10px;
}
[dir="rtl"] .nav-item .badge {
  left: 6px;
  right: auto;
}

/* ── Topbar ───────────────────────────────────────────────── */
[dir="rtl"] .topbar {
  flex-direction: row-reverse;
}
[dir="rtl"] .notif-dropdown {
  left: 0 !important;
  right: auto !important;
}
[dir="rtl"] #lang-panel {
  left: 0 !important;
  right: auto !important;
}
/* Sidebar always above dropdowns */
.sidebar { z-index: 100; }
/* Dropdowns above everything */
.notif-dropdown { z-index: 500 !important; }

/* ── Cards ────────────────────────────────────────────────── */
[dir="rtl"] .profile-card-meta,
[dir="rtl"] .profile-card-name,
[dir="rtl"] .stat-label,
[dir="rtl"] .card { text-align: right; }

/* ── Forms ────────────────────────────────────────────────── */
[dir="rtl"] .form-label,
[dir="rtl"] .form-hint,
[dir="rtl"] .form-error { text-align: right; }

[dir="rtl"] .form-control {
  text-align: right;
  padding-right: 12px;
  padding-left: 12px;
}

[dir="rtl"] select.form-control {
  background-position: left 12px center;
  padding-left: 32px;
  padding-right: 12px;
}

/* ── Buttons & badge ──────────────────────────────────────── */
[dir="rtl"] .btn { direction: rtl; }
[dir="rtl"] .msg-badge {
  right: auto;
  left: -8px;
}

/* ── Messages page ────────────────────────────────────────── */
[dir="rtl"] .msg-row.mine {
  flex-direction: row;
}
[dir="rtl"] .msg-row.theirs {
  flex-direction: row-reverse;
}
[dir="rtl"] .msg-row.mine .msg-bubble {
  border-radius: 18px 4px 18px 18px;
  margin-right: 0;
  margin-left: auto;
}
[dir="rtl"] .msg-row.theirs .msg-bubble {
  border-radius: 4px 18px 18px 18px;
  margin-left: 0;
  margin-right: auto;
}
[dir="rtl"] .conv-list {
  border-right: none;
  border-left: 1px solid var(--border);
}
[dir="rtl"] .chat-input-area {
  flex-direction: row-reverse;
}

/* ── Profile cards ────────────────────────────────────────── */
[dir="rtl"] .pub-tags,
[dir="rtl"] .pub-actions,
[dir="rtl"] .pub-secondary { justify-content: center; }

[dir="rtl"] .pub-location { text-align: center; }

/* ── Swipe cards ──────────────────────────────────────────── */
[dir="rtl"] .like-indicator {
  left: auto;
  right: 16px;
  transform: rotate(15deg);
}
[dir="rtl"] .nope-indicator {
  right: auto;
  left: 16px;
  transform: rotate(-15deg);
}

/* ── Search filters ───────────────────────────────────────── */
[dir="rtl"] .filter-row { flex-direction: row-reverse; }

/* ── Admin RTL (partial) ──────────────────────────────────── */
[dir="rtl"] .admin-nav-item { flex-direction: row-reverse; }
[dir="rtl"] .admin-sidebar {
  border-right: none;
  border-left: 1px solid var(--border);
}

/* ── Wizard ───────────────────────────────────────────────── */
[dir="rtl"] .wizard-nav { flex-direction: row-reverse; }
[dir="rtl"] .gender-card,
[dir="rtl"] .obj-card { text-align: center; }

/* ── Online dot position ─────────────────────────────────── */
[dir="rtl"] .online-dot {
  right: auto;
  left: 1px;
}

/* ── Trust badge ──────────────────────────────────────────── */
[dir="rtl"] .pub-trust { flex-direction: row-reverse; }

/* ── Misc utility ─────────────────────────────────────────── */
[dir="rtl"] .d-flex { flex-direction: row-reverse; }
[dir="rtl"] .ms-auto { margin-right: auto !important; margin-left: 0 !important; }
[dir="rtl"] .me-auto { margin-left: auto !important; margin-right: 0 !important; }
[dir="rtl"] .text-start { text-align: right !important; }
[dir="rtl"] .text-end   { text-align: left  !important; }
