.admin-status--active {
  color: #44ffb4;
  font-weight: 600;
}

.auth-note {
  margin: 0 0 1rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.55;
}

.social-auth--hub {
  margin-top: 1rem;
}

.sso-actions {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.sso-btn {
  min-width: 220px;
}

.admin-status--suspended {
  color: #ff6b6b;
  font-weight: 600;
}

.admin-table .form-control {
  min-width: 200px;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 0.3rem;
}

.alert--actionable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.alert__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.alert__actions .inline-form,
.alert-action-form {
  margin-right: 0;
}

.admin-form {
  max-width: 520px;
  display: grid;
  gap: 0.9rem;
}

.admin-form .form-group {
  gap: 0.3rem;
}

.admin-form .form-control {
  padding: 0.7rem 0.9rem;
}

.admin-sso-shell,
.admin-sso-create {
  max-width: none;
}

.admin-sso-kpis {
  margin-bottom: 1rem;
}

.admin-sso-intro {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.admin-sso-intro__eyebrow,
.admin-sso-create__eyebrow,
.admin-sso-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb347;
  font-family: var(--font-display);
}

.admin-sso-intro h3,
.admin-sso-create h3,
.admin-sso-card h3 {
  margin: 0.22rem 0 0.35rem;
}

.admin-sso-intro p,
.admin-sso-create p,
.admin-sso-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.admin-sso-create__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.admin-sso-create__form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 0.85rem;
  align-items: end;
}

.admin-sso-create__domains {
  min-width: 0;
}

.admin-sso-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 340px));
  justify-content: center;
  grid-auto-rows: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.admin-sso-card {
  height: 100%;
  width: 100%;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.monitor-pop-card.admin-sso-card {
  min-height: 560px;
}

.admin-sso-card__head {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: flex-start;
}

.admin-sso-card__title {
  min-width: 0;
}

.admin-sso-card__title h3 {
  overflow-wrap: anywhere;
}

.admin-sso-card__title p {
  overflow-wrap: anywhere;
}

.admin-sso-card__status {
  flex: 0 0 auto;
}

.admin-sso-card__meta,
.admin-sso-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-sso-chip,
.admin-sso-domain-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(103, 248, 255, 0.16);
  background: rgba(6, 12, 24, 0.52);
  color: rgba(227, 246, 255, 0.88);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.admin-sso-domain-chip {
  border-color: rgba(255, 179, 71, 0.28);
  color: #ffcf86;
}

.admin-sso-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.admin-sso-facts div {
  padding: 0.72rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(103, 248, 255, 0.12);
  background: rgba(6, 12, 24, 0.42);
  min-width: 0;
}

.admin-sso-facts dt {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(227, 246, 255, 0.55);
}

.admin-sso-facts dd {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.84rem;
  line-height: 1.45;
  word-break: break-word;
}

.admin-sso-form {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
}

.admin-sso-form .form-control {
  width: 100%;
  min-width: 0;
}

.admin-domain-editor {
  display: grid;
  gap: 0.55rem;
}

.admin-domain-editor__shell {
  display: grid;
  gap: 0.65rem;
  padding: 0.8rem;
  border-radius: 16px;
  border: 1px solid rgba(103, 248, 255, 0.14);
  background: rgba(6, 12, 24, 0.38);
}

.admin-domain-editor__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 32px;
}

.admin-domain-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.36rem 0.64rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 179, 71, 0.28);
  background: rgba(255, 179, 71, 0.08);
  color: #ffd39a;
  font-size: 0.76rem;
  line-height: 1.2;
}

.admin-domain-chip button {
  border: 0;
  background: transparent;
  color: #ffb347;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.admin-domain-editor__empty {
  color: rgba(227, 246, 255, 0.5);
  font-size: 0.78rem;
}

.admin-domain-editor__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.admin-domain-editor__entry {
  min-width: 0;
}

.admin-domain-editor__hint {
  margin: 0;
  color: rgba(227, 246, 255, 0.62);
  font-size: 0.75rem;
  line-height: 1.5;
}

.admin-sso-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.info-card {
  max-width: 570px;
}

.admin-table {
  width: 100%;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 0.85rem;
  font-size: 0.82rem;
  vertical-align: top;
}

.admin-table td:not(.admin-actions) {
  white-space: normal;
  word-break: break-word;
}

.admin-table th:first-child,
.admin-table td:first-child {
  min-width: 44px;
  text-align: center;
  white-space: nowrap;
}

.admin-table--admins th:nth-child(2),
.admin-table--admins td:nth-child(2) {
  min-width: 100px;
}

.admin-table--admins th:nth-child(3),
.admin-table--admins td:nth-child(3) {
  min-width: 155px;
}

.admin-table--admins th:nth-child(4),
.admin-table--admins td:nth-child(4) {
  min-width: 120px;
}

.admin-table--admins th:nth-child(5),
.admin-table--admins td:nth-child(5) {
  min-width: 85px;
}

.admin-table--users th:nth-child(2),
.admin-table--users td:nth-child(2) {
  min-width: 100px;
}

.admin-table--users th:nth-child(3),
.admin-table--users td:nth-child(3) {
  min-width: 155px;
}

.admin-table--users th:nth-child(4),
.admin-table--users td:nth-child(4) {
  min-width: 95px;
}

.admin-table--users th:nth-child(5),
.admin-table--users td:nth-child(5) {
  min-width: 155px;
}

