:root {
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-soft: #eef7f7;
  --ink: #101820;
  --muted: #657582;
  --line: #dbe6eb;
  --primary: #087f8c;
  --primary-2: #10a0ad;
  --primary-dark: #055f68;
  --mint: #16a085;
  --coral: #e85d4a;
  --gold: #f3b94f;
  --danger: #c83d3d;
  --shadow: 0 18px 46px rgba(20, 36, 52, 0.1);
  --shadow-deep: 0 26px 70px rgba(3, 12, 20, 0.22);
  --radius: 12px;
  font-family:
    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(8, 127, 140, 0.09), transparent 320px),
    var(--bg);
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(8, 127, 140, 0.16), transparent 34%),
    linear-gradient(180deg, #f8fbfc, #edf4f6);
}

.login-shell {
  width: min(100%, 420px);
}

.login-card {
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 252, 0.92)),
    var(--surface);
  box-shadow: var(--shadow-deep);
}

.login-brand,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand {
  width: 100%;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 56%, var(--primary-2));
  box-shadow: 0 12px 24px rgba(8, 127, 140, 0.22);
  font-weight: 950;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
  padding: 6px;
  border: 1px solid rgba(8, 127, 140, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(8, 127, 140, 0.14);
}

.login-brand strong,
.brand strong {
  display: block;
  line-height: 1.05;
}

.login-brand small,
.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.login-copy {
  margin-top: 32px;
}

.top-kicker {
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-copy h1,
.admin-topbar h1,
.panel h2 {
  margin: 0;
  letter-spacing: 0;
}

.login-copy h1 {
  margin-top: 8px;
  font-size: 2rem;
  line-height: 1.05;
}

.login-copy p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-form,
.admin-form {
  display: grid;
  gap: 14px;
}

.auth-form {
  margin-top: 24px;
}

.auth-form label,
.admin-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.auth-form label span,
.admin-form label span {
  color: #344653;
  font-size: 0.82rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  background: #f4f8f9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

textarea {
  min-height: 118px;
  line-height: 1.45;
  resize: vertical;
}

input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--primary);
  box-shadow: none;
}

input[type="file"] {
  padding: 10px;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 10px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  font-weight: 900;
  cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(8, 127, 140, 0.1),
    0 10px 22px rgba(8, 127, 140, 0.08);
}

dialog {
  border: 0;
}

dialog::backdrop {
  background: rgba(7, 18, 25, 0.44);
  backdrop-filter: blur(6px);
}

.primary-button,
.soft-button,
.danger-button,
.logout-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 950;
  white-space: nowrap;
}

.primary-button {
  padding: 12px 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 56%, var(--primary-2));
  box-shadow: 0 16px 28px rgba(8, 127, 140, 0.24);
}

.soft-button {
  padding: 10px 12px;
  color: var(--primary-dark);
  background: rgba(8, 127, 140, 0.1);
}

.danger-button {
  padding: 10px 12px;
  color: var(--danger);
  background: rgba(200, 61, 61, 0.1);
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.soft-button + .inline-form {
  margin-left: 7px;
}

.compact-button {
  min-height: 34px;
  padding: 8px 10px;
}

.logout-button {
  width: 100%;
  padding: 10px 12px;
  color: #ffffff;
  background: var(--ink);
}

.login-hint {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

code {
  padding: 2px 5px;
  border-radius: 7px;
  color: var(--primary-dark);
  background: rgba(8, 127, 140, 0.1);
}

.notice {
  display: grid;
  gap: 4px;
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 850;
}

.notice.success {
  color: #075c4d;
  background: rgba(22, 160, 133, 0.12);
}

.notice.danger {
  color: var(--danger);
  background: rgba(200, 61, 61, 0.1);
}

.admin-toast-stack {
  position: fixed;
  z-index: 120;
  top: 18px;
  right: 18px;
  width: min(360px, calc(100vw - 28px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.admin-realtime-toast {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 252, 0.94)),
    #ffffff;
  box-shadow: 0 22px 56px rgba(7, 18, 25, 0.22);
  pointer-events: auto;
  animation: admin-toast-in 180ms ease-out both;
}

.admin-realtime-toast.is-leaving {
  animation: admin-toast-out 180ms ease-in both;
}

.admin-realtime-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 12px 24px rgba(8, 127, 140, 0.18);
  font-weight: 950;
}

.admin-realtime-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-realtime-copy strong,
.admin-realtime-copy span,
.admin-realtime-copy small {
  display: block;
}

.admin-realtime-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.24;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-realtime-copy span {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 780;
  line-height: 1.38;
}

.admin-realtime-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-realtime-close {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: rgba(20, 36, 52, 0.06);
  font-weight: 950;
}

@keyframes admin-toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes admin-toast-out {
  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 26px;
  padding: 22px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    #071219;
}

.sidebar .brand small {
  color: rgba(255, 255, 255, 0.58);
}

.side-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.side-nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.side-nav a > span:first-child {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}

.side-nav a.is-active,
.side-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-footer {
  display: grid;
  gap: 10px;
}

.admin-main {
  width: min(100%, 1220px);
  padding: 26px;
}

.admin-topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-topbar h1 {
  margin-top: 6px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.admin-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(8, 127, 140, 0.1);
  font-weight: 950;
}

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

.metric-card,
.panel,
.record-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 252, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 126px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 16px;
}

.metric-card span,
.metric-card small {
  color: var(--muted);
  font-weight: 850;
}

.metric-card strong {
  display: block;
  overflow: hidden;
  font-size: 1.44rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card small {
  font-size: 0.78rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 16px;
}

.panel {
  padding: 17px;
}

.panel + .panel,
.record-list {
  margin-top: 16px;
}

.panel-header,
.record-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-header {
  margin-bottom: 15px;
}

.panel h2 {
  margin-top: 4px;
  font-size: 1.1rem;
}

.admin-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-form.compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 14px;
}

.admin-form .primary-button,
.record-actions {
  align-self: end;
}

.record-actions {
  display: flex;
  gap: 8px;
}

.record-list {
  display: grid;
  gap: 12px;
}

.record-card {
  padding: 15px;
}

.record-title strong,
.drop-mini strong {
  display: block;
}

.record-title span:not(.status),
.drop-mini span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.status {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.status.is-verified,
.status.is-success,
.status.is-active {
  color: #075c4d;
  background: rgba(22, 160, 133, 0.12);
}

.status.is-pending,
.status.is-draft {
  color: #735007;
  background: rgba(243, 185, 79, 0.18);
}

.status.is-suspended,
.status.is-failed,
.status.is-ended {
  color: var(--danger);
  background: rgba(200, 61, 61, 0.1);
}

.status.is-inactive,
.status.is-blocked {
  color: var(--danger);
  background: rgba(200, 61, 61, 0.1);
}

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

.datatable-shell {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

td {
  font-size: 0.9rem;
  font-weight: 760;
}

tr:last-child td {
  border-bottom: 0;
}

.positive {
  color: var(--mint);
}

.negative {
  color: var(--coral);
}

.empty-cell,
.empty-state {
  color: var(--muted);
  text-align: center;
}

.table-actions {
  width: 1%;
  white-space: nowrap;
}

.table-main {
  display: grid;
  gap: 4px;
}

.table-main strong {
  font-weight: 950;
}

.table-main span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
}

.review-cell {
  min-width: 178px;
  display: grid;
  gap: 4px;
}

.review-cell strong {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.35;
}

.review-cell span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 820;
}

.notification-table-copy {
  max-width: 420px;
}

.notification-table-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-recipient-field[hidden] {
  display: none;
}

.notification-filter-bar {
  grid-template-columns: minmax(220px, 280px) auto;
}

.push-health-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(218, 228, 233, 0.72);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 249, 250, 0.78)),
    #ffffff;
}

