@font-face {
  font-family: "SFProDisplay";
  src:
    local("SF Pro Display"),
    url("/fonts/SFPRODISPLAYREGULAR.OTF") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Braston";
  src:
    local("Braston"),
    local("Braston Regular"),
    url("/fonts/BrastonRegular-MVq0r.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Mooncrowd";
  src:
    local("MOONCROWD Regular"),
    local("MOONCROWDRegular"),
    url("/fonts/MOONCROWDRegular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #000;
  --panel: #0d0d0d;
  --panel-2: #111;
  --line: rgba(255, 255, 255, 0.1);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.35);
  --danger: #ff453a;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  scroll-behavior: auto !important;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
}


body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Braston", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}


/* ── Header ──────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 120px;
  padding: 0 32px;
}

.site-brand {
  color: var(--text);
  font-family: "Mooncrowd", "Braston", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 3.8rem;
}

.site-docs-link {
  position: absolute;
  right: 32px;
  font-family: "SFProDisplay", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.73rem;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 150ms ease;
}

.site-docs-link:hover {
  color: rgba(255,255,255,0.6);
}

/* ── Layout ──────────────────────────────────── */

.screen {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.lookup-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: scale(1.08);
}


/* ── Mode switch (tab underline style) ───────── */

.mode-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: none;
  border-radius: 11px 11px 0 0;
  isolation: isolate;
}

/* sliding underline indicator */
.mode-switch::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12.5%;
  width: 25%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.7) 25%, rgba(255,255,255,0.7) 75%, transparent 100%);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.mode-switch[data-active-mode="phone"]::after {
  transform: translateX(200%);
}

.mode-toggle {
  position: relative;
  z-index: 0;
  height: 22px;
  padding: 0 16px;
  line-height: 22px;
  margin-bottom: 10px;
  font-size: 1rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: "SFProDisplay", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  transition: color 160ms ease;
}

.mode-toggle:hover {
  color: rgba(255, 255, 255, 0.65);
}

.mode-toggle.is-active {
  color: var(--text);
}

/* ── Search shell ────────────────────────────── */


.lookup-shell {
  position: relative;
  width: 100%;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: none;
  background: #0c0c0c;
  border-radius: 50px;
}

.lookup-shell::after,
.lookup-shell::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 13px;
  filter: blur(46px);
  z-index: -1;
  animation: glow-spin 5s linear infinite;
  transition: opacity 700ms ease;
}

.lookup-shell::after {
  background: conic-gradient(from var(--angle), #222, #888, #444, #999, #222);
  opacity: 0.45;
}

.lookup-shell::before {
  background: conic-gradient(from var(--angle), #b81515, #ad2828, #c12020, #c13f3f, #c12020);
  opacity: 0;
}


@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes glow-spin {
  to { --angle: 360deg; }
}

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

.input-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

#lookup-input {
  min-height: 26px;
  flex: 1;
  padding: 0 14px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font-family: "SFProDisplay", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: opacity 120ms ease;
}

#lookup-input::placeholder {
  color: transparent;
}

.input-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.input-wrap #lookup-input {
  flex: unset;
  width: 100%;
}

.fake-placeholder {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.83rem;
  pointer-events: none;
  white-space: nowrap;
}

.fake-placeholder.slide-out {
  animation: ph-out 180ms ease forwards;
}

.fake-placeholder.slide-in {
  animation: ph-in 180ms ease forwards;
}

@keyframes ph-out {
  to { opacity: 0; transform: translateY(calc(-50% - 10px)); }
}

@keyframes ph-in {
  from { opacity: 0; transform: translateY(calc(-50% + 10px)); }
  to   { opacity: 1; transform: translateY(-50%); }
}


/* ── Search button (ghost) ───────────────────── */

.submit-button {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #242222;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.submit-button:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.submit-button:active {
  background: rgba(255, 255, 255, 0.08);
}


/* ── Status ──────────────────────────────────── */

.status {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  text-align: center;
  display: none;
  color: var(--muted);
  font-family: "SFProDisplay", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.82rem;
}

.status.is-visible {
  display: block;
  animation: status-in 200ms ease forwards;
}

@keyframes status-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.status.is-hiding {
  animation: status-out 200ms ease forwards;
}

@keyframes status-out {
  to { opacity: 0; transform: translateY(6px); }
}

.status.is-error {
  color: var(--danger);
}

