:root {
  --bg: #07111f;
  --panel: rgba(13, 27, 46, .82);
  --panel-solid: #101d31;
  --text: #eef6ff;
  --muted: #95a7bd;
  --line: rgba(255,255,255,.1);
  --accent: #33b7ff;
  --accent-2: #66e0b8;
  --danger: #ff5f70;
  --warning: #ffc857;
  --good: #66e0b8;
  --shadow: 0 24px 80px rgba(0,0,0,.32);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 10%, rgba(51,183,255,.28), transparent 32%),
    radial-gradient(circle at 90% 0%, rgba(102,224,184,.18), transparent 30%),
    linear-gradient(135deg, #07111f 0%, #0d1628 55%, #09101c 100%);
}
a { color: inherit; text-decoration: none; }
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px min(5vw, 48px);
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, .72);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06101b;
  font-weight: 900;
  box-shadow: 0 14px 40px rgba(51,183,255,.25);
}
.nav { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--text); }
.shell { width: min(1180px, 92vw); margin: 0 auto; padding: 46px 0 80px; }
.hero {
  display: grid;
  grid-template-columns: 1.5fr .9fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}
.hero-copy, .panel, .hero-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.hero-copy { padding: 42px; }
.badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(51,183,255,.12);
  border: 1px solid rgba(51,183,255,.35);
  color: #bdeaff;
  font-weight: 700;
  font-size: 13px;
}
h1 { font-size: clamp(36px, 6vw, 68px); line-height: .96; margin: 22px 0 18px; letter-spacing: -0.05em; }
p { color: var(--muted); line-height: 1.7; }
.hero-copy p { max-width: 720px; font-size: 18px; }
.hero-card { padding: 24px; display: grid; gap: 14px; }
.metric {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
}
.metric span { color: var(--muted); display: block; margin-bottom: 8px; }
.metric strong { font-size: 28px; letter-spacing: -0.04em; }
.panel { padding: 28px; margin-bottom: 24px; }
.form label { display: block; font-weight: 800; margin-bottom: 12px; }
.input-row, .search-form { display: flex; gap: 12px; }
input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  color: var(--text);
  border-radius: 16px;
  padding: 16px 18px;
  outline: none;
  font-size: 16px;
}
input:focus { border-color: rgba(51,183,255,.7); box-shadow: 0 0 0 4px rgba(51,183,255,.12); }
button {
  border: 0;
  border-radius: 16px;
  padding: 16px 22px;
  min-width: 140px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06101b;
  font-weight: 900;
  cursor: pointer;
}
button:hover { transform: translateY(-1px); }
button.secondary {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid var(--line);
}
button.small { min-width: auto; padding: 10px 14px; border-radius: 12px; }
.hint { margin: 10px 0 22px; font-size: 14px; }
.search-results { margin-top: 14px; display: grid; gap: 10px; }
.search-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
}
.search-item strong { display: block; }
.search-item span { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.status {
  padding: 16px 20px;
  border-radius: 18px;
  margin-bottom: 24px;
  background: rgba(51,183,255,.12);
  border: 1px solid rgba(51,183,255,.3);
  color: #dff6ff;
}
.hidden { display: none; }
.result-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 24px;
}
.score-card, .details-card {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
}
.score-ring {
  width: 190px;
  height: 190px;
  margin: 6px auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--score-color) calc(var(--score) * 1%), rgba(255,255,255,.08) 0);
  position: relative;
}
.score-ring::after {
  content: "";
  position: absolute;
  inset: 14px;
  background: var(--panel-solid);
  border-radius: 50%;
}
.score-ring strong { position: relative; z-index: 2; font-size: 48px; }
.risk-label { text-align: center; font-size: 22px; font-weight: 900; }
.token-head { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.token-img { width: 58px; height: 58px; border-radius: 18px; object-fit: cover; background: rgba(255,255,255,.08); }
.token-head h2 { margin: 0; }
.token-head p { margin: 4px 0 0; overflow-wrap: anywhere; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.kpi {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
}
.kpi span { color: var(--muted); display: block; font-size: 13px; margin-bottom: 8px; }
.kpi strong { font-size: 18px; overflow-wrap: anywhere; }
.issue-list { display: grid; gap: 10px; margin-top: 18px; }
.issue {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
}
.issue strong { display: block; margin-bottom: 4px; }
.issue p { margin: 0; font-size: 14px; }
.issue.critical, .issue.high { border-color: rgba(255,95,112,.36); }
.issue.medium { border-color: rgba(255,200,87,.36); }
.issue.low { border-color: rgba(102,224,184,.28); }
.table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.table th, .table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--muted); font-size: 14px; }
.table td:last-child, .table th:last-child { text-align: right; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.section-title { display: flex; justify-content: space-between; gap: 14px; align-items: start; margin-bottom: 16px; }
.section-title h2 { margin: 0 0 4px; }
.section-title p { margin: 0; }
.watchlist-list { display: grid; gap: 10px; }
.watchlist-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  border-radius: 16px;
}
.watchlist-item span { color: var(--muted); overflow-wrap: anywhere; }
.watchlist-empty { color: var(--muted); }
.disclaimer p { margin-bottom: 0; }
@media (max-width: 860px) {
  .header { align-items: flex-start; }
  .nav { display: none; }
  .hero, .result-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 28px; }
  .input-row, .search-form { flex-direction: column; }
  button { width: 100%; }
  .kpi-grid { grid-template-columns: 1fr; }
  .search-item { grid-template-columns: 1fr; }
}
