/* 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); }