/* ── Utility ─────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Results layout ──────────────────────────── */

.results-layout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 12px;
  padding-bottom: 24px;
}

.results-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.results-summary {
  width: 240px;
  flex-shrink: 0;
  align-self: flex-start;
  background: #0c0c0c;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
}

.summary-header {
  padding: 12px 16px 10px;
  font-family: "SFProDisplay", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.summary-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.63rem;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-value {
  font-family: "SFProDisplay", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  word-break: break-word;
}

.summary-value:hover {
  color: #fff;
}

.summary-value.is-copied {
  opacity: 0.3;
}

.result-card {
  opacity: 0;
}

.result-card {
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 200ms ease;
}

.result-card.is-open {
  border-color: rgba(255, 255, 255, 0.13);
}

/* Header row */

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 12px;
}

.result-card[data-state="found"] .result-header,
.result-card[data-state="ok"] .result-header {
  cursor: pointer;
}

.result-card[data-state="found"] .result-header:hover,
.result-card[data-state="ok"] .result-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.result-service-name {
  font-family: "SFProDisplay", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}

.result-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-summary {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  color: var(--text);
}

.result-card[data-state="empty"] .result-summary { color: var(--muted); }
.result-card[data-state="error"] .result-summary { color: var(--danger); }

.result-chevron {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.result-card.is-open .result-chevron {
  transform: rotate(90deg);
}

/* Expandable body */

.result-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  height: 0;
  padding-bottom: 15px;
}

/* Record rows */

.result-records {
  padding: 4px 20px 16px;
}

.result-record {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  min-width: 0;
}

.result-record:last-child {
  border-bottom: none;
}

.record-src {
  font-family: "SFProDisplay", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 10px;
}

.record-src--empty {
  color: rgba(255, 255, 255, 0.12);
}

.record-fields {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
}

.record-sep {
  color: rgba(255, 255, 255, 0.12);
  font-size: 0.65rem;
  flex-shrink: 0;
}

.field-key {
  font-family: "SFProDisplay", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

.field-val {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.71rem;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1px 6px 2px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 120ms ease, opacity 120ms ease;
  user-select: none;
  display: inline-block;
}

.field-val:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.field-val.is-copied {
  opacity: 0.3;
  transition: opacity 0ms;
}

.records-toggle {
  font-family: "SFProDisplay", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.71rem;
  color: var(--muted);
  background: none;
  border: none;
  padding: 6px 0 2px;
  cursor: pointer;
  text-align: left;
  display: block;
}

.records-toggle:hover {
  color: rgba(255, 255, 255, 0.55);
}

/* Passwords & Sources section */

.pass-section {
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pass-section-toggle {
  font-family: "SFProDisplay", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.71rem;
  color: rgba(255, 255, 255, 0.28);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.01em;
}

.pass-section-toggle::before {
  content: "›";
  display: inline-block;
  transition: transform 0.15s ease;
  font-size: 0.85rem;
  line-height: 1;
}

.pass-section.is-open .pass-section-toggle::before {
  transform: rotate(90deg);
}

.pass-section-toggle:hover {
  color: rgba(255, 255, 255, 0.45);
}

.pass-section-body {
  overflow: hidden;
  height: 0;
}

.pass-record .record-src {
  color: rgba(255, 255, 255, 0.3);
}

/* SEON sections */

.seon-phone-table {
  display: flex;
  flex-direction: column;
  padding: 10px 14px 18px;
  gap: 2px;
}

.seon-phone-row {
  display: flex;
  gap: 12px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.seon-phone-row:last-child {
  border-bottom: none;
}

.seon-phone-label {
  color: var(--muted);
  flex-shrink: 0;
  width: 80px;
}

.seon-phone-val {
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seon-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 14px 0;
}

.seon-platform {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.67rem;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

.seon-breaches {
  display: flex;
  flex-direction: column;
  padding: 8px 20px 18px;
}

.seon-breach-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.71rem;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.seon-breach-row:last-of-type {
  border-bottom: none;
}

.seon-breach-name {
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seon-breach-date {
  color: var(--muted);
  flex-shrink: 0;
}

/* ── Media ───────────────────────────────────── */

@media (max-width: 640px) {
  .site-header {
    padding: 0 20px;
  }

  .screen {
    align-items: flex-start;
    padding-top: 40px;
  }
}
