:root {
  color-scheme: dark;
  --bg: #070b12;
  --bg-accent: #101826;
  --ink: #e8f2ff;
  --muted: #9aa7ba;
  --accent: #3dffd2;
  --accent-2: #ff8bff;
  --card: #0b1220;
  --border: #1a2740;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
  --glow: 0 0 22px rgba(61, 255, 210, 0.2);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(61, 255, 210, 0.12), transparent 35%),
    radial-gradient(circle at 80% 12%, rgba(255, 139, 255, 0.12), transparent 38%),
    radial-gradient(circle at top, #101826, var(--bg));
  min-height: 100vh;
}

.backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(61, 255, 210, 0.22), transparent 40%),
    radial-gradient(circle at 88% 18%, rgba(255, 139, 255, 0.22), transparent 40%),
    linear-gradient(140deg, rgba(7, 10, 16, 0.9), rgba(10, 16, 26, 0.8));
  z-index: -1;
}

.shell {
  width: min(1240px, 92vw);
  margin: 40px auto 80px;
  display: grid;
  gap: 24px;
}

.hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(61, 255, 210, 0.18), transparent 55%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.subtitle code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  background: var(--bg-accent);
  padding: 2px 6px;
  border-radius: 8px;
  color: var(--accent);
}

.status {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(61, 255, 210, 0.16);
  color: var(--accent);
  font-weight: 600;
  min-width: 140px;
  text-align: center;
  z-index: 1;
  box-shadow: var(--glow);
}

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

.ghost-link {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(61, 255, 210, 0.45);
  background: rgba(61, 255, 210, 0.12);
  box-shadow: var(--glow);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.stat h3 {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stat p {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.stat-sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.market-pulse {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 0;
  font-size: 18px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.market-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(15, 24, 38, 0.98), rgba(9, 14, 24, 0.98));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.market-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.market-card .pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 6px;
  background: rgba(61, 255, 210, 0.18);
  color: var(--accent);
}

.market-card .pill.down {
  background: rgba(255, 139, 255, 0.22);
  color: var(--accent-2);
}

.market-card .values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.controls input,
.controls select,
.controls button {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--card);
  color: var(--ink);
}

.controls button,
.pagination button {
  background: var(--accent);
  color: #071219;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.controls button:hover,
.pagination button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(61, 255, 210, 0.35);
}

.pagination {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.pagination button {
  padding: 10px 16px;
  border-radius: 999px;
}

.table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

.table-wrap th {
  background: var(--bg-accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.tag.up {
  background: rgba(61, 255, 210, 0.22);
  color: var(--accent);
}

.tag.down {
  background: rgba(255, 139, 255, 0.22);
  color: var(--accent-2);
}

.tag.win {
  background: rgba(61, 255, 210, 0.22);
  color: #3dffd2;
}

.tag.loss {
  background: rgba(255, 89, 156, 0.24);
  color: #ff70b8;
}

.tag.pending {
  background: rgba(110, 133, 166, 0.24);
  color: #b6c6ff;
}

.profit {
  font-weight: 600;
}

.profit.win {
  color: #3dffd2;
}

.profit.loss {
  color: #ff70b8;
}

.profit.pending {
  color: var(--muted);
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
}

.market-note {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .pagination {
    justify-content: flex-start;
  }
}
