.nav button {
  min-width: 0;
}

.nav-count {
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.alert-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding: 26px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(255,255,255,.18), transparent 30%),
    linear-gradient(135deg, #241450, #6d28d9 60%, #167f75);
  box-shadow: 0 18px 40px rgba(56, 31, 117, .18);
}

.alert-hero h2,
.alert-hero p {
  margin: 4px 0;
}

.alert-hero .eyebrow {
  color: #c4b5fd;
}

.status-live-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255,255,255,.12);
  font-size: 12px;
  font-weight: 850;
}

.status-live-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  display: inline-block;
  background: #5ee6a8;
  box-shadow: 0 0 0 5px rgba(94,230,168,.15);
}

.notification-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid #d9d0fc;
  border-radius: 18px;
  background: linear-gradient(135deg, #f5f1ff, #effcf8);
}

.notification-settings h3,
.notification-settings p {
  margin: 3px 0;
}

.preference-grid {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.preference-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.preference-grid input {
  width: auto;
}

.user-notification-list {
  display: grid;
  gap: 10px;
}

.user-notification {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.user-notification.unread {
  border-color: #c4b5fd;
  background: #faf8ff;
  box-shadow: inset 4px 0 #7c3aed;
}

.notification-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ede9fe;
  color: #6d28d9;
  font-weight: 900;
}

.user-notification h3,
.user-notification p {
  margin: 0 0 5px;
}

.admin-alert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.system-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 26px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(72, 226, 194, .24), transparent 30%),
    linear-gradient(135deg, #111936, #34206c 62%, #0e766f);
  box-shadow: 0 18px 40px rgba(20, 29, 65, .2);
}

.system-hero h2,
.system-hero p {
  margin: 4px 0;
}

.system-hero .eyebrow {
  color: #9ff5df;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.system-stat {
  display: grid;
  gap: 7px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.system-stat span {
  color: #6d28d9;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
}

.system-stat strong {
  color: var(--ink);
  font-size: 22px;
}

.system-stat small {
  color: var(--muted);
}

.system-layout {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr);
  gap: 18px;
}

.system-checks {
  display: grid;
  gap: 10px;
  margin-bottom: 15px;
}

.system-checks > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f9fc;
}

.system-checks .pass,
.system-checks .fail {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.system-checks .pass {
  color: #087453;
  background: #dcfce7;
}

.system-checks .fail {
  color: #b42318;
  background: #fee2e2;
}

.system-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 14px 0;
}

.system-command > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.system-command code {
  min-width: 0;
  overflow-x: auto;
  padding: 12px;
  border-radius: 11px;
  color: #d7fff5;
  background: #111936;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .admin-alert-grid {
    grid-template-columns: 1fr;
  }

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

  .system-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .alert-hero,
  .system-hero,
  .notification-settings {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .user-notification {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .user-notification > :last-child {
    grid-column: 2;
  }

  .system-grid {
    grid-template-columns: 1fr;
  }

  .system-command {
    grid-template-columns: 1fr;
  }
}
