:root{
  --bg:#0b1220;          /* footer / header dark */
  --bg-2:#06102a;
  --surface:#0f1b2f;

  --text:#0f172a;
  --muted:#5b6b86;
  --white:#ffffff;

  --primary:#1f66ff;
  --shadow: 0 12px 35px rgba(0,0,0,0.18);
  --radius: 16px;
  --container: 1180px;

  --header-text: rgba(255,255,255,0.92);
  --header-muted: rgba(255,255,255,0.72);
  --header-line: rgba(255,255,255,0.12);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; font-family:"Poppins",system-ui,-apple-system,Segoe UI,Roboto,Arial; color:var(--text); background:#fff; }
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }

.container{ width:min(var(--container), calc(100% - 32px)); margin-inline:auto; }
.mt-3{ margin-top:16px; }
.mt-2{ margin-top:10px; }
.w-100{ width:100%; }
.muted{ color:var(--muted); }
.small{ font-size:0.92rem; line-height:1.5; }
.xsmall{ font-size:0.82rem; line-height:1.45; }

.skip-link{ position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus{ left:16px; top:16px; width:auto; height:auto; padding:10px 12px; background:#fff; border-radius:10px; box-shadow:var(--shadow); z-index:9999; }

/* BILINGUAL HELPERS */
.t-ar{
  font-family: "Tajawal", system-ui, Arial;
  direction: rtl;
  unicode-bidi: plaintext;
}
.nav-link .t-ar{ display:block; font-size:0.82rem; opacity:0.85; margin-top:2px; }
.nav-link .t-en{ display:block; }

/* Language modes */
body.lang-en .t-ar{ display:none !important; }
body.lang-ar .t-en{ display:none !important; }
body.lang-ar{ direction: rtl; }
body.lang-ar .site-header,
body.lang-ar main,
body.lang-ar .site-footer{ direction: rtl; }

/* HEADER (Dark like footer) */
.site-header{
  position:sticky; top:0; z-index:50;
  background: rgba(11,18,32,0.92); /* same family as footer */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--header-line);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding:12px 0; }

.brand-logo{ height:38px; width:auto; }
.brand-logo--on-dark{
  /* If you use a white logo image you can remove this */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.nav{ display:flex; gap:18px; align-items:center; }
.nav-link{
  font-weight:600;
  color: var(--header-text);
  opacity:0.92;
}
.nav-link:hover{ opacity:1; }
.nav-cta{ margin-left:6px; }

/* Language switch (dark header style) */
.lang-switch{
  display:inline-flex;
  gap:8px;
  padding:6px;
  border-radius:14px;
  border:1px solid var(--header-line);
  background: rgba(255,255,255,0.06);
}
.lang-btn{
  padding:8px 10px;
  border-radius:12px;
  border:1px solid var(--header-line);
  background: rgba(255,255,255,0.06);
  color: var(--header-text);
  font-weight:800;
  cursor:pointer;
}
.lang-btn.active{
  background: rgba(31,102,255,0.18);
  border-color: rgba(31,102,255,0.55);
  color: #ffffff;
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px; padding:10px 14px; border-radius:12px;
  border:1px solid rgba(0,0,0,0.10);
  font-weight:800;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,0.10); }

.btn-primary{
  background: linear-gradient(135deg, var(--primary), #2a7bff);
  color:#fff;
  border-color: rgba(255,255,255,0.12);
}
.btn-ghost{
  /* On dark header: make ghost readable */
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border: 1px solid var(--header-line);
}
.btn-ghost:hover{ background: rgba(255,255,255,0.12); }

/* Mobile menu button */
.nav-toggle{
  display:none;
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid var(--header-line);
  background: rgba(255,255,255,0.06);
  align-items:center; justify-content:center;
  gap:5px;
}
.nav-toggle span{ display:block; width:18px; height:2px; background:#fff; border-radius:2px; }

/* Mobile drawer */
.nav-drawer{
  display:none;
  border-top:1px solid var(--header-line);
  background: rgba(11,18,32,0.98);
}
.drawer-inner{ padding:14px 0; display:flex; flex-direction:column; gap:10px; }
.drawer-link{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--header-line);
  color: var(--header-text);
  background: rgba(255,255,255,0.04);
}
.drawer-link:hover{ background: rgba(255,255,255,0.07); }
.drawer-actions{ display:flex; flex-direction:column; gap:10px; margin-top:6px; }

.alerts{ display:flex; flex-direction:column; gap:10px; }
.alert{ padding:12px 14px; border-radius:14px; border:1px solid rgba(0,0,0,0.08); background:#fff; }

/* FOOTER (unchanged) */
.site-footer{ margin-top:40px; background: var(--bg); color: rgba(255,255,255,0.92); }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:24px; padding:34px 0; }
.footer-logo{ height:34px; width:auto; filter: brightness(0) invert(1); opacity:0.95; }
.footer-title{ font-size:1rem; margin:0 0 10px; }
.footer-link{ display:block; padding:6px 0; color: rgba(255,255,255,0.78); }
.footer-link:hover{ color:#fff; }
.footer-social{ display:flex; gap:10px; margin-top:12px; }
.footer-social a{
  width:40px; height:40px; border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  display:inline-flex; align-items:center; justify-content:center;
}
.footer-social a:hover{ background:rgba(255,255,255,0.08); }
.footer-bottom{ padding:14px 0 22px; border-top:1px solid rgba(255,255,255,0.10); }

@media (max-width: 980px){
  .nav{ display:none; }
  .nav-toggle{ display:inline-flex; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; }
}