:root {
  --bg: #06100d;
  --bg-soft: #0a1712;
  --panel: #0d1d17;
  --panel-2: #12271f;
  --line: rgba(217, 255, 231, 0.1);
  --line-strong: rgba(217, 255, 231, 0.2);
  --text: #eff8f2;
  --muted: #8da398;
  --green: #54f2a5;
  --green-deep: #0eae69;
  --lime: #c8ff58;
  --amber: #ffc857;
  --red: #f26d6d;
  --radius: 19px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  --shadow-soft: 0 18px 42px -28px rgba(0, 0, 0, 0.95);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(84, 242, 165, 0.14), transparent 60%),
    radial-gradient(900px 500px at 5% 105%, rgba(245, 184, 61, 0.07), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
  color: var(--text);
  font: 15px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
p {
  margin: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 22px;
  color: #04120d;
  background: linear-gradient(150deg, var(--green), #7be3b8);
  box-shadow: 0 10px 30px -10px rgba(34, 197, 139, 0.7);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.brand h1 {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand p {
  color: var(--muted);
  font-size: 12.5px;
}

.brand.small .brand-mark {
  width: 38px;
  height: 38px;
  font-size: 18px;
  border-radius: 12px;
}

.brand.small h1 {
  font-size: 16px;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(430px, 100%);
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.login-card .brand {
  margin-bottom: 26px;
}

form label,
.settings-grid label {
  display: block;
  margin-bottom: 14px;
}

label > span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}

label em {
  font-style: normal;
  font-weight: 400;
  opacity: 0.75;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #0a1210;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.activity-date-control {
  display: grid;
  grid-template-columns: auto minmax(145px, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0;
}

.activity-date-control > span {
  margin: 0;
}

.activity-date-control input {
  min-height: 44px;
}

input:focus {
  border-color: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(34, 197, 139, 0.14);
}

input::placeholder {
  color: #566b64;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s, background 0.15s, border-color 0.15s, opacity 0.15s;
  color: var(--text);
  background: var(--panel-2);
  letter-spacing: -0.01em;
  box-shadow: 0 8px 18px -16px rgba(0, 0, 0, 0.9);
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.boot-view {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.boot-card {
  display: flex;
  align-items: center;
  gap: 13px;
  width: min(420px, 100%);
  padding: 16px 18px;
  border: 1px solid rgba(188, 255, 221, 0.15);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(14, 37, 27, 0.92), rgba(5, 17, 12, 0.96));
  box-shadow: var(--shadow-soft), inset 0 1px rgba(255, 255, 255, 0.04);
}

.boot-card .brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  font-size: 18px;
}

.boot-card strong,
.boot-card span {
  display: block;
}

.boot-card strong {
  color: var(--text);
  font-size: 13px;
}

.boot-card div span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.boot-error {
  border-color: rgba(255, 200, 87, 0.35);
}

.boot-error .brand-mark {
  background: rgba(255, 200, 87, 0.12);
  color: var(--amber);
}

.boot-error .btn {
  flex: none;
  margin-left: auto;
}

.boot-spinner {
  width: 16px;
  height: 16px;
  flex: none;
  margin-left: auto;
  border: 2px solid rgba(92, 242, 170, 0.2);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: boot-spin 0.8s linear infinite;
}

@keyframes boot-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .boot-spinner { animation: none; }
}

.action-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(160deg, var(--green), var(--green-deep));
  color: #04120d;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 30px -16px rgba(34, 197, 139, 0.8);
  text-shadow: 0 1px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--muted);
}

.btn-ghost:hover:not(:disabled) {
  color: var(--text);
  border-color: #3a554d;
}

.btn-danger {
  background: rgba(242, 109, 109, 0.12);
  border-color: rgba(242, 109, 109, 0.4);
  color: var(--red);
}

.btn.small {
  padding: 6px 11px;
  font-size: 12.5px;
  border-radius: 9px;
}

.btn.wide {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  font-size: 15px;
}

#installBtn {
  border-color: rgba(34, 197, 139, 0.45);
  color: var(--green);
}

.form-error {
  color: var(--red);
  font-size: 13px;
  margin: -4px 0 12px;
}

.fine {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  margin-top: 12px;
}

.remember-option {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  margin: 0 0 2px;
  padding: 8px 0;
  cursor: pointer;
}

.remember-option input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin: 0;
  flex: none;
  accent-color: var(--green);
}

.remember-option > span {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.remember-help {
  margin: 0 0 16px;
}

.app {
  max-width: 1420px;
  margin: 0 auto;
  padding: 30px 24px 68px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(43, 67, 60, 0.78);
  border-radius: 20px;
  background: rgba(8, 22, 16, 0.82);
  box-shadow: var(--shadow-soft);
  margin-bottom: 26px;
  backdrop-filter: blur(16px);
}

.topbar .brand {
  flex: 1;
}

.balance-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 8px 7px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(7, 11, 10, 0.55);
}

.balance-block .label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

#balance {
  font-size: 21px;
  color: #b8f4d9;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34, 197, 139, 0.1), 0 0 14px rgba(34, 197, 139, 0.5);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: start;
}

.panel {
  background: linear-gradient(180deg, var(--panel), rgba(13, 20, 18, 0.6));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.panel.summary {
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(34, 197, 139, 0.09), transparent 70%),
    linear-gradient(180deg, #111d19, rgba(13, 20, 18, 0.78));
}

@media (min-width: 901px) {
  .summary {
    position: sticky;
    top: 18px;
  }
}

.panel h2 {
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h2 {
  position: relative;
  padding-left: 11px;
}

.panel-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 99px;
  background: var(--green);
}

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

.table .trow {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 220px) 96px 40px;
  gap: 10px;
  align-items: start;
}

.row-field {
  min-width: 0;
}

.row-field-label {
  display: none;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.table .thead {
  padding: 0 2px 8px;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #62786f;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.row {
  padding: 7px 2px;
  border-bottom: 1px solid rgba(30, 47, 42, 0.55);
  transition: background 0.15s, border-color 0.15s;
}

.row:hover {
  background: rgba(34, 197, 139, 0.035);
  border-color: rgba(34, 197, 139, 0.22);
}

.row:last-child {
  border-bottom: 0;
}

.row input {
  padding: 10px 12px;
  font-size: 14px;
}

.row input.amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.amount-cell {
  min-width: 0;
}

.amount-preview[hidden],
.check[hidden] {
  display: none;
}

.amount-preview {
  display: block;
  min-height: 20px;
  margin: 5px 0 0;
  padding: 2px 7px;
  border: 1px solid rgba(34, 197, 139, 0.24);
  border-radius: 7px;
  background: rgba(34, 197, 139, 0.07);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}

.check {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--muted);
  min-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check.ok {
  color: var(--green);
}

.check.ok::before,
.check.bad::before,
.check.busy::before {
  display: inline-block;
  margin-right: 4px;
}

.check.ok::before { content: "✓"; }
.check.bad::before { content: "!"; }
.check.busy::before { content: "•"; }

.check.bad {
  color: var(--red);
}

.check.busy {
  color: var(--amber);
}

.icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #5b716a;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}

.icon-btn:hover {
  color: var(--red);
  background: rgba(242, 109, 109, 0.08);
}

.empty {
  padding: 34px 10px;
  text-align: center;
  color: #5b716a;
  font-size: 13.5px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  margin-top: 10px;
}

.settings {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.settings summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.settings summary::before {
  content: "›";
  font-size: 16px;
  transition: transform 0.15s;
}

.settings[open] summary::before {
  transform: rotate(90deg);
}

.settings-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 0 16px;
}

.settings-grid label:first-child {
  grid-column: 1 / -1;
}

.side {
  display: grid;
  gap: 20px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 13.5px;
  color: var(--muted);
  border-bottom: 1px solid rgba(30, 47, 42, 0.5);
}

.sum-row strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.sum-row.total {
  border-bottom: 0;
  margin-top: 4px;
  padding-top: 13px;
  border-top: 1px solid var(--line-strong);
  font-size: 14px;
  color: var(--text);
  font-weight: 700;
}

.sum-row.total strong {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.summary .toggle {
  border-color: rgba(34, 197, 139, 0.28);
}

.sum-row.muted {
  border-bottom: 0;
  font-size: 12.5px;
  opacity: 0.8;
}

.toggle {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(34, 197, 139, 0.045);
  cursor: pointer;
}

.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.track {
  flex: none;
  width: 40px;
  height: 23px;
  border-radius: 99px;
  background: #24352f;
  position: relative;
  transition: background 0.18s;
  margin-top: 1px;
}

.knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #7d918a;
  transition: transform 0.18s, background 0.18s;
}

.toggle input:checked + .track {
  background: rgba(34, 197, 139, 0.35);
}

.toggle input:checked + .track .knob {
  transform: translateX(17px);
  background: var(--green);
}

.toggle-text strong {
  display: block;
  font-size: 13px;
}

.toggle-text em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
}

.tag {
  font-size: 10.5px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 3px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

.limit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.limit-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(30, 47, 42, 0.5);
  font-size: 12.5px;
  color: var(--muted);
}

.limit-list li:last-child {
  border-bottom: 0;
}

.limit-list strong {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.limit-list strong.bad {
  color: var(--amber);
}

.warn {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(245, 184, 61, 0.08);
  border: 1px solid rgba(245, 184, 61, 0.35);
  color: #f0d29a;
  font-size: 12px;
  line-height: 1.45;
}

.log-panel {
  min-height: 200px;
}

.log-panel .panel-head,
.history-panel .panel-head {
  margin-bottom: 12px;
}

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

.bar {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: #1b2a25;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green-deep), var(--green));
  transition: width 0.25s;
}

#progressText {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.log {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 340px;
  overflow-y: auto;
  font-size: 12.5px;
  display: grid;
  gap: 7px;
}

.log li {
  color: var(--muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.45;
  word-break: break-word;
}

.log li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3c534b;
}

.log li.ok {
  color: #a7e8cf;
}

.log li.ok::before {
  background: var(--green);
}

.log li.error {
  color: #f4a6a6;
}

.log li.error::before {
  background: var(--red);
}

.log li.warn {
  color: #f0d29a;
}

.log li.warn::before {
  background: var(--amber);
}

.failure-summary {
  display: grid;
  gap: 9px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(242, 109, 109, 0.28);
  border-radius: 14px;
  background: rgba(84, 22, 22, 0.18);
}

.failure-summary > strong {
  color: #ffb2a9;
  font-size: 12px;
}

.failure-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 9px;
  border-top: 1px solid rgba(242, 109, 109, 0.14);
}

.failure-summary-row > div {
  min-width: 0;
}

.failure-summary-row strong,
.failure-summary-row span,
.failure-summary-row small {
  display: block;
}

.failure-summary-row strong {
  color: var(--text);
  font-size: 11px;
}

.failure-summary-row div span {
  margin-top: 2px;
  color: #ffb2a9;
  font-size: 11px;
}

