/* ─── SEARCH HERO ─── */
.search-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px 32px;
}
.search-hero-inner { max-width: 720px; margin: 0 auto; }
.search-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -.5px;
  margin-bottom: 20px;
}
.search-hero h1 span { color: var(--accent); }

/* ─── SEARCH BOX (search page override) ─── */
.search-hero .search-box {
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.search-prefix {
  display: flex; align-items: center;
  padding: 0 4px 0 16px;
  font-family: var(--mono); font-size: 15px;
  color: var(--text-muted); white-space: nowrap;
  user-select: none;
}
.search-hero .search-box input {
  font-family: var(--mono);
  font-size: 16px;
  padding: 14px 8px;
}
.search-hero .search-box input::placeholder {
  font-family: var(--body);
  font-size: 14px;
}
.search-hero .search-btn { padding: 0 32px; }

/* ─── TLD SELECTOR ─── */
.tld-selector { max-width: 720px; margin: 16px auto 0; }
.tld-selector-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.tld-selector-label {
  font-size: 12px; color: var(--text-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px; white-space: nowrap;
}
.tld-actions { display: flex; gap: 8px; }
.tld-action-btn {
  font-size: 11px; color: var(--accent);
  background: none; border: none; cursor: pointer;
  padding: 2px 0; font-family: var(--body);
  text-decoration: underline; text-underline-offset: 2px;
}

.tld-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 6px;
  container-type: inline-size;
}
@container (min-width: 600px) {
  .tld-chips { grid-template-columns: repeat(12, 1fr); }
}
.tld-chip {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 6px; padding: 5px 4px;
  cursor: pointer; transition: all .12s;
  font-family: var(--mono); font-size: 12px;
  color: var(--text-muted); user-select: none;
  text-align: center; white-space: nowrap;
}
.tld-chip input { display: none; }
.tld-chip.checked {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent); font-weight: 700;
}
.tld-chip:hover:not(.checked) { border-color: var(--accent); color: var(--accent); }

/* ─── STATUS BAR ─── */
.status-bar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; min-height: 28px;
}
.status-text { font-size: 13px; color: var(--text-muted); }
.status-count {
  font-family: var(--mono); font-size: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 5px; padding: 2px 8px;
}
.status-count.available { color: var(--green); border-color: var(--green-light); background: var(--green-light); }
.status-count.taken     { color: var(--red);   border-color: var(--red-light);   background: var(--red-light); }

/* ─── RESULTS GRID ─── */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

/* ─── ALERT DIALOG ─── */
#alertDialog {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  min-width: 260px;
  max-width: 360px;
  background: var(--surface);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  font-family: var(--body);
}
#alertDialog p {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
#alertDialog button {
  display: block;
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 20px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
#alertDialog button:hover { background: #1558cc; }
#alertDialog::backdrop {
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(2px);
}

/* ─── PLACEHOLDER ─── */
.results-grid:has(> .placeholder:only-child) { display: block; }
.placeholder { text-align: center; padding: 80px 0; color: var(--text-muted); }
.placeholder-icon { font-size: 40px; margin-bottom: 12px; }
.placeholder-text { font-size: 15px; }
.placeholder-sub  { font-size: 13px; margin-top: 6px; }

/* ─── STATUS BAR ─── */
.status-bar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; min-height: 28px;
}
.status-text { font-size: 13px; color: var(--text-muted); }
.status-count {
  font-family: var(--mono); font-size: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 5px; padding: 2px 8px;
}
.status-count.available { color: var(--green); border-color: var(--green-light); background: var(--green-light); }
.status-count.taken     { color: var(--red);   border-color: var(--red-light);   background: var(--red-light); }