.admin-table--users th:nth-child(6),
.admin-table--users td:nth-child(6) {
  min-width: 95px;
}

.admin-table--users th:nth-child(7),
.admin-table--users td:nth-child(7) {
  min-width: 120px;
}

.admin-table--users th:nth-child(8),
.admin-table--users td:nth-child(8) {
  min-width: 85px;
}

.admin-table--users th:nth-child(9),
.admin-table--users td:nth-child(9) {
  min-width: 130px;
}

.users-table-wrap {
  width: 100%;
}

.admin-table--users {
  width: 100%;
  table-layout: auto;
}

.admin-table--users th,
.admin-table--users td {
  white-space: nowrap;
  word-break: normal;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.admin-actions .inline-form {
  margin-right: 0;
}

.admin-actions .form-control {
  min-width: 180px;
}

.admin-actions .admin-action-select {
  min-width: 135px;
  width: 135px;
}

.users-filter {
  width: 100%;
  max-width: none;
  margin-bottom: 0.9rem;
}

.users-filter__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
}

.users-filter__actions {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.users-filter .form-control {
  width: 100%;
  min-width: 0;
}

.users-filter .form-group,
.users-filter .form-group label {
  min-width: 0;
  white-space: nowrap;
}

@media (max-width: 1350px) {
  .admin-table--users th,
  .admin-table--users td {
    padding-inline: 0.55rem;
    font-size: 0.76rem;
  }

  .admin-table--users th:nth-child(7),
  .admin-table--users td:nth-child(7) {
    display: none;
  }
}

@media (max-width: 1100px) {
  .users-filter__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .users-filter__actions {
    grid-column: 1 / -1;
  }

  .admin-table--users,
  .admin-table--users tbody,
  .admin-table--users tr,
  .admin-table--users td {
    display: block;
    width: 100%;
  }

  .admin-table--users thead {
    display: none;
  }

  .admin-table--users tbody {
    display: grid;
    gap: 0.8rem;
  }

  .admin-table--users tr {
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(103, 248, 255, 0.16);
    border-radius: 12px;
    background: rgba(6, 12, 24, 0.58);
  }

  .admin-table--users td,
  .admin-table--users td:first-child,
  .admin-table--users td:nth-child(7) {
    display: grid;
    grid-template-columns: minmax(90px, 0.35fr) minmax(0, 1fr);
    gap: 0.7rem;
    min-width: 0;
    padding: 0.35rem 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .admin-table--users td::before {
    content: attr(data-label);
    color: rgba(227, 246, 255, 0.58);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .admin-table--users .admin-actions {
    align-items: center;
  }

  .admin-actions .admin-action-select {
    width: min(100%, 220px);
  }

}

.hub-dialog {
  width: min(92vw, 500px);
  max-width: 500px;
  padding: 0;
  color: var(--text-primary);
  background: transparent;
  border: 0;
}

.hub-dialog::backdrop {
  background: rgba(2, 6, 18, 0.78);
  backdrop-filter: blur(7px);
}

.hub-dialog__panel {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(103, 248, 255, 0.24);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(12, 25, 47, 0.99), rgba(5, 11, 22, 0.99));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.62);
}

.hub-dialog__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.hub-dialog__head h3 {
  margin: 0.22rem 0 0;
}

.hub-dialog__eyebrow {
  color: var(--neon-cyan);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hub-dialog__close {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  color: var(--text-muted);
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(103, 248, 255, 0.14);
  border-radius: 9px;
  cursor: pointer;
}

.hub-dialog__note {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.hub-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

@media (max-width: 520px) {
  .hub-dialog__actions {
    flex-direction: column-reverse;
  }

  .hub-dialog__actions .btn {
    width: 100%;
  }
}

.users-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.users-bar__right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.users-per-page {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.users-per-page .form-control {
  width: auto;
  min-width: 70px;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
}

.users-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 16px;
  background: rgba(6, 12, 24, 0.5);
  border: 1px solid rgba(103, 248, 255, 0.1);
}

.users-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(103, 248, 255, 0.25);
  background: rgba(6, 12, 24, 0.6);
  color: var(--text-primary);
  font-size: 0.82rem;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  min-width: 36px;
  line-height: 1;
}

.users-pagination__btn:hover {
  border-color: rgba(103, 248, 255, 0.6);
  background: rgba(6, 12, 24, 0.85);
}

.users-pagination__btn--active {
  border-color: var(--neon-cyan);
  background: rgba(103, 248, 255, 0.15);
  box-shadow: 0 0 14px rgba(103, 248, 255, 0.3);
  font-weight: 700;
}

.users-pagination__btn--disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.users-pagination__ellipsis {
  padding: 0 0.15rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .admin-sso-intro,
  .admin-sso-create__head {
    flex-direction: column;
  }

  .admin-sso-create__form {
    grid-template-columns: 1fr;
  }

  .admin-sso-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .admin-sso-card {
    min-height: 0;
  }

  .monitor-pop-card.admin-sso-card {
    min-height: 0;
  }

  .admin-sso-facts {
    grid-template-columns: 1fr;
  }

  .admin-sso-form__actions {
    flex-direction: column;
  }

  .admin-sso-form__actions .btn,
  .admin-sso-create__form .btn {
    width: 100%;
  }

  .admin-domain-editor__controls {
    grid-template-columns: 1fr;
  }

  .admin-domain-editor__controls .btn {
    width: 100%;
  }

  .users-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .users-bar__right {
    justify-content: center;
  }

  .users-pagination {
    gap: 0.25rem;
    padding: 0.5rem 0.5rem;
  }

  .users-pagination__btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
    min-width: 30px;
  }
}

.hub-list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.7rem;
}

