:root {
  --bg-main: #05071b;
  --bg-panel: #07172a;
  --bg-panel-2: #04111f;
  --line: rgba(0, 233, 255, 0.25);
  --line-strong: rgba(0, 233, 255, 0.7);
  --text-main: #dffcff;
  --text-muted: #7e9eaf;
  --neon: #00f0ff;
  --neon-soft: #16d8ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 24% 0%, rgba(0, 210, 255, 0.2), transparent 38%),
    radial-gradient(circle at 90% 80%, rgba(80, 0, 255, 0.12), transparent 40%),
    linear-gradient(165deg, #02030f 0%, var(--bg-main) 50%, #04061f 100%);
}

.app-shell {
  width: min(920px, 94vw);
  margin: 34px auto 48px;
}

.hero {
  text-align: center;
  margin-bottom: 26px;
}

.hero h1 {
  margin: 0;
  letter-spacing: 0.12em;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--neon);
  text-shadow:
    0 0 14px rgba(0, 224, 255, 0.55),
    0 0 30px rgba(0, 224, 255, 0.35);
}

.hero .icon {
  margin-right: 10px;
  font-size: 0.82em;
}

.hero p {
  margin: 10px 0 0;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.search-card,
.result-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
  box-shadow:
    inset 0 0 0 1px rgba(0, 255, 255, 0.05),
    0 0 28px rgba(0, 163, 204, 0.22);
  margin-bottom: 16px;
}

.search-form .row {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neon-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.field.grow {
  flex: 1;
}

.field.small {
  width: 180px;
  flex: 0 0 180px;
}

textarea,
input {
  width: 100%;
  border: 1px solid rgba(0, 234, 255, 0.22);
  border-radius: 12px;
  background: #03070d;
  color: var(--text-main);
  padding: 12px 12px;
  font-size: 1rem;
}

textarea {
  resize: vertical;
  min-height: 82px;
}

textarea::placeholder,
input::placeholder {
  color: #5c7992;
}

textarea:focus,
input:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.14);
}

.search-btn {
  width: 100%;
  height: 56px;
  border-radius: 12px;
  border: 2px solid var(--line-strong);
  background: transparent;
  color: var(--neon);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 1.22rem;
  cursor: pointer;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
  box-shadow:
    inset 0 0 12px rgba(0, 240, 255, 0.08),
    0 0 24px rgba(0, 240, 255, 0.2);
}

.search-btn:hover {
  background: rgba(0, 240, 255, 0.09);
}

#status {
  margin: 10px 0 0;
  color: var(--text-muted);
}

#status.error {
  color: #ff8e9a;
}

h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 2rem;
  color: #f2f7ff;
}

.summary,
.assumptions {
  color: #c8d9e8;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(0, 192, 212, 0.2);
  text-align: left;
  vertical-align: top;
}

th {
  color: #ddf9ff;
  font-size: 1rem;
  background: rgba(0, 240, 255, 0.1);
}

.empty {
  text-align: center;
  color: #86a5ba;
}

a {
  color: #55f4ff;
}

a:hover {
  color: #b8feff;
}

.sources {
  margin: 8px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 7px;
}

.engine {
  display: inline-block;
  padding: 2px 7px;
  margin-right: 6px;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #b5fbff;
  font-size: 0.75rem;
}

@media (max-width: 760px) {
  .search-form .row {
    flex-direction: column;
  }

  .field.small {
    width: 100%;
  }

  .search-btn {
    font-size: 1.05rem;
    letter-spacing: 0.12em;
  }
}
