/* DomainScope — modern clean theme: dark header/hero, light content */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #16202e;
  --muted: #5b6b7f;
  --line: #e3e8ee;
  --dark: #0f1622;
  --dark-2: #182233;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --green: #16a34a;
  --green-bg: #e6f6ec;
  --red: #dc2626;
  --red-bg: #fdecec;
  --gray: #6b7280;
  --gray-bg: #eef1f4;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(16, 24, 40, 0.06);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: #eff4ff; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 17px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 22, 34, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
}
.logo {
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: #c7d0dd; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 70%);
  color: #fff;
  padding: 88px 0 96px;
  text-align: center;
}
.hero-inner h1 {
  font-size: 46px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.subhead {
  font-size: 19px;
  color: #b9c4d4;
  max-width: 620px;
  margin: 0 auto 30px;
}
.hero-cta { margin-bottom: 28px; }
.trust-bullets {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  color: #9fb0c6;
  font-size: 15px;
  font-weight: 500;
}
.tick {
  display: inline-block;
  color: #34d399;
  font-weight: 700;
  margin-right: 6px;
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: #eef1f6; }
.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 36px;
  font-size: 17px;
}

/* ---------- Ad slots ---------- */
.ad-slot {
  border: 2px dashed #b8c2d0;
  border-radius: var(--radius);
  background: #fbfcfd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  max-width: 100%;
}
.ad-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9aa6b5;
  padding: 14px;
}
.ad-leaderboard { min-height: 110px; }
.ad-banner { min-height: 90px; }
.ad-footer { min-height: 90px; margin-top: 8px; }

/* ---------- Tool ---------- */
.tool-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 32px;
}
.input-row { display: flex; gap: 12px; }
#keywords {
  flex: 1;
  font: inherit;
  font-size: 16px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
#keywords:focus { outline: none; border-color: var(--brand); }
.result-note { margin-top: 10px; color: var(--ink); font-weight: 600; font-size: 14px; }
.status-msg { margin-top: 12px; font-size: 14px; color: var(--muted); min-height: 1.2em; }
.status-msg.error { color: var(--red); font-weight: 600; }
.status-msg.loading { color: var(--brand); font-weight: 600; }

.results-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0 8px;
}
.filters { display: flex; gap: 8px; }
.filter-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  color: var(--muted);
}
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.select-all { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.selected-count { font-size: 14px; color: var(--muted); }

/* ---------- Results table ---------- */
.results-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.results-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
}
.results-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.results-table tr:hover td { background: #f8fafc; }
.domain-name { font-weight: 700; font-size: 15px; }

.tld-cell { display: inline-flex; align-items: center; gap: 6px; margin: 3px 6px 3px 0; }
.tld-name { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--muted); }

.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.2px;
}
.badge-available { background: var(--green-bg); color: var(--green); }
.badge-taken { background: var(--red-bg); color: var(--red); }
.badge-unknown { background: var(--gray-bg); color: var(--gray); }

.valuation { white-space: nowrap; }
.val-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #7c6a3a;
  background: #faf3dd;
  border: 1px solid #e8dcae;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.val-range { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.val-reason { color: var(--muted); font-size: 13px; line-height: 1.45; }
.pro-tip { color: var(--ink); font-size: 13px; line-height: 1.5; }

.buy-details { position: relative; }
.buy-summary {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--brand);
  color: var(--brand);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.buy-summary::-webkit-details-marker { display: none; }
