.dash-body {
  background: var(--navy-950);
}

.dash-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.dash-sidebar {
  background: var(--navy-900);
  border-right: 1px solid rgba(246, 240, 221, 0.08);
  padding: 1.6rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark-sm {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-name-sm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  display: block;
}

.brand-sub-sm {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-300);
  display: block;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.nav-item {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--cream-200);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
}

.nav-item:hover {
  background: rgba(246, 240, 221, 0.06);
  color: var(--cream-100);
}

.nav-item.is-active {
  background: var(--grad-aurora-soft);
  color: var(--gold-300);
}

.dash-main {
  padding: 2.2rem 2.6rem 4rem;
  max-width: 1180px;
}

.dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dash-topbar h1 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin-top: 0.4rem;
}

.topbar-status {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--navy-800);
  border: 1px solid rgba(246, 240, 221, 0.14);
}

.topbar-status.active {
  color: var(--success);
  border-color: rgba(63, 174, 106, 0.4);
}

.topbar-status.pending {
  color: var(--gold-400);
  border-color: rgba(255, 202, 44, 0.4);
}

.dash-section {
  display: none;
}

.dash-section.is-active {
  display: block;
  animation: section-in 0.2s ease;
}

@keyframes section-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.stat-card {
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-300);
  font-family: var(--font-mono);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.overview-panel {
  padding: 1.6rem;
}

.overview-panel h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0.4rem 0 1rem;
}

.progress-track {
  height: 10px;
  background: rgba(246, 240, 221, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--grad-aurora);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.progress-caption {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--cream-200);
}

.section-heading {
  margin-bottom: 1.6rem;
}

.section-heading-tight {
  margin-top: 2.4rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-top: 0.4rem;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1rem;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.6rem;
  border-radius: var(--radius-md);
  background: var(--navy-800);
  border: 1px solid rgba(246, 240, 221, 0.06);
  text-align: center;
}

.badge-item-name {
  font-size: 0.72rem;
  color: var(--cream-200);
  line-height: 1.2;
}

.badge-item.is-locked .badge-item-name {
  color: rgba(246, 240, 221, 0.35);
}

.scan-row {
  display: flex;
  gap: 0.8rem;
}

.scan-row input {
  flex: 1;
  background: rgba(6, 11, 24, 0.55);
  border: 1px solid rgba(246, 240, 221, 0.16);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  color: var(--cream-100);
}

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--navy-800);
  border: 1px solid rgba(246, 240, 221, 0.06);
  font-size: 0.88rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.list-row-title {
  font-family: var(--font-display);
  font-weight: 600;
}

.list-row-meta {
  font-size: 0.78rem;
  color: var(--cream-200);
}

.empty-hint {
  color: var(--cream-200);
  font-size: 0.85rem;
}

@media (max-width: 1100px) {
  .dash-shell {
    grid-template-columns: 1fr;
  }
  .dash-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .dash-main {
    padding: 1.6rem 1.2rem 3rem;
  }
}

@media (max-width: 700px) {
  .stat-grid, .overview-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .stat-grid, .overview-grid {
    grid-template-columns: 1fr;
  }
}
