/* ══════════════════════════════════════════════════════════════════════
   MNORY — Compact footer
   Same blue-to-black gradient as the header (.header in navbar-modern.css).
   Rules are scoped under footer.footer .mnf so the legacy generic
   `footer a / h6 / ul / li` rules in combined.css don't leak in.
   ══════════════════════════════════════════════════════════════════════ */

footer.footer,
body.dark-mode footer.footer {
  background: linear-gradient(135deg, #4f8bff 0%, var(--mn-brand, #2563eb) 45%, #000 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, .08) !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, .78);
  overflow: visible;
}

footer.footer .mnf { padding: 1.1rem 0 .85rem; }

/* Footer always uses Cairo (icon fonts excluded so their glyphs still render) */
footer.footer,
footer.footer *:not(i):not([class*="fa-"]):not(.material-icons):not(.material-symbols-outlined) {
  font-family: 'Cairo', 'IBM Plex Sans Arabic', -apple-system, sans-serif !important;
}

/* ── Top row ──────────────────────────────────────────────────────── */
footer.footer .mnf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

footer.footer .mnf-logo { display: inline-flex; flex-shrink: 0; margin: 0; transform: none; }
footer.footer .mnf-logo img { height: 38px; width: auto; display: block; }

footer.footer .mnf-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem 1.35rem;
}

footer.footer .mnf a {
  margin: 0;
  padding: 0;
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
footer.footer .mnf a::after { content: none; }

footer.footer .mnf-links a {
  color: rgba(255, 255, 255, .82);
  font-size: .85rem;
  font-weight: 600;
}
footer.footer .mnf-links a:hover { color: #fff; }

footer.footer .mnf-social { display: flex; gap: .4rem; flex-shrink: 0; }
footer.footer .mnf-social a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: .8rem;
}
footer.footer .mnf-social a i { color: inherit; margin: 0; font-size: inherit; transform: none; }
footer.footer .mnf-social a:hover { background: #fff; color: var(--mn-brand, #2563eb); }

/* ── Bottom row ───────────────────────────────────────────────────── */
footer.footer .mnf-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  padding-top: .75rem;
  font-size: .76rem;
}

footer.footer .mnf-copy { margin: 0; color: rgba(255, 255, 255, .6); font-size: .76rem; }

footer.footer .mnf-legal { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
footer.footer .mnf-legal a { color: rgba(255, 255, 255, .6); font-size: .76rem; }
footer.footer .mnf-legal a:hover { color: #fff; }

footer.footer .mnf-pay { display: flex; align-items: center; gap: .5rem; }
footer.footer .mnf-pay img {
  height: 20px;
  width: auto;
  padding: 2px 6px;
  border-radius: 5px;
  background: #fff;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  footer.footer .mnf-top { flex-direction: column; text-align: center; }
  footer.footer .mnf-bottom { flex-direction: column; text-align: center; }
  footer.footer .mnf-legal { justify-content: center; }
}

@media (max-width: 575.98px) {
  footer.footer .mnf { padding: 1rem 0 calc(.75rem + env(safe-area-inset-bottom)); }
  footer.footer .mnf-links { gap: .4rem 1rem; }
  footer.footer .mnf-links a { font-size: .8rem; }
}
