/* Fatafut home (super app) — mobile first */
:root{--y1:#ffd60a;--y2:#ffc300;--ink:#111827;--mut:#64748b;--line:#e7ece8;--bg:#f5f7f4;--card:#fff;--green:#0a5a2c;--green2:#16a34a;--acc:#ffd60a;
  --mart:#15803d;--food:#e11d48;--send:#ea580c;--ride:#0284c7;--safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px)}
*{box-sizing:border-box;margin:0}
body.hub{font-family:Outfit,system-ui,sans-serif;background:#fffdf3;color:var(--ink);min-height:100vh;padding-bottom:calc(84px + var(--safe-b));-webkit-tap-highlight-color:transparent}
a{color:inherit;text-decoration:none}
.hb-top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:14px;padding:calc(10px + var(--safe-t)) 18px 10px;background:var(--y1);color:var(--ink)}
.hb-logo img{height:38px;width:auto;display:block;background:#fff;border-radius:12px;padding:4px 8px;box-shadow:0 2px 8px rgba(120,90,0,.15)}
.hb-nav{display:none;margin-left:auto;gap:4px}
.hb-nav a{padding:8px 14px;border-radius:10px;font-weight:600;opacity:.8}.hb-nav a.on,.hb-nav a:hover{background:rgba(255,255,255,.55);opacity:1}
.hb-me{margin-left:auto;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--ink);color:var(--y1);font-weight:800;font-size:17px}
.hb-main{max-width:1080px;margin:0 auto;padding:0 18px}

.hb-hero{position:relative;overflow:hidden;margin:0 -18px;padding:18px 22px 64px;background:radial-gradient(circle at 85% 10%,rgba(255,255,255,.55),transparent 40%),linear-gradient(180deg,var(--y1),var(--y2));color:var(--ink);border-radius:0 0 28px 28px}
.hb-hi{opacity:.75;font-size:15px;font-weight:500}
.hb-hero h1{font-size:30px;line-height:1.12;font-weight:800;margin-top:6px;letter-spacing:-.01em}
.hb-hero h1 span{color:var(--green)}
.hb-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:-44px;position:relative}
.hb-card{position:relative;display:flex;flex-direction:column;gap:4px;min-height:168px;padding:16px;border-radius:22px;background:var(--card);box-shadow:0 10px 26px rgba(15,23,42,.08);overflow:hidden;transition:transform .15s}
.hb-card:active{transform:scale(.97)}
.hb-card .hb-ico{font-size:40px;line-height:1;height:56px;display:flex;align-items:center}
.hb-card .hb-ico img{height:56px;width:auto}
.hb-card b{font-size:13px;font-weight:700;color:var(--mut);text-transform:lowercase;margin-top:auto}
.hb-card b i{display:block;font-style:normal;font-size:22px;color:var(--c);text-transform:none;line-height:1.05}
.hb-card small{font-size:12.5px;color:var(--mut);line-height:1.3}
.hb-card .hb-go{position:absolute;top:14px;right:14px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--c) 12%,#fff);color:var(--c);font-weight:800}
.hb-card::after{content:'';position:absolute;right:-30px;bottom:-30px;width:110px;height:110px;border-radius:50%;background:var(--c);opacity:.07}
.hb-mart{--c:var(--mart)}.hb-food{--c:var(--food)}.hb-send{--c:var(--send)}.hb-ride{--c:var(--ride)}
.hb-card.soon{opacity:.75}.hb-card.soon .hb-ico{filter:grayscale(.4)}
.hb-badge{position:absolute;top:14px;right:14px;font-style:normal;font-size:11px;font-weight:700;background:#fef3c7;color:#92400e;padding:4px 9px;border-radius:99px}

.hb-sec{margin-top:22px}
.hb-sec h2,.hb-sh h2{font-size:18px;font-weight:700;margin-bottom:10px}
.hb-sh{display:flex;align-items:center;justify-content:space-between}.hb-sh a{color:var(--ink);font-weight:700;font-size:14px;text-decoration:underline;text-decoration-color:#f5b800;text-decoration-thickness:2px;text-underline-offset:3px}
.hb-row{display:flex;align-items:center;gap:12px;padding:12px 14px;background:var(--card);border-radius:16px;margin-bottom:8px;box-shadow:0 1px 0 var(--line)}
.hb-row.live{box-shadow:inset 3px 0 0 #f5b800,0 1px 0 var(--line)}
.hb-row.cx{opacity:.6}
.hb-ri{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--bg);font-size:21px;flex:none}
.hb-rt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.hb-rt b{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hb-rt small{font-size:12.5px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hb-ra{font-weight:700;font-size:14.5px;text-align:right;display:flex;flex-direction:column;gap:2px;flex:none}
.hb-ra small{font-size:11.5px;font-weight:600;color:var(--mut)}
.hb-login{margin-top:22px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:18px;border-radius:20px;background:#fff;border:1.5px dashed #f5c400}
.hb-login div{flex:1 1 220px;display:flex;flex-direction:column;gap:3px}.hb-login small{color:var(--mut)}
.hb-login.big{flex-direction:column;align-items:stretch;text-align:center;padding:26px 20px}
.hb-btn{display:inline-flex;justify-content:center;align-items:center;height:46px;padding:0 22px;border-radius:14px;background:var(--ink);color:var(--y1);font-weight:700}
.hb-link{color:var(--ink);font-weight:700;padding:10px}
.hb-drive{margin:22px 0 8px;text-align:center;font-size:14px;color:var(--mut)}.hb-drive a{color:var(--green);font-weight:600}
.hb-title{font-size:26px;font-weight:800;margin:20px 0 14px}.hb-title.sm{font-size:19px;margin-top:26px}
.hb-muted{color:var(--mut);margin:-6px 0 14px}
.hb-list{display:flex;flex-direction:column;gap:10px}
.hb-svc{display:flex;align-items:center;gap:14px;padding:14px 16px;background:#fff;border-radius:18px;box-shadow:0 1px 0 var(--line);position:relative}
.hb-svc .hb-ico{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;background:color-mix(in srgb,var(--c,#16a34a) 10%,#fff);font-size:28px;flex:none}
.hb-svc .hb-ico img{width:46px}
.hb-svc b{font-size:16.5px}.hb-svc .hb-go{color:var(--c,var(--green2));font-weight:800;font-size:18px}
.hb-svc .hb-badge{position:static}
.hb-svc.soon{opacity:.7}
.hb-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin-bottom:6px}
.hb-tabs a{padding:9px 16px;border-radius:99px;background:#fff;font-weight:600;font-size:14px;white-space:nowrap;box-shadow:inset 0 0 0 1px var(--line)}
.hb-tabs a.on{background:var(--ink);color:var(--y1);box-shadow:none}
.hb-sub{white-space:normal!important}
.hb-empty{text-align:center;padding:40px 10px;display:flex;flex-direction:column;align-items:center;gap:10px}.hb-empty span{font-size:44px}
.hb-wallet{display:grid;grid-template-columns:1fr;gap:12px}
.hb-wcard{padding:20px;border-radius:22px;color:var(--ink);background:linear-gradient(135deg,var(--y1),var(--y2));display:flex;flex-direction:column;gap:4px}
.hb-wcard.alt{background:linear-gradient(135deg,#c2410c,#f97316);color:#fff}
.hb-wcard small{opacity:.85}.hb-wcard b{font-size:32px;font-weight:800}.hb-wcard span{opacity:.85;font-size:13.5px}
.hb-note{margin:14px 0 0;padding:12px 14px;border-radius:14px;background:#fffbe6;color:#5b4300;font-size:14px}

.hb-bnav{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;justify-content:space-around;padding:8px 6px calc(8px + var(--safe-b));background:rgba(255,255,255,.96);backdrop-filter:blur(12px);box-shadow:0 -6px 20px rgba(15,23,42,.06)}
.hb-bnav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11.5px;font-weight:600;color:var(--mut);padding:4px 0;border-radius:12px}
.hb-bnav a i{font-style:normal;font-size:20px;line-height:1.1;filter:grayscale(1);opacity:.7}
.hb-bnav a.on{color:var(--ink);background:var(--y1)}.hb-bnav a.on i{filter:none;opacity:1}

@media (min-width:760px){
  body.hub{padding-bottom:40px}
  .hb-bnav{display:none}.hb-nav{display:flex}.hb-me{margin-left:8px}
  .hb-top{padding-left:max(18px,calc((100vw - 1080px)/2 + 18px));padding-right:max(18px,calc((100vw - 1080px)/2 + 18px))}
  .hb-hero{margin:0;border-radius:0 0 32px 32px;padding:34px 34px 88px}.hb-hero h1{font-size:44px}
  .hb-cards{grid-template-columns:repeat(4,1fr);gap:16px;margin-top:-60px;padding:0 16px}
  .hb-card{min-height:210px;padding:20px}.hb-card .hb-ico{height:72px;font-size:52px}.hb-card .hb-ico img{height:70px}.hb-card b i{font-size:26px}
  .hb-wallet{grid-template-columns:1fr 1fr}
}
.hb-medi{--c:#1556e6}
@media (min-width:760px){.hb-cards{grid-template-columns:repeat(5,1fr)}}
@media (max-width:759px){.hb-cards .hb-card:last-child:nth-child(odd){grid-column:1/-1;min-height:120px}}

/* ===== Blue rang (admin → Overview → Fatafut home page → Home page colour) ===== */
body.hub.hub-blue{--y1:#1463f3;--y2:#0b4fd1;--green:#fde047;--acc:#1463f3;background:#f3f7ff}
.hub-blue .hb-top,.hub-blue .hb-hero{color:#fff}
.hub-blue .hb-logo img{box-shadow:0 2px 10px rgba(0,30,90,.25)}
.hub-blue .hb-nav a.on,.hub-blue .hb-nav a:hover{background:rgba(255,255,255,.18)}
.hub-blue .hb-me{background:#fff;color:#1463f3}
.hub-blue .hb-hero{background:radial-gradient(circle at 85% 10%,rgba(255,255,255,.22),transparent 40%),linear-gradient(180deg,#1463f3,#0b4fd1)}
.hub-blue .hb-hi{opacity:.85}
.hub-blue .hb-badge{background:#dbeafe;color:#1e40af}
.hub-blue .hb-sh a{text-decoration-color:#1463f3}
.hub-blue .hb-row.live{box-shadow:inset 3px 0 0 #1463f3,0 1px 0 var(--line)}
.hub-blue .hb-login{border-color:#93b8ff}
.hub-blue .hb-btn{background:#1463f3;color:#fff}
.hub-blue .hb-drive a{color:#1463f3}
.hub-blue .hb-tabs a.on{background:#1463f3;color:#fff}
.hub-blue .hb-wcard{color:#fff}
.hub-blue .hb-note{background:#eef4ff;color:#1e3a8a}
.hub-blue .hb-bnav a.on{color:#fff;background:#1463f3}