.hub-muted {
  color: var(--text-muted);
}

.country-visits__list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.42rem;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.country-visits__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(103, 248, 255, 0.14);
  border-radius: 12px;
  background: rgba(6, 12, 24, 0.52);
}

.country-visits__flag {
  width: 20px;
  height: 15px;
  border-radius: 3px;
  border: 1px solid rgba(103, 248, 255, 0.28);
  object-fit: cover;
}

.country-visits__flag--fallback {
  width: 20px;
  height: 15px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  border: 1px solid rgba(103, 248, 255, 0.28);
  background: rgba(6, 12, 24, 0.7);
}

.country-visits__name {
  color: var(--text-primary);
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-visits__count {
  color: #ffb347;
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.survey-results__list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.survey-results__item {
  display: grid;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(103, 248, 255, 0.14);
  border-radius: 12px;
  background: rgba(6, 12, 24, 0.52);
}

.survey-results__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.survey-results__flag {
  width: 20px;
  height: 15px;
  border-radius: 3px;
  border: 1px solid rgba(103, 248, 255, 0.28);
  object-fit: cover;
  flex: 0 0 auto;
}

.survey-results__flag--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  background: rgba(6, 12, 24, 0.7);
}

.survey-results__country {
  color: var(--text-primary);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.survey-results__bar {
  height: 9px;
  border-radius: 999px;
  background: rgba(103, 248, 255, 0.15);
  overflow: hidden;
}

.survey-results__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(103, 248, 255, 0.95), #54fcd6);
}

.survey-results__stats {
  color: #ffb347;
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.activity-feed {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.45rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.activity-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.48rem 0.7rem;
  border-radius: 16px;
  border: 1px solid rgba(103, 248, 255, 0.12);
  background: rgba(6, 12, 24, 0.5);
}

.activity-time {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(227, 246, 255, 0.7);
}

.activity-text {
  font-size: 0.9rem;
  color: rgba(227, 246, 255, 0.9);
  word-break: break-word;
}

.activity-filter {
  margin-bottom: 0.9rem;
  max-width: 820px;
}

.activity-filter__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
}

.activity-filter__field {
  flex: 1 1 140px;
  min-width: 0;
}

.activity-filter__field--username {
  flex: 1 1 160px;
}

.activity-filter__field--date {
  flex: 1 1 170px;
}

.activity-filter__actions {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  flex: 0 0 auto;
}

.activity-filter .form-control {
  width: 100%;
  min-width: 0;
}

/* ── Activity table ── */
.activity-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.admin-table--activity {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8rem;
}

.admin-table--activity thead th {
  position: sticky;
  top: 0;
  background: rgba(6, 12, 24, 0.96);
  backdrop-filter: blur(8px);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(103, 248, 255, 0.8);
  font-weight: 600;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(103, 248, 255, 0.15);
  white-space: nowrap;
}

.admin-table--activity tbody tr {
  transition: background 0.15s ease;
}

.admin-table--activity tbody tr:hover {
  background: rgba(103, 248, 255, 0.04);
}

.admin-table--activity tbody tr + tr:not(.activity-detail-row) {
  border-top: 1px solid rgba(103, 248, 255, 0.06);
}

.admin-table--activity th,
.admin-table--activity td {
  padding: 0.6rem 0.85rem;
  vertical-align: top;
}

.admin-table--activity th:nth-child(1),
.admin-table--activity td:nth-child(1) {
  min-width: 145px;
  white-space: nowrap;
}

.admin-table--activity th:nth-child(2),
.admin-table--activity td:nth-child(2) {
  min-width: 150px;
}

.admin-table--activity th:nth-child(3),
.admin-table--activity td:nth-child(3) {
  min-width: 110px;
}

.admin-table--activity th:nth-child(4),
.admin-table--activity td:nth-child(4) {
  min-width: 100px;
}

.admin-table--activity th:nth-child(5),
.admin-table--activity td:nth-child(5) {
  min-width: 180px;
}

.admin-table--activity th:nth-child(6),
.admin-table--activity td:nth-child(6) {
  min-width: 90px;
  text-align: center;
  white-space: nowrap;
}

/* Timestamp styling */
.activity-main-row .activity-time {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(227, 246, 255, 0.65);
  white-space: nowrap;
}

/* Make activity table full-width */
.activity-table-wrap.info-card {
  max-width: none;
}

/* Event badge */
.admin-table--activity td:nth-child(3) {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #67f8ff;
  white-space: nowrap;
}

/* POP cell */
.admin-table--activity td:nth-child(4) {
  font-size: 0.78rem;
  color: rgba(227, 246, 255, 0.8);
}

/* Summary cell */
.admin-table--activity td:nth-child(5) {
  font-size: 0.78rem;
  color: rgba(227, 246, 255, 0.75);
  word-break: break-word;
}

.activity-username {
  color: #ffb347;
  font-weight: 600;
}

/* Detail expand row */
.activity-details-cell {
  text-align: center;
}

.activity-detail-row > td {
  padding: 0 0.85rem 0.75rem;
}

.activity-detail-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  text-align: left;
}

