/* ============================================================
   Maqalati (مقالتي) — assets/style.css
   Dark Mode · Gold Accent · Full RTL
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--gold-dim); }

img { max-width: 100%; display: block; }

ul, ol { list-style: none; }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: .55rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  transition: all .22s ease;
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn--gold {
  background: var(--gold);
  color: #0d0d0d;
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-dim);
  border-color: var(--gold-dim);
  color: #0d0d0d;
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: var(--bg-3);
  border-color: var(--gold);
  color: var(--gold);
}

.btn--danger {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}
.btn--danger:hover { background: #a93226; }

.btn--sm  { padding: .4rem .9rem;  font-size: .82rem; }
.btn--lg  { padding: .85rem 1.8rem; font-size: 1rem; }
.btn--full { width: 100%; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.95); /* تعديل الخلفية للأبيض الفاتح */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: border-color .3s, box-shadow .3s;
}

.navbar--scrolled {
  border-bottom-color: var(--border-gold);
  box-shadow: 0 2px 20px rgba(0,0,0,.05); /* تخفيف الظل ليناسب الفاتح */
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar__brand-icon {
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
}
.navbar__brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: #1a1a1a; /* تغيير لون كلمة (مقالتي) للأسود الواضح */
  letter-spacing: .02em;
}
.navbar__brand:hover .navbar__brand-text { color: var(--gold); }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: .4rem .75rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  color: #4a5568; /* تعديل لون الروابط (الرئيسية، المقالات) لرمادي داكن واضح */
  transition: background .2s, color .2s;
}
.nav-link:hover { background: var(--bg-3); color: var(--text); }
.nav-link--admin {
  color: var(--gold-dim); /* تعديل لون نص لوحة الإدارة */
  border: 1px solid var(--gold);
}
.nav-link--admin:hover { background: var(--gold-glow); color: #1a1a1a; }
.nav-link--gold  { color: var(--gold-dim); }
.nav-link--danger { color: #e74c3c; }

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}

.navbar__logo {
  height: 40px;          /* الارتفاع المناسب جداً داخل شريط الـ 64px */
  width: 40px;           /* جعل العرض مساوياً للارتفاع لأن صورتك مربعة 512x512 */
  object-fit: contain;   /* يضمن عدم تشوه الشعار أو تمدده */
  display: block;
  border-radius: 8px;    /* انحناء خفيف للحواف يعطي الشعار مظهراً حديثاً (اختياري) */
}

/* Avatar / dropdown */
.navbar__avatar-wrap { position: relative; }

.navbar__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: #0d0d0d;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.navbar__avatar:hover {
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-gold);
}

