:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eef3f8;
  background: #08101a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(65, 105, 225, 0.12), transparent 35%),
    #08101a;
}

button,
input {
  font: inherit;
}

.shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 28px 20px;
  border-right: 1px solid #1c2a38;
  background: rgba(8, 16, 26, 0.92);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #38506b;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-title {
  font-weight: 700;
}

.brand-subtitle {
  margin-top: 3px;
  color: #8497aa;
  font-size: 12px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-item {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  color: #b7c5d3;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
  background: #142131;
}

.nav-item.locked {
  color: #647487;
  cursor: not-allowed;
}

.nav-divider {
  height: 1px;
  margin: 16px 0 10px;
  background: #1c2a38;
}

.nav-caption {
  padding: 0 12px 7px;
  color: #5d7185;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
  color: #5f7183;
  font-size: 11px;
  line-height: 1.5;
}

.content {
  padding: 34px 42px 60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.topbar h1 {
  margin: 5px 0 0;
  font-size: 28px;
  font-weight: 650;
}

.eyebrow,
.label {
  color: #70879d;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-wrap {
  display: grid;
  place-items: center;
  min-height: 65vh;
}

.login-card {
  width: min(460px, 100%);
  padding: 30px;
  border: 1px solid #203347;
  border-radius: 16px;
  background: #0d1824;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.login-card h2 {
  margin: 9px 0;
  font-size: 30px;
}

.login-card p {
  margin: 0 0 24px;
  color: #8294a6;
  line-height: 1.6;
}

label {
  display: block;
  margin-top: 16px;
  color: #9eafbf;
  font-size: 12px;
  font-weight: 650;
}

input {
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid #293c4e;
  border-radius: 9px;
  outline: none;
  color: #eef3f8;
  background: #09131d;
}

input:focus {
  border-color: #53749a;
}

.primary,
.secondary {
  border-radius: 9px;
  cursor: pointer;
}

.primary {
  width: 100%;
  margin-top: 22px;
  padding: 12px 16px;
  border: 1px solid #55779b;
  color: #f8fbff;
  background: #1d3c5b;
}

.secondary {
  padding: 9px 14px;
  border: 1px solid #293b4c;
  color: #bac8d5;
  background: transparent;
}

.status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 17px 18px;
  border: 1px solid #203348;
  border-radius: 12px;
  background: #0c1824;
}

.status-banner strong {
  display: block;
  margin-bottom: 4px;
}

.status-banner span {
  color: #7f93a7;
  font-size: 12px;
}

.pill {
  padding: 6px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill.warning {
  border: 1px solid #5c4d27;
  color: #cab16f;
  background: #211d13;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 20px;
  border: 1px solid #1d3042;
  border-radius: 12px;
  background: #0c1722;
}

.card.wide {
  margin-top: 14px;
}

.card .value {
  margin-top: 11px;
  font-size: 19px;
  font-weight: 650;
}

.card .meta {
  margin-top: 7px;
  color: #71879b;
  font-size: 12px;
}

.card h2,
.card h3 {
  margin: 11px 0 8px;
}

.card p {
  color: #8093a5;
  line-height: 1.6;
}

.details {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(0, 1.5fr);
  gap: 0;
  margin: 20px 0 0;
}

.details dt,
.details dd {
  margin: 0;
  padding: 11px 0;
  border-top: 1px solid #1b2a38;
  font-size: 12px;
}

.details dt {
  color: #6d8296;
}

.details dd {
  color: #d9e2eb;
  overflow-wrap: anywhere;
}

.error {
  margin-top: 14px;
  color: #e49999;
  font-size: 12px;
}

.hidden {
  display: none !important;
}

@media (max-width: 950px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #1c2a38;
  }

  .sidebar-footer {
    display: none;
  }

  .content {
    padding: 26px 20px 50px;
  }

  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }
}
.customer-insights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1200px) {
  .customer-insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

