/* Mobile mockup shared styles */
:root {
  --undp: #006EB6;
  --undp-deep: #00297A;
  --unicef: #1CABE2;
  --ink-900: #0F172A;
  --ink-700: #334155;
  --ink-500: #64748B;
  --ink-300: #CBD5E1;
  --ink-100: #F1F5F9;
  --bg: #F8FAFC;
  --green: #16A34A;
  --amber: #F59E0B;
  --red: #DC2626;
  --r: 14px;
  --r-sm: 10px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink-900);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.app {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  padding-bottom: 80px;
}
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--undp);
  color: white;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.topbar .logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: white; color: var(--undp);
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px;
}
.topbar .title {
  font-size: 16px; font-weight: 700;
}
.topbar .sub {
  font-size: 12px; opacity: 0.85;
}
.hero {
  background: linear-gradient(135deg, var(--undp) 0%, var(--undp-deep) 100%);
  color: white;
  padding: 20px 16px 24px;
}
.hero h1 {
  margin: 0 0 4px; font-size: 22px; font-weight: 700;
}
.hero p {
  margin: 0; font-size: 14px; opacity: 0.9;
}
.section {
  padding: 16px;
}
.section h2 {
  margin: 0 0 12px; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--ink-500); font-weight: 700;
}
.card {
  background: white;
  border-radius: var(--r);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.06);
  margin-bottom: 12px;
}
.row {
  display: flex; align-items: center; gap: 12px;
}
.row-between {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.icon-circle {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 18px; color: white;
  flex-shrink: 0;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--undp); color: white;
  border: none; border-radius: 12px;
  padding: 14px 16px; font-size: 15px; font-weight: 600;
  width: 100%; cursor: pointer; text-decoration: none;
  font-family: inherit;
}
.btn:active { transform: scale(0.98); }
.btn-secondary {
  background: white; color: var(--undp);
  border: 1.5px solid var(--undp);
}
.btn-danger { background: var(--red); }
.badge {
  display: inline-block;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.badge-green { background: #DCFCE7; color: #15803D; }
.badge-amber { background: #FEF3C7; color: #B45309; }
.badge-red   { background: #FEE2E2; color: #B91C1C; }
.badge-blue  { background: #DBEAFE; color: #1E40AF; }
.kv { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--ink-100); }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--ink-500); font-size: 13px; }
.kv .v { color: var(--ink-900); font-weight: 600; font-size: 14px; text-align: right; }
.progress {
  height: 8px; background: var(--ink-100); border-radius: 999px; overflow: hidden;
}
.progress > div {
  height: 100%; background: linear-gradient(90deg, var(--undp), var(--unicef));
  border-radius: 999px;
}
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 480px; margin: 0 auto;
  background: white; border-top: 1px solid var(--ink-100);
  display: flex; justify-content: space-around;
  padding: 8px 0; z-index: 20;
}
.bottom-nav a {
  flex: 1; text-align: center;
  color: var(--ink-500); text-decoration: none;
  font-size: 11px; font-weight: 600;
  padding: 4px;
}
.bottom-nav a .ico { display: block; font-size: 20px; margin-bottom: 2px; }
.bottom-nav a.active { color: var(--undp); }
.back-home {
  display: block; text-align: center;
  padding: 14px;
  color: var(--ink-500); text-decoration: none;
  font-size: 13px; font-weight: 600;
}
.demo-banner {
  background: #FEF3C7; color: #92400E;
  padding: 8px 12px; font-size: 12px; text-align: center;
  font-weight: 600;
}
.fab {
  position: fixed; bottom: 80px; right: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--undp); color: white;
  display: grid; place-items: center; font-size: 24px;
  box-shadow: 0 6px 16px rgba(0,110,182,0.4);
  text-decoration: none; z-index: 15;
  max-width: 480px;
}
@media (min-width: 481px) {
  .app { box-shadow: 0 0 40px rgba(15,23,42,0.08); }
}

/* TABS (chip-style, horizontal scroll on mobile) */
.tabs {
  background: white;
  border-bottom: 1px solid var(--ink-100);
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 60px;
  z-index: 9;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink-100);
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.tab.active {
  background: var(--undp);
  color: white;
}
.tab .badge-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.3);
  font-size: 11px;
}
.tab:not(.active) .badge-count { background: white; color: var(--undp); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.list-row {
  background: white;
  border-radius: var(--r);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.05);
}
.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--ink-100);
  color: var(--ink-700);
}
.chip-blue { background: #DBEAFE; color: #1E40AF; }
.chip-green { background: #DCFCE7; color: #15803D; }
.chip-amber { background: #FEF3C7; color: #B45309; }
.chip-red { background: #FEE2E2; color: #B91C1C; }
.chip-purple { background: #EDE9FE; color: #6D28D9; }
.divider {
  height: 1px; background: var(--ink-100); margin: 14px 0;
}
.stat-tile {
  background: white; border-radius: var(--r);
  padding: 12px; box-shadow: 0 1px 3px rgba(15,23,42,0.05);
}
.stat-tile .v { font-size: 22px; font-weight: 800; color: var(--ink-900); }
.stat-tile .l { font-size: 11px; color: var(--ink-500); margin-top: 2px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

