:root {
  --bg: #0e1116;
  --card: #141922;
  --muted: #9097a5;
  --accent: #3fd09a;
  --accent-2: #4cb4ff;
  --danger: #ff6b6b;
  --text: #e7ecf2;
  --border: rgba(255, 255, 255, 0.08);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(circle at 20% 20%, rgba(79, 180, 255, 0.08), transparent 25%),
    radial-gradient(circle at 80% 10%, rgba(63, 208, 154, 0.08), transparent 25%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.topbar {
  padding: 32px 0 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.8);
  backdrop-filter: blur(8px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.lede {
  margin: 0;
  max-width: 60ch;
  color: #cfd5df;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 36px);
}

h2 {
  margin: 0 0 8px;
}

h3 {
  margin: 0 0 4px;
}

.label {
  color: var(--muted);
  margin: 0 0 4px;
}

.helper {
  color: #cfd5df;
  margin: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 22px 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.person-header,
.table-header,
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pill,
.badge,
.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.badge {
  color: #cfd5df;
}

.status.neutral {
  color: #f2f4f8;
}

.status.success {
  background: rgba(63, 208, 154, 0.1);
  border-color: rgba(63, 208, 154, 0.4);
  color: #c2ffe8;
}

.status.error {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.4);
  color: #ffd1d1;
}

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

#investments-table {
  width: 100%;
  border-collapse: collapse;
  color: #e9eef5;
}

#investments-table th,
#investments-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

#investments-table th {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

#investments-table td {
  font-size: 15px;
}

.placeholder {
  text-align: center;
  color: var(--muted);
}

.gain {
  color: var(--accent);
}

.loss {
  color: var(--danger);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 32px;
  background: rgba(10, 14, 20, 0.9);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0c1017;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  border: none;
}

@media (max-width: 720px) {
  .header-content,
  .person-header,
  .table-header,
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .badge,
  .pill,
  .status {
    align-self: flex-start;
  }
}
