.lookup-page { background: var(--wash); }

.desktop-nav a.current { color: var(--blue); }
.desktop-nav a.current::after { transform: scaleX(1); }

.lookup-hero {
  position: relative;
  min-height: 410px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #eef3fb;
  border-bottom: 1px solid var(--line);
}

.lookup-pattern { position: absolute; inset: 0; pointer-events: none; }
.lookup-pattern::before,
.lookup-pattern::after {
  content: "";
  position: absolute;
  background: var(--ink);
  opacity: .08;
  transform-origin: left center;
}
.lookup-pattern::before { width: 420px; height: 1px; right: 5%; top: 34%; transform: rotate(18deg); }
.lookup-pattern::after { width: 360px; height: 1px; right: 12%; top: 61%; transform: rotate(-22deg); }
.lookup-pattern i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); opacity: .45; }
.lookup-pattern i:nth-child(1) { right: 8%; top: 25%; }
.lookup-pattern i:nth-child(2) { right: 28%; top: 42%; background: var(--coral); }
.lookup-pattern i:nth-child(3) { right: 16%; top: 72%; background: var(--mint); }
.lookup-pattern i:nth-child(4) { right: 39%; top: 19%; width: 6px; height: 6px; }
.lookup-pattern i:nth-child(5) { left: 8%; bottom: 13%; width: 7px; height: 7px; background: var(--coral); }
.lookup-pattern i:nth-child(6) { left: 38%; top: 12%; width: 6px; height: 6px; background: var(--mint); }

.lookup-hero-inner { position: relative; z-index: 1; padding: 54px 0 50px; }
.lookup-hero h1 { max-width: 900px; margin: 0 0 28px; font-size: 54px; line-height: 1.05; overflow-wrap: anywhere; }