.activity-raw {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(8, 16, 30, 0.92),
    rgba(6, 13, 24, 0.9)
  );
  border: 1px solid rgba(103, 248, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(103, 248, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.22);
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: clamp(0.72rem, 0.7vw, 0.82rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: rgba(227, 246, 255, 0.95);
  width: 100%;
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
}

.activity-filter__row {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
  column-gap: 1rem;
  row-gap: 0.85rem;
  align-items: end;
}

.activity-filter__actions {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  margin-left: 2rem;
}

.activity-filter .form-control {
  width: 100%;
  min-width: 0;
}

.activity-filter__field {
  min-width: 0;
}

.activity-filter__field--username {
  max-width: 180px;
}

.activity-filter__field--date {
  max-width: 250px;
}

.activity-table-wrap {
  overflow: auto;
}

.admin-table--activity th,
.admin-table--activity td {
  vertical-align: top;
}

.admin-table--activity th:nth-child(1),
.admin-table--activity td:nth-child(1) {
  min-width: 150px;
}

.admin-table--activity th:nth-child(2),
.admin-table--activity td:nth-child(2) {
  min-width: 180px;
}

.admin-table--activity th:nth-child(3),
.admin-table--activity td:nth-child(3) {
  min-width: 130px;
}

.admin-table--activity th:nth-child(4),
.admin-table--activity td:nth-child(4) {
  min-width: 130px;
}

.admin-table--activity th:nth-child(5),
.admin-table--activity td:nth-child(5) {
  min-width: 250px;
}

.admin-table--activity th:nth-child(6),
.admin-table--activity td:nth-child(6) {
  min-width: 220px;
  overflow: visible;
}

.activity-details-cell {
  text-align: center;
  white-space: nowrap;
}

.activity-username {
  color: #ffb347;
}

.activity-detail-row > td {
  padding-top: 0.1rem;
  padding-bottom: 0.8rem;
}

.activity-detail-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  text-align: left;
}

.activity-raw {
  margin: 0;
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(8, 16, 30, 0.92),
    rgba(6, 13, 24, 0.9)
  );
  border: 1px solid rgba(103, 248, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(103, 248, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.22);
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: clamp(0.74rem, 0.7vw, 0.84rem);
  line-height: 1.52;
  letter-spacing: 0.01em;
  color: rgba(227, 246, 255, 0.95);
  text-align: left;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: anywhere;
  tab-size: 2;
  display: block;
  width: min(1040px, 100%);
  max-width: 40%;
  margin-right: auto;
  max-height: 480px;
  overflow: auto;
}

.explore-panel {
  display: grid;
  gap: 0.85rem;
}

.explore-form {
  margin-top: 0.2rem;
}

.explore-form__row {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(240px, 1.2fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.explore-form .form-control {
  width: 100%;
  min-width: 0;
}

.explore-form__actions {
  display: inline-flex;
  align-items: center;
}

.explore-result {
  margin-top: 0.15rem;
}

.explore-output {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(103, 248, 255, 0.22);
  background: rgba(6, 12, 24, 0.58);
  color: rgba(227, 246, 255, 0.96);
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 480px;
  overflow: auto;
}

.explore-output--muted {
  color: #ffb347;
}

.info-card--wide {
  max-width: none;
}

.bgp-status-card {
  display: grid;
  gap: 0.9rem;
}

.bgp-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 0.6rem;
}

.bgp-kpi {
  border: 1px solid rgba(103, 248, 255, 0.16);
  background: rgba(6, 12, 24, 0.52);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  display: grid;
  gap: 0.15rem;
}

.bgp-kpi span {
  color: rgba(227, 246, 255, 0.7);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bgp-kpi strong {
  color: #44ffb4;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.bgp-kpi--bad strong {
  color: #ff7f7f;
}

.bgp-pop-grid {
  display: grid;
  gap: 0.65rem;
}

.monitor-card {
  display: grid;
  gap: 1rem;
}

.monitor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.monitor-sync-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.4rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(103, 248, 255, 0.18);
  background: rgba(6, 12, 24, 0.56);
  color: rgba(227, 246, 255, 0.82);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.monitor-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.monitor-kpi {
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(103, 248, 255, 0.12);
  background: rgba(6, 12, 24, 0.56);
  display: grid;
  gap: 0.25rem;
}

.monitor-kpi span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(227, 246, 255, 0.72);
}

.monitor-kpi strong {
  color: #d8fbff;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.monitor-kpi--ok strong {
  color: #44ffb4;
}

.monitor-kpi--warn strong {
  color: #ffcf6f;
}

.monitor-kpi--bad strong {
  color: #ff8f8f;
}

.monitor-region-stack {
  display: grid;
  gap: 1rem;
}

.monitor-region {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1rem 1rem 1.15rem;
  border-radius: 20px;
  border: 1px solid rgba(103, 248, 255, 0.1);
  border-left: 3px solid rgba(103, 248, 255, 0.45);
  background: rgba(6, 12, 24, 0.42);
}

.monitor-region--europe {
  border-left-color: #67f8ff;
}
.monitor-region--mea {
  border-left-color: #ffcf6f;
}
.monitor-region--na {
  border-left-color: #44ffb4;
}
.monitor-region--sa {
  border-left-color: #ff8f8f;
}
.monitor-region--apac {
  border-left-color: #c6a6ff;
}

.monitor-region__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(103, 248, 255, 0.08);
}