.navbar__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 190px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 999;
  animation: fadeDown .15s ease;
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.navbar__dropdown-user {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.navbar__dropdown-user strong {
  font-family: var(--font-display);
  font-size: .9rem;
  color: var(--text);
}
.navbar__dropdown-user span {
  font-size: .78rem;
  color: var(--gold);
}

.navbar__dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: .88rem;
  color: var(--text-dim);
  transition: background .15s, color .15s;
  text-decoration: none;
}
.navbar__dropdown-item:hover {
  background: var(--bg-4);
  color: var(--text);
}
.navbar__dropdown-item--danger { color: #e74c3c; }
.navbar__dropdown-item--danger:hover { background: rgba(231,76,60,.1); }

/* Mobile burger */
.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  margin-inline-start: auto;
  border-radius: var(--radius);
  transition: background .2s;
}
.navbar__burger:hover { background: var(--bg-3); }
.navbar__burger span {
  display: block;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: all .25s;
}
.navbar__burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger--open span:nth-child(2) { opacity: 0; }
.navbar__burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.navbar__mobile {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.navbar__mobile-links {
  display: flex;
  flex-direction: column;
  padding-inline: 20px;
}
.navbar__mobile-links .nav-link {
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}

/* ── Flash bar ─────────────────────────────────────────────── */
.flash-bar {
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}
.flash-bar--success { background: rgba(46,204,113,.15); color: #2ecc71; border-bottom-color: rgba(46,204,113,.25); }
.flash-bar--error   { background: rgba(231,76,60,.15);  color: #e74c3c; border-bottom-color: rgba(231,76,60,.25); }
.flash-bar--warning { background: rgba(241,196,15,.12); color: #f1c40f; border-bottom-color: rgba(241,196,15,.25); }
.flash-bar--info    { background: rgba(52,152,219,.12); color: #3498db; border-bottom-color: rgba(52,152,219,.25); }

/* ── Auth pages ───────────────────────────────────────────── */
.page--auth { background: var(--bg); }
.page--auth body { display: flex; align-items: center; }

.auth-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h) - 120px);
  padding: 60px 20px;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  animation: cardIn .35s ease;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.auth-card__header {
  text-align: center;
  margin-bottom: 28px;
}
.auth-card__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 20px;
}
.auth-card__title {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 6px;
}
.auth-card__sub {
  font-size: .9rem;
  color: var(--text-muted);
}

/* ── Forms ────────────────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group--error .form-input {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231,76,60,.12);
}

.form-label {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dim);
}
.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-required { color: var(--gold); }
.form-optional { color: var(--text-muted); font-weight: 400; }

.form-input {
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  color: var(--text);
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-input-wrap { position: relative; }
.form-input-wrap .form-input { padding-inline-end: 44px; }
.form-eye {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: color .2s;
  line-height: 0;
  padding: 4px;
}
.form-eye:hover { color: var(--gold); }

.form-msg {
  font-size: .8rem;
  color: var(--text-muted);
}
.form-msg--error { color: #e74c3c; }

.form-forgot {
  font-size: .82rem;
  color: var(--text-muted);
  transition: color .2s;
}
.form-forgot:hover { color: var(--gold); }

/* Checkbox */
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.form-check input[type="checkbox"] { display: none; }
.form-check__box {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg-3);
  transition: background .2s, border-color .2s;
  position: relative;
}
.form-check input:checked + .form-check__box {
  background: var(--gold);
  border-color: var(--gold);
}
.form-check input:checked + .form-check__box::after {
  content: '';
  position: absolute;
  inset: 3px 3px 4px 3px;
  border-bottom: 2px solid #0d0d0d;
  border-right: 2px solid #0d0d0d;
  transform: rotate(45deg);
  transform-origin: bottom right;
}
.form-check__label { font-size: .87rem; color: var(--text-dim); }

/* Password strength */
.pwd-strength {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}
.pwd-strength__bar {
  height: 100%;
  width: 0;
  transition: width .3s ease, background .3s ease;
  border-radius: 2px;
}

/* Error summary */
.form-error-summary {
  background: rgba(231,76,60,.12);
  border: 1px solid rgba(231,76,60,.3);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: #e74c3c;
  font-size: .88rem;
  margin-bottom: 4px;
}
.form-error-summary ul {
  list-style: disc;
  padding-inline-start: 18px;
  margin-top: 6px;
}
.form-error-summary li { margin-block: 2px; }

.auth-form__switch {
  text-align: center;
  font-size: .88rem;
  color: var(--text-muted);
}
.auth-form__switch a {
  color: var(--gold);
  font-weight: 600;
}

/* ── General form styles (used in dashboard) ──────────────── */
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

textarea.form-input {
  resize: vertical;
  min-height: 180px;
  line-height: 1.7;
}

select.form-input { appearance: none; cursor: pointer; }

/* ── Inline flash widget ───────────────────────────────────── */
.flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: .9rem;
  margin-bottom: 20px;
}
.flash--success { background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.25); color: #2ecc71; }
.flash--error   { background: rgba(231,76,60,.12);  border: 1px solid rgba(231,76,60,.25);  color: #e74c3c; }
.flash--warning { background: rgba(241,196,15,.1);  border: 1px solid rgba(241,196,15,.25); color: #f1c40f; }
.flash--info    { background: rgba(52,152,219,.1);  border: 1px solid rgba(52,152,219,.25); color: #3498db; }
.flash__icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* ── Status badges ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .03em;
}
.badge--success { background: rgba(46,204,113,.15);  color: #2ecc71; }
.badge--warning { background: rgba(255,195,0,.15);   color: var(--gold); }
.badge--danger  { background: rgba(231,76,60,.15);   color: #e74c3c; }
.badge--muted   { background: rgba(255,255,255,.07); color: var(--text-muted); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.card:hover { border-color: var(--border-gold); box-shadow: var(--shadow-gold); }

.card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.card__body { padding: 20px; }

.card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.45;
}
.card__title a:hover { color: var(--gold); }

.card__excerpt {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--text-muted);
}

/* ── Post grid ────────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── Page hero ────────────────────────────────────────────── */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.page-hero__eyebrow {
  font-size: .8rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 14px;
}
.page-hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* ── Section headings ─────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.section-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  position: relative;
  padding-inline-start: 16px;
}
.section-header h2::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--gold);
  border-radius: 4px;
}

