/* =========================
BASE / RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  background: #fff;
  color: #0f172a;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font: inherit;
  cursor: pointer;
}

/* =========================
NAVBAR (DESKTOP)
========================= */
header {
  height: 88px;
  display: flex;
  align-items: center;
  padding: 0 40px; /* keeps logo close to left corner */
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 9999;
}
.nav {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* left | center | right */
  align-items: center;
}

/* Left: Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}
.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
/*.brand span {
  font-weight: 700;
  font-size: 14px;
  color: #1e3a8a;
}*/

/* Center: Links */
.nav-center {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 56px;
  font-size: 16px;
  font-weight: 400;
}
/* Right: Actions */
.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 16px;
  background: transparent;
}
.btn-outline {
  border-color: #d1d5db;
  background: #fff;
  color: #0f172a;
}
.btn-solid {
  background: #1e3a8a;
  color: #fff;
  padding: 12px 20px;
}
/* =========================
MOBILE MENU (HIDDEN BY DEFAULT)
========================= */
#menu {
  display: none;
}

.hamburger {
  display: none; /* shown on small screens */
  width: 46px;
  height: 46px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  align-items: center;
  justify-content: center;
  justify-self: end;
  cursor: pointer;
}
.hamburger i {
  width: 20px;
  height: 2px;
  background: #0f172a;
  position: relative;
  display: block;
}
.hamburger i::before,
.hamburger i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #0f172a;
}
.hamburger i::before {
  top: -6px;
}
.hamburger i::after {
  top: 6px;
}
.mobile-panel {
  display: none;
  width: 100%;
  padding: 14px 0 0;
  grid-column: 1 / -1;
}

.mobile-box {
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px;
  font-weight: 600;
}

.mobile-actions {
  display: flex;
  gap: 12px;
  padding: 10px 6px 6px;
}
.mobile-actions .btn {
  width: 100%;
}

/* checkbox toggle */
#menu:checked ~ .mobile-panel {
  display: block;
}

/* HERO */
.hero {
  background: #e9efff;
  padding: 64px 16px 84px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #dbe6ff;
  color: #1e3a8a;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 16px;
}
.badge-ic {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #c7d7ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}
.hero h1 {
  font-size: 54px;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: 0.2px;
  margin-bottom: 10px;
  line-height: 1.05;
}
.hero p {
  max-width: 820px;
  margin: 0 auto;
  color: #9ca3af;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
}

/* MAIN */
.main {
  padding: 0 16px 70px;
  margin-top: -34px;
}

/* TABS (same as your previous code + clickable active) */
.tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}
.tabs {
  width: 420px;
  background: #eef2f7;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 6px;
  display: flex;
  gap: 6px;
}
.tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 8px;
  color: #6b7280;
  font-weight: 700;
  font-size: 13px;
  background: transparent;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}
.tab-ic {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
.tab.active {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #1e3a8a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.tab.active .tab-ic {
  background: #dbe6ff;
  color: #1e3a8a;
}

/* STATS ROW */
.stats {
  max-width: 1100px;
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat {
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 86px;
}
.stat .label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 800;
  margin-bottom: 6px;
}
.stat .value {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.2px;
  line-height: 1;
  margin-bottom: 6px;
}
.stat .delta {
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.up-red {
  color: #ef4444;
}
.up-green {
  color: #16a34a;
}

.stat-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #64748b;
  flex: 0 0 auto;
}
.ic-red {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #ef4444;
}
.ic-green {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #16a34a;
}
.ic-amber {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #f59e0b;
}
.ic-blue {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

/* PANELS */
.panel {
  max-width: 1100px;
  margin: 0 auto 18px;
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  padding: 16px;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #111827;
  font-size: 14px;
}
.panel-title .title-ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #eff6ff;
  color: #1e3a8a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
}
.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #334155;
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}
.pill .mini {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #64748b;
}
.dots {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #94a3b8;
}

/* CHART (simple bars, no svg) */
.chart {
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 16px 14px 10px;
  background: #ffffff;
}

.chart-area {
  position: relative;
  height: 220px;
  padding-left: 40px;
  padding-right: 6px;
  padding-top: 6px;
  padding-bottom: 18px;
}
/* Y labels */
.y-labels {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 18px;
  width: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #9ca3af;
  font-weight: 900;
  font-size: 11px;
  text-align: right;
  padding-right: 6px;
}

.bars {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
  align-items: end;
  padding-bottom: 10px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.bar-bg {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
}

/* bars */
.bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 10px;
}
.bar.red {
  background: #ef4444;
}
.bar.green {
  background: #22c55e;
}

/* faint background tint (like the screenshot) */
.tint {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0.14;
}
.tint.red {
  background: #ef4444;
}
.tint.green {
  background: #22c55e;
}

.m-label {
  font-size: 11px;
  font-weight: 900;
  color: #94a3b8;
}
.legend {
  font-size: 11px;
}
.lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.swatch {
  width: 16px;
  height: 4px;
  border-radius: 99px;
}
.sw-green {
  background: #22c55e;
}
.sw-red {
  background: #ef4444;
}

/* DISTRIBUTION (progress bars) */
.dist {
  padding: 8px 4px 2px;
  display: grid;
  gap: 18px;
}

.dist-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.dist-name {
  font-weight: 900;
  font-size: 13px;
  color: #111827;
  margin-bottom: 8px;
}

.pct {
  font-weight: 900;
  font-size: 13px;
  color: #94a3b8;
}

.track {
  height: 10px;
  width: 100%;
  border-radius: 999px;
  background: #d1d5db;
  overflow: hidden;
}
.fill {
  height: 100%;
  border-radius: 999px;
}
.fill.blue {
  background: #3b82f6;
}
.fill.green {
  background: #22c55e;
}
.fill.amber {
  background: #f59e0b;
}
.fill.red {
  background: #ef4444;
}
.fill.purple {
  background: #a855f7;
}
/* =========================
MEDIA QUERIES (1280 ↓)
========================= */

@media (max-width: 1280px) {
  header {
    padding: 0 32px;
  }
  .nav-center {
    gap: 44px;
  }
}

@media (max-width: 1024px) {
  header {
    padding: 0 24px;
  }
  .nav-center {
    gap: 34px;
  }
  .btn {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  header {
    height: auto;
    padding: 14px 16px;
    align-items: flex-start;
  }

  .nav {
    grid-template-columns: 1fr auto; /* logo | hamburger */
    row-gap: 12px;
  }

  .nav-center,
  .nav-right {
    display: none; /* hide desktop center & right */
  }

  .hamburger {
    display: inline-flex; /* show hamburger */
  }
}
/*hero*/
======================= */ @media (max-width: 1280px) {
  .hero h1 {
    font-size: 48px;
  }
}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 44px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .bars {
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 52px 14px 74px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero p {
    font-size: 14px;
  }
  .main {
    margin-top: -28px;
  }
  .tabs {
    width: 100%;
    max-width: 420px;
  }
  .panel-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .chart-area {
    height: 210px;
  }
  .bar-bg {
    height: 170px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }
  .tab {
    font-size: 12px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 14px;
  }
  .chart-area {
    padding-left: 34px;
  }
  .bars {
    gap: 7px;
  }
  .m-label {
    font-size: 10px;
  }
}