.buy-summary:hover { background: #eff4ff; }
.buy-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.14);
  min-width: 210px;
  z-index: 20;
  padding: 6px;
}
.buy-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.buy-menu a:hover { background: #f1f5f9; }
.buy-note {
  font-size: 11.5px;
  color: var(--muted);
  padding: 8px 12px 6px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 36px 12px;
  font-size: 15px;
}

/* ---------- Locked tiers ---------- */
.tier-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tier-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tier-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(247, 248, 250, 0.25), rgba(247, 248, 250, 0.55));
  pointer-events: none;
}
.lock-icon { font-size: 26px; }
.tier-card h3 { font-size: 20px; margin: 8px 0 4px; }
.tier-tease { color: var(--muted); font-size: 14px; margin-bottom: 14px; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 22px;
  box-shadow: var(--shadow);
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 15px; }
.soon {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #eef1f4;
  color: var(--gray);
  padding: 2px 8px;
  border-radius: 4px;
  vertical-align: middle;
}

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 760px; margin: 0 auto; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.price-highlight { border: 2px solid var(--brand); }
.price-card h3 { font-size: 20px; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -1px; margin: 8px 0 16px; }
.per { font-size: 18px; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; margin-bottom: 24px; }
.price-card li { padding: 7px 0; color: var(--ink); font-size: 15px; }
.price-card li::before { content: '✓ '; color: var(--green); font-weight: 700; }
.waitlist-msg {
  text-align: center;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- FAQ ---------- */
.faq-narrow { max-width: 760px; }
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
}
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  padding: 18px 20px;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; float: right; color: var(--brand); font-weight: 700; }
details[open] summary::after { content: '–'; }
details p { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: #9fb0c6;
  padding: 44px 0;
  font-size: 13.5px;
  text-align: center;
}
.footer p { margin-bottom: 10px; max-width: 720px; margin-left: auto; margin-right: auto; }
.copyright { color: #6b7a90; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero-inner h1 { font-size: 34px; }
  .subhead { font-size: 17px; }
  .feature-grid { grid-template-columns: 1fr; }
  .tier-cards { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .input-row { flex-direction: column; }
  .input-row .btn { width: 100%; }

  /* Results table -> cards */
  .results-table, .results-table tbody, .results-table tr, .results-table td {
    display: block;
    width: 100%;
  }
  .results-table thead { display: none; }
  .results-table tr {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 14px;
    padding: 6px 4px;
    box-shadow: var(--shadow);
  }
  .results-table td { border-bottom: none; padding: 8px 16px; }
  .results-table td::before {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 4px;
  }
  .results-table td[data-label]::before { content: attr(data-label); }
  .results-table tr:hover td { background: transparent; }
  .buy-menu { position: static; box-shadow: none; border: none; padding: 0; margin-top: 6px; }
  .buy-details { display: block; }
}

/* ---------- Affiliate pages ---------- */
.nav-active { color: var(--brand); }

.affiliate-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-row input {
  width: 100%;
  font: inherit;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.form-row input:focus { outline: none; border-color: var(--brand); }
.reflink-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
  flex-wrap: wrap;
}
.reflink {
  flex: 1;
  min-width: 200px;
  font-size: 15px;
  background: var(--bg);
  border: 1px dashed var(--brand);
  border-radius: 8px;
  padding: 12px 16px;
  word-break: break-all;
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.stat-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 10px;
  text-align: center;
}
.stat-num { display: block; font-size: 32px; font-weight: 800; color: var(--brand); }
.stat-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }
.affiliate-payout {
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--green-bg);
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
}
@media (max-width: 820px) {
  .stat-cards { grid-template-columns: 1fr; }
  .affiliate-box { padding: 20px; }
}

/* ---------- Checkout modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.55); }
.modal.hidden { display: none; }
.modal-box { position: relative; width: 100%; max-width: 420px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; }
.modal-box h3 { margin: 0 0 6px; font-size: 22px; }
.modal-sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.modal-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); }
.field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field-input { width: 100%; box-sizing: border-box; padding: 11px 12px; font-size: 15px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; background: var(--bg); color: inherit; }
.btn-block { width: 100%; }
.modal-msg { font-size: 14px; margin: 12px 0 0; }
.modal-msg.hidden { display: none; }
.modal-note { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.tier-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: var(--brand); color: #fff; margin-left: 8px; vertical-align: middle; }

/* ---------- Billing toggle ---------- */
.billing-toggle { display: flex; gap: 8px; justify-content: center; margin: 18px 0 26px; flex-wrap: wrap; }
.billing-btn { padding: 9px 20px; font-size: 14px; font-weight: 600; border: 1px solid var(--line); border-radius: 24px; background: transparent; color: inherit; cursor: pointer; }
.billing-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.save-tag { font-size: 11px; font-weight: 700; opacity: .85; }
.unlock-row { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.unlock-row input { flex: 1; min-width: 200px; padding: 9px 12px; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: inherit; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Buy comparison modal ---------- */
.modal-wide { max-width: 560px; }
.buy-h { font-size: 15px; margin: 18px 0 8px; }
.buy-h:first-child { margin-top: 4px; }
.buy-h-sub { font-size: 12px; font-weight: 400; color: var(--muted); }
.buy-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.buy-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.buy-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.buy-price { font-weight: 700; white-space: nowrap; }
.best-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; background: #e8f5e9; color: #2e7d32; padding: 2px 6px; border-radius: 4px; margin-left: 6px; }
.buy-note { font-size: 13px; color: var(--muted); margin: 6px 0 10px; }
.buy-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; }
.buy-links a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; color: inherit; }
.modal-domain-note { font-size: 13px; color: var(--muted); margin-left: 8px; }

