:root {
  color-scheme: dark;
  --bg: #06101b;
  --surface: rgba(9, 20, 34, 0.92);
  --surface-strong: #0b1726;
  --surface-soft: rgba(15, 31, 50, 0.78);
  --border: rgba(148, 163, 184, 0.18);
  --border-active: rgba(83, 214, 255, 0.58);
  --text: #eef8ff;
  --muted: #9cafc2;
  --accent: #49d5c7;
  --accent-2: #57a8ff;
  --danger: #ff9ea6;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 13px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 4%, rgba(47, 129, 237, 0.22), transparent 34rem),
    radial-gradient(circle at 95% 12%, rgba(45, 212, 191, 0.16), transparent 34rem),
    linear-gradient(145deg, #0a1726 0%, var(--bg) 55%, #030914 100%);
  background-attachment: fixed;
}

button, input { font: inherit; }

a { color: inherit; }

.page {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
  padding: 34px 0 48px;
}

.page--narrow { width: min(100% - 32px, 760px); }

.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.065), transparent 30%);
}

.page-header {
  position: relative;
  z-index: 1;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.subtitle {
  max-width: 680px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.page-footer {
  margin-top: 24px;
  color: #708399;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.search {
  width: 100%;
  min-height: 46px;
  padding: 0 46px 0 44px;
  border: 1px solid var(--border);
  border-radius: 15px;
  outline: none;
  color: var(--text);
  background: rgba(2, 9, 19, 0.72);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 0 4px rgba(73, 213, 199, 0.1);
}

.search-wrap { position: relative; flex: 1; }

.search-wrap::before {
  content: "⌕";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-52%);
  color: var(--muted);
  font-size: 1.45rem;
  pointer-events: none;
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 34px;
  height: 34px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.search-clear:hover { color: var(--text); background: var(--surface-soft); }
.search-clear[hidden] { display: none; }

.status-message {
  margin: 22px 0 0;
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-align: center;
}

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

.secret-link {
  position: fixed;
  z-index: 50;
  top: 0;
  width: 64px;
  height: 64px;
  opacity: 0;
}

.secret-link--left { left: 0; }
.secret-link--right { right: 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  border: 0;
  border-radius: 999px;
  color: #001b1d;
  background: linear-gradient(135deg, #67e8d2, #4ebcf5);
  box-shadow: 0 9px 24px rgba(45, 212, 191, 0.18);
  font-size: 0.83rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

.button:hover, .button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 13px 30px rgba(45, 212, 191, 0.26);
  outline: none;
}

.button:active { transform: translateY(0); }

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

[hidden] { display: none !important; }

@media (max-width: 600px) {
  .page { width: min(100% - 20px, 1040px); padding-top: 18px; }
  .panel { border-radius: 21px; }
  .toolbar { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
