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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #0d1117;
  color: #c9d1d9;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #30363d;
}

h1 {
  font-size: 1.5rem;
  color: #58a6ff;
}

.auto-refresh {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.auto-refresh input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filters input,
.filters select {
  padding: 10px 14px;
  border: 1px solid #30363d;
  border-radius: 6px;
  background: #161b22;
  color: #c9d1d9;
  font-size: 14px;
}

.filters input {
  flex: 1;
  min-width: 200px;
}

.filters input:focus,
.filters select:focus {
  outline: none;
  border-color: #58a6ff;
}

.table-container {
  overflow-x: auto;
  border: 1px solid #30363d;
  border-radius: 6px;
  background: #161b22;
}

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

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #21262d;
}

th {
  background: #21262d;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8b949e;
}

tr:hover {
  background: #1c2128;
}

tr:last-child td {
  border-bottom: none;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #8b949e;
}

.address {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
}

.address a {
  color: #58a6ff;
  text-decoration: none;
}

.address a:hover {
  text-decoration: underline;
}

.tax {
  font-weight: 600;
}

.tax.high {
  color: #f85149;
}

.tax.medium {
  color: #d29922;
}

.tax.low {
  color: #3fb950;
}

.tax.none {
  color: #8b949e;
}

.twitter a {
  color: #58a6ff;
  text-decoration: none;
}

.twitter a:hover {
  text-decoration: underline;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 15px;
}

.pagination button {
  padding: 8px 16px;
  border: 1px solid #30363d;
  border-radius: 6px;
  background: #21262d;
  color: #c9d1d9;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.pagination button:hover:not(:disabled) {
  background: #30363d;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#pageInfo {
  color: #8b949e;
  font-size: 14px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #8b949e;
}

.error {
  color: #f85149;
  text-align: center;
  padding: 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 12px;
  }

  header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .filters {
    flex-direction: column;
  }

  .filters input {
    min-width: 100%;
  }

  th, td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .address {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