.monitor-region__heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.monitor-region__heading h3 {
  margin: 0;
  color: #f4fbff;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
}

.monitor-region__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: rgba(103, 248, 255, 0.8);
  box-shadow: 0 0 10px rgba(103, 248, 255, 0.55);
}

.monitor-region__dot--europe {
  background: #67f8ff;
  box-shadow: 0 0 10px rgba(103, 248, 255, 0.6);
}
.monitor-region__dot--mea {
  background: #ffcf6f;
  box-shadow: 0 0 10px rgba(255, 207, 111, 0.6);
}
.monitor-region__dot--na {
  background: #44ffb4;
  box-shadow: 0 0 10px rgba(68, 255, 180, 0.6);
}
.monitor-region__dot--sa {
  background: #ff8f8f;
  box-shadow: 0 0 10px rgba(255, 143, 143, 0.6);
}
.monitor-region__dot--apac {
  background: #c6a6ff;
  box-shadow: 0 0 10px rgba(198, 166, 255, 0.6);
}

.monitor-region__count {
  color: rgba(227, 246, 255, 0.6);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding-left: 0.55rem;
  margin-left: 0.1rem;
  border-left: 1px solid rgba(103, 248, 255, 0.16);
}

.monitor-region__summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.monitor-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}

.monitor-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.monitor-chip--ok {
  color: #44ffb4;
  background: rgba(68, 255, 180, 0.1);
  border-color: rgba(68, 255, 180, 0.24);
}

.monitor-chip--warn {
  color: #ffcf6f;
  background: rgba(255, 207, 111, 0.1);
  border-color: rgba(255, 207, 111, 0.26);
}

.monitor-chip--down {
  color: #ff8f8f;
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.28);
}

.monitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.9rem;
  align-items: stretch;
}

.monitor-pop-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.85rem;
  padding: 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(103, 248, 255, 0.12);
  background: rgba(8, 16, 30, 0.82);
  box-shadow: inset 0 0 0 1px rgba(103, 248, 255, 0.04);
  width: 100%;
  height: 100%;
  min-height: 356px;
}

.monitor-pop-card--warn {
  border-color: rgba(255, 179, 71, 0.24);
}

.monitor-pop-card--down {
  border-color: rgba(255, 107, 107, 0.26);
}

.monitor-pop-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.monitor-pop-status {
  display: inline-grid;
  gap: 0.35rem;
  justify-items: end;
}

.monitor-pop-title {
  min-width: 0;
  display: grid;
  gap: 0.22rem;
}

.monitor-pop-name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.monitor-pop-name strong {
  color: #f4fbff;
  font-size: 0.95rem;
  line-height: 1.35;
}

.monitor-pop-flag {
  font-size: 1rem;
  line-height: 1;
  flex: 0 0 auto;
}

.monitor-pop-location {
  margin: 0;
  color: rgba(227, 246, 255, 0.64);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.monitor-pop-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.14rem 0.45rem;
  border: 1px solid rgba(255, 179, 71, 0.24);
  color: #ffcf6f;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.monitor-metric-grid {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  align-content: stretch;
  min-height: 214px;
}

.monitor-metric {
  display: grid;
  gap: 0.34rem;
  padding: 0.72rem 0.78rem;
  border-radius: 14px;
  border: 1px solid rgba(103, 248, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

.monitor-metric--warn {
  border-color: rgba(255, 179, 71, 0.22);
}

.monitor-metric--down {
  border-color: rgba(255, 107, 107, 0.24);
}

.monitor-metric__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.65rem;
}

.monitor-metric__top span {
  color: rgba(227, 246, 255, 0.74);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.monitor-metric__top strong {
  color: #d8fbff;
  font-family: var(--font-display);
  font-size: 0.84rem;
  text-align: right;
}

.monitor-metric__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(103, 248, 255, 0.12);
  overflow: hidden;
}

.monitor-metric__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(68, 255, 180, 0.95), rgba(103, 248, 255, 0.95));
}

.monitor-metric--warn .monitor-metric__bar span {
  background: linear-gradient(90deg, rgba(255, 207, 111, 0.95), rgba(255, 179, 71, 0.95));
}

.monitor-metric--down .monitor-metric__bar span {
  background: linear-gradient(90deg, rgba(255, 143, 143, 0.95), rgba(255, 107, 107, 0.95));
}

.monitor-metric__note {
  margin: 0;
  color: rgba(227, 246, 255, 0.66);
  font-size: 0.75rem;
}

.monitor-pop-error {
  margin: auto 0 0;
  padding: 0.78rem 0.82rem;
  border-radius: 14px;
  color: #ff9b9b;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.18);
  font-size: 0.8rem;
  line-height: 1.45;
  min-height: 214px;
  display: flex;
  align-items: flex-start;
}

.bgp-pop-card {
  border: 1px solid rgba(103, 248, 255, 0.16);
  border-radius: 12px;
  background: rgba(6, 12, 24, 0.46);
  overflow: hidden;
}

.bgp-pop-summary {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.72rem 0.85rem;
  cursor: pointer;
  list-style: none;
}

.bgp-pop-summary::-webkit-details-marker {
  display: none;
}

.bgp-pop-title {
  display: grid;
  gap: 0.32rem;
  min-width: 0;
}

.bgp-pop-head {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
}