/* ── Tables ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
thead th {
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  text-align: right;
  white-space: nowrap;
}
tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-dim);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-3); }

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 36px 0 12px;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding-inline: 10px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  background: var(--bg-3);
  color: var(--text-dim);
  border: 1px solid var(--border);
  transition: all .2s;
  text-decoration: none;
}
.pagination a:hover { background: var(--bg-4); border-color: var(--gold); color: var(--gold); }
.pagination .active { background: var(--gold); color: #0d0d0d; border-color: var(--gold); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ── Dashboard layout ─────────────────────────────────────── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 0;
  min-height: calc(100vh - var(--nav-h));
}

.dashboard-sidebar {
  background: var(--bg-2);
  border-inline-end: 1px solid var(--border);
  padding: 28px 0;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

.sidebar-nav { display: flex; flex-direction: column; }

.sidebar-nav__label {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 18px 20px 6px;
}

.sidebar-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background .15s, color .15s, border-color .15s;
  border-inline-end: 3px solid transparent;
  text-decoration: none;
}
.sidebar-nav__link:hover {
  background: var(--bg-3);
  color: var(--text);
  border-inline-end-color: var(--border);
}
.sidebar-nav__link.active {
  color: var(--gold);
  background: var(--gold-glow);
  border-inline-end-color: var(--gold);
}

.dashboard-content { padding: 36px; }

/* ── Stat cards (admin dashboard) ─────────────────────────── */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: border-color .25s;
}
.stat-card:hover { border-color: var(--border-gold); }
.stat-card__label {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.stat-card__value {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--gold);
  line-height: 1;
}
.stat-card__sub {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── Empty state ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}
.empty-state__icon { font-size: 3rem; margin-bottom: 14px; opacity: .4; }
.empty-state__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.empty-state p { font-size: .9rem; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  padding-block: 52px;
  align-items: start;
}

.site-footer__tagline {
  font-size: .88rem;
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 300px;
}

.site-footer__cols {
  display: flex;
  gap: 48px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer__col h4 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.site-footer__col a {
  font-size: .88rem;
  color: var(--text-muted);
  transition: color .2s;
  text-decoration: none;
}
.site-footer__col a:hover { color: var(--gold); }

.site-footer__bottom {
  border-top: 1px solid var(--border);
}
.site-footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 16px;
  font-size: .82rem;
  color: var(--text-muted);
}
.site-footer__made { color: var(--gold); }

/* ── Utility ──────────────────────────────────────────────── */
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top:  8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex      { display: flex; }
.align-center{ align-items: center; }
.gap-2       { gap: 10px; }
.w-full      { width: 100%; }
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: 24px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .navbar__links { display: none; }
  .navbar__actions .btn { display: none; }
  .navbar__avatar-wrap { display: none; }
  .navbar__burger { display: flex; }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-sidebar {
    position: static;
    height: auto;
    border-inline-end: none;
    border-bottom: 1px solid var(--border);
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .site-footer__cols { flex-wrap: wrap; gap: 28px; }
  .site-footer__bottom .container { flex-direction: column; gap: 6px; }
}

@media (max-width: 600px) {
  .auth-card { padding: 28px 20px; }
  .posts-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .form-row { flex-direction: column; }
  .dashboard-content { padding: 20px; }
  .page-hero { padding: 36px 0 28px; }
}

/* ضبط حجم الشعار المربع في أسفل الموقع */
.footer__brand-link {
  display: inline-block;
  text-decoration: none;
}

.footer__logo {
  height: 55px;          /* الارتفاع المثالي ليتناسق مع حجم خط الفوتر */
  width: 55px;           /* مساوٍ للارتفاع لأن أبعاد الشعار مربعة */
  object-fit: contain;   /* يحمي الشعار من التمدد أو التشويه */
  display: block;
  margin-bottom: 12px;   /* إعطاء مسافة جمالية ناعمة بين الشعار والسطر الذي تحته */
  border-radius: 8px;    /* انحناء ناعم يتناسق مع راديوس الموقع */
}