:root {
  --bg: #0b1512;
  --panel: #111f19;
  --panel2: #172a21;
  --accent: #a8ebbf;
  --gold: #d4ae6b;
  --ink: #f2f7ef;
  --muted: #a0b1a5;
  --line: #293b30;
  --radius: 22px;
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a.button {
  cursor: pointer;
  background: var(--accent);
  color: #10281a;
  border: 0;
  border-radius: 12px;
  padding: 13px 19px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
}
button:hover {
  filter: brightness(1.08);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button.secondary,
a.secondary {
  background: var(--panel2);
  color: var(--ink);
  border: 1px solid var(--line);
}
button.danger {
  background: #4f2624;
  color: #ffbdb7;
}
input,
select,
textarea {
  width: 100%;
  background: #0d1913;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 13px;
  border-radius: 10px;
  min-height: 46px;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 15px 0 7px;
}
label.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 38px;
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -1.3px;
}
h2 {
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 17px;
  font-weight: 600;
}
small,
.muted {
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
}
.brand {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #10281a;
  font-size: 20px;
}
.brand small {
  font-size: 10px;
  letter-spacing: 1.6px;
  display: block;
  text-transform: uppercase;
}
.layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 35px 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: #0d1913;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.sidebar nav a {
  padding: 13px 15px;
  color: var(--muted);
  border-radius: 12px;
}
.sidebar nav a.active {
  background: var(--panel2);
  color: var(--accent);
}
.sidebar footer {
  margin-top: auto;
  font-size: 12px;
}
.workspace {
  padding: 34px 44px;
  max-width: 1650px;
  width: 100%;
}
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 35px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 5px 11px;
  font-size: 11px;
  color: var(--accent);
}
.dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 30px 0;
}
.intro p {
  margin: 10px 0 0;
}
.intro h1 {
  margin-bottom: 0;
}
.grid {
  display: grid;
  gap: 18px;
}
.kpis {
  grid-template-columns: repeat(4, 1fr);
  margin: 25px 0;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.kpi {
  min-height: 146px;
}
.kpi strong {
  display: block;
  font-size: 34px;
  font-weight: 550;
  letter-spacing: -1px;
  margin: 12px 0 3px;
}
.kpi small {
  font-size: 12px;
}
.kpi.highlight {
  background: var(--accent);
  color: #122b1b;
  border-color: var(--accent);
}
.kpi.highlight small,
.kpi.highlight .muted {
  color: #34503b;
}
.two {
  grid-template-columns: 1.5fr 1fr;
}
.chart {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 145px;
  padding-top: 18px;
}
.bar {
  flex: 1;
  min-width: 5px;
  background: var(--accent);
  border-radius: 5px 5px 0 0;
  opacity: 0.72;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.segment-row,
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child,
.segment-row:last-child {
  border-bottom: 0;
}
.segment-row strong {
  font-size: 20px;
  font-weight: 550;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.section-head h2,
.section-head h3 {
  margin: 0;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  white-space: nowrap;
}
th {
  text-align: left;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}
th,
td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
}
td:first-child,
th:first-child {
  padding-left: 0;
}
tr.clickable {
  cursor: pointer;
}
tr.clickable:hover {
  background: var(--panel2);
}
.avatar {
  display: inline-grid;
  place-items: center;
  background: #29392b;
  color: #bad4bf;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  margin-right: 9px;
  font-size: 11px;
}
.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 600;
  background: #243a2b;
  color: var(--accent);
}
.badge.risk {
  background: #3e3020;
  color: #e5bc7b;
}
.badge.off {
  background: #303430;
  color: #b0b5b1;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.toolbar input {
  max-width: 280px;
}
.toolbar select {
  max-width: 220px;
}
.wallet {
  max-width: 440px;
  margin: 0 auto;
  padding: 28px 22px 100px;
}
.wallet .topline {
  margin-bottom: 38px;
}
.wallet h1 {
  font-size: 31px;
  letter-spacing: -1px;
}
.wallet .card {
  margin-bottom: 16px;
}
.balance-card {
  background: linear-gradient(125deg, #bdebc5, #85c699);
  color: #183a24;
  border: 0;
  position: relative;
  overflow: hidden;
  padding: 28px;
}
.balance-card:after {
  content: "";
  position: absolute;
  right: -60px;
  top: 30px;
  width: 190px;
  height: 190px;
  border: 1px solid #ffffff45;
  border-radius: 50%;
  box-shadow:
    0 0 0 25px #ffffff0a,
    0 0 0 50px #ffffff0a;
  pointer-events: none;
}
.balance-card .eyebrow,
.balance-card .muted {
  color: #345c40;
}
.balance-card .balance {
  font-size: 66px;
  line-height: 1.1;
  letter-spacing: -3px;
  font-weight: 500;
  margin: 20px 0 4px;
}
.balance-card .badge {
  background: #ffffff45;
  color: #224b2e;
}
.progress {
  height: 6px;
  border-radius: 10px;
  background: #244331;
  margin: 17px 0 10px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 10px;
}
.balance-card .progress {
  background: #2f61332b;
}
.balance-card .progress span {
  background: #285c35;
}
.wallet .reward {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 17px;
}
.reward-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 50px;
  border: 1px solid #d4ae6b50;
  border-radius: 12px;
  color: var(--gold);
  font-size: 23px;
  flex-shrink: 0;
}
.reward-info {
  flex: 1;
}
.reward-info h3 {
  margin: 0 0 4px;
  font-size: 14px;
}
.reward-info small {
  font-size: 11px;
}
.reward button {
  padding: 9px 13px;
  font-size: 11px;
  min-height: 40px;
}
.pending {
  border-color: #d4ae6b65;
  text-align: center;
}
.pending .code {
  font-size: 43px;
  letter-spacing: 9px;
  color: var(--gold);
  margin: 7px 0;
}
.pending p {
  margin-bottom: 7px;
}
.achievements {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.achievement {
  font-size: 11px;
  border: 1px solid var(--line);
  padding: 9px 11px;
  border-radius: 10px;
}
.wallet-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 440px;
  width: 100%;
  background: #0d1913f5;
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  padding: 18px 15px 23px;
  font-size: 11px;
  z-index: 3;
}
.wallet-nav a {
  color: var(--muted);
}
.wallet-nav a:first-child {
  color: var(--accent);
}
.positive {
  color: var(--accent);
}
.negative {
  color: #e8af9a;
}
.login {
  max-width: 440px;
  margin: 9vh auto;
  padding: 25px;
}
.login h1 {
  margin-top: 35px;
}
.login button {
  width: 100%;
  margin-top: 15px;
}
.demo-note {
  font-size: 11px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-top: 20px;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.full {
  grid-column: 1/-1;
}
.queue {
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
}
.queue .code {
  font-size: 34px;
  letter-spacing: 4px;
  color: var(--gold);
}
.queue button {
  width: 100%;
  margin-top: 12px;
}
.queue h3 {
  font-size: 23px;
  margin: 12px 0 0;
}
.empty {
  text-align: center;
  padding: 55px 25px;
  color: var(--muted);
}
dialog {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 24px;
  max-width: 600px;
  width: calc(100% - 30px);
  padding: 28px;
  max-height: 88vh;
}
dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(6px);
}
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 23px;
}
.modal-actions > * {
  flex: 1;
}
#toast {
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  background: var(--accent);
  color: #163c23;
  border-radius: 14px;
  z-index: 100;
  display: none;
  max-width: 90vw;
  box-shadow: 0 8px 40px #0006;
}
.skeleton {
  height: 220px;
  margin: 60px auto;
  background: var(--panel);
  max-width: 400px;
  border-radius: 25px;
  animation: pulse 1s infinite alternate;
}
.celebrate {
  animation: celebrate 0.65s ease-out;
}
.qr {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  display: block;
  margin: 20px auto;
}
.tag-url {
  font-size: 12px;
  word-break: break-all;
  color: var(--muted);
}
.settings-grid {
  grid-template-columns: repeat(2, 1fr);
}
.spacer {
  height: 25px;
}
details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
summary {
  cursor: pointer;
}
.rules {
  font-size: 13px;
  color: var(--muted);
}
.mono {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.header-logo {
  max-height: 36px;
  max-width: 120px;
  object-fit: contain;
}
.banner {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 20px;
}
@keyframes pulse {
  to {
    opacity: 0.4;
  }
}
@keyframes celebrate {
  0% {
    transform: scale(0.97);
  }
  50% {
    transform: scale(1.025);
    box-shadow: 0 0 45px #a8ebbf35;
  }
  100% {
    transform: scale(1);
  }
}
@media (max-width: 1050px) {
  .layout {
    grid-template-columns: 180px 1fr;
  }
  .workspace {
    padding: 25px;
  }
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .two {
    grid-template-columns: 1fr;
  }
  .sidebar {
    padding: 25px 15px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 15px;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
  }
  .sidebar nav a {
    padding: 9px 11px;
    white-space: nowrap;
    font-size: 12px;
  }
  .sidebar footer {
    display: none;
  }
  .workspace {
    padding: 22px 17px;
  }
  .topline {
    margin-bottom: 20px;
  }
  .intro {
    margin: 20px 0;
    align-items: start;
    gap: 15px;
  }
  .intro h1 {
    font-size: 29px;
  }
  .intro .button {
    font-size: 11px;
    padding: 10px;
  }
  .kpis {
    gap: 10px;
  }
  .card {
    padding: 19px;
  }
  .kpi {
    min-height: 130px;
  }
  .kpi strong {
    font-size: 28px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input,
  .toolbar select {
    max-width: none;
    flex: 1;
    min-width: 130px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .wallet {
    padding-top: 25px;
  }
  .section-head {
    flex-wrap: wrap;
  }
  .login {
    margin-top: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
.balance-card small {
  color: #25482e;
}
.balance-card .eyebrow {
  color: #34543d;
}
