:root {
  --bg: #f6f1e9;
  --bg-accent: #eadcc8;
  --panel: rgba(255, 252, 247, 0.78);
  --panel-border: rgba(13, 59, 102, 0.12);
  --text: #1f2933;
  --muted: #55606d;
  --accent: #ff6b35;
  --accent-deep: #0d3b66;
  --positive: #1b7f5a;
  --negative: #b42318;
  --shadow: 0 24px 60px rgba(35, 51, 72, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 107, 53, 0.18), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(13, 59, 102, 0.14), transparent 24%),
    linear-gradient(180deg, #f9f4ec 0%, #f3ecdf 100%);
  font-family: "Noto Sans SC", sans-serif;
}

.page-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.hero {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 24px;
  align-items: end;
  padding: 28px;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 244, 232, 0.88)),
    var(--panel);
  box-shadow: var(--shadow);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.hero h1,
.panel h2 {
  margin: 0;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 0.94;
  max-width: 10ch;
}

.hero-copy {
  max-width: 72ch;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  justify-self: end;
  width: min(100%, 320px);
  padding: 20px;
  border-radius: 24px;
  background: rgba(13, 59, 102, 0.92);
  color: white;
}

button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #ff8f5a, var(--accent));
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.secondary-button {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
}

.hint {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

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

.stat-card {
  padding: 18px 20px;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stat-value {
  display: block;
  margin-top: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

.panel {
  padding: 22px;
}

.panel-full {
  grid-column: 1 / -1;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}

.panel-note {
  max-width: 28ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

.daily-pool-card {
  padding: 18px;
  border: 1px solid rgba(13, 59, 102, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.daily-pool-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.daily-date {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.daily-pool-head strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
}

.daily-trigger {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13, 59, 102, 0.08);
  color: var(--accent-deep);
  font-size: 12px;
  text-transform: uppercase;
}

.daily-meta {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.symbol-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.symbol-pill {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent-deep);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
}

.symbol-pill-added {
  background: linear-gradient(135deg, #ffb36b, #ff6b35);
  color: white;
  box-shadow: 0 10px 20px rgba(255, 107, 53, 0.24);
}

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

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

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(13, 59, 102, 0.08);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.positive {
  color: var(--positive);
}

.negative {
  color: var(--negative);
}

.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 20px 0;
}

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

  .hero-actions {
    justify-self: stretch;
    width: 100%;
  }

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

  .daily-pools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 16px 14px 24px;
  }

  .hero,
  .panel {
    padding: 18px;
    border-radius: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