.push-health-card h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 950;
}

.push-health-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 820;
}

.push-health-metrics {
  min-width: 150px;
  display: grid;
  justify-items: end;
  gap: 5px;
}

.push-health-metrics strong {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
}

.push-health-metrics small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.table-action-stack,
.lifecycle-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.table-action-stack {
  min-width: 236px;
}

.lifecycle-approve-button {
  color: #075c4d;
  background: rgba(18, 168, 142, 0.12);
}

.tier-pill,
.tone-pill,
.type-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tier-pill.is-bronze {
  color: #8b4f22;
  background: rgba(175, 94, 44, 0.12);
}

.tier-pill.is-silver {
  color: #516371;
  background: rgba(134, 151, 166, 0.14);
}

.tier-pill.is-gold {
  color: #735007;
  background: rgba(243, 185, 79, 0.2);
}

.tier-pill.is-platinum {
  color: #075c4d;
  background: rgba(164, 242, 238, 0.28);
}

.tier-pill.is-super_admin {
  color: #064f59;
  background: rgba(8, 127, 140, 0.14);
}

.tier-pill.is-admin {
  color: #735007;
  background: rgba(243, 185, 79, 0.2);
}

.tier-pill.is-cs,
.tier-pill.is-support {
  color: #516371;
  background: rgba(134, 151, 166, 0.14);
}

.tone-pill.is-image,
.tone-pill.is-mint,
.type-pill.is-earn {
  color: #075c4d;
  background: rgba(22, 160, 133, 0.12);
}

.tone-pill.is-gold {
  color: #735007;
  background: rgba(243, 185, 79, 0.18);
}

.tone-pill.is-coral,
.type-pill.is-spend {
  color: var(--coral);
  background: rgba(232, 93, 74, 0.12);
}

.dt-container {
  color: var(--ink);
  font-family: inherit;
}

.dt-container .dt-layout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
}

.dt-container .dt-layout-row:last-child {
  margin: 14px 0 0;
}

.dt-container .dt-layout-cell {
  min-width: 0;
}

.dt-container .dt-search,
.dt-container .dt-length {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.dt-container .dt-search label,
.dt-container .dt-length label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dt-container .dt-search input,
.dt-container .dt-length select {
  min-height: 38px;
  border-color: rgba(203, 215, 222, 0.7);
  background: #ffffff;
}

.dt-container .dt-search input {
  width: min(280px, 48vw);
}

.dt-container .dt-info {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.dt-container .dt-paging {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dt-container .dt-paging .dt-paging-button {
  min-width: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: rgba(8, 127, 140, 0.08);
  font-weight: 900;
}

.dt-container .dt-paging .dt-paging-button.current,
.dt-container .dt-paging .dt-paging-button:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
}

.dt-container .dt-paging .dt-paging-button.disabled {
  color: var(--muted) !important;
  background: rgba(203, 215, 222, 0.32) !important;
  opacity: 0.6;
}

.server-table {
  min-width: 860px;
}

.server-table.dataTable > thead > tr > th {
  border-bottom: 1px solid var(--line);
}

.server-table.dataTable > tbody > tr > td {
  border-bottom: 1px solid var(--line);
}

.server-table.dataTable tbody tr:hover {
  background: rgba(8, 127, 140, 0.04);
}

.server-table th {
  position: relative;
}

.server-table th.dt-orderable-asc,
.server-table th.dt-orderable-desc,
.server-table th.is-sortable {
  cursor: pointer;
  user-select: none;
}

.server-table th.dt-orderable-asc:hover,
.server-table th.dt-orderable-desc:hover,
.server-table th.is-sortable:hover {
  color: var(--primary-dark);
}

.admin-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100dvh - 34px);
  overflow: visible;
  padding: 0;
  border-radius: 18px;
  background: transparent;
}

