:root {
  --bg: #070b14;
  --bg-elev: #0f1727cc;
  --panel: #111b31cc;
  --line: #24365e;
  --text: #f3f7ff;
  --muted: #9db1d7;
  --accent: #43c8ff;
  --accent-2: #77ffcb;
  --danger: #ff6c8c;
  --good: #48e5a6;
  --warn: #ffd166;
  --radius: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(circle at 10% 10%, #122445 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, #1b1640 0%, transparent 40%),
    linear-gradient(180deg, #050810 0%, #04060c 100%);
  color: var(--text);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(140, 175, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 175, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 10%, black 20%, transparent 85%);
}

.app-shell {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(30, 49, 90, 0.6) 0%, rgba(16, 24, 45, 0.8) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.1;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 760px;
}

.btn {
  border: 1px solid rgba(105, 182, 255, 0.55);
  color: var(--text);
  background: linear-gradient(180deg, rgba(64, 136, 255, 0.2), rgba(36, 73, 140, 0.2));
  border-radius: 10px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(67, 200, 255, 0.2);
}

.stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
}

.stat {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.stat .label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat .value {
  margin-top: 8px;
  font-weight: 700;
  font-size: 23px;
}

.tabs-wrap {
  margin-top: 20px;
}

.tabs {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px;
  border: 1px solid var(--line);
  background: #0f1a31;
}

.tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  transition: 180ms ease;
}

.tab.active {
  background: linear-gradient(180deg, rgba(67, 200, 255, 0.22), rgba(67, 200, 255, 0.08));
  color: white;
}

.panel {
  display: none;
  margin-top: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.panel.active {
  display: block;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(108, 141, 201, 0.25);
}

.panel-tools {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.global-filters {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: rgba(15, 28, 52, 0.7);
  border: 1px solid rgba(72, 106, 164, 0.5);
  border-radius: 12px;
  padding: 10px 12px;
}

.toggle-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  user-select: none;
}

.toggle-inline input {
  accent-color: #ff9ab0;
}

.filter-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.filter-inline select {
  background: rgba(10, 20, 38, 0.95);
  color: #dce9ff;
  border: 1px solid rgba(99, 136, 196, 0.6);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
}

.panel h2 {
  margin: 0;
  font-size: 17px;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.filters {
  display: flex;
  gap: 8px;
}

.chip {
  border: 1px solid var(--line);
  background: #111f3b;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.chip.active {
  color: white;
  border-color: rgba(67, 200, 255, 0.7);
  background: rgba(67, 200, 255, 0.15);
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(108, 141, 201, 0.16);
  white-space: nowrap;
  font-size: 12px;
}

th {
  color: #bdd2ff;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(7, 14, 29, 0.8);
  position: sticky;
  top: 0;
  z-index: 2;
}

.wallet {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.wallet-copy {
  border: 1px solid rgba(111, 150, 210, 0.45);
  background: rgba(17, 33, 62, 0.62);
  color: #d7e8ff;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
  transition: 140ms ease;
}

.wallet-copy:hover {
  border-color: rgba(121, 216, 255, 0.85);
  color: #ffffff;
  background: rgba(23, 46, 81, 0.92);
}

.tw-link {
  color: #98dcff;
  text-decoration: none;
  font-weight: 600;
}

.tw-link:hover {
  color: #d7f3ff;
  text-decoration: underline;
}

.style-cell {
  white-space: normal;
  line-height: 1.25;
  min-width: 170px;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid;
}

.tier-A {
  color: #68f0b2;
  border-color: rgba(104, 240, 178, 0.6);
  background: rgba(104, 240, 178, 0.13);
}

.tier-B {
  color: #8fdcff;
  border-color: rgba(143, 220, 255, 0.6);
  background: rgba(143, 220, 255, 0.13);
}

.tier-C {
  color: #ffd986;
  border-color: rgba(255, 217, 134, 0.6);
  background: rgba(255, 217, 134, 0.13);
}

.tier-D {
  color: #ff9ab0;
  border-color: rgba(255, 154, 176, 0.6);
  background: rgba(255, 154, 176, 0.13);
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(120, 170, 255, 0.45);
  color: #cae0ff;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  margin-right: 6px;
}

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

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

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

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot.open {
  background: var(--good);
  box-shadow: 0 0 10px rgba(72, 229, 166, 0.8);
}

.dot.closed {
  background: #8aa1cc;
}

@media (max-width: 980px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
  }

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