.failure-summary-row small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.failure-action {
  flex: none;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.failure-action.safe {
  color: var(--green);
  background: rgba(92, 242, 170, 0.1);
}

.failure-action.review {
  color: var(--amber);
  background: rgba(255, 200, 87, 0.1);
}

.job-history {
  display: grid;
  gap: 8px;
}

.job-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(30, 47, 42, 0.5);
  font-size: 12px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.job-history-row:hover {
  background: rgba(84, 242, 165, 0.045);
}

.job-history-row:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.job-history-row:last-child {
  border-bottom: 0;
}

.job-detail-sheet {
  width: min(720px, 100%);
}

.job-detail-card .receipt-recipient {
  margin-top: 10px;
}

.job-detail-sheet .campaign-event-list {
  max-height: 260px;
  overflow-y: auto;
}

.job-history-main {
  min-width: 0;
}

.job-history-main strong,
.job-history-main span {
  display: block;
}

.job-history-main strong {
  color: var(--text);
  font-weight: 600;
}

.job-history-main span {
  color: var(--muted);
  margin-top: 2px;
}

.job-status {
  flex: none;
  color: var(--green);
  font-size: 11px;
  text-transform: capitalize;
}

.job-status.failed,
.job-status.stopped {
  color: var(--red);
}

.job-status.running,
.job-status.queued,
.job-status.paused {
  color: var(--amber);
}

.admin-create {
  display: grid;
  gap: 9px;
}

.tool-users {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.tool-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(30, 47, 42, 0.5);
  font-size: 12px;
}

.tool-user-row span {
  color: var(--muted);
}

.workspace-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(8, 20, 15, 0.72);
}

.workspace-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.workspace-tab.active {
  color: #06100d;
  background: var(--green);
  box-shadow: 0 10px 24px -16px rgba(84, 242, 165, 0.9);
}

.admin-dashboard {
  display: grid;
  gap: 18px;
}

.admin-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 178px;
  padding: 28px;
  border-radius: 22px;
  color: #06100d;
  background: linear-gradient(135deg, var(--lime), var(--green));
  box-shadow: 0 28px 60px -34px rgba(84, 242, 165, 0.72);
}

.admin-hero::after {
  content: "₦";
  position: absolute;
  right: 23%;
  bottom: -88px;
  color: rgba(6, 16, 13, 0.07);
  font: 260px/1 Georgia, serif;
  pointer-events: none;
}

.section-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-hero .section-kicker {
  color: rgba(6, 16, 13, 0.58);
}

.admin-hero h2 {
  position: relative;
  z-index: 1;
  max-width: 620px;
  color: #06100d;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.admin-hero p {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-top: 13px;
  color: rgba(6, 16, 13, 0.65);
  font-size: 13px;
}

.admin-hero-actions {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: end;
  gap: 9px;
  flex: none;
}

.admin-hero .btn-primary {
  color: var(--text);
  background: #06100d;
  box-shadow: none;
}

.admin-updated {
  color: rgba(6, 16, 13, 0.58);
  font-size: 10px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  position: relative;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(16, 39, 30, 0.96), rgba(8, 21, 16, 0.9));
  box-shadow: var(--shadow-soft);
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 17px;
  width: 30px;
  height: 2px;
  background: var(--green);
}

.metric-card > span,
.metric-card > strong,
.metric-card > small {
  display: block;
}

.metric-card > span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.metric-card > strong {
  overflow: hidden;
  margin-top: 9px;
  color: var(--text);
  font-size: clamp(19px, 2.3vw, 30px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
}

.metric-card > small {
  overflow: hidden;
  margin-top: 8px;
  color: #789087;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.metric-card-featured {
  grid-column: span 2;
  background: linear-gradient(145deg, rgba(28, 75, 54, 0.9), rgba(12, 36, 26, 0.96));
}

.metric-card-featured > strong {
  color: var(--green);
}

.metric-card-alert::before {
  background: var(--red);
}

.metric-card-alert > strong {
  color: #ff9a8d;
}

.admin-monitor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.admin-panel-head {
  align-items: flex-start;
}

.admin-panel-head h2 {
  padding-left: 0;
  color: var(--text);
  font-size: 17px;
  letter-spacing: -0.02em;
  text-transform: none;
}

.admin-panel-head h2::before {
  display: none;
}

.admin-account-list,
.admin-campaign-list {
  display: grid;
  gap: 7px;
}

.admin-account-row {
  display: grid;
  grid-template-columns: 38px minmax(150px, 1.2fr) minmax(130px, 0.75fr) minmax(130px, 0.7fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid transparent;
}

.admin-account-row:hover {
  border-color: rgba(84, 242, 165, 0.16);
  background: rgba(84, 242, 165, 0.035);
}

.admin-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px 11px 11px 4px;
  color: #06100d;
  background: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.admin-account-identity,
.admin-account-activity,
.admin-account-balance {
  min-width: 0;
}

.admin-account-identity strong,
.admin-account-identity span,
.admin-account-activity strong,
.admin-account-activity span,
.admin-account-balance strong,
.admin-account-balance span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-account-identity strong,
.admin-account-activity strong,
.admin-account-balance strong {
  color: var(--text);
  font-size: 12px;
}

.admin-account-identity span,
.admin-account-activity span,
.admin-account-balance span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.admin-account-balance {
  text-align: right;
}

.admin-account-balance .connected {
  color: var(--green);
}

.admin-account-balance .disconnected {
  color: #71877e;
}

.admin-campaign-row {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.admin-campaign-row:last-child {
  border-bottom: 0;
}

.admin-campaign-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-campaign-top strong,
.admin-campaign-top span {
  display: block;
}

.admin-campaign-top strong {
  font-size: 12px;
}

.admin-campaign-top span:not(.admin-status) {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.admin-progress {
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.admin-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-deep), var(--green));
}

.admin-status {
  display: inline-flex;
  flex: none;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(84, 242, 165, 0.09);
  font-size: 9px;
  text-transform: capitalize;
}

.admin-status.failed,
.admin-status.stopped {
  color: #ff9a8d;
  background: rgba(242, 109, 109, 0.1);
}

.admin-status.running,
.admin-status.queued,
.admin-status.paused,
.admin-status.sending,
.admin-status.pending {
  color: var(--amber);
  background: rgba(255, 200, 87, 0.09);
}

.privacy-note {
  color: var(--muted);
  font-size: 10px;
}

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

.admin-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.admin-table th,
.admin-table td {
  padding: 11px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.admin-table th {
  color: #688076;
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.admin-table td {
  color: #c8d6cf;
  font-size: 11px;
}

.admin-table td:nth-child(3),
.admin-table td:nth-child(4) {
  font-variant-numeric: tabular-nums;
}

.admin-user-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
}

.admin-user-layout .tool-users {
  margin-top: 0;
}

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

.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 22px 16px 16px;
  border-right: 1px solid var(--line);
  background: rgba(5, 15, 11, 0.9);
  backdrop-filter: blur(18px);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 7px 24px;
  color: var(--text);
  text-decoration: none;
}

.admin-brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 13px 13px 13px 4px;
  color: #06100d;
  background: var(--green);
  box-shadow: 0 12px 30px -14px rgba(84, 242, 165, 0.8);
  font-size: 13px;
  font-weight: 800;
}

.admin-brand strong,
.admin-brand small,
.admin-sidebar-footer strong,
.admin-sidebar-footer small {
  display: block;
}

.admin-brand strong {
  font-size: 13px;
}

.admin-brand small,
.admin-sidebar-footer small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-nav-label {
  margin: 5px 10px 8px;
  color: #5e766b;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.admin-page-nav {
  display: grid;
  gap: 4px;
}

.admin-page-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  padding: 0 11px;
  border-radius: 11px;
  color: #82998e;
  font-size: 12px;
  text-decoration: none;
}

.admin-page-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.admin-page-nav a.active {
  color: var(--text);
  background: rgba(84, 242, 165, 0.1);
}

.admin-page-nav a.active::before {
  content: "";
  position: absolute;
  left: -16px;
  width: 3px;
  height: 22px;
  border-radius: 0 4px 4px 0;
  background: var(--green);
  box-shadow: 0 0 14px rgba(84, 242, 165, 0.65);
}

.nav-symbol {
  width: 18px;
  color: var(--green);
  font-size: 15px;
  text-align: center;
}

.admin-sidebar-footer {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 15px 6px 0;
  border-top: 1px solid var(--line);
}

.admin-profile-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--green);
  background: rgba(84, 242, 165, 0.1);
  font-size: 10px;
}

.admin-sidebar-footer strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
}

.admin-sidebar-footer button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.admin-page {
  min-width: 0;
  padding: 26px 28px 70px;
}

.payout-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 8;
  width: 224px;
  padding: 22px 16px 16px;
  border-right: 1px solid var(--line);
  background: rgba(5, 15, 11, 0.94);
  backdrop-filter: blur(18px);
}

.admin-payout-app {
  max-width: none;
  margin-left: 224px;
  padding-inline: 28px;
}

.admin-payout-app > .topbar,
.admin-payout-app > .grid {
  width: min(1190px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.admin-page main {
  width: min(1190px, 100%);
  margin: 0 auto;
}

.admin-mobile-header,
.admin-mobile-nav {
  display: none;
}

.route-page {
  display: grid;
  gap: 18px;
}

.route-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  min-height: 96px;
  padding: 6px 2px 8px;
}

.route-page-head h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.route-page-head p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.route-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.text-link {
  color: var(--green);
  font-size: 11px;
  text-decoration: none;
}

.account-page-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: -20px -20px 20px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.account-page-summary > div {
  padding: 20px;
  background: rgba(9, 24, 18, 0.96);
}

.account-page-summary span,
.account-page-summary strong {
  display: block;
}

.account-page-summary span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-page-summary strong {
  margin-top: 8px;
  color: var(--green);
  font-size: 26px;
  letter-spacing: -0.04em;
}

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

.account-monitor-card {
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 42, 32, 0.94), rgba(8, 21, 16, 0.92));
}

.account-monitor-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.account-monitor-top > span {
  color: var(--green);
  font-size: 10px;
}

.account-monitor-top > span.disconnected {
  color: var(--muted);
}

.account-monitor-balance {
  padding: 26px 0 22px;
}

.account-monitor-balance span,
.account-monitor-balance strong {
  display: block;
}

.account-monitor-balance span,
.account-monitor-stats span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-monitor-balance strong {
  margin-top: 5px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.account-monitor-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.account-monitor-stats span,
.account-monitor-stats strong {
  display: block;
}

.account-monitor-stats strong {
  margin-top: 4px;
  font-size: 11px;
}

.activity-snapshot .snapshot-number {
  margin: 16px 0 22px;
}

.snapshot-number strong,
.snapshot-number span {
  display: block;
}

.snapshot-number strong {
  color: var(--green);
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.snapshot-number span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.snapshot-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.snapshot-line span {
  color: var(--muted);
}

.users-page-grid,
.settings-page-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: start;
}

.settings-page-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.create-user-panel h2 {
  margin-bottom: 20px;
  color: var(--text);
  font-size: 20px;
  letter-spacing: -0.03em;
  text-transform: none;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.setting-row strong,
.setting-row span {
  display: block;
}

.setting-row strong {
  font-size: 12px;
}

.setting-row div span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.setting-state {
  flex: none;
  color: var(--green);
  font-size: 10px;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 8px 0 17px;
  padding: 13px;
  border-radius: 12px;
  background: rgba(84, 242, 165, 0.07);
}

.system-status strong,
.system-status span {
  display: block;
}

.system-status strong {
  font-size: 11px;
}

.system-status div span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.live-command-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: start;
}

.live-orbit {
  display: grid;
  place-items: center;
  width: 180px;
  aspect-ratio: 1;
  margin: 18px auto 24px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 var(--live-progress, 0%), rgba(255, 255, 255, 0.06) var(--live-progress, 0%) 100%);
}