.dialog-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 252, 0.96)),
    var(--surface);
  box-shadow: var(--shadow-deep);
}

.dialog-header,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-header h2 {
  margin: 4px 0 0;
}

.dialog-form {
  margin-top: 16px;
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.dialog-copy {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.5;
}

.lifecycle-note-field {
  display: grid;
  gap: 7px;
  margin-top: 15px;
}

.lifecycle-note-field span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 850;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(20, 36, 52, 0.06);
  font-weight: 950;
}

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

.pending-review-panel,
.pending-transaction-panel {
  grid-column: 1 / -1;
}

.pending-user-list,
.pending-transaction-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.pending-user-card,
.pending-transaction-card {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px;
  border: 1px solid rgba(218, 228, 233, 0.76);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 249, 250, 0.76)),
    #ffffff;
}

.pending-user-meta {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.pending-user-meta strong,
.pending-user-meta span,
.pending-user-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pending-user-meta strong {
  color: var(--ink);
  font-weight: 950;
}

.pending-user-meta span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 840;
}

.pending-user-meta small {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 780;
}

.drop-mini,
.campaign-card {
  position: relative;
  overflow: hidden;
}

.drop-mini {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 58%, var(--primary-2));
}

.drop-mini small {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 950;
}

.drop-mini span {
  color: rgba(255, 255, 255, 0.75);
}

.drop-mini.is-gold,
.campaign-card.is-gold {
  background-image: linear-gradient(135deg, rgba(243, 185, 79, 0.14), rgba(255, 255, 255, 0));
}

.drop-mini.is-coral,
.campaign-card.is-coral {
  background-image: linear-gradient(135deg, rgba(232, 93, 74, 0.14), rgba(255, 255, 255, 0));
}

.drop-mini.is-image,
.campaign-card.is-image {
  background-image: linear-gradient(135deg, rgba(8, 127, 140, 0.12), rgba(243, 185, 79, 0.1));
}

/* Premium refresh */
:root {
  --bg: #eef4f5;
  --surface: #ffffff;
  --surface-soft: #f5f9fa;
  --ink: #111820;
  --ink-soft: #2c3a45;
  --muted: #6d7c87;
  --line: rgba(194, 207, 215, 0.72);
  --primary: #087f8c;
  --primary-2: #10a0ad;
  --primary-dark: #064f59;
  --mint: #12a88e;
  --coral: #df6557;
  --gold: #e5ad45;
  --blue: #336fa3;
  --violet: #7161d8;
  --sidebar-ink: #08111a;
  --bg-glow: rgba(8, 127, 140, 0.09);
  --shadow: 0 16px 42px rgba(20, 36, 52, 0.08);
  --shadow-deep: 0 28px 76px rgba(7, 18, 25, 0.24);
  --radius: 10px;
}

body.theme-premium_teal {
  --bg: #eef4f5;
  --surface: #ffffff;
  --surface-soft: #f5f9fa;
  --ink: #111820;
  --ink-soft: #2c3a45;
  --muted: #6d7c87;
  --line: rgba(194, 207, 215, 0.72);
  --primary: #087f8c;
  --primary-2: #10a0ad;
  --primary-dark: #064f59;
  --mint: #12a88e;
  --coral: #df6557;
  --gold: #e5ad45;
  --blue: #336fa3;
  --violet: #7161d8;
  --sidebar-ink: #08111a;
  --bg-glow: rgba(8, 127, 140, 0.09);
}

body.theme-midnight_gold {
  --bg: #f3efe7;
  --surface: #fffdf8;
  --surface-soft: #f8f3e8;
  --ink: #15171d;
  --ink-soft: #38404a;
  --muted: #756d60;
  --line: rgba(211, 199, 177, 0.76);
  --primary: #9b772c;
  --primary-2: #d4a94f;
  --primary-dark: #1b2430;
  --mint: #2f9f8e;
  --coral: #cf735c;
  --gold: #d4a94f;
  --blue: #476d8e;
  --violet: #6d638e;
  --sidebar-ink: #111821;
  --bg-glow: rgba(212, 169, 79, 0.14);
}

body.theme-clean_slate {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f2f6f8;
  --ink: #111821;
  --ink-soft: #31404c;
  --muted: #687683;
  --line: rgba(197, 207, 216, 0.78);
  --primary: #2f6f9f;
  --primary-2: #4d89b8;
  --primary-dark: #233142;
  --mint: #2a9d8f;
  --coral: #d66b5d;
  --gold: #d6a846;
  --blue: #2f6f9f;
  --violet: #6973b9;
  --sidebar-ink: #111a24;
  --bg-glow: rgba(47, 111, 159, 0.11);
}

body.theme-coral_mint {
  --bg: #f8f5f2;
  --surface: #ffffff;
  --surface-soft: #f8faf8;
  --ink: #171820;
  --ink-soft: #3d3943;
  --muted: #746f79;
  --line: rgba(218, 202, 197, 0.74);
  --primary: #d95f50;
  --primary-2: #f08a78;
  --primary-dark: #8b3a40;
  --mint: #20a58f;
  --coral: #d95f50;
  --gold: #e2b64b;
  --blue: #3e719b;
  --violet: #7b659e;
  --sidebar-ink: #17131b;
  --bg-glow: rgba(217, 95, 80, 0.12);
}

