:root {
  --bg: #0b1220;
  --card: #121a2b;
  --text: #e8eefc;
  --muted: #9aa8c7;
  --accent: #3b82f6;
  --accent2: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --border: #243049;
  --radius: 12px;
  --max: 68rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, #1e3a8a55, transparent), var(--bg);
  color: var(--text); line-height: 1.5;
}
a { color: #93c5fd; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 1rem 1rem 3rem; }
.banner {
  background: linear-gradient(90deg, #7c2d12, #b45309);
  color: #fff; padding: .75rem 1rem; font-weight: 700; text-align: center;
}
.topbar {
  display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center;
  justify-content: space-between; padding: 1rem 0 .5rem; border-bottom: 1px solid var(--border);
}
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; color: #fff; }
.brand span { color: var(--accent2); }
nav { display: flex; flex-wrap: wrap; gap: .65rem .9rem; font-size: .95rem; }
.meta { color: var(--muted); font-size: .9rem; margin: .75rem 0 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem;
}
.card .label { color: var(--muted); font-size: .85rem; }
.card .value { font-size: 1.6rem; font-weight: 800; margin-top: .2rem; }
.card .sub { color: var(--muted); font-size: .85rem; }
h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin: .4rem 0 0.6rem; }
h2 { font-size: 1.15rem; margin: 1.4rem 0 .6rem; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .55rem .45rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.price { font-variant-numeric: tabular-nums; font-weight: 700; }
.cheap { color: var(--accent2); }
.search {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0;
}
.search input {
  flex: 1 1 14rem; min-width: 0; padding: .7rem .8rem; border-radius: 10px;
  border: 1px solid var(--border); background: #0a101c; color: var(--text);
}
.search button, .btn {
  padding: .7rem 1rem; border-radius: 10px; border: 0; background: var(--accent);
  color: #fff; font-weight: 700; cursor: pointer;
}
.btn.secondary { background: #334155; }
.chart {
  width: 100%; height: auto; background: #0a101c; border-radius: 10px; border: 1px solid var(--border);
}
.slot {
  border: 1px dashed #475569; border-radius: var(--radius); padding: 1rem; margin: .75rem 0;
  background: #0f172a;
}
.slot.sold { border-style: solid; border-color: #166534; background: #052e1a; }
.badge {
  display: inline-block; font-size: .75rem; font-weight: 700; padding: .15rem .45rem;
  border-radius: 999px; background: #1e293b; color: #cbd5e1; margin-left: .35rem;
}
.badge.sponsored { background: #422006; color: #fde68a; }
.badge.open { background: #14532d; color: #bbf7d0; }
.badge.full { background: #7f1d1d; color: #fecaca; }
footer {
  margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .85rem;
}
.muted { color: var(--muted); }
.list { padding-left: 1.1rem; }
.pillrow { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill {
  background: #1e293b; border: 1px solid var(--border); border-radius: 999px;
  padding: .25rem .7rem; font-size: .85rem;
}
@media (max-width: 640px) {
  th:nth-child(4), td:nth-child(4) { display: none; } /* hide address on tiny screens in some tables */
  .card .value { font-size: 1.35rem; }
}