.live-orbit > div {
  display: grid;
  place-items: center;
  width: 148px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--panel);
  text-align: center;
}

.live-orbit strong,
.live-orbit span {
  display: block;
}

.live-orbit strong {
  font-size: 36px;
  letter-spacing: -0.06em;
}

.live-orbit span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.live-campaign-list {
  display: grid;
  gap: 4px;
}

.campaign-row-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.campaign-detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.campaign-detail-metrics article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(12, 31, 23, 0.88);
}

.campaign-detail-metrics span,
.campaign-detail-metrics strong {
  display: block;
}

.campaign-detail-metrics span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.campaign-detail-metrics strong {
  margin-top: 7px;
  color: var(--green);
  font-size: 22px;
  letter-spacing: -0.04em;
  text-transform: capitalize;
}

.campaign-event-list {
  display: grid;
  gap: 0;
}

.campaign-event-row {
  padding: 11px 0 11px 13px;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid var(--green);
}

.campaign-event-row.error {
  border-left-color: var(--red);
}

.campaign-event-row strong,
.campaign-event-row span {
  display: block;
}

.connect-account-hero,
.user-balance-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 190px;
  padding: 26px;
  border-radius: 21px;
  color: #06100d;
  background: linear-gradient(135deg, var(--lime), var(--green));
  box-shadow: 0 24px 60px -34px rgba(84, 242, 165, 0.75);
}

.connect-account-hero::after,
.user-balance-hero::after {
  content: "₦";
  position: absolute;
  right: 18%;
  bottom: -80px;
  color: rgba(6, 16, 13, 0.07);
  font: 240px/1 Georgia, serif;
}

.connect-account-hero > *,
.user-balance-hero > * {
  position: relative;
  z-index: 1;
}

.connect-account-hero .section-kicker {
  color: rgba(6, 16, 13, 0.56);
}

.connect-account-hero h2 {
  max-width: 620px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.connect-account-hero p {
  margin-top: 10px;
  color: rgba(6, 16, 13, 0.62);
  font-size: 12px;
}

.connect-account-hero .btn-primary {
  flex: none;
  color: var(--text);
  background: #06100d;
}

.user-balance-hero > div > span,
.user-balance-hero > div > strong,
.user-balance-hero > div > small,
.user-game-identity strong,
.user-game-identity small {
  display: block;
}

.user-balance-hero > div > span {
  color: rgba(6, 16, 13, 0.58);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.user-balance-hero > div > strong {
  margin-top: 7px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.user-balance-hero > div > small {
  margin-top: 8px;
  color: rgba(6, 16, 13, 0.62);
  font-size: 11px;
}

.user-game-identity {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 190px;
  padding: 12px;
  border: 1px solid rgba(6, 16, 13, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
}

.user-game-identity .status-dot {
  background: #06100d;
  box-shadow: none;
}

.user-game-identity strong {
  font-size: 12px;
}

.user-game-identity small {
  margin-top: 3px;
  color: rgba(6, 16, 13, 0.6);
  font-size: 9px;
}

.user-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.user-metrics article {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(16, 39, 30, 0.96), rgba(8, 21, 16, 0.9));
}

.user-metrics span,
.user-metrics strong,
.user-metrics small {
  display: block;
}

.user-metrics span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.user-metrics strong {
  margin-top: 8px;
  color: var(--green);
  font-size: 25px;
  letter-spacing: -0.04em;
}

.user-metrics small {
  margin-top: 6px;
  color: #71877e;
  font-size: 9px;
}

.user-account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.game-login-card {
  width: min(520px, 100%);
}

.game-login-card h2 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 22px;
  letter-spacing: -0.03em;
  text-transform: none;
}

.account-card-actions {
  display: flex;
  gap: 9px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-page-nav a.is-disabled,
.admin-mobile-nav a.is-disabled {
  opacity: 0.42;
}

.campaign-event-row strong {
  font-size: 11px;
  font-weight: 600;
}

.campaign-event-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 5, 0.78);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 20;
}

.modal-card {
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.modal-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.modal-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-line;
}

.modal-textarea {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #0a1210;
  color: var(--text);
  font: 13px/1.6 ui-monospace, "Cascadia Code", Consolas, monospace;
  resize: vertical;
  outline: none;
}

.modal-textarea:focus {
  border-color: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(34, 197, 139, 0.14);
}

.confirm-input {
  width: 100%;
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #0a1210;
  color: var(--text);
  font: inherit;
  outline: none;
}

.confirm-input:focus {
  border-color: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(34, 197, 139, 0.14);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  background: #17241f;
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 13px;
  z-index: 60;
  box-shadow: var(--shadow);
}

.toast.bad {
  border-color: rgba(242, 109, 109, 0.45);
  color: #f7b7b7;
}

@media (max-width: 1000px) {
  .admin-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-monitor-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    flex-wrap: wrap;
    row-gap: 14px;
  }
  .topbar .brand {
    flex: 1 1 100%;
  }
  .connection-status {
    order: 3;
  }
  .brand h1 {
    white-space: nowrap;
  }
  #balance {
    font-size: 17px;
  }
}

@media (max-width: 900px) {
  body {
    background-size: auto, auto, 32px 32px, 32px 32px, auto;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .workspace-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 22px;
  }
  .admin-hero-actions {
    width: 100%;
    justify-items: stretch;
  }
  .admin-hero-actions .admin-updated {
    text-align: right;
  }
  .admin-hero::after {
    right: -20px;
  }
  .admin-account-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }
  .admin-account-activity {
    grid-column: 2 / 4;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .admin-user-layout {
    grid-template-columns: 1fr;
  }
  .table .trow {
    position: relative;
    grid-template-columns: minmax(0, 1fr) 32px;
    grid-template-areas:
      "user del"
      "amt amt"
      "check check";
    gap: 8px 9px;
  }
  .row-field-label {
    display: block;
  }
  .row-quick-amounts {
    margin-top: 6px;
  }
  .table .trow > :nth-child(1) {
    grid-area: user;
  }
  .table .trow > :nth-child(2) {
    grid-area: amt;
  }
  .table .trow > :nth-child(3) {
    grid-area: check;
  }
  .table .trow > :nth-child(4) {
    grid-area: del;
  }
  .table .thead > :nth-child(3),
  .table .thead > :nth-child(4) {
    display: none;
  }
  .table .thead {
    display: none;
  }
  .check {
    white-space: normal;
    min-height: 0;
    padding: 0 3px;
  }
  .row {
    margin-bottom: 9px;
    padding: 11px;
    border: 1px solid rgba(43, 67, 60, 0.72);
    border-radius: 13px;
    background: rgba(7, 12, 10, 0.5);
    box-shadow: 0 12px 28px -26px rgba(0, 0, 0, 0.95);
  }
  .row:last-child {
    border-bottom: 1px solid rgba(43, 67, 60, 0.72);
  }
  .row input {
    min-height: 44px;
    padding: 11px 12px;
    font-size: 16px;
  }
  .amount-preview {
    min-height: 23px;
    padding: 3px 7px;
    font-size: 12.5px;
  }
  .icon-btn {
    width: 30px;
    height: 44px;
    align-self: start;
  }
  .empty {
    padding: 24px 10px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .app {
    padding: 12px 10px 42px;
  }
  .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 15px;
  }
  .topbar .brand {
    grid-column: 1;
    min-width: 0;
  }
  .topbar > #logoutBtn {
    grid-column: 2;
    grid-row: 1;
    padding-inline: 12px;
  }
  .balance-block {
    grid-column: 1 / -1;
    flex: 1 1 auto;
    justify-content: space-between;
    padding: 9px 9px 9px 13px;
  }
  .connection-status {
    grid-column: 1;
    padding: 0 2px 2px;
  }
  #installBtn {
    grid-column: 2;
    grid-row: 3;
    padding: 7px 11px;
  }
  .panel {
    padding: 16px;
    border-radius: 15px;
  }
  .panel-head {
    align-items: flex-start;
  }
  .panel-head .row-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .btn.wide {
    min-height: 50px;
    border-radius: 13px;
    font-size: 15.5px;
  }
  .sum-row {
    padding: 10px 0;
  }
  .sum-row.total {
    padding-top: 15px;
  }
  .toast {
    width: calc(100% - 24px);
    bottom: 14px;
    text-align: center;
  }
  .log {
    max-height: 260px;
  }
}

/* Final polish pass. */
.nav-icon {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-symbol { display: grid; place-items: center; }
.payout-sidebar { display: flex; flex-direction: column; }
.payout-sidebar .admin-page-nav { flex: 0 0 auto; }
.payout-sidebar .admin-sidebar-footer { margin-top: auto; }

.payout-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(1190px, 100%);
  margin: 0 auto 18px;
}

.payout-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 22, 16, 0.66);
  color: var(--muted);
}