body.theme-sapphire_lime {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --surface-soft: #f2f7fb;
  --ink: #121a24;
  --ink-soft: #2f4050;
  --muted: #68788a;
  --line: rgba(196, 210, 222, 0.78);
  --primary: #265d9b;
  --primary-2: #4a83bd;
  --primary-dark: #17324a;
  --mint: #4cc38a;
  --coral: #e46e5a;
  --gold: #d9b451;
  --blue: #265d9b;
  --violet: #5a67b8;
  --sidebar-ink: #0f1a25;
  --bg-glow: rgba(38, 93, 155, 0.12);
}

body.theme-graphite_neon {
  --bg: #f3f5f1;
  --surface: #ffffff;
  --surface-soft: #f4f7f2;
  --ink: #141a21;
  --ink-soft: #333f4b;
  --muted: #6a7480;
  --line: rgba(207, 216, 205, 0.78);
  --primary: #4f6fea;
  --primary-2: #738df4;
  --primary-dark: #222832;
  --mint: #36b49a;
  --coral: #e46759;
  --gold: #b8d94f;
  --blue: #4f6fea;
  --violet: #7062d3;
  --sidebar-ink: #11161d;
  --bg-glow: rgba(79, 111, 234, 0.11);
}

body.theme-emerald_copper {
  --bg: #f3f7f4;
  --surface: #ffffff;
  --surface-soft: #f0f7f3;
  --ink: #121c19;
  --ink-soft: #31453f;
  --muted: #68766f;
  --line: rgba(199, 216, 207, 0.78);
  --primary: #0b6f5c;
  --primary-2: #15917a;
  --primary-dark: #123c35;
  --mint: #20a58f;
  --coral: #cf735c;
  --gold: #c99a48;
  --blue: #2e6f8f;
  --violet: #6a668d;
  --sidebar-ink: #0d1d19;
  --bg-glow: rgba(11, 111, 92, 0.12);
}

body.theme-ruby_steel {
  --bg: #f7f4f6;
  --surface: #ffffff;
  --surface-soft: #f8f2f5;
  --ink: #18191f;
  --ink-soft: #403942;
  --muted: #746f78;
  --line: rgba(219, 205, 212, 0.78);
  --primary: #a43d55;
  --primary-2: #c05a70;
  --primary-dark: #6b2838;
  --mint: #2e9b8f;
  --coral: #d85c5e;
  --gold: #d4a94f;
  --blue: #3b7c92;
  --violet: #6c5c8c;
  --sidebar-ink: #17131a;
  --bg-glow: rgba(164, 61, 85, 0.11);
}

body.theme-ocean_sky {
  --bg: #f2f8fa;
  --surface: #ffffff;
  --surface-soft: #eef7fa;
  --ink: #111b22;
  --ink-soft: #304450;
  --muted: #667986;
  --line: rgba(195, 216, 224, 0.78);
  --primary: #0979a5;
  --primary-2: #36a4ca;
  --primary-dark: #0d3d5c;
  --mint: #26a98d;
  --coral: #e07261;
  --gold: #ddb650;
  --blue: #0979a5;
  --violet: #5c6daf;
  --sidebar-ink: #0d1820;
  --bg-glow: rgba(9, 121, 165, 0.12);
}

body {
  background:
    linear-gradient(145deg, var(--bg-glow), rgba(255, 255, 255, 0.88) 42%, rgba(248, 245, 239, 0.92)),
    var(--bg);
}

