:root {
  --accent: #ff6a00;
  --text: #f7f7f7;
  --muted: #9ca3af;
  --border: #2b3040;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  color: var(--text);
  background: radial-gradient(circle at top, #151821 0, #05060a 55%, #000 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

.page {
  width: 100%;
  max-width: 540px;
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .page {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

.header {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.logo {
  display: block;
  width: min(250px, 82vw);
  height: 90px;
  padding: 10px 14px;
}

main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  padding: 16px 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #1b1f2a 0%, #131620 100%);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 640px) {
  .card {
    padding: 18px 20px 20px;
  }
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 999px;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.08);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.35);
}

.card-body {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.section-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

.lookup-form label {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

input,
button {
  min-height: 42px;
  border-radius: 999px;
  font: inherit;
}

input {
  width: 100%;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  outline: none;
  color: var(--text);
  background: radial-gradient(circle at 0 0, #252a38 0, #151821 60%, #10131b 100%);
}

input::placeholder {
  color: rgba(156, 163, 175, 0.72);
}

input:focus {
  border-color: rgba(249, 115, 22, 0.75);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

button {
  padding: 0 18px;
  border: 0;
  color: #111827;
  background: linear-gradient(135deg, var(--accent), #ffb34d);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

button:hover,
button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.helper-text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.result-list {
  display: grid;
  gap: 8px;
}

.result-list div {
  display: grid;
  grid-template-columns: minmax(116px, 0.44fr) 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: radial-gradient(circle at 0 0, #252a38 0, #151821 60%, #10131b 100%);
}

dt {
  color: var(--muted);
  font-size: 12px;
}

dd {
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.card-warning {
  border-color: rgba(249, 115, 22, 0.45);
}

.link-list {
  list-style: none;
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
}

.link-list a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  color: var(--text);
  background: radial-gradient(circle at 0 0, #252a38 0, #151821 60%, #10131b 100%);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    border-color 0.12s ease-out, background 0.12s ease-out;
}

.link-list a span.code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

.dot-link {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), #ffb34d);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.6);
}

.link-list a:hover,
.link-list a:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, 0.75);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  background: radial-gradient(circle at 0 0, #2c3242 0, #181b26 60%, #121520 100%);
}

@media (max-width: 440px) {
  .card-header,
  .input-row,
  .result-list div {
    grid-template-columns: 1fr;
  }

  .card-header {
    align-items: flex-start;
  }

  button {
    width: 100%;
  }
}
