:root {
  --header-bg: #0b3565;
  --bg:#0b1220;
  --card:#0f1a2e;
  --text:#eaf0ff;
  --muted:#a7b4d6;
  --line:rgba(255,255,255,.09);
  --line2:#797979;
  --btn:#1d4ed8;
  --btn2:#111827;
  --wh:#FFFFFF;
}
@font-face {
  font-family: 'El Messiri';
  src: url('https://www.sult4n.com/fonts/ElMessiri-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
* {
  box-sizing:border-box;
}
body {
  font-family: 'El Messiri', system-ui, -apple-system, "Segoe UI", Tahoma, Arial;
  margin: 0;
  background: linear-gradient(180deg, #0b3565, #a4bde4, #dcecff, #FFFEFF);
  background-size: cover;
  color: var(--text);
}
a {
  color:inherit;
  text-decoration:none;
}
.wrap {
  max-width:98%;
  margin:auto;
  padding:18px
}
.nav {
  background: radial-gradient(900px 500px at 70% 0%, rgba(29,78,216,.25), transparent 60%),
  radial-gradient(900px 500px at 20% 100%, rgba(99,102,241,.18), transparent 60%),
  var(--bg);
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  border:1px solid var(--line);
  backdrop-filter: blur(8px);
}
.nav .left,.nav .right {
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.badge {
  padding:6px 10px;
  border:1px solid var(--line2);
  border-radius:999px;
  color:var(--wh);
  font-size:16px;
}
.btn {
  font-family: 'El Messiri';
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--line2);
  background:rgba(255,255,255,.04);
  color:var(--text);
}
.btn.primary {
  font-family: 'El Messiri';
  background:linear-gradient(180deg, rgba(29,78,216,.95), rgba(29,78,216,.65));
  border-color:rgba(29,78,216,.55);
}
.btn.ghost {
  font-family: 'El Messiri';
  background:transparent;
}
.grid {
  margin-top:16px;
  display:grid;
  gap:14px;
  grid-template-columns: repeat(6, 1fr);
}
.card {
  grid-column: span 12;
  border:1px solid var(--line);
  border-radius:18px;
  background: radial-gradient(900px 500px at 70% 0%, rgba(29,78,216,.25), transparent 60%),
  radial-gradient(900px 500px at 20% 100%, rgba(99,102,241,.18), transparent 60%),
  var(--bg);
  padding:14px;
}
.half h2 a {
  color: chartreuse;
}
@media (min-width:720px) {
  .card.half {
    grid-column: span 6;
  }
}
.h1 {
  font-size:24px;
  margin:14px 0 8px;
}
.h2 {
  font-size:18px;
  margin:0 0 8px;
}
.meta {
  color:var(--muted);
  font-size:13px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
}
.sep {
  opacity:.35
}
.article {
  line-height:1.95;
  font-size:20px;
  color: rgba(234,240,255,.95);
  text-align: justify;
}
.article img {
  width: 300px;
  height: 300px;
}
.article h2, .article h3 {
  margin-bottom: -30px;
  color: chartreuse;
}
.article a {
  color: darkorange;
}
.excerpt {
  color:var(--wh);
  margin:8px 0 0;
  line-height:1.8
}
.form textarea,.form input,.form select {
  font-family: 'El Messiri';
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.18);
  color:var(--bg);
  outline:none;
}
.form textarea {
  font-size: 18px;
  min-height:120px;
  resize:vertical;
}
.form .row {
  display:grid;
  gap:10px
}
@media (min-width:720px) {
  .form .row {
    grid-template-columns: 1fr 1fr;
  }
}
.table {
  background: radial-gradient(900px 500px at 70% 0%, rgba(29,78,216,.25), transparent 60%),
  radial-gradient(900px 500px at 20% 100%, rgba(99,102,241,.18), transparent 60%),
  var(--bg);
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius:16px;
  border:1px solid var(--line);
}
.table th,.table td {
  padding:10px 10px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
.table th {
  color:var(--muted);
  text-align:right;
  background:rgba(255,255,255,.03)
}
.table tr:last-child td {
  border-bottom:0;
}
.small {
  font-size:13px;
  color:var(--muted);
}
.note {
  padding:10px 12px;
  border:1px dashed var(--line);
  border-radius:14px;
  color:var(--muted);
}
/* الهيدر */
.brand-text .h1 {
        font-size: 24px;
        color: #000;
}
.site-header {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}
/* خط زخرفي علوي */
.site-header::after {
  content: "";
  height: 3px;
  display: block;
  background: linear-gradient(90deg, #2563eb, #22c55e, #0ea5e9);
}
/* ===== Inner ===== */
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
/* ===== Brand ===== */
.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-icon {
  font-size: 32px;
  border-radius: 12px;
  padding: 10px;
}
.brand-text h1 {
  margin: 0;
  font-size: 22px;
  color: #111827;
  line-height: 1.2;
}
.brand-tagline {
  font-size: 12px;
  color: #6b7280;
}
/* =========================
Login / Forgot / Reset
(إضافات فقط – بدون تعديل القديم)
========================= */
/* تغليف الصفحة */
.login-wrap {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
/* كرت الدخول */
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 22px;
}
/* العنوان */
.login-card .h1 {
  text-align: center;
  margin-bottom: 16px;
}
/* نموذج الدخول */
.login-card .form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* مدخلات */
.login-card .form input {
  font-size: 16px;
}
/* زر كامل العرض */
.login-card .btn.primary {
  width: 100%;
  margin-top: 6px;
}
/* فاصل (أو) */
.login-divider {
  margin: 18px 0;
  height: 1px;
  background: linear-gradient(
  to left,
  transparent,
  var(--line),
  transparent
  );
}
/* رسالة تنبيه */
.alert {
  padding: 10px 12px;
  border-radius: 14px;
  margin-bottom: 14px;
  font-size: 14px;
}
.alert.success {
  background: rgba(29,78,216,.15);
  border: 1px solid rgba(29,78,216,.45);
  color: var(--wh);
}
.alert.error {
  background: rgba(220,38,38,.15);
  border: 1px solid rgba(220,38,38,.45);
  color: #fecaca;
}
/* روابط مساعدة */
.login-card .small,
.login-card a.small {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
.login-card a.small:hover {
  color: var(--wh);
  text-decoration: underline;
}
/* تحسين الجوال */
@media (max-width:480px) {
  .login-card {
    padding: 18px;
  }
  .login-card .h1 {
    font-size: 22px;
  }
}
.brand-text a {
  font-size: 35px;
}
.editor-tools {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-bottom:8px;
}
.editor-tools button {
  padding:6px 10px;
  border-radius:8px;
  border:1px solid var(--line);
  background:var(--bg);
  color:var(--text);
  cursor:pointer;
  font-family:'El Messiri';
}
.editor-tools button:hover {
  background:rgba(29,78,216,.25);
}
/* ===== Footer Base ===== */
.site-footer {
  margin-top: 60px;
  background: linear-gradient(180deg, #ffffff, #f9fafb);
  border-top: 1px solid #e5e7eb;
  font-family: "El Messiri", system-ui;
}

/* خط فاصل علوي متدرج */
.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #22c55e, #0ea5e9);
}

/* ===== Inner ===== */
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

/* ===== Brand Row ===== */
.footer-brand {
  font-weight: 500;
  color: #374151;
}

.footer-sep {
  opacity: 0.5;
}

/* ===== Stats ===== */
.footer-stats {
  background: #f1f5f9;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
}

.stats-box b {
  color: #111827;
}

.stats-box .divider {
  margin: 0 8px;
  opacity: 0.5;
}

/* ===== Tech Info ===== */
.footer-tech {
  font-size: 12px;
  color: #9ca3af;
}

/* ===== Links ===== */
.footer-links {
  gap: 16px;
}

.footer-links a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  right: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.2s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a:hover {
  color: #1e40af;
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
  .footer-stats {
    border-radius: 14px;
  }
}
.article-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.whatsapp-share {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 12px;
  border-radius:12px;
  background:#25D366;
  color:#fff;
  font-size:14px;
  white-space:nowrap;
  transition:opacity .2s ease, transform .2s ease;
  float: left;
}
.whatsapp-share:hover {
  opacity:.9;
  transform:translateY(-1px);
}