.login-body.theme-midnight_gold {
  background:
    radial-gradient(circle at top left, rgba(212, 169, 79, 0.22), transparent 34%),
    linear-gradient(180deg, #fbf8ef, #ebe3d5);
}

.login-body.theme-clean_slate {
  background:
    radial-gradient(circle at top left, rgba(47, 111, 159, 0.16), transparent 34%),
    linear-gradient(180deg, #f8fafb, #e8eef2);
}

.login-body.theme-coral_mint {
  background:
    radial-gradient(circle at top left, rgba(217, 95, 80, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(217, 95, 80, 0.12), transparent 34%),
    linear-gradient(180deg, #fffaf7, #edf5f1);
}

.login-body.theme-sapphire_lime {
  background:
    radial-gradient(circle at top left, rgba(38, 93, 155, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(38, 93, 155, 0.12), transparent 34%),
    linear-gradient(180deg, #f8fbfd, #e9f1f8);
}

.login-body.theme-graphite_neon {
  background:
    radial-gradient(circle at top left, rgba(79, 111, 234, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(79, 111, 234, 0.12), transparent 34%),
    linear-gradient(180deg, #fafbf5, #e8ece7);
}

.login-body.theme-emerald_copper {
  background:
    radial-gradient(circle at top left, rgba(11, 111, 92, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(11, 111, 92, 0.12), transparent 34%),
    linear-gradient(180deg, #f8fbf8, #e7efea);
}

.login-body.theme-ruby_steel {
  background:
    radial-gradient(circle at top left, rgba(164, 61, 85, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(164, 61, 85, 0.12), transparent 34%),
    linear-gradient(180deg, #fbf8fa, #eaeef2);
}

.login-body.theme-ocean_sky {
  background:
    radial-gradient(circle at top left, rgba(9, 121, 165, 0.17), transparent 34%),
    radial-gradient(circle at bottom right, rgba(88, 183, 201, 0.18), transparent 34%),
    linear-gradient(180deg, #f6fbfd, #e5f1f6);
}

.login-card,
.metric-card,
.panel,
.record-card {
  border-color: rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(249, 252, 252, 0.91)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    var(--shadow);
}

.login-card {
  border-radius: 16px;
}

.login-card::before {
  content: "";
  display: block;
  height: 3px;
  margin: -26px -26px 24px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-2));
}

.brand-mark {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent),
    linear-gradient(135deg, var(--primary-dark), var(--primary) 52%, var(--primary-2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 14px 26px rgba(8, 127, 140, 0.22);
}

.sidebar .brand-logo {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 26px rgba(0, 0, 0, 0.16);
}

.primary-button,
.soft-button,
.danger-button,
.logout-button {
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.primary-button {
  min-height: 46px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, var(--primary-2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 18px 34px rgba(8, 127, 140, 0.24);
}

.primary-button:hover,
.soft-button:hover,
.danger-button:hover,
.logout-button:hover {
  transform: translateY(-1px);
}

.primary-button:active,
.soft-button:active,
.danger-button:active,
.logout-button:active {
  transform: translateY(0);
}

.soft-button {
  border: 1px solid rgba(8, 127, 140, 0.16);
  color: var(--primary-dark);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(238, 250, 250, 0.72)),
    rgba(8, 127, 140, 0.08);
}

.danger-button {
  border: 1px solid rgba(200, 61, 61, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 246, 246, 0.72)),
    rgba(200, 61, 61, 0.08);
}

input,
select,
textarea {
  min-height: 48px;
  border-color: rgba(207, 219, 226, 0.68);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 250, 0.9)),
    #f8fbfb;
}

input[type="checkbox"] {
  min-height: 18px;
  background: initial;
}

.auth-form label span,
.admin-form label span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-shell {
  grid-template-columns: 282px minmax(0, 1fr);
}

.sidebar {
  padding: 24px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(8, 127, 140, 0.16), transparent 42%),
    linear-gradient(145deg, #0b1722, var(--sidebar-ink) 56%, #060b10);
  box-shadow: 18px 0 42px rgba(7, 18, 25, 0.12);
}

.sidebar .brand {
  min-height: 64px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
}

.sidebar .brand strong {
  color: #ffffff;
}

.side-nav {
  gap: 7px;
}

.side-nav a {
  position: relative;
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.66);
}

.side-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: transparent;
}

.side-nav a .nav-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.side-nav a .nav-icon svg {
  width: 19px;
  height: 19px;
}

.side-nav a .nav-label {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.9rem;
}

.side-nav a.is-active,
.side-nav a:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.05);
}

.side-nav a.is-active::before {
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
}

.side-nav a.is-active .nav-icon {
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(135deg, var(--primary-dark), var(--primary) 56%, var(--primary-2));
  box-shadow: 0 10px 22px rgba(8, 127, 140, 0.24);
}

.sidebar-footer {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.logout-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    #151f29;
}

.admin-main {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 28px;
}

.admin-topbar {
  min-height: 82px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 14px 32px rgba(20, 36, 52, 0.08);
  backdrop-filter: blur(18px);
}

.admin-topbar h1 {
  font-size: clamp(1.72rem, 3vw, 2.42rem);
}

.admin-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-notification-link {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  color: var(--ink-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 251, 252, 0.72)),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 22px rgba(20, 36, 52, 0.1);
}

.admin-notification-link.is-active,
.admin-notification-link:hover {
  color: #ffffff;
  border-color: transparent;
  background: var(--primary);
  box-shadow: 0 14px 28px rgba(8, 127, 140, 0.2);
}

.admin-notification-link svg {
  width: 20px;
  height: 20px;
}

.admin-notification-link span {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  background: var(--coral);
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
}

.admin-notification-link span[hidden] {
  display: none;
}

.admin-pill {
  gap: 7px;
  border: 1px solid rgba(8, 127, 140, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(238, 250, 250, 0.72)),
    rgba(8, 127, 140, 0.08);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(18, 168, 142, 0.14);
}

.admin-avatar {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #151f29, var(--primary-dark));
  box-shadow: 0 10px 22px rgba(20, 36, 52, 0.14);
  font-weight: 950;
}

.metric-grid {
  gap: 16px;
}

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

.metric-card {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  padding: 17px;
}

.metric-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--primary);
}

.metric-card:nth-child(2)::before {
  background: var(--gold);
}

.metric-card:nth-child(3)::before {
  background: var(--coral);
}

.metric-card:nth-child(4)::before {
  background: var(--blue);
}

.metric-card span {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: clamp(1.36rem, 2vw, 1.72rem);
}

.panel {
  overflow: hidden;
  padding: 18px;
  border-radius: 14px;
}

.panel-header {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(203, 215, 222, 0.62);
}

.panel-header .soft-button {
  flex: 0 0 auto;
}

.panel h2 {
  font-size: 1.16rem;
}

.admin-form {
  gap: 13px;
}

.admin-form .span-2 {
  grid-column: span 2;
}

.admin-form .span-3 {
  grid-column: 1 / -1;
}

.panel > .admin-form {
  padding: 14px;
  border: 1px solid rgba(218, 228, 233, 0.72);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(248, 251, 252, 0.92), rgba(241, 247, 248, 0.78)),
    var(--surface-soft);
}

.form-field {
  display: grid;
  gap: 9px;
}

.form-field > span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.switch-row {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(207, 219, 226, 0.68);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 250, 0.9)),
    #f8fbfb;
}

.switch-row span {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 850;
  text-transform: none;
}

.config-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 5px;
  border: 1px solid rgba(218, 228, 233, 0.8);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 249, 250, 0.72)),
    rgba(255, 255, 255, 0.68);
}

.config-tab {
  min-height: 38px;
  padding: 9px 13px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 950;
}

.config-tab.is-active,
.config-tab:hover {
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 10px 20px rgba(8, 127, 140, 0.16);
}

.config-panel {
  display: grid;
}

.config-panel[hidden] {
  display: none;
}

.config-form {
  padding: 14px;
  border: 1px solid rgba(218, 228, 233, 0.72);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(248, 251, 252, 0.92), rgba(241, 247, 248, 0.78)),
    var(--surface-soft);
}

.asset-preview-grid,
.provider-note-grid,
.theme-palette-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.theme-palette-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.provider-note-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wa-provider-grid,
.push-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.asset-preview,
.provider-note,
.theme-palette-card {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(218, 228, 233, 0.78);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 249, 250, 0.78)),
    #ffffff;
}

