:root{
  --bg: #0b0e14;
  --card: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.10);
  --text: #e9eefc;
  --muted: #a2b0cc;
  --danger: #ff3b3b;

  --radius: 16px;
  --shadow: 0 18px 40px rgba(0,0,0,.45);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(900px 600px at 30% -10%, rgba(120,120,255,.18), transparent 55%),
              radial-gradient(900px 600px at 80% 0%, rgba(0,255,200,.10), transparent 55%),
              var(--bg);
  color: var(--text);
}

.topbar{
  position: sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(8,10,16,.65);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.brand{
  color: var(--text);
  text-decoration:none;
  font-weight: 800;
  letter-spacing: .2px;
}
.nav{ display:flex; gap: 10px; }
.nav__link{
  color: var(--muted);
  text-decoration:none;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav__link:hover{
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.04);
}

.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 16px 60px;
}

.hero{ padding: 26px 0; }
.hero__title{
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: .2px;
}
.hero__sub{
  margin: 10px 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.searchBox{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  max-width: 720px;
}

.label{
  display:block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.glowWrap{
  padding: 2px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(125,211,252,.65), rgba(167,139,250,.55), rgba(52,211,153,.55));
}
.input{
  width: 100%;
  border: 1px solid rgba(0,0,0,.0);
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 15px;
  outline: none;
}
.input:focus{
  box-shadow: 0 0 0 3px rgba(125,211,252,.25);
}

.errMsg{
  min-height: 18px;
  margin-top: 8px;
  color: #ffb3b3;
  font-weight: 600;
}

.btn{
  margin-top: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 700;
}
.btn:hover{ background: rgba(255,255,255,.12); }

.infoCard{
  margin-top: 18px;
  max-width: 720px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
}
.infoTitle{
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
  color: #93c5fd;
}
.infoList{ display:flex; flex-direction:column; gap: 12px; }
.infoItem{
  border-radius: 14px;
  padding: 12px 12px;
  border-left: 4px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.18);
}
.infoItem h5{ margin: 0 0 6px; font-size: 15px; }
.infoItem p{ margin: 0; color: var(--muted); line-height: 1.5; font-size: 14px; }

.infoItem.pink{ border-left-color: #ec4899; background: rgba(236,72,153,.10); }
.infoItem.pink h5{ color: #f472b6; }

.infoItem.green{ border-left-color: #10b981; background: rgba(16,185,129,.10); }
.infoItem.green h5{ color: #34d399; }

/* Loading overlay */
.loading{
  position: fixed;
  inset: 0;
  z-index: 200000;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.55);
}
.loading.hidden{ display:none; }
.loading__card{
  background: #111827;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 18px 18px;
  width: min(320px, 92vw);
  display:flex;
  align-items:center;
  gap: 12px;
  box-shadow: var(--shadow);
}
.spinner{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.18);
  border-top-color: rgba(255,255,255,.85);
  animation: spin 0.9s linear infinite;
}
.loading__text{ color: var(--text); font-weight: 700; }
@keyframes spin{ to{ transform: rotate(360deg); } }
