:root {
  --black: #000;
  --white: #fff;
  --red: #DC143C;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-400: #a3a3a3;
  --gray-600: #525252;
  --green: #22c55e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--gray-200);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.header-text h1 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.header-text p {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.stats {
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--black);
  border: 1px solid var(--black);
}

.stat {
  background: var(--white);
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
  margin-top: 4px;
}

.stat-value.positive { color: var(--green); }
.stat-value.negative { color: var(--red); }

.stat.highlight {
  background: var(--red);
}

.stat.highlight .stat-value,
.stat.highlight .stat-label {
  color: var(--white);
}

.filters {
  padding: 20px 0;
  display: flex;
  gap: 16px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
  font-weight: 500;
}

select {
  appearance: none;
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 10px 32px 10px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  min-width: 140px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23525252' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

select:hover { border-color: var(--gray-400); }
select:focus { outline: none; border-color: var(--red); }

.trades {
  padding-bottom: 48px;
}

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

.trades-table thead {
  border-bottom: 2px solid var(--black);
}

.trades-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.trades-table td {
  padding: 12px 14px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--gray-200);
}

.trades-table tbody tr:hover {
  background: var(--gray-100);
}

.trader { font-weight: 500; }

.crypto {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 600;
}

.rr {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rr.positive { color: var(--green); }
.rr.negative { color: var(--red); }
.rr.neutral { color: var(--gray-400); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge.win { background: var(--green); color: var(--white); }
.badge.loss { background: var(--red); color: var(--white); }
.badge.be { background: var(--gray-400); color: var(--white); }

.no-results {
  text-align: center;
  padding: 48px;
  color: var(--gray-600);
}

footer {
  padding: 24px 0;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  color: var(--gray-600);
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 1.4rem; }
  .filters { flex-direction: column; }
  select { width: 100%; }
  .trades-table th:nth-child(2),
  .trades-table td:nth-child(2) { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .header-content { flex-direction: column; text-align: center; }
}