.theme-palette-card {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  border-color: rgba(218, 228, 233, 0.84);
  text-align: left;
}

.theme-palette-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--palette-primary) 18%, transparent), transparent 62%),
    linear-gradient(315deg, color-mix(in srgb, var(--palette-accent) 16%, transparent), transparent 58%),
    var(--palette-bg);
  opacity: 0.9;
}

.theme-palette-card > * {
  position: relative;
}

.theme-palette-card.is-selected {
  border-color: color-mix(in srgb, var(--palette-primary) 48%, #ffffff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 14px 28px color-mix(in srgb, var(--palette-primary) 16%, transparent);
}

.theme-palette-card.is-selected::after {
  content: "";
  position: absolute;
  inset: 9px 9px auto auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--palette-primary);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--palette-primary) 14%, transparent);
}

.theme-palette-header {
  display: grid;
  gap: 4px;
}

.theme-palette-header strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 950;
}

.theme-palette-header small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.theme-swatch-row {
  display: flex;
  gap: 7px;
  align-items: center;
}

.theme-swatch {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: var(--swatch-color);
  box-shadow: 0 8px 16px rgba(20, 36, 52, 0.1);
}

.asset-preview span,
.provider-note span,
.table-muted {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.asset-preview strong,
.provider-note strong {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.asset-preview img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
}

.asset-preview.wide img {
  width: min(220px, 100%);
  height: 58px;
}

.provider-note {
  position: relative;
  overflow: hidden;
}

.provider-note::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: rgba(8, 127, 140, 0.2);
}

.provider-note.is-selected {
  border-color: rgba(8, 127, 140, 0.32);
  box-shadow: 0 12px 26px rgba(8, 127, 140, 0.1);
}

.provider-note.is-selected::before {
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
}

.provider-config-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(218, 228, 233, 0.82);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 249, 250, 0.78)),
    #ffffff;
  box-shadow: 0 14px 30px rgba(20, 36, 52, 0.08);
}

.provider-config-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: rgba(8, 127, 140, 0.16);
}

.provider-config-card::after {
  content: "";
  position: absolute;
  inset: -42px -34px auto auto;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.provider-config-card.is-selected {
  border-color: color-mix(in srgb, var(--primary) 38%, #ffffff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 34px color-mix(in srgb, var(--primary) 14%, transparent);
}

.provider-config-card.is-selected::before {
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
}

.provider-config-card > * {
  position: relative;
  z-index: 1;
}

.provider-config-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.provider-config-card textarea,
.provider-config-card label:has(textarea) {
  grid-column: 1 / -1;
}

.provider-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 13px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 12px 24px color-mix(in srgb, var(--primary) 18%, transparent);
  font-size: 0.78rem;
  font-weight: 950;
}

.provider-config-header strong,
.provider-config-header small {
  display: block;
}

.provider-config-header strong {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 950;
}

.provider-config-header small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.wa-test-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(218, 228, 233, 0.78);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 249, 250, 0.74)),
    #ffffff;
}

.wa-test-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.status,
.tier-pill,
.tone-pill,
.type-pill {
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.datatable-shell {
  margin-top: 4px;
  padding: 5px;
  border: 1px solid rgba(218, 228, 233, 0.72);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 249, 250, 0.78)),
    #ffffff;
}

.table-filter-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(218, 228, 233, 0.72);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(248, 251, 252, 0.92), rgba(241, 247, 248, 0.78)),
    var(--surface-soft);
}

.table-filter-bar label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.table-filter-bar label span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.table-filter-bar input,
.table-filter-bar select {
  min-height: 44px;
  background: #ffffff;
  box-shadow: none;
}

.table-filter-actions {
  display: grid;
  align-items: end;
}

.table-filter-actions .soft-button {
  min-height: 44px;
}

.import-point-hero {
  overflow: hidden;
}

.import-upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 14px;
  align-items: stretch;
}

.import-upload-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(218, 228, 233, 0.72);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 249, 250, 0.78)),
    #ffffff;
}

.import-upload-form .primary-button {
  min-height: 46px;
}

.import-format-card {
  display: grid;
  align-content: center;
  gap: 11px;
  padding: 14px;
  border: 1px solid rgba(8, 127, 140, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 7%, #ffffff), rgba(255, 255, 255, 0.84)),
    #ffffff;
}

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

.import-format-row strong {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid rgba(8, 127, 140, 0.12);
  border-radius: 10px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 950;
}

.import-format-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 780;
  line-height: 1.45;
}

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

.import-filter-bar {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.point-row-filter-bar {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
}

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

.role-access-card {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(218, 228, 233, 0.72);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 249, 250, 0.78)),
    #ffffff;
}