.lookup-form { width: min(900px, 100%); }
.lookup-form > label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 900; }
.lookup-control { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 11px 11px 0 var(--yellow); }
.lookup-control .search-prefix { margin-left: 8px; color: var(--blue); }
.lookup-control input { min-width: 0; height: 52px; padding: 0 8px; background: transparent; border: 0; outline: 0; font-size: 17px; }
.lookup-control input:focus { outline: 0; }
.lookup-control .btn { min-height: 52px; }
.lookup-examples { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.lookup-examples > span { margin-right: 3px; color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.lookup-examples button { min-height: 34px; padding: 0 10px; color: var(--ink); background: rgba(255,255,255,.82); border: 1px solid #cbd3df; border-radius: 4px; font-size: 12px; font-weight: 800; }
.lookup-examples button:hover { color: #fff; background: var(--ink); border-color: var(--ink); }

.lookup-stage { min-height: 400px; padding: 42px 0 72px; }
.lookup-empty,
.lookup-loading,
.lookup-message { min-height: 150px; display: flex; align-items: center; gap: 24px; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.lookup-empty-mark { position: relative; width: 76px; height: 76px; flex: 0 0 auto; border: 1px solid #b8c7e4; border-radius: 50%; }
.lookup-empty-mark::before,
.lookup-empty-mark::after { content: ""; position: absolute; background: #b8c7e4; }
.lookup-empty-mark::before { width: 48px; height: 1px; left: 13px; top: 36px; transform: rotate(25deg); }
.lookup-empty-mark::after { width: 1px; height: 48px; left: 37px; top: 13px; transform: rotate(25deg); }
.lookup-empty-mark i { position: absolute; z-index: 1; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.lookup-empty-mark i:nth-child(1) { left: 13px; top: 14px; }
.lookup-empty-mark i:nth-child(2) { right: 12px; top: 28px; background: var(--coral); }
.lookup-empty-mark i:nth-child(3) { left: 30px; bottom: 10px; background: var(--mint); }
.lookup-empty strong,
.lookup-loading strong { display: block; font-size: 20px; }
.lookup-empty p,
.lookup-loading p { max-width: 720px; margin: 5px 0 0; color: var(--muted); }
.lookup-spinner { width: 48px; height: 48px; flex: 0 0 auto; border: 4px solid #dbe4f4; border-top-color: var(--blue); border-radius: 50%; animation: lookupSpin 750ms linear infinite; }

.lookup-message { align-items: flex-start; border-left: 5px solid var(--coral); }
.lookup-message.not-found { border-left-color: var(--yellow); }
.lookup-message h2 { margin: 0; font-size: 30px; overflow-wrap: anywhere; }
.lookup-message p { max-width: 820px; margin: 8px 0 0; color: var(--muted); }
.lookup-message-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }

.lookup-summary { padding: 27px 30px; color: #fff; background: var(--blue); border-radius: var(--radius); }
.lookup-summary-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.lookup-summary h2 { margin: 0; font-size: 40px; line-height: 1.1; overflow-wrap: anywhere; }
.lookup-summary-meta { min-width: 190px; text-align: right; }
.lookup-summary-meta span { color: rgba(255,255,255,.72); font-size: 11px; }
.lookup-statuses { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.lookup-status { padding: 6px 9px; color: #fff; background: rgba(8,26,65,.25); border: 1px solid rgba(255,255,255,.28); border-radius: 3px; font-size: 10px; font-weight: 900; text-transform: uppercase; }

.lookup-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 18px; }
.lookup-main-column { display: grid; gap: 14px; min-width: 0; }
.lookup-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.lookup-section { overflow: hidden; }
.lookup-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.lookup-section-head h3 { margin: 0; font-size: 18px; }
.lookup-fields { margin: 0; }
.lookup-fields > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 56px; border-bottom: 1px solid var(--line); }
.lookup-fields > div:last-child { border-bottom: 0; }
.lookup-fields dt { display: flex; align-items: center; padding: 12px 20px; color: var(--muted); background: #fafbfc; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.lookup-fields dd { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0; padding: 12px 20px; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.lookup-fields dd.muted { color: var(--muted); font-weight: 600; }
.lookup-tag { padding: 4px 7px; color: #174eac; background: var(--blue-pale); border-radius: 3px; font-size: 10px; font-weight: 900; text-transform: uppercase; }

.nameserver-list { margin: 0; padding: 0; list-style: none; }
.nameserver-list li { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 52px; padding: 10px 20px; border-bottom: 1px solid var(--line); font-family: "Cascadia Mono", Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
.nameserver-list li:last-child { border-bottom: 0; }
.nameserver-list i { width: 8px; height: 8px; flex: 0 0 auto; background: var(--mint); border-radius: 50%; }
.lookup-action { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 22px 26px; color: #fff; background: var(--ink); border-radius: var(--radius); }
.lookup-action h3 { margin: 0; font-size: 20px; }
.lookup-action .btn { flex: 0 0 auto; }

.lookup-footer { margin-top: 0; }

@keyframes lookupSpin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .lookup-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .lookup-hero { min-height: 0; }
  .lookup-hero-inner { padding: 50px 0; }
  .lookup-hero h1 { font-size: 46px; }
  .lookup-pattern { opacity: .65; }
}

@media (max-width: 620px) {
  .lookup-hero-inner { padding: 50px 0 48px; }
  .lookup-hero h1 { font-size: 38px; }
  .lookup-control { grid-template-columns: 22px minmax(0, 1fr); box-shadow: 7px 7px 0 var(--yellow); }
  .lookup-control input { height: 44px; font-size: 14px; }
  .lookup-control .btn { grid-column: 1 / -1; width: 100%; }
  .lookup-examples > span { width: 100%; }
  .lookup-stage { padding: 34px 0 62px; }
  .lookup-empty,
  .lookup-loading,
  .lookup-message { align-items: flex-start; flex-direction: column; min-height: 0; padding: 22px; }
  .lookup-empty-mark { width: 62px; height: 62px; }
  .lookup-message h2 { font-size: 25px; }
  .lookup-message-actions { flex-direction: column; width: 100%; }
  .lookup-message-actions .btn { width: 100%; }
  .lookup-summary { padding: 24px 20px; }
  .lookup-summary-top { flex-direction: column; gap: 16px; }
  .lookup-summary h2 { font-size: 31px; }
  .lookup-summary-meta { min-width: 0; text-align: left; }
  .lookup-fields > div { grid-template-columns: 1fr; }
  .lookup-fields dt { min-height: 34px; padding: 8px 14px; }
  .lookup-fields dd { min-height: 48px; padding: 10px 14px; }
  .lookup-section-head { padding: 15px 14px; }
  .nameserver-list li { padding-left: 14px; padding-right: 14px; }
  .lookup-action { align-items: stretch; flex-direction: column; }
  .lookup-action .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .lookup-spinner { animation: none; border-color: var(--blue); }
}
