:root {
  --bg: #f7f6f4;
  --surface: #ffffff;
  --surface-muted: #f1f0ee;
  --text: #121316;
  --text-secondary: #5f646e;
  --text-muted: #8b909a;
  --line: #e7e5e1;
  --accent: #1f4fd6;
  --accent-hover: #173ea8;
  --success: #0f7a55;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 30px rgba(18, 19, 22, 0.06);
  --max: 1180px;
  --font: "Geist", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-secondary); }
.small { font-size: 13px; }
.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 246, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}
.brand { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.brand-by { font-size: 0.72em; font-weight: 500; color: var(--text-muted); margin-left: 2px; }
.nav { display: none; gap: 22px; }
.nav a { color: var(--text-secondary); font-size: 14px; }
.nav a:hover, .nav a.active { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-secondary:hover { background: var(--surface-muted); }
.btn-ghost { background: transparent; color: var(--text-secondary); padding-inline: 8px; }
.btn-ghost:hover { color: var(--text); }

.hero { padding: 56px 0 32px; }
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 12ch;
  margin: 0 0 16px;
}
.hero p { max-width: 58ch; color: var(--text-secondary); font-size: 18px; margin: 0 0 28px; }
.search-bar {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.search-bar input {
  flex: 1;
  border: 0;
  padding: 18px 18px;
  font-size: 16px;
  background: transparent;
}
.search-bar button { border-radius: 0; min-width: 120px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text-secondary);
}
.facts { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts span { font-size: 13px; color: var(--text-secondary); }

.section { padding: 28px 0 12px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }

.market-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.filters-sidebar .filters { position: sticky; top: 88px; }
.filters {
  display: grid;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters-head h2 { margin: 0; font-size: 16px; }
.filters-close { display: none; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.filters-sheet { display: none; }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.strip-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.strip-card h3 { margin: 0 0 6px; font-size: 15px; }
.strip-card p { margin: 0; color: var(--text-secondary); font-size: 14px; }
.strip-card .count { margin-top: 12px; font-family: var(--mono); font-size: 22px; }

.domain-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.domain-row:first-child { border-top: 1px solid var(--line); }
.domain-name { font-family: var(--mono); font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.domain-sub { margin-top: 6px; color: var(--text-secondary); font-size: 14px; max-width: 48ch; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-secondary);
}
.badge-verified { color: var(--success); background: #ecf7f1; }
.signals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.signal .value { font-family: var(--mono); font-size: 15px; }
.row-price { text-align: right; }
.row-price .price { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.panel-soft { background: var(--surface-muted); border: 0; }
.grid-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.detail-hero { padding: 28px 0; }
.detail-title { font-family: var(--mono); font-size: clamp(34px, 7vw, 54px); margin: 0; letter-spacing: -0.04em; }
.acquisition-panel { position: sticky; top: 88px; box-shadow: var(--shadow); }
.meta-table { width: 100%; border-collapse: collapse; }
.meta-table th, .meta-table td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.meta-table th { width: 42%; color: var(--text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.meta-table td.value { font-family: var(--mono); }

.copy-block + .copy-block { margin-top: 18px; }
.copy-block h3 { margin: 0 0 8px; font-size: 18px; }
.copy-block p { margin: 0; color: var(--text-secondary); }
.editorial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }

.score-row { margin-bottom: 14px; }
.score-top { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.bar { height: 6px; background: #eceae6; border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

.form-grid { display: grid; gap: 14px; }
.form-grid label { display: grid; gap: 6px; font-size: 14px; color: var(--text-secondary); }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  background: var(--surface);
}
.form-grid textarea { min-height: 120px; resize: vertical; }

.site-footer {
  margin-top: 56px;
  padding: 40px 0 100px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-grid h4 { margin: 0 0 10px; font-size: 13px; }
.footer-grid a { display: block; color: var(--text-secondary); font-size: 14px; margin-bottom: 8px; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 13px; }
.policy-links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.policy-links a { color: var(--text-secondary); font-size: 13px; }

.mobile-nav, .sticky-mobile-cta { display: none; }
.success-box { background: #ecf7f1; border: 1px solid #cfe8da; color: #145a3d; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; }

@media (max-width: 960px) {
  .nav { display: none; }
  .strip, .grid-2, .grid-3, .footer-grid, .editorial-grid { grid-template-columns: 1fr; }
  .market-layout { grid-template-columns: 1fr; }
  .filters-sidebar { display: none; }
  .filters-sheet {
    display: block;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    transform: translateY(100%);
    transition: transform 0.2s ease;
    max-height: 85vh;
    overflow: auto;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    box-shadow: var(--shadow);
  }
  body.filters-open .filters-sheet { transform: translateY(0); }
  body.filters-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(18, 19, 22, 0.35);
    z-index: 59;
  }
  .filters-sheet .filters { border: 0; border-radius: 0; }
  .filters-close { display: inline-flex; }
  .domain-row { grid-template-columns: 1fr; }
  .row-price, .row-actions { text-align: left; justify-content: flex-start; }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.94);
    border-top: 1px solid var(--line);
    justify-content: space-around;
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
    z-index: 50;
  }
  .mobile-nav a { font-size: 11px; color: var(--text-secondary); text-align: center; }
  .sticky-mobile-cta {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 58px;
    background: rgba(255,255,255,0.96);
    border-top: 1px solid var(--line);
    padding: 12px 16px;
    z-index: 49;
  }
  body.has-mobile-cta { padding-bottom: 130px; }
}

@media (min-width: 961px) {
  .nav { display: flex; }
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pagination-pages a,
.pagination-current {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0 10px;
  font-size: 14px;
}
.pagination-current {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  font-weight: 600;
}
.pagination-ellipsis { color: var(--text-secondary); padding: 0 4px; }
.pagination-meta { width: 100%; margin: 0; }
