/* ===== BoB — نظام واحد: هيدر وفوتر مشتركين ===== */
:root{--bobhdr-h:51px}
#bobhdr{position:fixed;inset-inline:0;top:0;z-index:70;display:flex;align-items:center;justify-content:space-between;
  gap:10px;padding:calc(6px + env(safe-area-inset-top,0px)) 14px 6px;box-sizing:border-box;
  background:rgba(6,8,14,.74);-webkit-backdrop-filter:blur(16px) saturate(140%);backdrop-filter:blur(16px) saturate(140%);
  border-bottom:1px solid rgba(255,255,255,.07);font-family:"Almarai",system-ui,-apple-system,sans-serif;
  transform:none;transition:none}
body.bob-flow-hdr #bobhdr{position:sticky;background:rgba(6,8,14,.92)}
#bobhdr .bob-brand{display:inline-flex;align-items:baseline;gap:9px;text-decoration:none;color:#fff;flex:0 0 auto;line-height:1}
#bobhdr .bob-mark{font-family:"Space Grotesk","Almarai",sans-serif;font-size:22px;font-weight:700;letter-spacing:-.02em;line-height:1}
#bobhdr .bob-mark b{color:#7CE0C6;font-weight:700}
#bobhdr .bob-sub{display:none;font-family:"Space Grotesk",sans-serif;font-size:8.5px;letter-spacing:.2em;
  text-transform:uppercase;color:rgba(255,255,255,.42);line-height:1}
#bobhdr .bob-nav{display:flex;align-items:center;gap:1px;border:1px solid rgba(255,255,255,.12);border-radius:999px;
  padding:3px;background:rgba(255,255,255,.03);max-width:calc(100vw - 96px);overflow-x:auto;overflow-y:hidden;
  scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch}
#bobhdr .bob-nav::-webkit-scrollbar{display:none}
#bobhdr .bob-nav a{position:relative;display:inline-flex;align-items:center;gap:5px;padding:7px 8px;border-radius:999px;
  text-decoration:none;color:rgba(255,255,255,.74);font-size:10.5px;font-weight:400;white-space:nowrap;flex:0 0 auto;
  min-height:31px;box-sizing:border-box;transition:color .2s,background .2s}
#bobhdr .bob-nav a::after{content:"";position:absolute;inset:-8px -3px}
#bobhdr .bob-nav a:hover{color:#fff}
#bobhdr .bob-nav a.on{color:#fff;font-weight:700;background:rgba(255,255,255,.08)}
#bobhdr .bob-nav a.wa{color:#7CE0C6;font-weight:700}
#bobhdr .bob-theme{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:0 0 auto;
  border:0;border-radius:999px;background:transparent;color:rgba(255,255,255,.66);cursor:pointer;padding:0;margin-inline-start:2px}
#bobhdr .bob-theme:hover{color:#fff;background:rgba(255,255,255,.08)}
#bobhdr .bob-nav .sep{width:1px;height:15px;background:rgba(255,255,255,.14);flex:0 0 auto;margin:0 2px}
@media (max-width:559px){
  #bobhdr .bob-mark{font-size:20px}
  #bobhdr .bob-nav a{padding:6px 7px;font-size:10px;gap:4px}
  #bobhdr .bob-nav a[data-p="dash"]{display:none}
}
@media (min-width:560px){
  #bobhdr .bob-mark{font-size:24px}
  #bobhdr .bob-sub{display:inline}
  #bobhdr .bob-nav a{font-size:11.5px;padding:8px 11px}
}
@media (min-width:1001px){
  #bobhdr{padding:calc(14px + env(safe-area-inset-top,0px)) 40px 12px}
  #bobhdr .bob-mark{font-size:27px}
  #bobhdr .bob-nav a{font-size:12.5px;padding:9px 15px;min-height:38px}
}

/* ---------- الفوتر ---------- */
#bobftr{position:relative;z-index:3;display:block;margin:0;padding:26px clamp(16px,4vw,44px) calc(26px + env(safe-area-inset-bottom,0px));
  border-top:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.015);
  font-family:"Almarai",system-ui,-apple-system,sans-serif;text-align:right}
#bobftr .bob-ftr-in{max-width:1240px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
#bobftr .bob-ftr-brand{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:rgba(255,255,255,.62);font-size:12px}
#bobftr .bob-mark{font-family:"Space Grotesk",sans-serif;font-size:18px;font-weight:700;color:#fff;letter-spacing:-.02em}
#bobftr .bob-mark b{color:#7CE0C6}
#bobftr .bob-ftr-links{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:center}
#bobftr .bob-ftr-links a{display:inline-flex;align-items:center;min-height:44px;color:rgba(255,255,255,.62);
  text-decoration:none;font-size:12px;transition:color .2s}
#bobftr .bob-ftr-links a:hover{color:#fff}
#bobftr .bob-ftr-links a.wa{color:#7CE0C6;font-weight:700}
#bobftr .bob-ftr-c{font-size:10.5px;color:rgba(255,255,255,.32)}
@media (min-width:900px){
  #bobftr .bob-ftr-in{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap}
  #bobftr .bob-ftr-c{font-size:11px}
}