.role-access-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.role-access-card-head strong {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.role-access-list {
  display: grid;
  gap: 12px;
}

.role-access-list section {
  display: grid;
  gap: 7px;
}

.role-access-list h3 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.role-access-item {
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border: 1px solid rgba(218, 228, 233, 0.62);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.role-access-item span {
  min-width: 0;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 820;
}

.access-state {
  min-width: 54px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.access-state.is-on {
  color: #075c4d;
  background: rgba(22, 160, 133, 0.12);
}

.access-state.is-off {
  color: var(--muted);
  background: rgba(101, 117, 130, 0.1);
}

.dt-container .dt-layout-row {
  padding: 5px 3px 10px;
}

.dt-container .dt-layout-row:first-child {
  align-items: center;
  margin-bottom: 12px;
  padding: 4px 3px 12px;
  border-bottom: 1px solid rgba(218, 228, 233, 0.72);
}

.dt-container .dt-layout-row:last-child {
  padding: 10px 3px 3px;
}

.dt-container .dt-search label,
.dt-container .dt-length label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dt-container .dt-search input,
.dt-container .dt-length select {
  min-height: 40px;
  border-radius: 10px;
  box-shadow: none;
}

.dt-container .dt-search input {
  padding-left: 13px;
}

.dt-container .dt-length select {
  width: auto;
  min-width: 82px;
}

.dt-container .dt-paging .dt-paging-button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.server-table {
  border-collapse: separate;
  border-spacing: 0;
}

.server-table.dataTable > thead > tr > th {
  padding: 13px 12px;
  border-bottom: 0;
  color: #536572;
  background: #f2f7f8;
  font-size: 0.72rem;
}

.server-table.dataTable > thead > tr > th:first-child {
  border-radius: 10px 0 0 10px;
}

.server-table.dataTable > thead > tr > th:last-child {
  border-radius: 0 10px 10px 0;
}

.server-table.dataTable > tbody > tr > td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(218, 228, 233, 0.78);
}

.server-table.dataTable > tbody > tr:last-child > td {
  border-bottom: 0;
}

.server-table.dataTable tbody tr:hover {
  background: rgba(8, 127, 140, 0.035);
}

.server-table th.dt-orderable-asc,
.server-table th.dt-orderable-desc,
.server-table th.is-sortable {
  padding-right: 30px;
}

.server-table th.dt-orderable-asc .dt-column-order,
.server-table th.dt-orderable-desc .dt-column-order {
  right: 10px;
}

.server-table th.is-sortable::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(83, 101, 114, 0.5);
  border-bottom: 2px solid rgba(83, 101, 114, 0.5);
  transform: translateY(-60%) rotate(45deg);
}

.server-table th.is-sortable.is-sorted-asc::after {
  border-color: var(--primary);
  transform: translateY(-35%) rotate(225deg);
}

.server-table th.is-sortable.is-sorted-desc::after {
  border-color: var(--primary);
}

.fallback-table-controls,
.fallback-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 3px 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.fallback-table-footer {
  justify-content: flex-end;
  padding: 12px 3px 3px;
  border-top: 1px solid rgba(218, 228, 233, 0.72);
}

.fallback-table-controls label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fallback-table-controls select,
.fallback-table-controls input {
  min-height: 40px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

.fallback-table-controls select {
  width: auto;
  min-width: 82px;
}

.fallback-table-controls input {
  width: min(280px, 48vw);
}

.fallback-table-footer button {
  min-width: 54px;
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: rgba(8, 127, 140, 0.08);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.fallback-table-footer button:not(:disabled):hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.fallback-table-footer button:disabled {
  color: var(--muted);
  background: rgba(203, 215, 222, 0.32);
  cursor: not-allowed;
  opacity: 0.6;
}

.table-main strong {
  color: var(--ink);
}

.table-main span {
  color: #7b8a95;
}

.banner-thumb {
  width: 88px;
  height: 48px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background: #edf4f6;
  box-shadow: 0 10px 20px rgba(20, 36, 52, 0.1);
}

.banner-empty {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 7px 9px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(203, 215, 222, 0.22);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.ip-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  margin: 2px 4px 2px 0;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--primary-dark);
  background: rgba(8, 127, 140, 0.08);
  font-size: 0.73rem;
  font-weight: 900;
}

.wide-table {
  min-width: 1160px;
}

.transaction-history-table {
  min-width: 1240px;
}

.transaction-history-table th,
.transaction-history-table td {
  vertical-align: middle;
}

.transaction-history-table th:nth-child(1),
.transaction-history-table td:nth-child(1) {
  width: 92px;
  white-space: nowrap;
}

.transaction-history-table th:nth-child(2),
.transaction-history-table td:nth-child(2) {
  width: 92px;
  white-space: nowrap;
}

.transaction-history-table th:nth-child(3),
.transaction-history-table td:nth-child(3) {
  width: 150px;
}

.transaction-history-table th:nth-child(4),
.transaction-history-table td:nth-child(4) {
  min-width: 170px;
}

.transaction-history-table th:nth-child(5),
.transaction-history-table td:nth-child(5) {
  width: 144px;
  white-space: nowrap;
}

.transaction-history-table th:nth-child(6),
.transaction-history-table td:nth-child(6),
.transaction-history-table th:nth-child(8),
.transaction-history-table td:nth-child(8) {
  width: 92px;
  text-align: center;
  white-space: nowrap;
}

.transaction-history-table th:nth-child(7),
.transaction-history-table td:nth-child(7) {
  width: 116px;
  white-space: nowrap;
}

.transaction-history-table th:nth-child(9),
.transaction-history-table td:nth-child(9) {
  min-width: 210px;
}

.transaction-history-table th:nth-child(10),
.transaction-history-table td:nth-child(10) {
  width: 118px;
  white-space: nowrap;
}

.transaction-history-table th:nth-child(11),
.transaction-history-table td:nth-child(11) {
  width: 244px;
  white-space: nowrap;
}

.transaction-history-table .table-action-stack {
  min-width: max-content;
  flex-wrap: nowrap;
}

.trx-id,
.trx-user,
.trx-copy,
.trx-amount,
.table-date strong,
.table-date span,
.va-code {
  display: inline-flex;
  align-items: center;
}

.trx-id,
.trx-user {
  color: var(--ink);
  font-weight: 950;
  white-space: nowrap;
}

.trx-copy {
  max-width: 180px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.32;
}

.trx-copy.is-muted {
  color: var(--ink-soft);
  font-weight: 820;
}

.trx-amount {
  gap: 4px;
  font-weight: 950;
  white-space: nowrap;
}

.va-copy-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 6px 3px 3px;
  border: 1px solid rgba(8, 127, 140, 0.12);
  border-radius: 11px;
  color: var(--primary-dark);
  background: rgba(8, 127, 140, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  font-weight: 950;
}

.va-copy-button:hover,
.va-copy-button.is-copied {
  background: rgba(22, 160, 133, 0.13);
}

.va-code {
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  word-spacing: 2px;
}

.va-copy-label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.va-copy-button.is-copied .va-copy-label {
  color: #075c4d;
}

.table-date {
  display: grid;
  gap: 3px;
  white-space: nowrap;
}

.table-date strong {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 950;
}

.table-date span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-dialog {
  border-radius: 16px;
}

.dialog-card {
  border-radius: 16px;
}

.log-data-dialog {
  width: min(680px, calc(100vw - 28px));
}

.import-failures-dialog {
  width: min(980px, calc(100vw - 28px));
}

.import-failures-dialog .dialog-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.failed-import-modal-table {
  max-height: min(56vh, 560px);
  overflow: auto;
  margin-top: 16px;
  border: 1px solid rgba(218, 228, 233, 0.82);
  border-radius: 14px;
  background: #ffffff;
}

.failed-import-modal-table .server-table {
  min-width: 820px;
}

.log-data-fields {
  max-height: min(54vh, 520px);
  overflow: auto;
  margin: 16px 0 0;
}

.log-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.log-data-field,
.log-data-section,
.log-data-empty {
  padding: 12px;
  border: 1px solid rgba(218, 228, 233, 0.78);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 249, 250, 0.78)),
    #ffffff;
}

