:root {
  --bg: #010303;
  --panel: #0a1015;
  --panel-2: #101922;
  --panel-3: #14212b;
  --line: rgba(255, 255, 255, 0.11);
  --line-green: rgba(168, 224, 0, 0.42);
  --green: #a8e000;
  --green-2: #c3ff12;
  --green-3: #75b900;
  --text: #f7fafc;
  --muted: #a8b5c7;
  --muted-2: #768498;
  --red: #ff5d72;
  --amber: #f7c948;
  --blue: #72a7ff;
  --radius: 8px;
  --sidebar: 232px;
  --glow: 0 0 36px rgba(168, 224, 0, 0.12);
  font-family: Manrope, Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 74% 10%, rgba(168, 224, 0, 0.12), transparent 30%),
    linear-gradient(rgba(168, 224, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #010303;
  background-size: auto, 52px 52px, 52px 52px, auto;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

button,
.btn,
.tab,
.support-tile {
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

button:hover,
.btn:hover,
.tab:hover,
.support-tile:hover {
  transform: translateY(-1px);
}

a {
  color: inherit;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  width: min(100%, 1040px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0% 0%, rgba(168, 224, 0, 0.16), transparent 36%),
    linear-gradient(145deg, rgba(19, 28, 37, 0.96), rgba(4, 7, 9, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.auth-side {
  padding: 42px;
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 42px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand img {
  width: 190px;
  max-width: 100%;
  filter: drop-shadow(0 0 18px rgba(168, 224, 0, 0.22));
}

.auth-side h1,
.page-title {
  margin: 0;
  font-family: "Arial Narrow", "Roboto Condensed", Impact, Manrope, sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.auth-side p,
.page-subtitle,
.muted {
  color: var(--muted);
  line-height: 1.5;
}

.auth-form {
  padding: 42px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #b9c6d8;
  font-size: 0.82rem;
  font-weight: 850;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  outline: none;
  background: rgba(1, 4, 6, 0.88);
  color: var(--text);
  padding: 10px 12px;
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(168, 224, 0, 0.55);
  box-shadow: 0 0 0 4px rgba(168, 224, 0, 0.08);
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 50% 0%, rgba(168, 224, 0, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(13, 19, 26, 0.98), rgba(3, 5, 7, 0.99));
  padding: 16px 12px;
}

.sidebar .brand {
  margin: 0 0 16px;
}

.profile {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 84px;
  margin-bottom: 14px;
  border: 1px solid rgba(168, 224, 0, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(20, 29, 40, 0.9), rgba(6, 9, 12, 0.94));
  padding: 12px;
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-green);
  border-radius: 999px;
  color: var(--green);
  background: rgba(168, 224, 0, 0.1);
}

.avatar svg,
.metric-icon svg,
.wallet-pill svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.profile strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile span {
  color: var(--muted);
  font-size: 0.76rem;
}

.nav {
  display: grid;
  gap: 7px;
}

.nav button,
.support-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  color: #dce5f0;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: left;
}

.nav button.active {
  border-color: rgba(168, 224, 0, 0.38);
  background: linear-gradient(90deg, rgba(168, 224, 0, 0.2), rgba(168, 224, 0, 0.055));
  color: var(--green);
  box-shadow: var(--glow);
}

.support {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.support > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.support-tile {
  justify-content: space-between;
  min-height: 52px;
  border-color: rgba(255, 255, 255, 0.1);
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(90deg, rgba(1, 3, 3, 0.9), rgba(10, 15, 20, 0.84)),
    rgba(1, 3, 3, 0.84);
  padding: 0 20px;
  backdrop-filter: blur(18px);
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.content {
  width: min(100% - 52px, 1520px);
  margin: 0 auto;
  padding: 28px 0 58px;
}

.page-head {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 80% 0%, rgba(168, 224, 0, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(20, 29, 40, 0.78), rgba(4, 7, 10, 0.92));
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.page-title {
  max-width: 820px;
  font-size: clamp(1.75rem, 2.45vw, 2.7rem);
}

.page-subtitle {
  max-width: 740px;
  margin: 10px 0 0;
  font-size: 0.94rem;
}

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

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.panel,
.metric,
.item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 86% 0%, rgba(168, 224, 0, 0.1), transparent 30%),
    linear-gradient(145deg, rgba(20, 29, 40, 0.9), rgba(6, 9, 12, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.panel {
  padding: 20px;
}

.panel-hero {
  border-color: rgba(168, 224, 0, 0.2);
  background:
    radial-gradient(circle at 92% 0%, rgba(168, 224, 0, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(22, 34, 18, 0.72), rgba(5, 8, 10, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 70px rgba(0, 0, 0, 0.34),
    var(--glow);
}

.panel-muted {
  background:
    linear-gradient(145deg, rgba(15, 22, 30, 0.74), rgba(4, 7, 10, 0.92));
}

.panel h2,
.panel h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  line-height: 1.15;
}

.metric {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  min-height: 108px;
  padding: 14px;
}

.metric-icon,
.iconbox {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(168, 224, 0, 0.26);
  border-radius: var(--radius);
  background: rgba(168, 224, 0, 0.1);
  color: var(--green);
}

.metric span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.metric strong {
  display: block;
  margin: 2px 0 4px;
  color: #fff;
  font-size: clamp(1.2rem, 1.5vw, 1.72rem);
  line-height: 1.02;
}

.metric p,
.panel p,
.item p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
}

.tabs,
.filters,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tabs {
  margin: 16px 0 20px;
}

.btn,
.tab {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(12, 18, 24, 0.92);
  color: #fff;
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 950;
}

.btn.primary,
.tab.active {
  border-color: rgba(195, 255, 18, 0.58);
  background: linear-gradient(180deg, var(--green-2), var(--green) 58%, var(--green-3));
  color: #071008;
  box-shadow: 0 12px 30px rgba(168, 224, 0, 0.16);
}

.btn.ghost {
  color: var(--muted);
}

.btn.danger {
  border-color: rgba(255, 93, 114, 0.38);
  color: #ff8b9a;
}

.btn.warn {
  border-color: rgba(247, 201, 72, 0.38);
  color: var(--amber);
}

.item {
  display: grid;
  gap: 10px;
  padding: 16px;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.item:hover {
  border-color: rgba(168, 224, 0, 0.22);
  background:
    radial-gradient(circle at 96% 0%, rgba(168, 224, 0, 0.1), transparent 28%),
    linear-gradient(145deg, rgba(20, 29, 40, 0.9), rgba(6, 9, 12, 0.96));
}

.item + .item {
  margin-top: 12px;
}

.item-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.item h3 {
  margin: 0;
  font-size: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--green);
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 950;
  white-space: nowrap;
}

.badge.amber { color: var(--amber); }
.badge.red { color: var(--red); }
.badge.blue { color: var(--blue); }
.badge.gray { color: var(--muted); }

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

.empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  border: 1px dashed rgba(168, 224, 0, 0.28);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.wallet-pill {
  display: grid;
  grid-template-columns: 34px auto;
  column-gap: 9px;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(168, 224, 0, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(168, 224, 0, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(12, 18, 24, 0.92);
  padding: 6px 12px 6px 7px;
}

.wallet-pill svg {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(168, 224, 0, 0.28);
  border-radius: var(--radius);
  padding: 7px;
  color: var(--green);
  background: rgba(168, 224, 0, 0.08);
}

.wallet-pill span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
}

.wallet-pill strong {
  color: #fff;
  font-size: 0.92rem;
  line-height: 1;
}

.alert {
  margin: 0 0 14px;
  border: 1px solid rgba(255, 93, 114, 0.4);
  border-radius: var(--radius);
  background: rgba(255, 93, 114, 0.09);
  color: #ff8b9a;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 850;
}

.ok {
  border-color: rgba(168, 224, 0, 0.38);
  background: rgba(168, 224, 0, 0.1);
  color: var(--green);
}

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

.mono {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.78rem;
}

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

  .sidebar {
    position: relative;
    height: auto;
  }

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

  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .auth-page {
    padding: 14px;
  }

  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-side {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px;
  }

  .auth-form {
    padding: 24px;
  }

  .content {
    width: min(100% - 24px, 1520px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .grid,
  .split {
    grid-template-columns: 1fr;
  }

  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-12 {
    grid-column: 1;
  }
}