/* ---------- Quota bar ---------- */
.quota-bar { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; font-size: 13px; }
.quota-label { color: var(--muted); font-weight: 600; }
.quota-count { font-weight: 800; font-variant-numeric: tabular-nums; }
.quota-track { flex: 1; max-width: 160px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.quota-fill { display: block; height: 100%; background: var(--brand); border-radius: 3px; transition: width .3s; }
.buy-status { font-size: 12px; color: var(--muted); }
.limit-note { font-size: 12px; color: var(--muted); }

/* ---------- Auth ---------- */
.nav-auth { display: flex; align-items: center; gap: 8px; }
.nav-user { font-size: 13px; font-weight: 600; color: var(--muted); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-tier { font-size: 10px; }
.field-input[readonly] { background: var(--bg-alt, #f5f5f5); cursor: default; }

/* ---------- Pro Tools ---------- */
.tools-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.tool-tab { padding: 10px 18px; border: 1px solid var(--border); background: var(--card); border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; }
.tool-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.tool-panel { display: none; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-top: 8px; }
.tool-panel.active { display: block; }
.tool-desc { color: var(--muted); margin-bottom: 16px; }
.tool-row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.tool-row .field-input { flex: 1; min-width: 200px; }
.field-small { max-width: 120px; flex: none !important; }
.tool-out { min-height: 40px; }
.tool-loading { color: var(--muted); }
.tool-error { color: #dc2626; }
.tool-note { font-size: 12px; color: var(--muted); margin-top: 12px; }
/* Valuation */
.val-range { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.val-box { flex: 1; min-width: 100px; text-align: center; padding: 16px; border: 1px solid var(--border); border-radius: 10px; }
.val-mid { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.val-label { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; }
.val-num { font-size: 24px; font-weight: 800; }
.val-conf { margin-bottom: 12px; }
.val-driver { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); align-items: flex-start; }
.val-impact { font-weight: 700; min-width: 44px; text-align: center; padding: 2px 8px; border-radius: 6px; font-size: 13px; }
.val-impact.pos { background: #dcfce7; color: #166534; }
.val-impact.neg { background: #fee2e2; color: #991b1b; }
.val-detail { font-size: 13px; color: var(--muted); }
/* Trademark */
.risk-badge { display: inline-block; padding: 8px 16px; border-radius: 8px; font-weight: 800; margin-bottom: 12px; }
.risk-clear { background: #dcfce7; color: #166534; }
.risk-low { background: #fef9c3; color: #854d0e; }
.risk-med { background: #ffedd5; color: #9a3412; }
.risk-high { background: #fee2e2; color: #991b1b; }
.tm-mark { padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; }
.tm-status { color: var(--muted); font-size: 12px; }
/* Social */
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.social-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px; font-size: 13px; }
.social-card.s-avail { border-color: #22c55e; }
.social-card.s-taken { border-color: #ef4444; opacity: 0.85; }
.social-status { text-transform: capitalize; font-weight: 600; }
/* Leads */
.lead-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 10px; font-size: 14px; }
.lead-type { font-size: 11px; background: var(--bg-alt, #f0f0f0); padding: 2px 8px; border-radius: 4px; text-transform: uppercase; }
.lead-ind { font-weight: 600; margin-top: 12px; }
/* Portfolio */
.pf-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pf-stat { flex: 1; min-width: 100px; text-align: center; border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.pf-stat.warn { border-color: #f59e0b; }
.pf-num { display: block; font-size: 22px; font-weight: 800; }
.pf-stat span:last-child { font-size: 12px; color: var(--muted); }
.pf-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; flex-wrap: wrap; }
.pf-exp { font-size: 12px; color: var(--muted); }
.pf-exp.exp-soon { color: #dc2626; font-weight: 700; }
.pf-price { font-size: 12px; color: var(--muted); }
.pf-row .btn { margin-left: auto; }

/* ---------- Marketplace ---------- */
.mk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mk-card { border: 1px solid var(--border); border-radius: 10px; padding: 16px; font-size: 14px; }
.mk-price { font-size: 20px; font-weight: 800; color: var(--primary); margin-left: 8px; }

/* New tools */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0; }
.stat-card { background: var(--card-bg, #f8f9fa); border: 1px solid var(--border, #e0e0e0); border-radius: 8px; padding: 12px; text-align: center; }
.stat-num { font-size: 1.4em; font-weight: 700; color: var(--primary, #2563eb); }
.stat-label { font-size: 0.85em; color: var(--muted, #666); margin-top: 4px; }
.comm-table { margin: 16px 0; }
.comm-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--card-bg, #f8f9fa); border: 1px solid var(--border, #e0e0e0); border-radius: 8px 8px 0 0; margin-top: 8px; }
.comm-net { font-weight: 700; color: var(--primary, #2563eb); }
.comm-note { font-size: 0.85em; color: var(--muted, #666); padding: 6px 12px; border: 1px solid var(--border, #e0e0e0); border-top: none; border-radius: 0 0 8px 8px; margin-bottom: 4px; }
.pass-list, .issue-list { margin: 8px 0; padding-left: 20px; }
.pass-list li { color: #16a34a; }
.issue-list li { color: #dc2626; }
.tm-steps { margin: 8px 0; padding-left: 20px; }

/* Coin selector */
.coin-select { display: flex; gap: 8px; margin: 8px 0 16px; }
.coin-option { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border: 2px solid var(--border, #e0e0e0); border-radius: 8px; cursor: pointer; transition: border-color 0.15s; }
.coin-option:has(input:checked) { border-color: var(--primary, #2563eb); background: color-mix(in srgb, var(--primary, #2563eb) 6%, transparent); }
.coin-option input { display: none; }
.coin-name { font-weight: 700; font-size: 0.95em; }
.coin-net { font-size: 0.78em; color: var(--muted, #666); }

/* Tool quota display */
.quota-line { font-size: 0.8em; color: var(--muted, #666); margin: 6px 0 0; padding: 0 2px; }
.quota-line .quota-low { color: #d97706; font-weight: 600; }
.quota-line .quota-out { color: #dc2626; font-weight: 600; }
.quota-line a { color: var(--primary, #2563eb); text-decoration: none; font-weight: 600; }

/* Saved searches */
.saved-searches { margin: 8px 0; font-size: 0.85em; }
.saved-chip { display: inline-block; margin: 2px 4px 2px 0; padding: 4px 10px; border: 1px solid var(--border, #e0e0e0); border-radius: 12px; background: #f8f9fa; cursor: pointer; font-size: 0.9em; }
.saved-chip:hover { background: #e9ecef; }

/* Pro tips */
.pro-tips { margin-top: 12px; padding: 12px; background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 8px; }
.pro-tips h4 { margin: 0 0 8px; color: #0369a1; }
.pro-tips ul { margin: 0; padding-left: 20px; }
.pro-tips li { margin: 4px 0; font-size: 0.9em; }

/* Sort + scores */
.sort-label { font-size: 0.9em; display: flex; align-items: center; gap: 8px; }
.sort-select { padding: 6px 10px; border: 1px solid var(--border, #e0e0e0); border-radius: 6px; font-size: 0.9em; background: #fff; }
.domain-meta { font-size: 0.75em; color: var(--muted, #666); margin-top: 2px; }
.score-badges { display: flex; flex-direction: column; gap: 4px; }
.score-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 0.75em; font-weight: 600; white-space: nowrap; }
.score-badge.s-high { background: #dcfce7; color: #166534; }
.score-badge.s-mid { background: #fef3c7; color: #92400e; }
.score-badge.s-low { background: #fee2e2; color: #991b1b; }

/* Buy modal comparison */
.buy-sub { font-size: 0.8em; color: var(--muted, #666); font-weight: normal; }
.buy-price.buy-best { color: #166534; font-weight: 700; }
.best-badge { display: inline-block; background: #dcfce7; color: #166534; font-size: 0.7em; padding: 2px 6px; border-radius: 8px; margin-left: 4px; font-weight: 600; }
.promo-badge { display: inline-block; background: #fef3c7; color: #92400e; font-size: 0.7em; padding: 2px 6px; border-radius: 8px; margin-left: 4px; }
.buy-warn { background: #fef3c7; border: 1px solid #fcd34d; padding: 8px 12px; border-radius: 6px; font-size: 0.9em; margin: 10px 0; }

/* Buy modal enhancements */
.buy-alert { background: #fef2f2; border: 1px solid #fca5a5; padding: 10px 12px; border-radius: 6px; font-size: 0.9em; margin: 10px 0; }
.buy-alert a { color: #2563eb; }
.free-badge { display: inline-block; background: #dcfce7; color: #166534; font-size: 0.7em; padding: 2px 6px; border-radius: 8px; margin-left: 4px; font-weight: 600; }
.paid-badge { display: inline-block; background: #fee2e2; color: #991b1b; font-size: 0.7em; padding: 2px 6px; border-radius: 8px; margin-left: 4px; font-weight: 600; }
.coupon-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.coupon { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #f0fdf4; border: 1px dashed #86efac; border-radius: 6px; font-size: 0.9em; }
.coupon-code { font-family: monospace; font-weight: 700; background: #fff; padding: 2px 8px; border-radius: 4px; border: 1px solid #86efac; }
.coupon a { color: #2563eb; margin-left: auto; }
.bulk-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.bulk-item { font-size: 0.9em; padding: 6px 10px; background: var(--card, #f8fafc); border-radius: 6px; }

/* Live ticker */
.live-ticker { background: #0f172a; color: #fff; display: flex; align-items: center; overflow: hidden; height: 36px; font-size: 0.85em; position: sticky; top: 62px; z-index: 40; }
.ticker-label { background: #dc2626; padding: 4px 12px; font-weight: 700; font-size: 0.8em; white-space: nowrap; z-index: 1; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
.ticker-track { display: flex; gap: 40px; white-space: nowrap; padding-left: 20px; animation: ticker-scroll 120s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-item { display: inline-flex; align-items: center; gap: 6px; }
.ticker-item .t-domain { font-weight: 600; color: #93c5fd; }
.ticker-item .t-price { color: #86efac; font-weight: 600; }
.ticker-loading { color: #64748b; }

/* Keyword ideas — trending + industry */
.kw-ideas { margin: 14px 0 4px; background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; }
.kw-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.kw-tab { padding: 6px 14px; border-radius: 20px; border: 1px solid #cbd5e1; background: #fff; font-size: 0.85em; cursor: pointer; transition: all 0.2s; }
.kw-tab:hover { border-color: #3b82f6; color: #3b82f6; }
.kw-tab.active { background: #1e293b; color: #fff; border-color: #1e293b; font-weight: 600; }
.kw-chips { display: flex; flex-wrap: wrap; gap: 8px; max-height: 96px; overflow-y: auto; }
.kw-chip { padding: 5px 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; font-size: 0.82em; cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; gap: 6px; }
.kw-chip:hover { background: #3b82f6; color: #fff; border-color: #3b82f6; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(59,130,246,0.3); }
.kw-chip .kw-traffic { font-size: 0.75em; background: #fef3c7; color: #92400e; padding: 1px 6px; border-radius: 8px; font-weight: 600; }
.kw-chip:hover .kw-traffic { background: rgba(255,255,255,0.25); color: #fff; }
.kw-chip.added { background: #dcfce7; border-color: #86efac; color: #166534; }
.kw-industries { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.kw-industry-pill { padding: 4px 12px; border-radius: 14px; background: #e0e7ff; color: #3730a3; font-size: 0.8em; cursor: pointer; border: 1px solid transparent; transition: all 0.15s; text-transform: capitalize; }
.kw-industry-pill:hover { background: #c7d2fe; }
.kw-industry-pill.active { background: #4f46e5; color: #fff; font-weight: 600; }
.kw-loading, .kw-hint { color: #94a3b8; font-size: 0.85em; font-style: italic; }
.ticker-item .t-venue { color: #64748b; font-size: 0.8em; }

/* Sales history + blur */
.sales-stats { display: flex; gap: 20px; margin: 12px 0; font-size: 0.9em; color: var(--muted, #666); }
.sales-table { margin-top: 8px; }
.blur-wrap { position: relative; margin-top: 8px; }
.blurred { filter: blur(6px); pointer-events: none; user-select: none; }
.blur-cta { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; background: rgba(255,255,255,0.95); padding: 20px 30px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.blur-cta p { margin: 0 0 12px; font-weight: 600; color: #1e293b; }

/* Keyword blur */
.kw-blur-wrap { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.kw-blurred { filter: blur(4px); pointer-events: none; user-select: none; display: flex; gap: 8px; }
.kw-unlock { background: #1e293b; color: #fff; border: none; padding: 6px 14px; border-radius: 16px; font-size: 0.8em; cursor: pointer; white-space: nowrap; }
.kw-unlock:hover { background: #3b82f6; }

/* Features see-more */
.feature-blur-preview { filter: blur(3px); pointer-events: none; user-select: none; opacity: 0.7; }
.see-more-wrap { text-align: center; margin-top: 20px; }
.feature-grid.expanded .feature-blur-preview { display: none; }
.feature-grid.expanded .feature-extra.hidden { display: block !important; }

.sales-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 8px;
  padding: 10px 0;
  border-bottom: 2px solid var(--line);
}
.sales-count {
  font-size: 14px;
  color: var(--muted);
}
.sales-table {
  margin-top: 0;
}
.sales-table th {
  background: #f8fafc;
  cursor: pointer;
  user-select: none;
}
.sales-table th:hover {
  background: #f1f5f9;
}
.sales-table .domain-name {
  color: #2563eb;
}
.sales-table .domain-name:hover {
  text-decoration: underline;
}

/* ---------- Mobile navigation ---------- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: #0f1622;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 60;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 8px 0; font-size: 16px; }
  .nav-auth { margin-left: auto; }
  .nav-auth .btn { padding: 6px 12px; font-size: 13px; }

  /* Prevent horizontal overflow */
  body { overflow-x: hidden; }
  .container { padding-left: 16px; padding-right: 16px; }
  .hero-inner h1 { font-size: 28px; line-height: 1.2; }
  .trust-bullets { flex-direction: column; gap: 8px; }
  .ticker-track { font-size: 12px; }

  /* Pro tools tabs scroll */
  .tool-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tool-tab { white-space: nowrap; }

  /* Pricing cards stack */
  .pricing-grid { grid-template-columns: 1fr !important; }
  .price-card { margin-bottom: 16px; }

  /* Stat cards 2-col */
  .stat-cards { grid-template-columns: 1fr 1fr; }
}

/* Domain Insight */
.insight-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 16px 0; box-shadow: var(--shadow); }
.insight-card h3 { margin: 0 0 16px 0; font-size: 20px; color: var(--brand); }
.insight-row { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.insight-row:last-child { border-bottom: none; }
.insight-comps { margin-top: 16px; }
.insight-comps h4 { margin: 0 0 8px 0; }
.insight-comps ul { margin: 0; padding-left: 20px; }
.insight-comps li { padding: 4px 0; }

/* Methodology section */
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 24px; }
.method-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }
.method-card h3 { margin: 0 0 12px 0; font-size: 17px; }
.method-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