.log-data-field {
  display: grid;
  gap: 6px;
}

.log-data-field span,
.log-data-section h3,
.log-data-empty {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.log-data-field strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.45;
}

.log-data-section {
  grid-column: 1 / -1;
}

.log-data-section h3 {
  margin: 0 0 10px;
}

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

.profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.profile-avatar {
  width: 68px;
  height: 68px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent),
    linear-gradient(135deg, var(--primary-dark), var(--primary) 58%, var(--primary-2));
  box-shadow: 0 18px 34px rgba(20, 36, 52, 0.16);
  font-size: 1.55rem;
  font-weight: 950;
}

.profile-identity h2 {
  margin: 5px 0 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.08;
}

.profile-identity p {
  margin: 7px 0 0;
  color: var(--muted);
  font-weight: 820;
}

.profile-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.profile-form {
  grid-template-columns: 1fr;
}

.profile-stat-grid {
  display: grid;
  gap: 10px;
}

.profile-stat,
.profile-rule-list,
.profile-activity {
  padding: 13px;
  border: 1px solid rgba(218, 228, 233, 0.78);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 249, 250, 0.78)),
    #ffffff;
}

.profile-stat {
  display: grid;
  gap: 5px;
}

.profile-stat span,
.profile-rule-list > span,
.profile-activity span,
.profile-activity small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.profile-stat strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
}

.profile-rule-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.profile-activity-list {
  display: grid;
  gap: 10px;
}

.profile-activity {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-activity strong,
.profile-activity span {
  display: block;
}

.profile-activity strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
}

.profile-activity span {
  margin-top: 4px;
}

.banner-preview-row {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 15px;
  padding: 10px;
  border: 1px solid rgba(218, 228, 233, 0.72);
  border-radius: 14px;
  background: rgba(244, 249, 250, 0.78);
}

.banner-preview-row span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.banner-preview-row strong {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.banner-preview-row img {
  width: min(220px, 52%);
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(20, 36, 52, 0.12);
}

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

  .admin-form.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .provider-note-grid,
  .role-access-grid,
  .theme-palette-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pending-user-list,
  .pending-transaction-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .dt-container .dt-layout-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .sidebar {
    position: static;
    height: auto;
    grid-template-rows: none;
    gap: 16px;
  }

  .side-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .side-nav a {
    grid-template-columns: 1fr;
    justify-items: center;
    justify-content: center;
    font-size: 0.82rem;
  }

  .side-nav a .nav-icon {
    display: none;
  }

  .side-nav a .nav-label {
    display: inline-flex;
  }

  .sidebar-footer {
    grid-template-columns: 1fr 1fr;
  }

  .admin-main {
    padding: 18px;
  }

  .content-grid,
  .admin-form,
  .admin-form.compact {
    grid-template-columns: 1fr;
  }

  .admin-form .span-2,
  .admin-form .span-3 {
    grid-column: auto;
  }

  .push-health-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .push-health-metrics {
    justify-items: start;
  }

  .asset-preview-grid,
  .import-upload-layout,
  .import-upload-form,
  .provider-note-grid,
  .push-health-card,
  .wa-provider-grid,
  .wa-test-row,
  .theme-palette-grid,
  .pending-user-list,
  .pending-transaction-list,
  .role-access-grid,
  .table-filter-bar,
  .log-data-grid,
  .log-data-section .log-data-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .login-body {
    padding: 14px;
  }

  .login-card,
  .panel,
  .record-card {
    padding: 15px;
  }

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

  .import-summary-grid,
  .import-format-row {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-hero,
  .profile-activity,
  .pending-user-card,
  .pending-transaction-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .pending-user-card .lifecycle-actions,
  .pending-transaction-card .lifecycle-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .profile-badges {
    justify-content: flex-start;
  }

  .admin-actions {
    width: 100%;
    justify-content: space-between;
  }

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

  .record-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-header .soft-button {
    width: 100%;
  }

  .dt-container .dt-search,
  .dt-container .dt-length,
  .dt-container .dt-search input,
  .fallback-table-controls,
  .fallback-table-controls input {
    width: 100%;
  }

  .dt-container .dt-search,
  .fallback-table-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .fallback-table-footer {
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}
