:root {
  --clr-btn-back: #005a19;
  --clr-btn-text: white;
  --clr-app-text: #e0e0e0;
  --clr-app-spot: lime;
  --clr-app-menu: #faea72;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--clr-app-text);
  background: #050706;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #050706;
}

p, label {
  color: var(app-);
}

h1, h2, h3, h4, h5, h6 {
  color: var(app-);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  padding: 32px 24px;
  background: #090d0a;
  color: #dce8df;
  border-right: 1px solid #1b261e;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  grid-auto-flow: column;
  place-items: center;
  min-width: 76px;
  height: 42px;
  padding: 0 14px;
  border-radius: 13px;
  background: var(--clr-btn-back);
  color: var(--clr-btn-text);
  font-weight: 400;
}
.brand-mark strong {
  font-weight: 800;
  color: #ffef00;
}
nav {
  display: grid;
  gap: 8px;
  margin-top: 48px;
}
nav a, nav span {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--clr-app-menu);
  text-decoration: none;
}
nav .active {
  background: color-mix(in srgb, var(--clr-app-spot) 12%, #193021);
  color: var(--clr-app-spot);
  box-shadow: inset 3px 0 0 var(--clr-app-spot);
}

main {
  margin-left: 240px;
  padding: 56px clamp(28px, 6vw, 88px);
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.eyebrow, .label {
  margin: 0 0 8px;
  color: var(app-);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -.045em;
}
h2 {
  margin: 6px 0 12px;
  font-size: 1.35rem;
}
.subtitle, .card p {
  color: var(app-);
  line-height: 1.6;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  background: #121814;
  box-shadow: 0 8px 30px #0008;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.success {
  color: var(--clr-app-spot);
}
.warning {
  color: #e3ad62;
}
.grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 22px;
}
.card {
  padding: 28px;
  border: 1px solid #202a23;
  border-radius: 20px;
  background: #0d120f;
  box-shadow: 0 16px 45px #0008;
}
.hero-card {
  background: linear-gradient(145deg, #102218, #0b100d);
}
.command {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #050806;
  color: #bde9c9;
  border: 1px solid #26382b;
  font-family: ui-monospace, monospace;
  font-size: .86rem;
}
dl {
  margin: 0;
}
dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid #202a23;
}
dl div:last-child {
  border: 0;
}
dt {
  color: #8d9b92;
}
dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}
.ok {
  color: var(--clr-app-spot);
}
.modules {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-top: 22px;
}
.module-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.module-list span {
  padding: 9px 12px;
  border-radius: 9px;
  background: #151d18;
  color: #a8c5b1;
  font-size: .86rem;
  font-weight: 650;
}
.empty-state {
  max-width: 580px;
  padding-top: 12vh;
}
.empty-state a {
  color: var(--clr-app-spot);
  font-weight: 700;
}

