body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  margin: 0;
  background: radial-gradient(
    circle at 20% 20%,
    #132038 0,
    #0b1220 35%,
    #080c16 70%
  );
  color: #e5e7eb;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

h2 {
  margin: 0;
  font-weight: 700;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 12px;
}

.nav-tabs {
  display: flex;
  gap: 10px;
  align-items: center;
}

.auth-shell {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 40px;
}

.auth-shell .card {
  width: min(520px, 100%);
}

.card {
  background: linear-gradient(145deg, #0f172a, #0a1020);
  border: 1px solid #1f2937;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #2b3a55;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

input,
button,
select {
  padding: 10px 12px;
  margin: 4px 0;
  border-radius: 8px;
  border: 1px solid #1f2937;
  background: #0c1526;
  color: #e5e7eb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.1s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

button {
  cursor: pointer;
}

button:hover {
  transform: translateY(-1px);
}

label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #cbd5e1;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.row > div {
  flex: 1 1 240px;
}

pre {
  background: #0b1220;
  color: #7ee787;
  padding: 14px;
  height: 220px;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid #1f2937;
}

.status {
  font-size: 14px;
  margin-top: 4px;
}

.inline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.pill-group {
  display: flex;
  gap: 8px;
}

.pill {
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: #0b1220;
  color: #e2e8f0;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.1s ease;
}

.pill.active {
  background: linear-gradient(135deg, #2563eb, #5b8ff5);
  border-color: #2563eb;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.primary {
  background: linear-gradient(135deg, #2563eb, #5b8ff5);
  border-color: #2563eb;
  color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.banner {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.banner.info {
  background: rgba(30, 41, 59, 0.7);
  color: #cbd5e1;
}

.banner.success {
  background: rgba(20, 83, 45, 0.7);
  color: #bbf7d0;
}

.banner.error {
  background: rgba(76, 5, 25, 0.7);
  color: #fecdd3;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge.success {
  background: rgba(20, 83, 45, 0.8);
  color: #bbf7d0;
}

.badge.muted {
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5e1;
}

.muted {
  color: #94a3b8;
}

.tiny {
  font-size: 12px;
}

.list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.market-row {
  display: grid;
  gap: 4px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.wide-card {
  grid-column: 1 / -1;
}

.fade-in {
  animation: fadeIn 280ms ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats .stat {
  background: #0b1220;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #1f2937;
}

.stat-label {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
}