.payout-step > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}
.payout-step strong { font-size: 12px; color: var(--text); }
.payout-step small { color: var(--muted); font-size: 10px; }
.payout-step.active { border-color: rgba(84, 242, 165, 0.52); background: rgba(84, 242, 165, 0.1); }
.payout-step.active > span, .payout-step.complete > span { color: #06100d; background: var(--green); border-color: var(--green); }
.payout-step.complete { border-color: rgba(84, 242, 165, 0.22); }

.mobile-more-toggle {
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 9px;
  cursor: pointer;
}
.mobile-more-toggle[aria-expanded="true"] { color: var(--green); background: rgba(84, 242, 165, 0.1); }
.mobile-more-menu {
  position: absolute;
  right: 4px;
  bottom: 61px;
  display: grid;
  min-width: 150px;
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #0b1a14;
  box-shadow: var(--shadow);
}
.mobile-more-menu a { display: flex; align-items: center; min-height: 38px; padding: 0 11px; border-radius: 8px; color: var(--muted); font-size: 11px; text-decoration: none; }
.mobile-more-menu a:hover, .mobile-more-menu a.active { color: var(--text); background: rgba(84, 242, 165, 0.1); }

.account-freshness { color: #71877e !important; font-size: 10px !important; }
.user-activity-detail { scroll-margin-top: 18px; }
.detail-subheading { margin: 0 0 10px; color: var(--muted); font-size: 12px; text-transform: none; }
.section-kicker,
.panel h2,
.admin-nav-label,
.admin-table th,
.account-page-summary span,
.user-metrics span,
.metric-card > span { text-transform: none; letter-spacing: 0.08em; }

@media (max-width: 860px) {
  .payout-stepper { width: 100%; margin-bottom: 12px; overflow-x: auto; }
  .payout-step { min-width: 170px; }
  .admin-mobile-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .user-mobile-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-card-featured {
    grid-column: span 2;
  }
  .admin-hero h2 {
    font-size: 34px;
  }
  .admin-account-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .admin-account-balance {
    grid-column: 2;
    text-align: left;
  }
  .admin-account-activity {
    grid-column: 2;
    display: block;
  }
  .privacy-note {
    display: none;
  }
}

@media (max-width: 900px) {
  .topbar > #installBtn { grid-column: 2; grid-row: 2; align-self: start; }
}

/* Phone-first overrides: keep the primary action visible and remove desktop density. */
@media (max-width: 560px) {
  html, body { overflow-x: hidden; }
  body { font-size: 14px; }
  .app { width: 100%; max-width: none; padding: 8px 8px calc(86px + env(safe-area-inset-bottom)); }
  .admin-page { padding: 10px 8px calc(86px + env(safe-area-inset-bottom)); }
  .admin-payout-app { padding-inline: 8px; }
  .topbar { gap: 8px; padding: 10px; margin-bottom: 10px; }
  .topbar .brand { gap: 9px; }
  .brand.small .brand-mark { width: 34px; height: 34px; font-size: 16px; }
  .brand.small h1 { max-width: 130px; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  .brand p { font-size: 10px; }
  .topbar > #logoutBtn { padding: 8px 9px; font-size: 11px; }
  .connection-status { font-size: 10px; }
  .account-switcher > span { font-size: 8px; }
  .account-switcher select { min-height: 40px; font-size: 13px; }
  .balance-block { gap: 7px; padding: 8px; }
  .balance-block .label { font-size: 9px; }
  #balance { min-width: 0; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
  #refreshBtn { padding: 8px 9px; font-size: 11px; white-space: nowrap; }
  #installBtn { padding: 7px 9px; font-size: 11px; }
  .workspace-tabs { margin-bottom: 10px; }
  .workspace-tab { min-height: 34px; padding-inline: 8px; font-size: 11px; }
  .payout-stepper { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-bottom: 10px; overflow: visible; }
  .payout-step { min-width: 0; min-height: 64px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 8px; }
  .payout-step > span { width: 21px; height: 21px; font-size: 9px; }
  .payout-step strong { font-size: 10px; }
  .payout-step small { display: none; }
  .grid { gap: 10px; }
  .panel { padding: 13px; border-radius: 14px; }
  .panel-head { gap: 7px; margin-bottom: 11px; }
  .panel h2 { font-size: 12px; }
  .panel-head .row-actions { gap: 5px; }
  .row-actions { gap: 5px; }
  .btn { min-height: 40px; padding: 9px 11px; font-size: 12px; }
  .btn.small { min-height: 34px; padding: 6px 8px; font-size: 10px; }
  .btn.wide { min-height: 48px; }
  .table .trow { grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
  .row { padding: 9px; }
  .row input { min-height: 43px; padding: 10px; }
  .row input.amount { font-size: 14px; }
  .row-quick-amounts .quick-amount { min-height: 38px; }
  .amount-preview { min-height: 22px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .settings-grid { gap: 0; }
  .settings-grid label { margin-bottom: 11px; }
  .side { gap: 10px; }
  .sum-row { padding: 8px 0; font-size: 12px; }
  .sum-row.total strong { font-size: 17px; }
  .toggle { margin-top: 13px; padding: 10px; }
  .toggle-text strong { font-size: 12px; }
  .toggle-text em, .fine { font-size: 10px; }
  .limit-list li { padding: 7px 0; font-size: 11px; }
  .limit-list strong { max-width: 58%; }
  .log-panel { min-height: 150px; }
  .log { max-height: 220px; font-size: 11px; }
  .job-history-row { align-items: flex-start; padding: 11px 0; font-size: 11px; }
  .job-status { font-size: 10px; }
  .admin-mobile-nav { right: 7px; bottom: max(7px, env(safe-area-inset-bottom)); left: 7px; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 4px; border-radius: 14px; }
  .admin-command-mobile-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .admin-mobile-nav a, .admin-mobile-nav .mobile-more-toggle { min-height: 43px; font-size: 9px; }
  .mobile-more-menu { right: 2px; bottom: 56px; }
  .route-page { gap: 12px; }
  .route-page-head { gap: 12px; padding: 2px 0 4px; }
  .route-page-head h1 { font-size: 28px; line-height: 1.04; }
  .route-page-head p { margin-top: 7px; font-size: 11px; }
  .route-head-actions { align-items: stretch; gap: 7px; }
  .route-head-actions .admin-updated { font-size: 9px; }
  .admin-metrics { gap: 7px; }
  .metric-card { padding: 12px; border-radius: 13px; }
  .metric-card > strong { font-size: 20px; }
  .metric-card > small { font-size: 9px; }
  .admin-hero { padding: 18px; border-radius: 16px; }
  .admin-hero h2 { font-size: 29px; }
  .admin-hero p { font-size: 11px; }
  .admin-monitor-grid, .users-page-grid, .settings-page-grid, .user-account-layout { gap: 10px; }
  .admin-account-row { gap: 8px; padding: 11px 0; }
  .admin-account-identity strong, .admin-account-activity strong, .admin-account-balance strong { font-size: 12px; }
  .admin-table-wrap { margin-inline: -4px; padding-inline: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table { min-width: 620px; }
  .user-app-shell .admin-table { min-width: 640px; }
  .admin-table th, .admin-table td { padding: 9px 7px; font-size: 10px; }
  .account-page-summary { margin: -13px -13px 13px; }
  .account-page-summary > div { padding: 12px 13px; }
  .account-monitor-card { padding: 13px; }
  .account-monitor-balance strong { font-size: 23px; }
  .account-card-actions { flex-direction: column; gap: 6px; padding-top: 12px; }
  .account-card-actions .btn { width: 100%; }
  .user-metrics { gap: 7px; }
  .user-metrics article { padding: 12px; }
  .user-metrics strong { font-size: 21px; }
  .campaign-detail-metrics { gap: 6px; }
  .campaign-detail-metrics article { padding: 11px; }
  .campaign-detail-metrics article strong { font-size: 16px; }
  .live-command-grid { gap: 10px; }
}

/* Premium visual system: calmer surfaces, stronger hierarchy, and intentional depth. */
:root {
  --bg: #040d09;
  --bg-soft: #071711;
  --panel: #0b1e16;
  --panel-2: #10291f;
  --line: rgba(188, 255, 221, 0.12);
  --line-strong: rgba(188, 255, 221, 0.23);
  --text: #f3faf6;
  --muted: #94aea1;
  --green: #5cf2aa;
  --green-deep: #0fb978;
  --lime: #d2ff78;
  --shadow: 0 30px 80px -34px rgba(0, 0, 0, 0.96);
  --shadow-soft: 0 20px 50px -30px rgba(0, 0, 0, 0.96);
}

body {
  background:
    radial-gradient(900px 500px at 82% -8%, rgba(92, 242, 170, 0.16), transparent 68%),
    radial-gradient(700px 460px at -10% 96%, rgba(210, 255, 120, 0.055), transparent 65%),
    linear-gradient(rgba(188, 255, 221, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188, 255, 221, 0.014) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 48px 48px, 48px 48px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
.admin-brand strong,
.brand h1 {
  letter-spacing: -0.035em;
}

.btn {
  min-height: 44px;
  border-radius: 14px;
  border-color: rgba(188, 255, 221, 0.16);
  background: linear-gradient(180deg, rgba(18, 44, 33, 0.96), rgba(10, 27, 20, 0.96));
  box-shadow: 0 12px 28px -22px rgba(0, 0, 0, 0.95), inset 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(92, 242, 170, 0.48);
  box-shadow: 0 16px 30px -22px rgba(92, 242, 170, 0.5), inset 0 1px rgba(255, 255, 255, 0.08);
}

.btn-primary {
  color: #03110a;
  background: linear-gradient(135deg, #77ffc0 0%, var(--green) 52%, #22d486 100%);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 34px -20px rgba(92, 242, 170, 0.78), inset 0 1px rgba(255, 255, 255, 0.42);
}

.btn-primary:hover:not(:disabled) {
  filter: none;
  box-shadow: 0 21px 38px -21px rgba(92, 242, 170, 0.88), inset 0 1px rgba(255, 255, 255, 0.52);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.018);
  border-color: rgba(188, 255, 221, 0.18);
}

input[type="text"],
input[type="password"],
input[type="number"],
select {
  border-color: rgba(188, 255, 221, 0.18);
  background: rgba(3, 13, 9, 0.72);
  border-radius: 14px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

input:focus,
select:focus {
  border-color: rgba(92, 242, 170, 0.82);
  box-shadow: 0 0 0 4px rgba(92, 242, 170, 0.12), inset 0 1px rgba(255, 255, 255, 0.05);
}

.topbar {
  border-color: rgba(188, 255, 221, 0.16);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(13, 35, 26, 0.92), rgba(5, 17, 12, 0.86));
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.98), inset 0 1px rgba(255, 255, 255, 0.05);
}

.panel {
  border-color: rgba(188, 255, 221, 0.14);
  background: linear-gradient(160deg, rgba(14, 37, 27, 0.9), rgba(6, 19, 13, 0.93));
  box-shadow: var(--shadow-soft), inset 0 1px rgba(255, 255, 255, 0.025);
}

.panel.summary {
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(92, 242, 170, 0.12), transparent 72%),
    linear-gradient(160deg, rgba(16, 43, 31, 0.94), rgba(6, 19, 13, 0.95));
}

.panel-head h2::before {
  width: 4px;
  box-shadow: 0 0 16px rgba(92, 242, 170, 0.7);
}

.admin-sidebar,
.payout-sidebar {
  border-color: rgba(188, 255, 221, 0.11);
  background: linear-gradient(180deg, rgba(4, 17, 11, 0.98), rgba(3, 12, 8, 0.98));
  box-shadow: 18px 0 50px -44px rgba(92, 242, 170, 0.35);
}

.admin-page-nav a {
  min-height: 46px;
  border: 1px solid transparent;
  color: #8fa99c;
}

.admin-page-nav a.active {
  border-color: rgba(92, 242, 170, 0.12);
  background: linear-gradient(100deg, rgba(92, 242, 170, 0.15), rgba(92, 242, 170, 0.045));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.admin-page-nav a.active::before {
  box-shadow: 0 0 18px rgba(92, 242, 170, 0.9);
}

.admin-hero {
  color: var(--text);
  border: 1px solid rgba(188, 255, 221, 0.16);
  background:
    radial-gradient(460px 230px at 88% -20%, rgba(92, 242, 170, 0.2), transparent 70%),
    linear-gradient(135deg, #123b2a, #0a2118 58%, #07140e);
  box-shadow: 0 32px 70px -40px rgba(0, 0, 0, 0.98), inset 0 1px rgba(255, 255, 255, 0.06);
}

.admin-hero::after {
  color: rgba(92, 242, 170, 0.055);
}

.admin-hero .section-kicker {
  color: var(--green);
}

.admin-hero h2 {
  color: var(--text);
}

.admin-hero p,
.admin-updated {
  color: #a9c0b5;
}

.admin-hero .btn-primary {
  color: #03110a;
  background: var(--green);
}

.metric-card {
  border-color: rgba(188, 255, 221, 0.14);
  background: linear-gradient(160deg, rgba(16, 45, 33, 0.94), rgba(7, 21, 15, 0.96));
  box-shadow: var(--shadow-soft), inset 0 1px rgba(255, 255, 255, 0.03);
}

.metric-card::before {
  width: 38px;
  height: 3px;
  border-radius: 99px;
  box-shadow: 0 0 16px rgba(92, 242, 170, 0.55);
}

.metric-card-featured {
  background: linear-gradient(145deg, rgba(25, 77, 54, 0.95), rgba(10, 34, 24, 0.98));
}

.route-page-head h1 {
  font-size: clamp(34px, 4.8vw, 58px);
  letter-spacing: -0.065em;
}

.route-page-head p {
  color: #9fb7aa;
}

.admin-panel-head h2 {
  color: var(--text);
  letter-spacing: -0.025em;
}

.payout-stepper {
  padding: 6px;
  border: 1px solid rgba(188, 255, 221, 0.13);
  border-radius: 18px;
  background: rgba(4, 15, 10, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.payout-step {
  border-color: transparent;
  border-radius: 13px;
}

.payout-step.active {
  border-color: rgba(92, 242, 170, 0.32);
  background: linear-gradient(135deg, rgba(92, 242, 170, 0.16), rgba(92, 242, 170, 0.045));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.admin-mobile-nav {
  border-color: rgba(188, 255, 221, 0.19);
  background: rgba(4, 15, 10, 0.9);
  box-shadow: 0 24px 54px -22px rgba(0, 0, 0, 0.98), inset 0 1px rgba(255, 255, 255, 0.05);
}

.admin-mobile-nav a.active,
.mobile-more-toggle[aria-expanded="true"] {
  color: var(--green);
  background: linear-gradient(135deg, rgba(92, 242, 170, 0.17), rgba(92, 242, 170, 0.05));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.mobile-more-menu {
  border-color: rgba(188, 255, 221, 0.2);
  background: #0a2117;
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .app,
  .admin-page,
  .admin-payout-app {
    padding-bottom: calc(128px + env(safe-area-inset-bottom));
  }

  .route-page-head h1 {
    max-width: 100%;
    font-size: clamp(29px, 9vw, 40px);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .route-page-head p {
    max-width: 100%;
  }

  .live-overview-card,
  .live-command-grid,
  .admin-monitor-grid,
  .panel {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .live-orbit {
    width: min(220px, 70vw);
    height: min(220px, 70vw);
    margin-inline: auto;
  }

  .admin-table-wrap {
    max-width: 100%;
    border-radius: 12px;
  }
}

@media (max-width: 560px) {
  .topbar {
    border-radius: 20px;
    box-shadow: 0 20px 44px -28px rgba(0, 0, 0, 0.98), inset 0 1px rgba(255, 255, 255, 0.05);
  }

  .panel {
    border-radius: 17px;
  }

  .payout-stepper {
    gap: 4px;
    padding: 4px;
  }

  .payout-step {
    min-height: 62px;
    padding: 7px;
  }

  .payout-step small {
    display: none;
  }

  .admin-mobile-nav {
    right: 8px;
    bottom: max(9px, env(safe-area-inset-bottom));
    left: 8px;
    padding: 5px;
    border-radius: 17px;
  }

  .admin-mobile-nav a,
  .admin-mobile-nav .mobile-more-toggle {
    min-height: 44px;
    border-radius: 12px;
    font-size: 9px;
  }

  .payout-mobile-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  #refreshBtn {
    width: 42px;
    min-width: 42px;
    padding: 0;
  }

  #refreshBtn span {
    display: none;
  }
}

/* Account hub: make account management feel like a first-class workspace. */
.accounts-network-panel {
  padding-top: 20px;
}

.account-command-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: end;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(92, 242, 170, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(420px 190px at 100% 0%, rgba(92, 242, 170, 0.18), transparent 72%),
    linear-gradient(135deg, rgba(22, 67, 47, 0.94), rgba(8, 26, 18, 0.96));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.account-command-hero::after {
  content: "₦";
  position: absolute;
  right: 9%;
  bottom: -58px;
  color: rgba(92, 242, 170, 0.06);
  font: 180px/1 Georgia, serif;
  pointer-events: none;
}

.account-command-hero > div:first-child,
.account-command-hero > button {
  position: relative;
  z-index: 1;
}

.account-command-hero h2 {
  max-width: 480px;
  color: var(--text);
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.05em;
}

.account-command-hero p {
  max-width: 540px;
  margin-top: 8px;
  color: #b4cfc0;
  font-size: 12px;
}

.account-command-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1;
  color: #9fc0ae;
  font-size: 10px;
}

.account-command-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(188, 255, 221, 0.14);
  border-radius: 999px;
  background: rgba(4, 15, 10, 0.25);
}

.account-command-meta .status-dot {
  width: 6px;
  height: 6px;
}

.account-command-hero > .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 168px;
}

.accounts-network-panel .account-page-summary {
  margin: 20px -20px 20px;
}

.account-lane-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -7px 0 16px;
}

.account-lane-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(188, 255, 221, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(3, 14, 9, 0.34);
  font-size: 10px;
}

.account-lane-chip strong {
  overflow: hidden;
  color: var(--text);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-lane-chip.is-active {
  border-color: rgba(92, 242, 170, 0.35);
  color: var(--green);
  background: rgba(92, 242, 170, 0.09);
}

.admin-game-account-modal-card {
  width: min(460px, calc(100% - 28px));
}

.admin-game-account-modal-card .modal-heading {
  display: grid;
  gap: 7px;
  margin-bottom: 20px;
}

.admin-game-account-modal-card .modal-heading h3 {
  color: var(--text);
  font-size: 25px;
  letter-spacing: -0.045em;
}

.admin-game-account-modal-card .modal-heading p {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 700px) {
  .account-command-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 19px;
  }

  .account-command-meta,
  .account-command-hero > .btn {
    grid-column: 1;
    grid-row: auto;
  }

  .account-command-hero > .btn {
    width: 100%;
  }

  .accounts-network-panel .account-page-summary {
    margin: 15px -13px 14px;
  }
}

/* Audit pass: clearer hierarchy, safer focus states, and stable payout rail. */
:focus-visible {
  outline: 3px solid rgba(84, 242, 165, 0.92);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

select {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  background: #0a1210;
  font: inherit;
}

.account-switcher {
  display: grid;
  min-width: 190px;
  gap: 2px;
  margin-left: auto;
}

.account-switcher > span {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-switcher small {
  color: var(--muted);
  font-size: 10px;
}

.connection-status.is-warning { color: var(--amber); }
.connection-status.is-warning .status-dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 200, 87, 0.1); }

@media (min-width: 901px) {
  .summary { position: static; }
  .side { align-content: start; }
}

.empty.compact { padding: 18px 14px; font-size: 12px; }
.log:empty + .empty { display: block; }
.log:not(:empty) + .empty { display: none; }

.amount-preview {
  color: #8df5c3;
  background: rgba(84, 242, 165, 0.11);
  border-color: rgba(84, 242, 165, 0.34);
}

.account-monitor-card.selected {
  border-color: rgba(84, 242, 165, 0.6);
  box-shadow: 0 0 0 1px rgba(84, 242, 165, 0.12), var(--shadow-soft);
}

.user-game-account-list { display: grid; gap: 12px; }
.user-game-account-card { padding: 17px; }
.user-game-account-card .account-card-actions { flex-wrap: wrap; }
.user-game-account-card .account-monitor-balance { margin: 16px 0; }
.account-monitor-balance small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }

.credential-handoff {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(84, 242, 165, 0.35);
  border-radius: 13px;
  background: rgba(84, 242, 165, 0.07);
}

.credential-handoff .section-kicker { margin-bottom: 0; }
.credential-handoff strong { color: var(--text); }
.credential-handoff code { color: var(--green); font-size: 14px; letter-spacing: 0.04em; }

.offline-page {
  display: grid;
  gap: 22px;
  width: min(520px, calc(100% - 32px));
  margin: 12vh auto;
}
.offline-card { display: grid; gap: 12px; }
.offline-card h2 { color: var(--text); font-size: 30px; letter-spacing: -0.04em; }
.offline-card p { color: var(--muted); }

@media (max-width: 900px) {
  .account-switcher { grid-column: 1 / -1; min-width: 0; margin-left: 0; }
  .account-switcher select { min-height: 42px; }
}

@media (max-width: 860px) {
  .admin-app-shell {
    display: block;
    min-height: 100vh;
  }
  .admin-sidebar {
    display: none;
  }
  .admin-page {
    padding: 14px 12px 84px;
  }
  .payout-sidebar {
    display: none;
  }
  .admin-payout-app {
    margin-left: 0;
    padding-inline: 10px;
  }
  .admin-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 2px;
  }
  .admin-mobile-header .admin-brand {
    padding: 0;
  }
  .admin-mobile-header .admin-brand-mark {
    width: 36px;
    height: 36px;
  }
  .admin-mobile-nav {
    position: fixed;
    z-index: 15;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 3px;
    padding: 5px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(5, 16, 11, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
  }
  .admin-mobile-nav a {
    display: grid;
    place-items: center;
    min-height: 46px;
    border-radius: 11px;
    color: var(--muted);
    font-size: 9px;
    text-decoration: none;
  }
  .admin-mobile-nav a.active {
    color: var(--green);
    background: rgba(84, 242, 165, 0.1);
  }
  .route-page-head {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }
  .route-page-head > .btn,
  .route-head-actions {
    width: 100%;
  }
  .route-head-actions {
    justify-content: space-between;
  }
  .route-page-head > .btn {
    justify-content: center;
  }
  .accounts-page-grid,
  .users-page-grid,
  .settings-page-grid {
    grid-template-columns: 1fr;
  }
  .live-command-grid {
    grid-template-columns: 1fr;
  }
  .user-mobile-nav {
    grid-template-columns: repeat(5, 1fr);
  }
  .user-account-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .account-page-summary {
    grid-template-columns: 1fr;
  }
  .account-page-summary > div {
    padding: 14px 16px;
  }
  .account-monitor-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .route-page-head h1 {
    font-size: 34px;
  }
  .campaign-detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .connect-account-hero,
  .user-balance-hero {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 22px;
  }
  .connect-account-hero .btn-primary {
    width: 100%;
  }
  .user-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Balance snapshots, activity tabs and live payout tracking */
.balance-freshness {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.balance-freshness::before,
.account-freshness::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.balance-freshness.snapshot-confirmed,
.account-freshness.snapshot-confirmed { color: var(--green); border-color: rgba(84, 242, 165, 0.3); }
.balance-freshness.snapshot-estimated,
.account-freshness.snapshot-estimated { color: var(--amber); border-color: rgba(255, 200, 87, 0.35); }
.balance-freshness.snapshot-refreshing,
.account-freshness.snapshot-refreshing { color: var(--lime); border-color: rgba(200, 255, 88, 0.3); }
.balance-freshness.snapshot-stale,
.account-freshness.snapshot-stale { color: var(--amber); border-color: rgba(255, 200, 87, 0.5); }
.balance-freshness.snapshot-error,
.account-freshness.snapshot-error { color: var(--red); border-color: rgba(242, 109, 109, 0.45); }

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(6, 16, 13, 0.72);
}
.activity-tabs {
  margin: 10px 0 14px;
  width: fit-content;
  max-width: 100%;
}
.activity-tab {
  min-height: 40px;
  padding: 8px 15px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.activity-tab:hover { color: var(--text); background: rgba(84, 242, 165, 0.07); }
.activity-tab.active {
  color: #04120d;
  background: linear-gradient(140deg, var(--green), #83e9bb);
}
.activity-tab:focus-visible,
.history-filters input:focus-visible,
.history-filters select:focus-visible,
.btn:focus-visible,
.icon-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.activity-sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 8px 0 4px;
  margin: -8px 0 4px;
  background: linear-gradient(180deg, var(--bg) 75%, rgba(6, 16, 13, 0));
}
.activity-sticky .campaign-detail-metrics {
  margin-bottom: 10px;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}
.activity-panel { display: grid; gap: 14px; }
.activity-overview { display: grid; gap: 2px; padding-top: 4px; }
.activity-overview-heading {
  margin: 14px 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.snapshot-line.manual-review,
.snapshot-line.manual-review strong { color: var(--amber); }
.history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}
.history-filters label {
  display: grid;
  gap: 5px;
  min-width: min(240px, 100%);
  flex: 1 1 210px;
}
.history-filters label > span {
  margin: 0;
}
.history-filters input,
.history-filters select {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #0a1210;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.admin-status.done,
.admin-status.completed,
.admin-status.confirmed { color: var(--green); background: rgba(84, 242, 165, 0.12); }
.admin-status.estimated,
.admin-status.stale,
.admin-status.paused,
.admin-status.waiting { color: var(--amber); background: rgba(255, 200, 87, 0.12); }
.admin-status.refreshing,
.admin-status.pending { color: var(--lime); background: rgba(200, 255, 88, 0.1); }
.admin-status.stopping,
.admin-status.stopped { color: var(--amber); background: rgba(255, 200, 87, 0.16); }
.admin-status.manual_review,
.admin-status.review { color: var(--red); background: rgba(242, 109, 109, 0.16); }
.admin-status.error,
.admin-status.failed { color: var(--red); background: rgba(242, 109, 109, 0.12); }
.job-status.stopping,
.job-status.stopped { color: var(--amber); border-color: rgba(255, 200, 87, 0.4); }
.job-status.manual_review,
.job-status.review { color: var(--red); border-color: rgba(242, 109, 109, 0.45); }
.job-status.completed { color: var(--green); border-color: rgba(84, 242, 165, 0.4); }
.job-status.waiting { color: var(--amber); border-color: rgba(255, 200, 87, 0.4); }

.live-job {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(10, 23, 18, 0.72);
}
.live-job-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.live-job-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.live-job-stats > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}
.live-job-stats span { color: var(--muted); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.live-job-stats strong { font-size: 13px; }
.live-job > .fine { margin: 0; }
.review-card { width: min(500px, 100%); }
.review-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  margin: 15px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.review-summary dt { color: var(--muted); font-size: 12px; }
.review-summary dd { margin: 0; font-size: 12.5px; font-weight: 700; text-align: right; }
.review-warnings {
  display: grid;
  gap: 7px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 200, 87, 0.38);
  border-radius: 11px;
  background: rgba(255, 200, 87, 0.08);
  color: #ffe3a6;
  font-size: 12px;
}
.review-warnings p { margin: 0; }
.review-card .modal-actions .btn-danger {
  background: linear-gradient(140deg, #d94a4a, var(--red));
  color: #fff;
  border-color: transparent;
}
.review-card .modal-actions .btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 560px) {
  .activity-tab { min-height: 44px; padding: 9px 12px; font-size: 11px; }
  .activity-tabs { width: 100%; }
  .activity-tab { flex: 1 1 calc(50% - 4px); }
  .live-job-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-filters label { min-width: 100%; }
  .review-summary { grid-template-columns: 1fr; gap: 3px; }
  .review-summary dd { text-align: left; margin-bottom: 6px; }
  .btn,
  .history-filters input,
  .history-filters select,
  .account-card-actions .btn { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .activity-tab,
  .btn,
  .live-job,
  .balance-freshness { transition: none !important; animation: none !important; }
}

.admin-status.skipped { color: var(--muted); background: rgba(217, 255, 231, 0.08); }
.transfer-history-row { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.transfer-history-row td { padding-block: 15px; }
.transfer-history-row:hover td { background: rgba(84, 242, 165, 0.045); }
.transfer-history-row:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.transfer-recipient-cell { position: relative; padding-right: 24px !important; }
.transfer-row-chevron {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
}
.transfer-history-row:hover .transfer-row-chevron,
.transfer-history-row:focus-visible .transfer-row-chevron { color: var(--green); }

.recipient-summary-row { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.recipient-summary-row td { padding-block: 15px; }
.recipient-summary-row:hover td { background: rgba(84, 242, 165, 0.045); }
.recipient-summary-row:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.recipient-summary-row:hover .transfer-row-chevron,
.recipient-summary-row:focus-visible .transfer-row-chevron { color: var(--green); }
.recipient-summary-line {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  margin-inline: -6px;
  padding-inline: 6px;
  border-radius: 8px;
}
.recipient-summary-line:hover { background: rgba(84, 242, 165, 0.045); }
.recipient-summary-line:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.recipient-components { margin-top: 14px; }
.recipient-components h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.recipient-summary-table { min-width: 500px; }
.recipient-summary-table td { vertical-align: middle; }
.recipient-summary-table .admin-status { display: inline-flex; }
.recipient-summary-card .receipt-amount { margin-top: 14px; }

.transfer-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(3, 6, 5, 0.86);
  overflow-y: auto;
}
.transfer-sheet {
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  min-height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 16px max(18px, env(safe-area-inset-bottom));
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  outline: none;
  animation: transfer-sheet-in 0.22s ease-out;
}
@keyframes transfer-sheet-in {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.transfer-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.receipt-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.receipt-brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #04120d;
  background: linear-gradient(150deg, var(--green), #7be3b8);
  font-size: 13px;
  font-weight: 800;
}
.receipt-brand strong { display: block; font-size: 13px; letter-spacing: -0.02em; }
.receipt-brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.receipt-close {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 16px;
}
.receipt-card {
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    radial-gradient(320px 170px at 100% 0, rgba(84, 242, 165, 0.13), transparent 70%),
    linear-gradient(160deg, #10271e, #0a1712 72%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}
.receipt-kicker {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.receipt-proof { color: var(--green); text-align: right; }
.receipt-amount {
  margin-top: 18px;
  color: var(--text);
  font-size: clamp(36px, 10vw, 48px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.receipt-amount-label { margin-top: 4px; color: var(--muted); font-size: 11px; }
.receipt-recipient {
  margin-top: 15px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.receipt-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.receipt-status {
  gap: 6px;
  align-items: center;
  padding: 6px 10px;
  font-size: 12px;
  text-transform: none;
}
.receipt-status-symbol { font-weight: 800; line-height: 1; }
.receipt-status-note { color: var(--muted); font-size: 11px; line-height: 1.4; }
.receipt-details { display: grid; margin: 4px 0 0; }
.receipt-details > div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.receipt-details > div:last-child { border-bottom: 0; }
.receipt-details dt { color: var(--muted); font-size: 11px; }
.receipt-details dd {
  margin: 0;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.receipt-footnote {
  margin-top: 14px;
  color: #71877e;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-align: center;
}
.transfer-sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}
.transfer-sheet-actions .btn { min-height: 46px; }
.transfer-sheet-actions .btn:first-child { grid-column: 1 / -1; }
.receipt-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}
@media (min-width: 700px) {
  .transfer-modal { align-items: center; padding: 24px; }
  .transfer-sheet {
    display: block;
    min-height: 0;
    max-height: min(88vh, 920px);
    padding: 18px;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
  }
  .transfer-sheet-actions { margin-top: 12px; }
}
@media (max-width: 360px) {
  .receipt-details > div { grid-template-columns: 1fr; gap: 3px; }
  .receipt-details dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .transfer-sheet { animation: none; }
}

/* Dashboard interaction pass: semantic cards, detail sheets and quick fills. */
.metric-card,
.account-monitor-card-button,
.admin-account-row-button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.metric-card {
  display: block;
}

.metric-card:hover {
  border-color: rgba(84, 242, 165, 0.38);
  background: linear-gradient(160deg, rgba(21, 53, 40, 0.98), rgba(8, 21, 16, 0.94));
}

.metric-card:focus-visible,
.admin-account-row-button:focus-visible,
.account-monitor-card-button:focus-visible,
.live-overview-trigger:focus-visible,
.activity-metric-buttons button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.metric-card-featured:hover {
  background: linear-gradient(145deg, rgba(35, 92, 66, 0.94), rgba(12, 36, 26, 0.98));
}

.admin-account-row-button {
  border: 1px solid transparent;
}

.admin-account-row-button .admin-account-identity,
.admin-account-row-button .admin-account-activity,
.admin-account-row-button .admin-account-balance {
  display: block;
}

.account-monitor-card-button {
  display: block;
  border: 1px solid var(--line);
}

.account-monitor-card-button:hover {
  border-color: rgba(84, 242, 165, 0.42);
}

.account-monitor-card-button .account-lane-list,
.account-monitor-card-button .account-monitor-stats {
  display: grid;
}

.account-monitor-card-button .account-lane-list {
  display: flex;
}

.admin-campaign-main {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.admin-campaign-main:hover .admin-campaign-top strong {
  color: var(--green);
}

.admin-campaign-main:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.admin-campaign-row .campaign-row-controls {
  justify-content: flex-end;
  padding-top: 8px;
}

.admin-campaign-row .campaign-row-controls:empty {
  display: none;
}

.live-overview-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.live-orbit > span {
  display: grid;
  place-items: center;
  width: 148px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--panel);
  text-align: center;
}

.live-overview-trigger .snapshot-line {
  display: flex;
}

.activity-metric-buttons button {
  display: block;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: inherit;
  background: rgba(12, 31, 23, 0.88);
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.activity-metric-buttons button:hover {
  border-color: rgba(84, 242, 165, 0.38);
  background: rgba(84, 242, 165, 0.06);
}

.activity-metric-buttons button:focus-visible {
  outline-offset: 2px;
}

.admin-detail-sheet {
  width: min(680px, 100%);
}

.admin-detail-card {
  display: grid;
  gap: 8px;
}

.admin-detail-note {
  margin: 10px 0 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.admin-detail-summary {
  margin-top: 6px;
  border-bottom: 1px solid var(--line);
}

.admin-detail-body {
  display: grid;
  gap: 16px;
}

.admin-detail-section {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.admin-detail-section h3 {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-detail-list {
  display: grid;
  gap: 2px;
}

.admin-detail-row {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.admin-detail-row:hover {
  background: rgba(84, 242, 165, 0.045);
}

.admin-detail-row:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.admin-detail-row strong,
.admin-detail-row span {
  display: block;
}

.admin-detail-row strong {
  color: var(--text);
  font-size: 12px;
}

.admin-detail-row span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.admin-detail-row-meta {
  color: #71877e !important;
}

.admin-detail-row-static {
  cursor: default;
}

.admin-detail-row-static:hover {
  background: transparent;
}

.admin-detail-recipient {
  cursor: pointer;
}

.admin-detail-table {
  min-width: 540px;
}

.admin-detail-campaign {
  display: grid;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.admin-detail-campaign:last-child {
  border-bottom: 0;
}

.admin-detail-controls {
  justify-content: flex-end;
}

.admin-detail-issue {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.admin-detail-issue:hover {
  background: rgba(84, 242, 165, 0.045);
}

.admin-detail-issue:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.admin-detail-issue-main {
  display: grid;
  gap: 4px;
}

.admin-detail-issue-main strong {
  color: var(--text);
  font-size: 12px;
}

.admin-detail-issue-main span:not(.admin-status) {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.admin-detail-issue .text-link {
  justify-self: start;
}

.row-quick-amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 5px;
}

.quick-amount {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 5px 2px;
  border: 1px solid rgba(84, 242, 165, 0.24);
  border-radius: 8px;
  color: var(--green);
  background: rgba(84, 242, 165, 0.07);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.quick-amount:hover:not(:disabled) {
  border-color: rgba(84, 242, 165, 0.5);
  background: rgba(84, 242, 165, 0.14);
}

.quick-amount:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.quick-amount:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 560px) {
  .activity-metric-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-metric-buttons button {
    padding: 12px;
  }

  .quick-amount {
    min-height: 38px;
    font-size: 11px;
  }

  .admin-detail-sheet {
    width: 100%;
  }
}

.admin-detail-issue-main {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.admin-detail-issue-main:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.admin-detail-issue-main .admin-status {
  display: inline-flex;
  margin-top: 2px;
}

/* Mobile metrics and compact recipient detail pass. */
.metric-card,
.user-metrics article,
.campaign-detail-metrics article,
.activity-metric-buttons button,
.metric-card > span,
.metric-card > strong,
.metric-card > small,
.user-metrics article > span,
.user-metrics article > strong,
.user-metrics article > small,
.campaign-detail-metrics article > span,
.campaign-detail-metrics article > strong {
  min-width: 0;
}

.metric-card > strong,
.user-metrics strong,
.campaign-detail-metrics strong,
.activity-metric-buttons strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.06;
}

.transfer-coverage {
  margin: -4px 0 10px;
}

.admin-recipient-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.admin-recipient-card {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  background: rgba(12, 31, 23, 0.72);
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.admin-recipient-card:hover {
  border-color: rgba(84, 242, 165, 0.38);
  background: rgba(84, 242, 165, 0.06);
}

.admin-recipient-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.admin-recipient-card > strong,
.admin-recipient-card > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-recipient-card > strong {
  color: var(--text);
  font-size: 12px;
}

.admin-recipient-card-amount {
  color: var(--green);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.admin-recipient-card-meta {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.admin-recipient-card-outcome {
  justify-self: start;
  padding: 2px 7px;
  border: 1px solid rgba(84, 242, 165, 0.26);
  border-radius: 999px;
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
}

.admin-recipient-card-outcome.attention {
  border-color: rgba(255, 200, 87, 0.4);
  color: var(--amber);
}

.admin-recipient-more {
  grid-column: 1 / -1;
  justify-self: start;
}

.admin-detail-disclosure {
  margin-top: 15px;
  border-top: 1px solid var(--line);
}

.admin-detail-disclosure > summary {
  padding: 12px 0 8px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.admin-detail-disclosure > summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.admin-detail-disclosure-body {
  padding-top: 6px;
}

.admin-detail-more {
  margin-top: 8px;
}

.recipient-components-more-row td {
  text-align: center;
}

@media (min-width: 901px) {
  .row .check,
  .row .icon-btn {
    align-self: center;
  }
}

@media (max-width: 360px) {
  .admin-metrics,
  .user-metrics,
  .campaign-detail-metrics,
  .activity-metric-buttons {
    grid-template-columns: 1fr;
  }
  .metric-card-featured {
    grid-column: auto;
  }
}


/* 2026-11-01 UI/UX remediation: state honesty, money safety, responsive admin and contrast. */
:root {
  --muted: #9fb3a8;
  --text-subtle: #a7bbaf;
  --text-faint: #8fa99c;
  --radius: 18px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
}

/* Softer page grid so content wins over decoration. */
body {
  background:
    radial-gradient(900px 500px at 82% -8%, rgba(92, 242, 170, 0.12), transparent 68%),
    radial-gradient(700px 460px at -10% 96%, rgba(210, 255, 120, 0.04), transparent 65%),
    linear-gradient(rgba(188, 255, 221, 0.008) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188, 255, 221, 0.008) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 56px 56px, 56px 56px, auto;
}

/* Remove decorative accent bars and watermarks that compete with content. */
.metric-card::before,
.panel-head h2::before,
.admin-page-nav a.active::before,
.admin-hero::after,
.account-command-hero::after,
.connect-account-hero::after,
.user-balance-hero::after {
  display: none !important;
}

.admin-hero,
.connect-account-hero,
.account-command-hero {
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(92, 242, 170, 0.1), transparent 72%),
    linear-gradient(135deg, rgba(17, 53, 38, 0.9), rgba(6, 20, 14, 0.96));
  color: var(--text);
}

.admin-hero .section-kicker,
.connect-account-hero .section-kicker {
  color: var(--green);
}

.admin-hero h2,
.connect-account-hero h2,
.account-command-hero h2 {
  color: var(--text);
}

.admin-hero p,
.connect-account-hero p,
.account-command-hero p {
  color: var(--text-subtle);
}

.metric-card,
.account-monitor-card,
.activity-metric-buttons button {
  background: linear-gradient(160deg, rgba(12, 34, 24, 0.92), rgba(6, 19, 13, 0.94));
  border-color: rgba(188, 255, 221, 0.13);
}

.metric-card-featured {
  background:
    radial-gradient(320px 150px at 100% 0, rgba(92, 242, 170, 0.16), transparent 72%),
    linear-gradient(145deg, rgba(24, 70, 50, 0.95), rgba(8, 28, 20, 0.98));
}

.admin-account-row {
  border-radius: 10px;
  background: transparent;
  border-color: transparent;
  border-bottom: 1px solid var(--line);
}

.admin-account-row:last-child {
  border-bottom: 0;
}

.panel {
  border-radius: var(--radius);
}

/* Contrast-safe secondary text and placeholders. */
input::placeholder,
textarea::placeholder,
.table .thead,
.admin-table th,
.admin-nav-label,
.empty,
.icon-btn,
.metric-card > small,
.user-metrics small,
.admin-account-balance .disconnected,
.admin-detail-row-meta,
.receipt-footnote,
.account-freshness,
.admin-sidebar-footer small,
.admin-brand small {
  color: var(--text-subtle) !important;
}

.input::placeholder,
input::placeholder {
  opacity: 1;
}

/* Readable ordinary text on phones. */
label > span { font-size: 13px; }
.fine { font-size: 12.5px; }
.route-page-head p { font-size: 14px; }
.admin-account-label { display: block; margin-bottom: 2px; color: var(--text-faint); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.admin-status { font-size: 10.5px; padding: 5px 8px; }
.failure-action { font-size: 11px; }
.metric-card > span { font-size: 11px; }
.metric-card > small { font-size: 11.5px; }
.account-page-summary span,
.account-monitor-balance span,
.account-monitor-stats span { font-size: 11px; }
.account-monitor-balance strong { font-size: clamp(22px, 3vw, 30px); white-space: nowrap; overflow-wrap: normal; }
.account-monitor-stats strong { font-size: 12px; }
.admin-account-identity span,
.admin-account-activity span,
.admin-account-balance span { font-size: 11.5px; }
.admin-account-identity strong,
.admin-account-activity strong,
.admin-account-balance strong { font-size: 13px; }
.admin-account-balance strong,
.admin-account-activity strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.live-job-stats span { font-size: 11px; }
.receipt-kicker { font-size: 11px; }
.receipt-details dt { font-size: 12px; }
.receipt-details dd { font-size: 12.5px; }
.receipt-hint { font-size: 11.5px; }
.receipt-status-note { font-size: 12px; }

/* Account performance rows must reflow, never clip. */
.admin-account-row {
  grid-template-columns: 38px minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
}

.admin-account-identity span,
.admin-account-balance span,
.admin-account-activity span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.admin-account-balance {
  text-align: right;
}

@media (min-width: 561px) and (max-width: 1100px) {
  .admin-account-row {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    row-gap: 6px;
  }
  .admin-account-row .admin-avatar { grid-row: 1; }
  .admin-account-identity { grid-column: 2; }
  .admin-account-activity,
  .admin-account-balance {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    text-align: left;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .admin-account-activity .admin-account-label,
  .admin-account-balance .admin-account-label { flex: 0 0 100%; }
}

@media (max-width: 560px) {
  .admin-account-row {
    grid-template-columns: 36px minmax(0, 1fr);
    row-gap: 6px;
  }
  .admin-account-activity,
  .admin-account-balance {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    text-align: left;
    padding-top: 7px;
    border-top: 1px solid var(--line);
  }
  .admin-account-activity .admin-account-label,
  .admin-account-balance .admin-account-label { flex: 0 0 100%; }
}

/* Balanced metric grids without orphan cards. */
.admin-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.metric-card-featured {
  grid-column: auto;
}
@media (max-width: 1100px) {
  .admin-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card-featured { grid-column: auto; }
}
@media (max-width: 360px) {
  .admin-metrics,
  .user-metrics,
  .campaign-detail-metrics,
  .activity-metric-buttons { grid-template-columns: 1fr; }
  .metric-card-featured { grid-column: auto; }
}

/* Never wrap a metric value mid-number. */
.metric-card > strong,
.user-metrics strong,
.campaign-detail-metrics strong,
.activity-metric-buttons strong {
  white-space: nowrap;
  overflow: visible;
  overflow-wrap: normal;
  text-overflow: clip;
  font-variant-numeric: tabular-nums;
}
.metric-card > strong { font-size: clamp(18px, 2.1vw, 30px); }
@media (max-width: 1100px) { .metric-card > strong { font-size: clamp(17px, 2.7vw, 26px); } }
@media (max-width: 560px) { .metric-card > strong { font-size: clamp(17px, 5.4vw, 24px); } }
.route-page-head h1,
.admin-hero h2,
.connect-account-hero h2 {
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}
@media (min-width: 861px) and (max-width: 1100px) {
  .route-page-head h1 { font-size: clamp(28px, 3.4vw, 40px); }
}

/* Payout balance: full amount first, refresh below on phones. */
#balance {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
}
.balance-block { min-width: 0; }
.balance-block > .label,
.balance-block > #balance,
.balance-block > .balance-freshness { min-width: 0; }
.balance-freshness { white-space: normal; }

@media (max-width: 560px) {
  .balance-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "label label"
      "amount amount"
      "fresh refresh";
    gap: 5px 8px;
    align-items: center;
    padding: 10px 10px 10px 12px;
  }
  .balance-block > .label { grid-area: label; }
  #balance {
    grid-area: amount;
    font-size: clamp(21px, 7vw, 30px);
    line-height: 1.02;
  }
  .balance-block > .balance-freshness { grid-area: fresh; justify-self: start; }
  #refreshBtn {
    grid-area: refresh;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
  }
  #refreshBtn span { display: none; }
}

/* Amount entry: grouped display, exact preview retains numeric state. */
.row input.amount {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.amount-preview {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 561px) {
  .table .trow {
    grid-template-columns: minmax(0, 1.35fr) minmax(170px, 220px) minmax(150px, 1fr) 44px;
  }
}
.check {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.35;
}
@media (min-width: 901px) {
  .row .check { align-self: center; }
}
.account-switcher {
  min-width: 260px;
  max-width: 420px;
}
.account-switcher select {
  min-width: 220px;
  width: 100%;
}

/* Receipt amount stays whole; component tables become readable cards on phones. */
.receipt-amount {
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
  max-width: 100%;
  font-size: clamp(18px, 6.8vw, 48px);
  letter-spacing: -0.045em;
}
@media (min-width: 700px) {
  .receipt-amount { font-size: clamp(34px, 4vw, 48px); }
}
.recipient-components h3 { font-size: 11px; color: var(--text-faint); }
.recipient-summary-table { min-width: 0; }

.admin-table-wrap {
  scrollbar-gutter: stable;
}
.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel);
  color: var(--text-subtle) !important;
  font-size: 11px;
}
.admin-table td {
  color: #d3e2da;
  font-size: 12.5px;
}

@media (max-width: 560px) {
  .admin-table-wrap {
    overflow-x: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
  .admin-table,
  .user-app-shell .admin-table {
    display: block;
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
  .admin-table thead { display: none; }
  .admin-table tbody { display: block; }
  .admin-table tr {
    display: block;
    margin-bottom: 8px;
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(9, 26, 19, 0.72);
  }
  .admin-table tr:last-child { margin-bottom: 0; }
  .admin-table td {
    display: grid;
    grid-template-columns: minmax(92px, 38%) minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    padding: 6px 0;
    border: 0;
    font-size: 12.5px;
    text-align: right;
    white-space: normal;
  }
  .admin-table td::before {
    content: attr(data-label);
    color: var(--text-subtle);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
  }
  .admin-table td:not([data-label]) {
    display: block;
    text-align: left;
  }
  .admin-table td:not([data-label])::before { display: none; }
  .admin-table td[colspan] {
    display: block;
    text-align: left;
  }
  .admin-table td[colspan]::before { display: none; }
  .admin-table .transfer-recipient-cell { padding-right: 0 !important; }
  .transfer-row-chevron {
    position: static;
    display: inline-block;
    margin-left: 6px;
    transform: none;
    vertical-align: middle;
  }
  .admin-table tr[role="button"]:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
  }
  .recipient-summary-table td { grid-template-columns: minmax(92px, 34%) minmax(0, 1fr); }
}

/* Tool-user rows never run identity and role together. */
.tool-user-row { min-width: 0; }
.tool-user-info { min-width: 0; }
.tool-user-info strong,
.tool-user-info span { display: block; overflow-wrap: anywhere; }
.tool-user-info span { margin-top: 3px; }
.tool-user-row > .btn { flex: none; }
@media (max-width: 560px) {
  .tool-user-row { align-items: flex-start; }
}

/* Touch targets and mobile navigation. */
.topbar { flex-wrap: wrap; row-gap: 10px; }
.topbar > * { min-width: 0; }
.topbar .brand { flex: 1 1 220px; }
.balance-block { flex: 0 0 auto; max-width: 100%; }
#balance { flex: none; }
.account-switcher { max-width: 100%; }
.row-quick-amounts .quick-amount { min-height: 44px; }

@media (max-width: 860px) {
  html {
    scroll-padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }
  :focus-visible {
    scroll-margin-bottom: calc(116px + env(safe-area-inset-bottom));
  }
  .admin-mobile-nav a,
  .admin-mobile-nav .mobile-more-toggle {
    min-height: 44px;
    font-size: 11px;
  }
  .mobile-more-toggle { min-height: 44px; font-size: 11px; }
  .mobile-more-menu a { min-height: 44px; font-size: 12px; }
  .row-quick-amounts .quick-amount { min-height: 44px; }
  .btn.small,
  .btn,
  .icon-btn,
  .quick-amount,
  .job-history-row,
  .receipt-sheet .btn { min-height: 44px; }
  .text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 12.5px;
  }
  .icon-btn { width: 44px; }
  .quick-amount { min-height: 44px; font-size: 11.5px; }
  .mobile-more-menu a { font-size: 12px; }
}
.row-quick-amounts { gap: 8px; }
#refreshBtn { min-height: 44px; }

/* Login: full-width primary action and a styled native checkbox. */
.login-card form > .btn[type="submit"],
#siteBtn,
#loginBtn {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
}
.remember-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  background: #0a1210;
  accent-color: var(--green);
}
.remember-option input[type="checkbox"]::before {
  content: "";
  width: 5px;
  height: 10px;
  margin-top: -2px;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.6);
  transition: opacity 0.12s, transform 0.12s;
}
.remember-option input[type="checkbox"]:checked {
  border-color: rgba(92, 242, 170, 0.72);
  background: rgba(92, 242, 170, 0.16);
}
.remember-option input[type="checkbox"]:checked::before {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}
.remember-option input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(84, 242, 165, 0.92);
  outline-offset: 2px;
}

/* Member balance card: readable microcopy, no competing watermark. */
.user-balance-hero {
  background: linear-gradient(135deg, #d2ff78, #5cf2aa);
}
.user-balance-hero > div > span {
  color: #052018;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
}
.user-balance-hero > div > small {
  color: #073a29;
  font-size: 12.5px;
  font-weight: 600;
}
.user-balance-hero > div > strong {
  white-space: nowrap;
  overflow-wrap: normal;
  font-size: clamp(28px, 7vw, 66px);
}
.user-game-identity {
  background: rgba(255, 255, 255, 0.34);
  border-color: rgba(5, 32, 24, 0.2);
}
.user-game-identity small {
  color: #073a29;
  font-size: 11px;
  font-weight: 600;
}
.user-game-identity strong { color: #052018; }
.user-metrics small { color: var(--muted); font-size: 11px; }

/* Honest loading, updating, empty and error states. */
.admin-metrics.is-loading .metric-card > strong { color: var(--text-faint); }
.state-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(9, 26, 19, 0.72);
  color: var(--text);
}
.state-card strong { font-size: 14px; }
.state-card p { color: var(--text-subtle); font-size: 12.5px; line-height: 1.5; }
.state-card .btn { justify-self: start; }
.state-loading { border-style: dashed; }
.state-loading strong::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border: 2px solid rgba(92, 242, 170, 0.25);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: boot-spin 0.8s linear infinite;
  vertical-align: -1px;
}
.state-error { border-color: rgba(242, 109, 109, 0.42); background: rgba(84, 22, 22, 0.16); }
.state-error strong { color: #ffb2a9; }
.state-empty strong { color: var(--text); }
.table-state-cell { padding: 18px 10px !important; text-align: left !important; color: var(--text-subtle) !important; }
.table-state-error { color: #ffb2a9 !important; }
.table-state-cell .btn { margin-left: 10px; }
.data-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 200, 87, 0.36);
  border-radius: 12px;
  background: rgba(255, 200, 87, 0.08);
  color: #ffe3a6;
  font-size: 12.5px;
}
.data-notice.is-error {
  border-color: rgba(242, 109, 109, 0.42);
  background: rgba(84, 22, 22, 0.2);
  color: #ffc0ba;
}
.data-notice.is-updating {
  border-color: rgba(200, 255, 88, 0.32);
  background: rgba(200, 255, 88, 0.06);
  color: #e8ffc0;
}
.data-notice .btn { color: inherit; border-color: currentColor; }
.metric-definition {
  color: var(--text-subtle);
  font-size: 11.5px;
  line-height: 1.5;
}
.admin-preview-more {
  justify-self: start;
  padding: 8px 2px;
}
.campaign-detail-content { display: grid; gap: 18px; }
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(560px, calc(100vw - 24px));
}
.toast > span { min-width: 0; }
.toast-action,
.toast-close {
  flex: none;
  min-height: 32px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.toast-close { width: 32px; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  .state-loading strong::before { animation: none; }
}

/* Keep phone headings and wallet values inside their containers. */
@media (max-width: 560px) {
  .activity-metric-buttons button:last-child { grid-column: 1 / -1; }
  .admin-table td > .admin-status { justify-self: start; }
  .transfer-row-chevron { display: none; }
}
@media (max-width: 360px) {
  .activity-metric-buttons button:last-child { grid-column: auto; }
}

@media (max-width: 560px) {
  .route-page-head h1 { font-size: clamp(26px, 7.8vw, 34px); }
  .account-page-summary strong { font-size: clamp(20px, 6vw, 26px); white-space: nowrap; overflow-wrap: normal; }
  .user-metrics strong { font-size: clamp(18px, 5.5vw, 25px); }
}

/* Activity transfers are grouped by a stable recipient key. */
.transfer-group-table { white-space: normal; }
.transfer-group-hint { max-width: 72ch; margin: -2px 0 10px; }
.transfer-group-row {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.transfer-group-row td { padding-block: 15px; vertical-align: middle; }
.transfer-group-row:hover td { background: rgba(84, 242, 165, 0.045); }
.transfer-group-row:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.transfer-group-row[aria-expanded="true"] td { background: rgba(84, 242, 165, 0.035); }
.transfer-group-row[aria-expanded="true"] .transfer-row-chevron { color: var(--green); }
.transfer-group-amount-cell,
.transfer-group-count-cell,
.transfer-group-fees-cell,
.transfer-group-latest-cell { font-variant-numeric: tabular-nums; }
.transfer-group-latest-cell { white-space: normal; overflow-wrap: anywhere; }
.transfer-group-recipient { display: inline-flex; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.transfer-group-amount,
.transfer-group-fees {
  display: block;
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.transfer-group-attempted,
.transfer-group-breakdown {
  display: block;
  min-width: 0;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}
.transfer-group-status { display: grid; gap: 5px; justify-items: start; }
.transfer-group-status .admin-status { white-space: normal; text-align: left; }
.transfer-group-details-row[hidden] { display: none; }
.transfer-group-details-row > .transfer-group-details-cell {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(84, 242, 165, 0.025);
}
.transfer-group-expanded-summary {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12, 31, 23, 0.72);
  overflow-wrap: anywhere;
}
.transfer-group-expanded-summary strong { color: var(--text); font-size: 12px; }
.transfer-group-expanded-summary span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.transfer-group-expanded-status { color: var(--text-subtle) !important; }
.transfer-group-items { display: grid; gap: 6px; padding: 8px 12px 0; }
.transfer-group-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: inherit;
  background: rgba(9, 26, 19, 0.72);
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.transfer-group-item:hover { border-color: rgba(84, 242, 165, 0.38); background: rgba(84, 242, 165, 0.06); }
.transfer-group-item:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.transfer-group-item-main { display: grid; gap: 2px; min-width: 0; }
.transfer-group-item-main strong { color: var(--text); font-size: 12px; overflow-wrap: anywhere; }
.transfer-group-item-ref { color: var(--muted); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.transfer-group-item-amount {
  justify-self: end;
  min-width: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}
.transfer-group-item .admin-status { grid-column: 1 / -1; justify-self: start; white-space: normal; }
.transfer-group-more { margin: 8px 12px 0; }
.transfer-group-coverage,
.transfer-group-empty { margin: 8px 12px 0; }
@media (max-width: 560px) {
  .transfer-group-row { padding: 12px !important; }
  .transfer-group-row td { padding: 7px 0; }
  .transfer-group-row[aria-expanded="true"] { border-color: rgba(84, 242, 165, 0.38); }
  .transfer-group-row .transfer-row-chevron { display: inline-block; }
  .transfer-group-details-row { margin-top: -6px; }
  .transfer-group-details-row > .transfer-group-details-cell { padding: 0 0 10px; border-bottom: 0; background: transparent; }
  .transfer-group-items { padding-inline: 0; }
  .transfer-group-more,
  .transfer-group-coverage,
  .transfer-group-empty { margin-inline: 0; }
}
