
:root{
  --bg:#040914;
  --bg-2:#061226;
  --panel:rgba(9,24,50,.90);
  --panel-soft:rgba(255,255,255,.055);
  --line:rgba(255,255,255,.12);
  --line-strong:rgba(255,255,255,.20);
  --text:#f8fbff;
  --muted:#9bb5ce;
  --muted-2:#d8e7f6;
  --gold:#f8bc18;
  --gold-2:#ffe079;
  --cyan:#00dcff;
  --cyan-2:#8ef1ff;
  --purple:#8b4dff;
  --green:#23dd78;
  --red:#ff4f6d;
  --orange:#ff982f;
  --blue:#1677ff;
  --shadow:0 28px 92px rgba(0,0,0,.52);
  --shadow-soft:0 18px 50px rgba(0,0,0,.34);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 10% 8%, rgba(0,220,255,.18), transparent 29%),
    radial-gradient(circle at 90% 8%, rgba(139,77,255,.22), transparent 30%),
    radial-gradient(circle at 70% 82%, rgba(248,188,24,.10), transparent 28%),
    linear-gradient(135deg,#030711,#061226 48%,#040914);
  min-height:100vh;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.34;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size:48px 48px;
  mask-image:linear-gradient(to bottom, rgba(0,0,0,.92), transparent 94%);
  z-index:-1;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
h1,h2,h3,h4{margin:0;font-family:Manrope,Inter,sans-serif;letter-spacing:-.045em}
p{margin:0;color:var(--muted);line-height:1.72}
.eyebrow,.card-kicker{
  color:var(--cyan-2);
  font-size:12px;
  font-weight:900;
  letter-spacing:.17em;
  text-transform:uppercase;
}

/* Login */
.login-body{padding:28px}
.login-grid{
  width:min(1420px,100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(440px,1fr) minmax(520px,.95fr);
  gap:22px;
}
.login-showcase,.login-form-wrap{
  min-height:calc(100vh - 56px);
  border-radius:40px;
}
.login-showcase{
  position:relative;
  overflow:hidden;
  padding:32px;
  border:1px solid var(--line);
  background:
    radial-gradient(circle at 14% 10%,rgba(0,220,255,.18),transparent 28%),
    radial-gradient(circle at 90% 10%,rgba(248,188,24,.14),transparent 28%),
    linear-gradient(145deg,rgba(255,255,255,.095),rgba(255,255,255,.04));
  box-shadow:var(--shadow);
}
.login-brand,.side-brand{
  display:flex;
  gap:14px;
  align-items:center;
}
.side-logo{
  width:58px;height:58px;border-radius:20px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--gold),var(--cyan));
  color:#071327;
  font-weight:950;
  box-shadow:0 18px 36px rgba(0,220,255,.15),0 18px 36px rgba(248,188,24,.14);
}
.login-brand strong,.side-brand strong{
  display:block;
  font-family:Manrope,Inter,sans-serif;
  font-size:25px;
  letter-spacing:.05em;
}
.login-brand span,.side-brand span{
  display:block;
  color:#ffe39a;
  font-size:12px;
  font-weight:800;
  margin-top:4px;
}
.login-copy{margin-top:54px;max-width:720px}
.login-copy h1{
  font-size:clamp(40px,4.5vw,72px);
  line-height:.98;
  margin:14px 0 18px;
}
.login-copy p{font-size:17px;color:#d5e5f5}
.login-panel{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:28px;
}
.login-stat{
  padding:18px;
  border-radius:24px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
}
.login-stat strong{
  display:block;
  font-size:30px;
  font-family:Manrope,Inter,sans-serif;
  letter-spacing:-.04em;
}
.login-stat span{display:block;color:var(--muted);font-weight:800;font-size:12px;margin-top:5px}
.login-image{
  margin-top:28px;
  overflow:hidden;
  border-radius:30px;
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
}
.login-image img{width:100%;height:auto}
.login-form-wrap{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.login-card,.credentials-card{
  border-radius:36px;
  padding:28px;
  border:1px solid var(--line);
  background:linear-gradient(145deg,rgba(255,255,255,.095),rgba(255,255,255,.04));
  box-shadow:var(--shadow);
}
.login-card h2{
  font-size:clamp(30px,3vw,48px);
  margin:10px 0 9px;
}
.login-card > p{font-size:15px;margin-bottom:18px}
.form-error{
  margin-bottom:16px;
  padding:14px;
  border-radius:18px;
  background:rgba(255,79,109,.12);
  border:1px solid rgba(255,79,109,.28);
  color:#ffd3dc;
  font-weight:800;
  font-size:13px;
}
.demo-form{display:grid;gap:14px}
.demo-form label{
  display:grid;
  gap:9px;
  color:#eef7ff;
  font-weight:850;
  font-size:13px;
}
.demo-form input{
  width:100%;
  min-height:56px;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(4,12,27,.65);
  color:white;
  font:inherit;
  padding:0 16px;
  outline:none;
}
.demo-form input:focus{
  border-color:rgba(0,220,255,.55);
  box-shadow:0 0 0 4px rgba(0,220,255,.12);
}
.btn-login{
  min-height:58px;
  border:0;
  border-radius:999px;
  color:white;
  font:900 15px Inter,sans-serif;
  background:linear-gradient(135deg,var(--purple),#376eff,var(--cyan));
  box-shadow:0 20px 54px rgba(0,220,255,.18);
  cursor:pointer;
}
.credentials-card h3{
  font-size:28px;
  margin:10px 0 18px;
}
.credential-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}
.credential-item{
  text-align:left;
  padding:15px;
  border-radius:22px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.055);
  color:white;
  cursor:pointer;
  transition:transform .2s ease,border-color .2s ease;
}
.credential-item:hover{
  transform:translateY(-3px);
  border-color:rgba(0,220,255,.40);
}
.credential-item strong,.credential-item span,.credential-item small{display:block}
.credential-item strong{font-size:13px;line-height:1.4}
.credential-item span{color:var(--cyan-2);font-size:12px;margin-top:6px;font-weight:850}
.credential-item small{color:var(--gold-2);font-size:11px;margin-top:5px;font-weight:800}

/* Dashboard shell */
.app-shell{
  width:min(1540px,calc(100% - 28px));
  margin:14px auto;
  display:grid;
  grid-template-columns:300px 1fr;
  gap:16px;
  min-height:calc(100vh - 28px);
}
.sidebar{
  position:sticky;
  top:14px;
  align-self:start;
  min-height:calc(100vh - 28px);
  padding:20px;
  border-radius:36px;
  background:
    radial-gradient(circle at 14% 10%,rgba(0,220,255,.16),transparent 28%),
    linear-gradient(145deg,rgba(255,255,255,.095),rgba(255,255,255,.04));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.side-brand{margin-bottom:22px}
.sidebar-note{
  padding:16px;
  border-radius:24px;
  background:rgba(4,12,27,.55);
  border:1px solid var(--line);
  margin-bottom:18px;
}
.sidebar-note small,.sidebar-note strong,.sidebar-note span{display:block}
.sidebar-note small{
  color:var(--cyan-2);
  font-weight:900;
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.sidebar-note strong{
  font-size:16px;
  margin-top:8px;
}
.sidebar-note span{
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
  margin-top:5px;
  font-weight:800;
}
.side-nav{display:grid;gap:8px}
.side-nav a{
  min-height:50px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 14px;
  border-radius:18px;
  border:1px solid transparent;
  color:#e7f3ff;
  font-size:13px;
  font-weight:850;
  background:rgba(255,255,255,.035);
}
.side-nav a i{
  width:28px;height:28px;border-radius:11px;
  display:grid;place-items:center;
  font-style:normal;
  background:rgba(0,220,255,.10);
  border:1px solid rgba(0,220,255,.18);
}
.side-nav a.active{
  background:linear-gradient(135deg,rgba(139,77,255,.28),rgba(0,220,255,.18));
  border-color:rgba(0,220,255,.28);
  box-shadow:0 18px 38px rgba(0,220,255,.08);
}
.side-card{
  margin-top:18px;
  padding:16px;
  border-radius:24px;
  background:rgba(248,188,24,.08);
  border:1px solid rgba(248,188,24,.22);
}
.side-card strong{display:block;font-size:14px}
.side-card p{font-size:12px;margin:8px 0 12px}
.side-card a{
  display:inline-flex;
  font-size:12px;
  font-weight:900;
  color:var(--gold-2);
}
.dashboard-main{
  min-width:0;
  padding:18px;
  border-radius:40px;
  border:1px solid var(--line);
  background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.035));
  box-shadow:var(--shadow);
}
.topbar{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:start;
  gap:18px;
  padding:12px 12px 20px;
}
.mobile-menu{
  display:none;
  width:48px;height:48px;
  border:1px solid var(--line);
  border-radius:17px;
  color:white;
  background:rgba(255,255,255,.06);
  font-size:20px;
}
.page-copy h1{
  font-size:clamp(30px,3vw,52px);
  line-height:1;
  margin:10px 0 9px;
}
.page-copy p{max-width:860px}
.top-actions{
  display:flex;
  align-items:center;
  gap:12px;
}
.live-pill{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:0 13px;
  border-radius:999px;
  color:#a7ffd2;
  background:rgba(35,221,120,.11);
  border:1px solid rgba(35,221,120,.22);
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.live-pill i{
  width:8px;height:8px;border-radius:999px;background:var(--green);
  box-shadow:0 0 0 7px rgba(35,221,120,.10);
}
.user-chip{
  min-height:58px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:8px 13px 8px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
}
.user-chip > span{
  width:42px;height:42px;border-radius:999px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--gold),var(--cyan));
  color:#071327;font-weight:950;
}
.user-chip strong,.user-chip small{display:block}
.user-chip strong{font-size:12px}
.user-chip small{font-size:11px;color:var(--muted);font-weight:800;margin-top:3px}
.logout-link{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  padding:0 16px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  color:#ffd5dd;
  background:rgba(255,79,109,.11);
  border:1px solid rgba(255,79,109,.25);
}
.dashboard-grid{display:grid;gap:16px}
.metrics{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.metric-card{
  min-height:140px;
  padding:20px;
  border-radius:28px;
  background:linear-gradient(145deg,rgba(255,255,255,.085),rgba(255,255,255,.035));
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
}
.metric-card span,.metric-card strong,.metric-card small{display:block}
.metric-card span{
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.11em;
}
.metric-card strong{
  margin-top:15px;
  font-family:Manrope,Inter,sans-serif;
  font-size:36px;
  line-height:1;
  letter-spacing:-.05em;
}
.metric-card small{
  margin-top:12px;
  color:#d8e7f6;
  font-size:12px;
  line-height:1.5;
  font-weight:800;
}
.tone-cyan strong{color:var(--cyan-2)}
.tone-gold strong{color:var(--gold-2)}
.tone-green strong{color:#a7ffd2}
.tone-red strong{color:#ffc0cc}
.tone-purple strong{color:#dcc7ff}
.panel-grid-2,.panel-grid-3,.panel-grid-6040,.panel-grid-7030{
  display:grid;
  gap:16px;
}
.panel-grid-2{grid-template-columns:repeat(2,1fr)}
.panel-grid-3{grid-template-columns:repeat(3,1fr)}
.panel-grid-6040{grid-template-columns:1.35fr .85fr}
.panel-grid-7030{grid-template-columns:1.45fr .75fr}
.panel{
  padding:20px;
  border-radius:30px;
  background:linear-gradient(145deg,rgba(255,255,255,.085),rgba(255,255,255,.035));
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  min-width:0;
}
.panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}
.panel-head h2{
  font-size:22px;
  line-height:1.16;
}
.panel-head p{font-size:13px;margin-top:6px}
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:31px;
  padding:0 11px;
  border-radius:999px;
  font-size:11px;
  font-weight:950;
  white-space:nowrap;
  border:1px solid transparent;
}
.badge-cyan{color:var(--cyan-2);background:rgba(0,220,255,.10);border-color:rgba(0,220,255,.22)}
.badge-green{color:#a7ffd2;background:rgba(35,221,120,.10);border-color:rgba(35,221,120,.22)}
.badge-red{color:#ffc0cc;background:rgba(255,79,109,.11);border-color:rgba(255,79,109,.23)}
.badge-gold{color:var(--gold-2);background:rgba(248,188,24,.10);border-color:rgba(248,188,24,.22)}
.badge-purple{color:#dcc7ff;background:rgba(139,77,255,.11);border-color:rgba(139,77,255,.24)}
.bar-stack{display:grid;gap:15px}
.bar-row{display:grid;gap:9px}
.bar-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;font-weight:850}
.bar-meta span{color:#eaf4ff}
.bar-meta strong{color:var(--muted-2)}
.bar-track{
  height:11px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  overflow:hidden;
}
.fill{display:block;height:100%;border-radius:999px}
.fill-cyan{background:linear-gradient(90deg,var(--cyan),var(--blue))}
.fill-gold{background:linear-gradient(90deg,var(--gold),var(--orange))}
.fill-green{background:linear-gradient(90deg,var(--green),var(--cyan))}
.fill-red{background:linear-gradient(90deg,var(--red),var(--orange))}
.fill-purple{background:linear-gradient(90deg,var(--purple),var(--cyan))}
.table-wrap{overflow:auto;border-radius:22px;border:1px solid var(--line)}
table{
  width:100%;
  border-collapse:collapse;
  min-width:620px;
  background:rgba(4,12,27,.34);
}
th,td{
  padding:14px 15px;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:left;
  vertical-align:top;
  font-size:13px;
}
th{
  color:var(--cyan-2);
  text-transform:uppercase;
  letter-spacing:.11em;
  font-size:11px;
}
td{color:#eaf4ff;font-weight:700}
td small{display:block;color:var(--muted);font-weight:800;margin-top:5px;line-height:1.45}
.list{display:grid;gap:12px}
.list-card{
  padding:15px;
  border-radius:22px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.09);
}
.list-card header{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:8px;
}
.list-card strong{font-size:14px}
.list-card p{font-size:13px}
.timeline{display:grid;gap:12px}
.timeline-item{
  display:grid;
  grid-template-columns:32px 1fr;
  gap:12px;
  align-items:start;
}
.timeline-item i{
  width:32px;height:32px;border-radius:13px;
  display:grid;place-items:center;
  font-style:normal;
  background:rgba(0,220,255,.11);
  border:1px solid rgba(0,220,255,.22);
  color:var(--cyan-2);
  font-weight:950;
}
.timeline-item div{
  padding:13px;
  border-radius:20px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.09);
}
.timeline-item strong,.timeline-item span{display:block}
.timeline-item strong{font-size:14px}
.timeline-item span{color:var(--muted);font-size:12px;font-weight:800;margin-top:5px;line-height:1.5}
.mini-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.mini-card{
  padding:16px;
  border-radius:22px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.09);
}
.mini-card strong{display:block;font-size:28px;letter-spacing:-.04em}
.mini-card span{display:block;margin-top:7px;color:var(--muted);font-weight:800;font-size:12px;line-height:1.45}
.ai-card{
  padding:18px;
  border-radius:26px;
  background:
    radial-gradient(circle at 14% 10%,rgba(139,77,255,.22),transparent 32%),
    linear-gradient(145deg,rgba(255,255,255,.10),rgba(255,255,255,.04));
  border:1px solid rgba(139,77,255,.24);
}
.ai-card h3{font-size:22px;margin:12px 0 10px}
.ai-card p{color:#e7f2ff;font-size:14px}
.task-grid{display:grid;gap:12px}
.task{
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  align-items:center;
  padding:15px;
  border-radius:22px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.09);
}
.task strong,.task small{display:block}
.task strong{font-size:14px}
.task small{font-size:12px;color:var(--muted);font-weight:800;margin-top:5px}
.map-box{
  min-height:310px;
  border-radius:28px;
  border:1px solid var(--line);
  background:
    radial-gradient(circle at 22% 32%,rgba(255,79,109,.54),transparent 8%),
    radial-gradient(circle at 64% 48%,rgba(248,188,24,.48),transparent 8%),
    radial-gradient(circle at 76% 26%,rgba(35,221,120,.45),transparent 8%),
    radial-gradient(circle at 42% 68%,rgba(0,220,255,.50),transparent 8%),
    linear-gradient(145deg,rgba(0,220,255,.08),rgba(255,255,255,.04));
  position:relative;
  overflow:hidden;
}
.map-box::before{
  content:"Tanzania Risk Heatmap";
  position:absolute;
  left:18px;top:18px;
  color:white;
  font-weight:950;
  font-family:Manrope,Inter,sans-serif;
  font-size:18px;
}
.map-label{
  position:absolute;
  padding:8px 11px;
  border-radius:999px;
  background:rgba(4,12,27,.82);
  border:1px solid var(--line);
  color:#eef7ff;
  font-size:11px;
  font-weight:900;
}
.mwanza{left:23%;top:30%}
.dodoma{left:51%;top:47%}
.dar{right:15%;top:58%}
.mbeya{left:34%;bottom:20%}
.chart-bars{
  min-height:250px;
  display:flex;
  align-items:end;
  gap:12px;
  padding:18px;
  border-radius:26px;
  background:rgba(4,12,27,.40);
  border:1px solid var(--line);
}
.chart-bars div{
  flex:1;
  min-height:36px;
  border-radius:999px 999px 16px 16px;
  background:linear-gradient(180deg,var(--gold),var(--cyan));
  position:relative;
}
.chart-bars div span{
  position:absolute;
  bottom:-30px;
  left:50%;
  transform:translateX(-50%);
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.callout{
  padding:18px;
  border-radius:26px;
  background:rgba(248,188,24,.09);
  border:1px solid rgba(248,188,24,.22);
  color:#fff0b3;
  font-weight:850;
  line-height:1.7;
  font-size:14px;
}
.demo-footer{
  margin-top:16px;
  padding:18px;
  border-radius:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
}
.demo-footer strong,.demo-footer span{display:block}
.demo-footer strong{font-size:14px}
.demo-footer span{color:var(--muted);font-size:12px;font-weight:800;margin-top:5px}
.demo-footer nav{display:flex;flex-wrap:wrap;gap:12px}
.demo-footer nav a{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  padding:0 13px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  font-size:12px;
  font-weight:900;
}

/* responsive */
@media (max-width:1280px){
  .metrics{grid-template-columns:repeat(2,1fr)}
  .panel-grid-6040,.panel-grid-7030,.panel-grid-3{grid-template-columns:1fr}
}
@media (max-width:1080px){
  .login-grid{grid-template-columns:1fr}
  .login-showcase,.login-form-wrap{min-height:auto}
  .app-shell{grid-template-columns:1fr}
  .sidebar{
    position:fixed;
    top:14px;
    left:14px;
    bottom:14px;
    width:min(320px,calc(100% - 28px));
    z-index:20;
    transform:translateX(calc(-100% - 30px));
    transition:transform .24s ease;
  }
  body.sidebar-open .sidebar{transform:translateX(0)}
  .mobile-menu{display:inline-grid;place-items:center}
  .topbar{grid-template-columns:auto 1fr}
  .top-actions{grid-column:1 / -1;justify-content:flex-start;flex-wrap:wrap}
}
@media (max-width:760px){
  .login-body{padding:12px}
  .login-showcase,.login-card,.credentials-card{padding:18px;border-radius:28px}
  .login-copy{margin-top:32px}
  .login-panel,.credential-grid,.metrics,.mini-grid,.panel-grid-2{grid-template-columns:1fr}
  .app-shell{width:calc(100% - 16px);margin:8px auto;gap:10px}
  .dashboard-main{padding:10px;border-radius:28px}
  .topbar{padding:8px 8px 16px}
  .page-copy h1{font-size:31px}
  .live-pill,.logout-link{width:100%;justify-content:center}
  .user-chip{width:100%;border-radius:24px}
  .panel,.metric-card{padding:16px;border-radius:24px}
  table{min-width:560px}
  .task{grid-template-columns:1fr}
  .map-box{min-height:250px}
}
