:root {
  --bg: #0f172a;
  --bg2: #1e293b;
  --panel: rgba(15, 23, 42, 0.74);
  --line: rgba(148, 163, 184, 0.35);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #f97316;
  --accent2: #fb923c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 600px at -20% -10%, #1d4ed8 0%, transparent 55%),
    radial-gradient(900px 500px at 120% 120%, #ea580c 0%, transparent 50%),
    linear-gradient(140deg, var(--bg), var(--bg2));
  min-height: 100vh;
}

.search-body {
  display: grid;
  place-items: center;
  padding: 2rem;
}

.search-shell {
  width: min(760px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.search-shell h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.search-shell p {
  color: var(--muted);
}

.search-form {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
}

.field-label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

input,
button {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.65);
  color: var(--text);
  padding: 0.8rem 1rem;
  font-size: 1rem;
}

button {
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #111827;
  font-weight: 700;
  border: none;
}

.hint {
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

.results-body {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

.results-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem;
  background: rgba(2, 6, 23, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.nav-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

.status {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.results-main {
  min-height: 0;
}

#proxy-frame {
  border: 0;
  width: 100%;
  height: calc(100vh - 64px);
  background: #fff;
}

@media (max-width: 800px) {
  .results-header {
    grid-template-columns: 1fr;
  }

  .search-form,
  .nav-form {
    grid-template-columns: 1fr;
  }

  .status {
    justify-self: start;
  }
}
