:root {
  --canvas: #0a0d0c;
  --bg: #101413;
  --panel: #181d1b;
  --border: #263029;
  --text: #e6ede9;
  --secondary: #9fb0a7;
  --muted: #5c6a63;
  --placeholder: #48544d;
  --green: #3ecf8e;
  --red: #e5544b;
  --amber: #d9a441;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
}
.app {
  min-height: 100vh;
  background: var(--bg);
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  padding: 60px 48px 60px;
  display: flex;
  flex-direction: column;
}
.logo-link { width: 100%; max-width: 820px; margin: 0 auto; }
.logo { height: 45px; width: auto; object-fit: contain; }
.screen { width: 100%; max-width: 820px; margin: 0 auto; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 40px; opacity: 1; transition: opacity 150ms ease; }
.screen.landing { padding-top: 80px; }
.screen.compact { padding-bottom: 60px; }
.tagline, .hints, .label, .caption, .raw-toggle, .explain, .pending, .site-footer { color: var(--muted); font-size: 13px; line-height: 1.6; text-transform: lowercase; }
.label:has(+ .grid) { margin-bottom: 20px; }
.explain-domain { color: #afafaf; font-weight: 900; }
.site-footer { margin-top: auto; text-align: center; text-transform: none; font-size: 12px; }
.built-by { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 6px; }
.swiftblue-logo { height: 25px; width: auto; display: block; }
.prompt { background: var(--panel); border: 1px solid var(--border); border-radius: 5px; display: flex; align-items: center; min-height: 72px; padding: 0 22px; gap: 14px; transition: border-color 150ms ease; }
.prompt.compact { min-height: 50px; padding: 0 15px; margin-bottom: 46px; }
.prompt.error { border-color: rgb(229 84 75 / 52%); }
.chevron { color: var(--green); font-size: 25px; line-height: 1; }
.prompt.error .chevron { color: var(--red); }
input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: 500 24px/1 "JetBrains Mono", monospace; outline: 0; text-transform: lowercase; }
.prompt.compact input { font-size: 20px; }
input::placeholder { color: var(--placeholder); }
.cursor { width: 12px; height: 24px; background: var(--green); animation: blink 1s step-end infinite; }
.prompt.compact .cursor { height: 17px; width: 9px; }
@keyframes blink { 50% { opacity: 0; } }
.mobile-lookup { display: none; }
.loading { align-items: center; gap: 18px; color: var(--secondary); }
.spinner { width: 28px; height: 28px; border: 2px solid var(--border); border-top-color: var(--green); border-radius: 50%; animation: spin .9s linear infinite; margin-bottom: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.ellipsis::after { content: ''; animation: dots 1.2s steps(4,end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75%,100% { content: '...'; } }
.status-headline { font-size: 42px; line-height: 1.1; font-weight: 700; color: var(--green); margin: 8px 0 12px; letter-spacing: .02em; }
.taken-title { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.domain-title { font-size: 35px; line-height: 1.2; font-weight: 700; color: var(--text); }
.badge { color: var(--red); border: 1px solid rgb(229 84 75 / 45%); border-radius: 4px; padding: 4px 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.cta-row { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 20px; color: var(--bg); background: var(--green); border-radius: 6px; text-decoration: none; font-weight: 700; border: 0; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.divider { height: 1px; background: var(--border); margin: 44px 0 23px; }
.grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { flex: 0 0 auto; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--panel); color: var(--secondary); border: 1px solid var(--border); border-radius: 4px; padding: 0 12px; cursor: pointer; font: inherit; }
.chip:hover { background: #1c2320; }
.chip-name { white-space: nowrap; }
.chip .mark.ok { color: var(--green); }
.chip .mark.no { color: var(--red); }
.chip.pending { color: var(--muted); cursor: wait; }
.chip-spinner { flex-shrink: 0; width: 12px; height: 12px; border: 2px solid var(--border); border-top-color: var(--secondary); border-radius: 50%; animation: spin .9s linear infinite; }
.whois-grid { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; column-gap: 24px; row-gap: 12px; margin-top: 18px; font-size: 14px; line-height: 1.55; }
.whois-grid dt { color: var(--muted); text-transform: lowercase; }
.whois-grid dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.contacts { display: grid; gap: 8px; }
.contact-card { padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px; background: rgb(24 29 27 / 60%); }
.contact-role { color: var(--green); font-size: 12px; text-transform: lowercase; margin-bottom: 4px; }
.contact-empty { color: var(--muted); }
.expiry { color: var(--amber); }
.ns { display: block; }
.raw-toggle { margin-top: 24px; background: transparent; border: 0; padding: 0; font: inherit; cursor: pointer; }
.raw-toggle:hover { color: var(--secondary); }
.raw-block { display: none; margin-top: 13px; padding: 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 4px; color: var(--secondary); font-size: 13px; line-height: 1.5; overflow: auto; max-height: 360px; }
.raw-block.open { display: block; }
.error-line { color: var(--red); font-size: 14px; margin-top: 14px; }
.suggestion { color: var(--muted); font-size: 13px; margin-top: 8px; }
@media (max-width: 640px) {
  .app { min-height: 100svh; padding: 24px 20px 40px; }
  .logo { height: 36px; }
  .screen.landing { flex: 0 0 auto; }
  .prompt { min-height: 56px; padding: 12px 15px; flex-wrap: wrap; gap: 10px; }
  input { font-size: 20px; padding: 12px 0; }
  .cursor { height: 19px; width: 9px; }
  .mobile-lookup { display: flex; flex: 1 0 100%; min-height: 44px; align-items: center; justify-content: center; color: var(--bg); background: var(--green); border: 0; border-radius: 5px; font: 700 14px/1 "JetBrains Mono", monospace; }
  .prompt.compact { margin-bottom: 32px; }
  .hints { display: none; }
  .status-headline { font-size: 30px; }
  .domain-title { font-size: 24px; }
  .chip { flex: 0 0 auto; min-height: 44px; }
  .whois-grid { display: block; }
  .whois-grid dt { margin-top: 13px; }
  .whois-grid dd { margin-top: 3px; }
  .cta-row { display: block; }
  .btn { width: 100%; margin-bottom: 10px; }
}