.bgp-pop-title strong {
  color: var(--text-primary);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.bgp-pop-flag {
  font-size: 1rem;
  line-height: 1;
  flex: 0 0 auto;
}

.bgp-health-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(103, 248, 255, 0.2);
  padding: 0.14rem 0.48rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bgp-health-badge--ok {
  color: #44ffb4;
  border-color: rgba(68, 255, 180, 0.35);
}

.bgp-health-badge--warn {
  color: #ffcf6f;
  border-color: rgba(255, 179, 71, 0.35);
}

.bgp-health-badge--down {
  color: #ff8f8f;
  border-color: rgba(255, 127, 127, 0.4);
}

.bgp-health-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(68, 255, 180, 0.5);
  animation: bgpPulse 1.6s ease-out infinite;
}

.bgp-health-dot--ok {
  background: #44ffb4;
  box-shadow: 0 0 0 0 rgba(68, 255, 180, 0.55);
}

.bgp-health-dot--warn {
  background: #ffb347;
  box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.55);
}

.bgp-health-dot--down {
  background: #ff6b6b;
  box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.55);
}

@keyframes bgpPulse {
  0% {
    transform: scale(0.92);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(68, 255, 180, 0);
  }
  100% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(68, 255, 180, 0);
  }
}

.bgp-pop-resume {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  color: rgba(227, 246, 255, 0.82);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.bgp-pop-resume strong {
  color: #d8fbff;
  font-family: var(--font-display);
  font-size: 0.78rem;
}

.bgp-pop-reach {
  border-radius: 999px;
  padding: 0.14rem 0.45rem;
  border: 1px solid rgba(103, 248, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
}

.bgp-pop-reach--ok {
  color: #44ffb4;
  border-color: rgba(68, 255, 180, 0.35);
}

.bgp-pop-reach--bad {
  color: #ff8f8f;
  border-color: rgba(255, 127, 127, 0.35);
}

.bgp-pop-metrics {
  display: inline-flex;
  gap: 0.25rem;
  justify-content: flex-end;
  align-items: center;
}

.bgp-pill {
  border: 1px solid rgba(103, 248, 255, 0.2);
  border-radius: 999px;
  padding: 0.16rem 0.44rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(227, 246, 255, 0.76);
}

.bgp-pop-card[open] .bgp-pop-summary {
  border-bottom: 1px solid rgba(103, 248, 255, 0.14);
}

.bgp-sessions-wrap {
  overflow: auto;
}

.admin-table--bgp th:nth-child(1),
.admin-table--bgp td:nth-child(1) {
  min-width: 190px;
  text-align: left;
}

.admin-table--bgp th:nth-child(2),
.admin-table--bgp td:nth-child(2) {
  min-width: 90px;
}

.admin-table--bgp th:nth-child(3),
.admin-table--bgp td:nth-child(3) {
  min-width: 220px;
}

.admin-table--bgp th:nth-child(4),
.admin-table--bgp td:nth-child(4) {
  min-width: 95px;
}

.bgp-row--bad {
  background: rgba(255, 90, 90, 0.06);
}

.bgp-state {
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bgp-state--ok {
  border-color: rgba(68, 255, 180, 0.35);
  color: #44ffb4;
}

.bgp-state--bad {
  border-color: rgba(255, 127, 127, 0.35);
  color: #ff8f8f;
}

.bgp-pop-error {
  margin: 0;
  padding: 0.7rem 0.8rem 0.8rem;
  color: #ff8f8f;
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 127, 127, 0.2);
}

@media (max-width: 768px) {
  .activity-feed {
    max-height: 320px;
  }

  .activity-item {
    grid-template-columns: 1fr;
  }

  .users-filter__row {
    grid-template-columns: 1fr;
  }

  .users-filter__actions {
    justify-content: flex-start;
  }

  /* Activity filter stacks vertically */
  .activity-filter__row {
    flex-direction: column;
    gap: 0.65rem;
  }

  .activity-filter__field {
    flex: 1 1 auto;
    width: 100%;
  }

  .activity-filter__actions {
    justify-content: flex-start;
    width: 100%;
  }

  .activity-filter .form-control {
    width: 100%;
    min-width: 0;
  }

  /* Activity table → card layout */
  .admin-table--activity,
  .admin-table--activity thead,
  .admin-table--activity tbody,
  .admin-table--activity tr,
  .admin-table--activity th,
  .admin-table--activity td {
    display: block;
  }

  .admin-table--activity thead {
    display: none;
  }

  .admin-table--activity tbody tr.activity-main-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.5rem;
    background: rgba(6, 12, 24, 0.6);
    border: 1px solid rgba(103, 248, 255, 0.1);
    border-radius: 16px;
    position: relative;
  }

  .admin-table--activity tbody tr.activity-main-row + tr.activity-detail-row {
    margin-top: -0.35rem;
    margin-bottom: 0.5rem;
  }

  .admin-table--activity td {
    min-width: 0 !important;
    padding: 0;
    border: none;
    text-align: left;
  }

  /* Label each cell via data attribute simulation using CSS */
  .admin-table--activity td:nth-child(1)::before {
    content: "Timestamp";
  }
  .admin-table--activity td:nth-child(2)::before {
    content: "User";
  }
  .admin-table--activity td:nth-child(3)::before {
    content: "Event";
  }
  .admin-table--activity td:nth-child(4)::before {
    content: "PoP";
  }
  .admin-table--activity td:nth-child(5)::before {
    content: "Summary";
  }

  .admin-table--activity td::before {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(103, 248, 255, 0.55);
    margin-bottom: 0.1rem;
  }

  .admin-table--activity td:nth-child(6)::before {
    display: none;
  }

  .activity-detail-row td::before {
    display: none;
  }

  .admin-table--activity td:nth-child(6) {
    text-align: left;
  }

  .activity-main-row .activity-time {
    font-size: 0.68rem;
  }

  .activity-detail-row > td {
    padding: 0 0.85rem 0.65rem;
  }

  .monitor-head,
  .monitor-region__header,
  .monitor-pop-head {
    grid-template-columns: 1fr;
  }

  .monitor-head,
  .monitor-region__header,
  .monitor-pop-head {
    display: grid;
    align-items: start;
  }

  .monitor-sync-badge {
    width: 100%;
  }

  .monitor-kpis,
  .monitor-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .monitor-region {
    padding: 0.85rem;
  }

  .monitor-pop-card {
    min-height: 0;
    padding: 0.85rem;
  }

  .monitor-metric__top {
    grid-template-columns: 1fr;
    display: grid;
  }

  .activity-raw {
    width: 100%;
    max-width: 100%;
    max-height: 320px;
    font-size: 0.72rem;
    line-height: 1.45;
    padding: 0.7rem 0.85rem;
  }

  .explore-form__row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .explore-form__actions {
    width: 100%;
  }

  .country-visits__list {
    max-height: 220px;
  }

  .survey-results__list {
    max-height: 320px;
  }

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

  .bgp-pop-summary {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .bgp-pop-metrics {
    justify-content: flex-start;
  }

  .bgp-pop-head {
    gap: 0.35rem;
  }

  .bgp-pop-title strong {
    font-size: 0.88rem;
  }

  .bgp-pop-resume {
    gap: 0.32rem;
    font-size: 0.73rem;
  }

  .bgp-pop-reach {
    font-size: 0.62rem;
  }

  .bgp-health-badge {
    margin-left: 0;
    font-size: 0.64rem;
  }
}

/* Mobile navigation in Hub follows the same navbar+hamburger behavior used in Users. */

/* ── Charts ── */
.chart-kpi-row {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.chart-kpi {
  flex: 1;
  min-width: 0;
  background: rgba(6, 12, 24, 0.72);
  border: 1px solid rgba(103, 248, 255, 0.16);
  border-radius: 22px;
  padding: 1rem 1.2rem;
  display: grid;
  gap: 0.25rem;
  text-align: center;
  backdrop-filter: blur(12px);
}

.chart-kpi__value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #67f8ff;
  line-height: 1.1;
  font-family: var(--font-display, 'Inter', sans-serif);
}

.chart-kpi__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(227, 246, 255, 0.56);
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.chart-card {
  background: rgba(6, 12, 24, 0.72);
  border: 1px solid rgba(103, 248, 255, 0.16);
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.chart-card--wide {
  grid-column: 1 / -1;
}

.chart-card__head {
  padding: 0.85rem 1.1rem 0;
}

.chart-card__head h3 {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(103, 248, 255, 0.84);
  font-family: var(--font-display, 'Inter', sans-serif);
}

.chart-card__body {
  padding: 0.6rem 0.6rem 0.4rem;
  height: 200px;
  position: relative;
}

.chart-card__body canvas {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 900px) {
  .chart-kpi-row {
    flex-wrap: wrap;
  }
  .chart-kpi {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 120px;
  }
  .chart-grid {
    grid-template-columns: 1fr;
  }
  .chart-card__body {
    height: 180px;
  }
}

@media (max-width: 640px) {
  .chart-kpi-row {
    gap: 0.6rem;
  }
  .chart-kpi {
    padding: 0.75rem 0.8rem;
  }
  .chart-kpi__value {
    font-size: 1.4rem;
  }
  .chart-grid {
    gap: 0.75rem;
  }
  .chart-card__body {
    height: 160px;
    padding: 0.4rem 0.4rem 0.3rem;
  }
  .chart-card__head {
    padding: 0.65rem 0.85rem 0;
  }
  .chart-card__head h3 {
    font-size: 0.75rem;
  }
}

/* ══════════ Hub home dashboard ══════════ */
.hub-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1.6rem;
}

.hub-head__eyebrow {
  display: block;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(103, 248, 255, 0.62);
  margin-bottom: 0.45rem;
}

.hub-head__title {
  margin: 0;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  color: var(--text-primary, #e3f6ff);
}

.hub-head__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(227, 246, 255, 0.55);
}

.hub-head__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-mint, #44ffb4);
  animation: hubPulse 2.4s ease-out infinite;
}

@keyframes hubPulse {
  0%   { box-shadow: 0 0 0 0 rgba(68, 255, 180, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(68, 255, 180, 0); }
  100% { box-shadow: 0 0 0 0 rgba(68, 255, 180, 0); }
}

/* KPI cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.kpi-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon value"
    "icon label"
    "delta delta";
  align-items: center;
  gap: 0.1rem 0.95rem;
  padding: 1.15rem 1.25rem;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(9, 17, 32, 0.9), rgba(6, 12, 24, 0.72));
  border: 1px solid rgba(103, 248, 255, 0.14);
  backdrop-filter: blur(12px);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--kpi-accent, #67f8ff);
  box-shadow: 0 0 18px var(--kpi-accent, #67f8ff);
}

.kpi-card:hover {
  transform: translateY(-3px);
  border-color: var(--kpi-accent, #67f8ff);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.kpi-card__icon {
  grid-area: icon;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--kpi-accent, #67f8ff);
  background: rgba(103, 248, 255, 0.08);
  border: 1px solid rgba(103, 248, 255, 0.22);
}

.kpi-card__icon svg {
  width: 22px;
  height: 22px;
}

.kpi-card__value {
  grid-area: value;
  align-self: end;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary, #e3f6ff);
}

.kpi-card__label {
  grid-area: label;
  align-self: start;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(227, 246, 255, 0.55);
}

.kpi-card__delta {
  grid-area: delta;
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.74rem;
  color: rgba(227, 246, 255, 0.68);
}

.kpi-card__delta--up {
  color: var(--neon-mint, #44ffb4);
}

.kpi-card--cyan  { --kpi-accent: #67f8ff; }
.kpi-card--mint  { --kpi-accent: #44ffb4; }
.kpi-card--amber { --kpi-accent: #ffb347; }
.kpi-card--pink  { --kpi-accent: #ff76d6; }

/* Chart card hover polish */
.chart-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.chart-card:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 248, 255, 0.32);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

/* Bottom info cards row */
.hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.hub-card {
  max-width: none;
  margin: 0;
}

.hub-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.hub-card__head h3 {
  margin: 0;
}

.hub-badge {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.78rem;
  min-width: 1.8rem;
  text-align: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.hub-badge--ok {
  color: var(--neon-mint, #44ffb4);
  background: rgba(68, 255, 180, 0.12);
  border: 1px solid rgba(68, 255, 180, 0.3);
}

.hub-badge--warn {
  color: var(--warning, #ffb347);
  background: rgba(255, 179, 71, 0.14);
  border: 1px solid rgba(255, 179, 71, 0.35);
}

@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .hub-head {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-head__dot {
    animation: none;
  }
  .kpi-card,
  .chart-card {
    transition: none;
  }
}

.activity-detail-card {
  width: 100%;
  display: grid;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(8, 16, 30, 0.92), rgba(6, 13, 24, 0.9));
  border: 1px solid rgba(103, 248, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(103, 248, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.activity-detail-section {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.activity-detail-section h4 {
  margin: 0;
  color: #ffb347;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.activity-detail-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem 0.8rem;
  min-width: 0;
}

.activity-detail-item {
  min-width: 0;
  padding: 0.72rem 0.78rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.14);
  display: grid;
  gap: 0.28rem;
  align-content: start;
}

.activity-detail-item dt {
  margin: 0 0 0.22rem;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.activity-detail-item dd {
  margin: 0;
  color: rgba(227, 246, 255, 0.96);
  font-size: 0.84rem;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.activity-detail-grid--overview {
  grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
  justify-content: start;
}

.activity-detail-grid--signals {
  grid-template-columns: repeat(auto-fit, minmax(120px, max-content));
  justify-content: start;
  align-items: start;
}

.activity-detail-grid--network,
.activity-detail-grid--ops {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.activity-detail-item--summary {
  background: rgba(103, 248, 255, 0.08);
  border-color: rgba(103, 248, 255, 0.18);
}

.activity-detail-item--summary dt {
  color: rgba(103, 248, 255, 0.9);
}

.activity-detail-item--summary dd {
  font-size: 0.88rem;
  font-weight: 600;
}

.activity-detail-item--badge {
  width: fit-content;
  max-width: 100%;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  background: rgba(103, 248, 255, 0.08);
  border-color: rgba(103, 248, 255, 0.18);
}

.activity-detail-item--badge dt {
  margin: 0 0 0.12rem;
}

.activity-detail-item--badge dd {
  font-size: 0.8rem;
  font-weight: 600;
}

.activity-detail-item--block {
  grid-column: 1 / -1;
  background: rgba(6, 12, 24, 0.58);
}

.activity-detail-item--mono dd,
.activity-detail-item--ip dd,
.activity-detail-item--prefix dd,
.activity-detail-item--endpoint dd,
.activity-detail-item--from dd,
.activity-detail-item--to dd,
.activity-detail-item--tunnel_id dd,
.activity-detail-item--asn dd,
.activity-detail-item--record_id dd,
.activity-detail-item--queue_id dd,
.activity-detail-item--execute_after dd {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
}

.activity-detail-item--user_agent dd {
  font-size: 0.78rem;
  line-height: 1.5;
}

.activity-detail-item--email dd,
.activity-detail-item--username dd {
  font-weight: 600;
}

.activity-detail-item--reason dd {
  color: #ffb347;
}

.activity-detail-item--result dd {
  color: #67f8ff;
}

.activity-detail-item--enabled_at_login dd {
  color: #44ffb4;
}

.activity-detail-item--missing_fields dd {
  color: #ff8f8f;
}

@media (max-width: 768px) {
  .alert--actionable {
    align-items: flex-start;
  }

  .alert__actions {
    width: 100%;
  }

  .activity-detail-card {
    padding: 0.85rem 0.9rem;
  }

  .activity-detail-grid,
  .activity-detail-grid--overview,
  .activity-detail-grid--signals,
  .activity-detail-grid--network,
  .activity-detail-grid--ops {
    grid-template-columns: 1fr;
  }

  .activity-detail-item {
    padding: 0.6rem 0.7rem;
  }

  .activity-detail-item--badge {
    width: 100%;
    border-radius: 14px;
  }
}
