:root {
  --bg: #0b1020;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f3f7ff;
  --muted: #a9b4c7;
  --green: #22c55e;
  --red: #ef4444;
  --blue: #60a5fa;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 35%),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 25%),
    linear-gradient(180deg, #0b1020 0%, #121a31 100%);
  color: var(--text);
  min-height: 100vh;
}

.page {
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.topbar h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

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

.status-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 18px;
  backdrop-filter: blur(12px);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.15);
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.15);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.metric-card {
  padding: 26px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-label {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 14px;
}

.metric-value {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  word-break: break-word;
}

.info-card {
  padding: 24px;
}

.info-title {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 12px;
}

.info-content {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
}

.table-card {
  padding: 20px;
}

.table-header {
  margin-bottom: 12px;
}

.table-header h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

thead th {
  text-align: left;
  padding: 16px 14px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

tbody td {
  padding: 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.empty-row {
  text-align: center;
  color: var(--muted);
  padding: 36px !important;
  font-size: 18px;
}

.positive {
  color: var(--green);
  font-weight: 700;
}

.negative {
  color: var(--red);
  font-weight: 700;
}

.neutral {
  color: var(--text);
  font-weight: 700;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.buy-badge {
  color: #d8fce7;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.sell-badge {
  color: #ffe1e1;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-value {
    font-size: 34px;
  }
}

@media (max-width: 820px) {
  .page {
    padding: 18px;
  }

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

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

  .topbar h1 {
    font-size: 32px;
  }

  .metric-value {
    font-size: 30px;
  }

  .info-content {
    font-size: 20px;
  }
}