/* =========================================================
   BADAWY NEXUS UNIFIED PUBLIC FOOTER
   Visible footer links, policies, social icons, Play Store,
   and scroll animations for all public pages.
   ========================================================= */

:root{
  --bnx-footer-blue:#063fbd;
  --bnx-footer-blue-dark:#002b86;
  --bnx-footer-white:#ffffff;
  --bnx-footer-soft:#d9e7ff;
  --bnx-footer-muted:#b9ccf5;
  --bnx-footer-green:#08c94f;
  --bnx-footer-orange:#ff7a18;
  --bnx-footer-line:rgba(255,255,255,.18);
}

.bnx-unified-footer{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 5% 8%,rgba(8,201,79,.20),transparent 24%),
    radial-gradient(circle at 95% 18%,rgba(255,122,24,.16),transparent 24%),
    linear-gradient(90deg,var(--bnx-footer-blue),var(--bnx-footer-blue-dark)) !important;
  color:var(--bnx-footer-white) !important;
  padding:52px 0 20px !important;
  border-top:1px solid var(--bnx-footer-line) !important;
  box-shadow:0 -14px 48px rgba(6,63,189,.16) !important;
}

.bnx-unified-footer::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:42px 42px;
  opacity:.20;
  pointer-events:none;
}

.bnx-unified-footer *,
.bnx-unified-footer a,
.bnx-unified-footer p,
.bnx-unified-footer span,
.bnx-unified-footer div{
  color:var(--bnx-footer-soft) !important;
  box-sizing:border-box;
}

.bnx-footer-container{
  width:min(1180px,92%);
  margin:auto;
  position:relative;
  z-index:2;
}

.bnx-footer-grid{
  display:grid;
  grid-template-columns:1.45fr repeat(5,1fr);
  gap:34px;
  align-items:start;
}

.bnx-footer-brand img{
  width:185px !important;
  max-width:185px !important;
  height:auto !important;
  object-fit:contain !important;
  margin-bottom:14px;
  filter:drop-shadow(0 10px 22px rgba(0,0,0,.18));
}

.bnx-footer-brand p{
  margin:0;
  line-height:1.7;
  font-size:13px;
  font-weight:650;
  max-width:270px;
}

.bnx-unified-footer h4{
  margin:0 0 14px !important;
  color:#ffffff !important;
  font-size:15px !important;
  font-weight:1000 !important;
  letter-spacing:.1px;
}

.bnx-unified-footer a{
  display:flex !important;
  align-items:center;
  gap:8px;
  width:max-content;
  max-width:100%;
  margin:10px 0 !important;
  font-size:13px !important;
  line-height:1.35;
  font-weight:760 !important;
  text-decoration:none !important;
  transition:color .22s ease, transform .22s ease, opacity .22s ease !important;
}

.bnx-unified-footer a:hover{
  color:#ffffff !important;
  transform:translateX(4px);
}

.bnx-footer-link-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--bnx-footer-green);
  flex:0 0 auto;
  box-shadow:0 0 12px rgba(8,201,79,.45);
}

.bnx-footer-socials{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.bnx-footer-socials a{
  width:36px !important;
  height:36px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:50%;
  margin:0 !important;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  color:#fff !important;
  transition:.22s ease !important;
}

.bnx-footer-socials a:hover{
  transform:translateY(-4px) scale(1.05) !important;
  background:rgba(255,255,255,.20);
  box-shadow:0 14px 30px rgba(0,0,0,.18);
}

.bnx-footer-socials svg,
.bnx-playstore svg{
  width:18px;
  height:18px;
  display:block;
  fill:currentColor;
}

.bnx-playstore{
  display:inline-flex !important;
  align-items:center !important;
  gap:10px !important;
  width:max-content !important;
  margin-top:16px !important;
  padding:10px 13px !important;
  border-radius:12px !important;
  background:#06142f !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.24) !important;
  box-shadow:0 14px 35px rgba(0,0,0,.20);
  font-weight:950 !important;
  line-height:1.05 !important;
}

.bnx-playstore:hover{
  transform:translateY(-3px) !important;
  color:#fff !important;
}

.bnx-playstore small{
  display:block;
  color:#d9e7ff !important;
  font-size:9px;
  font-weight:800;
  margin-bottom:2px;
}

.bnx-footer-newsletter p{
  margin:0 0 12px;
  line-height:1.6;
  font-size:13px;
  font-weight:650;
}

.bnx-footer-newsletter-form{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  margin-top:10px;
}

.bnx-footer-newsletter-form input{
  min-width:0;
  width:100%;
  border:1px solid rgba(255,255,255,.24);
  background:rgba(255,255,255,.10);
  color:#fff !important;
  border-radius:9px;
  padding:11px 12px;
  outline:none;
}

.bnx-footer-newsletter-form input::placeholder{
  color:#d9e7ff;
}

.bnx-footer-newsletter-form button{
  border:0;
  background:var(--bnx-footer-green);
  color:#fff;
  border-radius:9px;
  padding:11px 13px;
  font-weight:1000;
  cursor:pointer;
  transition:.22s ease;
}

.bnx-footer-newsletter-form button:hover{
  transform:translateY(-2px);
  background:#05b746;
}

.bnx-footer-bottom{
  margin-top:36px;
  padding-top:18px;
  border-top:1px solid var(--bnx-footer-line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  font-size:13px;
  color:var(--bnx-footer-soft) !important;
}

.bnx-footer-policy-row{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  align-items:center;
}

.bnx-footer-policy-row a{
  margin:0 !important;
  font-size:12px !important;
  color:var(--bnx-footer-soft) !important;
}

.bnx-footer-policy-row a:hover{
  color:#fff !important;
  transform:translateY(-1px);
}

/* Animation */
.bnx-footer-animate{
  opacity:0 !important;
  transform:translateY(38px) !important;
  filter:blur(4px);
  transition:
    opacity .75s cubic-bezier(.2,.85,.2,1),
    transform .75s cubic-bezier(.2,.85,.2,1),
    filter .75s ease !important;
  transition-delay:var(--bnx-footer-delay,0ms) !important;
}

.bnx-footer-animate.bnx-footer-visible{
  opacity:1 !important;
  transform:none !important;
  filter:blur(0);
}

/* Force old hidden footer links to become visible when footer replaced */
footer.bnx-unified-footer a,
footer.bnx-unified-footer h4,
footer.bnx-unified-footer p,
footer.bnx-unified-footer img,
footer.bnx-unified-footer .bnx-playstore,
footer.bnx-unified-footer .bnx-footer-socials a{
  visibility:visible !important;
  opacity:1;
}

@media(max-width:1050px){
  .bnx-footer-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:680px){
  .bnx-footer-grid{
    grid-template-columns:1fr;
    gap:26px;
  }

  .bnx-footer-bottom{
    align-items:flex-start;
    flex-direction:column;
  }

  .bnx-footer-newsletter-form{
    grid-template-columns:1fr;
  }

  .bnx-footer-brand img{
    width:160px !important;
    max-width:160px !important;
  }
}

@media(prefers-reduced-motion:reduce){
  .bnx-footer-animate{
    opacity:1 !important;
    transform:none !important;
    filter:none !important;
    transition:none !important;
  }
}