.sidebar {
  display: flex;
  flex-direction: column;
}
.sidebar-user {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #233b2c;
}
.user-name {
  margin: 0;
  color: var(app-);
  font-weight: 700;
}
.user-email {
  margin: 2px 0 12px;
  color: var(app-);
  font-size: .82rem;
  word-break: break-all;
}
.sidebar-user button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--clr-btn-back);
  border-radius: 10px;
  background: var(--clr-btn-back);
  color: var(--clr-btn-text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.sidebar-user button:hover {
  background: color-mix(in srgb, var(--clr-btn-back) 86%, clr-btn-text);
  color: var(--clr-btn-text);
}

.auth-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: radial-gradient(circle at top, #13261a 0, #070a08 45%, #030403 100%);
}
.auth-shell {
  display: grid;
  gap: 24px;
  width: 100%;
  max-width: 400px;
  margin: 0;
  padding: 0;
}
.auth-shell .brand {
  color: #edf5ef;
  justify-self: center;
  font-size: 1.1rem;
}
.auth-card {
  padding: 32px;
  border: 1px solid #202a23;
  border-radius: 20px;
  background: #0d120f;
  box-shadow: 0 16px 45px #000a;
}
.auth-card h1 {
  font-size: 1.9rem;
}
.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.auth-form label {
  display: grid;
  gap: 6px;
}
.auth-form label span {
  color: var(app-);
  font-size: .85rem;
  font-weight: 650;
}
.auth-form input {
  padding: 12px 14px;
  border: 1px solid #303b33;
  border-radius: 10px;
  background: #080c09;
  color: #edf5ef;
  font: inherit;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--clr-app-spot);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--clr-app-spot) 28%, transparent);
}
.auth-form button {
  margin-top: 4px;
  padding: 13px;
  border: 0;
  border-radius: 10px;
  background: var(--clr-btn-back);
  color: var(--clr-btn-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-form button:hover {
  background: color-mix(in srgb, var(--clr-btn-back) 86%, var(--clr-btn-text));
}
.auth-form .password-field {
  position: relative;
  width: 100%;
}
.auth-form .password-field input {
  display: block;
  width: 100%;
  padding-right: 52px;
}
.auth-form .password-field .password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #a8b9ad;
  transform: translateY(-50%);
  appearance: none;
}
.auth-form .password-field .password-toggle:hover {
  background: #ffffff0d;
  color: var(--clr-btn-text);
}
.auth-form .password-field .password-toggle:focus-visible {
  outline: 2px solid var(--clr-btn-text);
  outline-offset: 1px;
}
.password-toggle svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-toggle .icon-eye-off,
.password-toggle[aria-pressed="true"] .icon-eye {
  display: none;
}
.password-toggle[aria-pressed="true"] .icon-eye-off {
  display: block;
}
.auth-alt {
  margin: 18px 0 0;
  text-align: center;
  color: #8fa496;
  font-size: .9rem;
}
.auth-alt a {
  color: #80dda0;
  font-weight: 700;
  text-decoration: none;
}
.auth-alt a:hover {
  text-decoration: underline;
}

.alert {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .9rem;
}
.alert.error {
  background: #2b1211;
  color: #ff9b91;
  border: 1px solid #61302c;
}
.alert.success {
  background: #102b18;
  color: #80dda0;
  border: 1px solid #285b38;
}

.page-header .eyebrow a {
  color: inherit;
  text-decoration: none;
}
.page-header .eyebrow a:hover {
  color: var(--clr-btn-text);
}

.inline-form, .user-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.inline-form input, .user-form input, .user-form select {
  flex: 1 1 180px;
  padding: 11px 13px;
  border: 1px solid #303b33;
  border-radius: 10px;
  background: #080c09;
  color: #edf5ef;
  font: inherit;
}
.inline-form input:focus, .user-form input:focus, .user-form select:focus {
  outline: none;
  border-color: var(--clr-app-spot);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--clr-app-spot) 28%, transparent);
}
.inline-form button, .user-form button {
  flex: 0 0 auto;
  padding: 11px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--clr-btn-back);
  color: var(--clr-btn-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.inline-form button:hover, .user-form button:hover {
  background: color-mix(in srgb, var(--clr-btn-back) 86%, clr-btn-text);
}

.data-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
}
.data-table th, .data-table td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid #202a23;
}
.data-table th {
  color: #8d9b92;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.row-action a {
  color: var(--clr-app-spot);
  font-weight: 700;
  text-decoration: none;
}
.row-action a:hover {
  text-decoration: underline;
}
.data-table .badge {
  padding: 5px 10px;
  font-size: .78rem;
  box-shadow: none;
  border: 1px solid #2a352d;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.row-actions form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.role-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.reset-form input {
  width: 130px;
  padding: 7px 10px;
  border: 1px solid #303b33;
  border-radius: 8px;
  background: #080c09;
  color: #edf5ef;
  font: inherit;
  font-size: .85rem;
}
.reset-form input:focus {
  outline: none;
  border-color: var(--clr-app-spot);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--clr-app-spot) 28%, transparent);
}
.link-button {
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--clr-btn-back);
  color: var(--clr-btn-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.link-button:hover {
  background: color-mix(in srgb, var(--clr-btn-back) 86%, clr-btn-text);
}
.amount-in {
  color: var(--clr-app-spot);
  font-weight: 700;
  clr-btn-text-space: nowrap;
}
.amount-out {
  color: #e3ad62;
  font-weight: 700;
  clr-btn-text-space: nowrap;
}
.muted {
  color: #77857c;
  font-weight: 400;
}
.user-link {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--clr-app-menu);
  font-size: .85rem;
  text-decoration: none;
}
.user-link:hover {
  color: #fff;
  text-decoration: underline;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  color: #9ba9a0;
  font-size: .9rem;
}
.pagination a {
  color: var(--clr-app-spot);
  font-weight: 700;
  text-decoration: none;
}
.pagination a:hover {
  text-decoration: underline;
}
.audit-values {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 360px;
}
.audit-values code {
  padding: 3px 7px;
  border-radius: 6px;
  background: #151d18;
  color: #a8c5b1;
  font-size: .78rem;
  word-break: break-all;
}

input::placeholder {
  color: #647068;
}
select option {
  background: #0d120f;
  color: #edf5ef;
}

@media (max-width: 780px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 18px 22px;
  }
  .sidebar nav {
    display: none;
  }
  main {
    margin: 0;
    padding: 34px 20px;
  }
  .page-header, .modules {
    align-items: flex-start;
    flex-direction: column;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .module-list {
    justify-content: flex-start;
  }
}