/* --- Variables --- */
:root {
  --bg-dark: #0a0e17;
  --bg-card: #0d1320;
  --accent-green: #00e5a0;
  --accent-cyan: #00d4ff;
  --accent-blue: #0ea5e9;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: rgba(0, 229, 160, 0.2);
  --glow-green: rgba(0, 229, 160, 0.4);
  --glow-cyan: rgba(0, 212, 255, 0.35);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text);
  background: var(--bg-dark);
  overflow-x: hidden;
}

/* --- Background grid --- */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 160, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 160, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--accent-green);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
}
.logo-icon { opacity: 0.9; }
.nav {
  display: flex;
  gap: 1.5rem;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--accent-cyan); }
.nav-coming { opacity: 0.6; }

/* --- Main --- */
.main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
}
.hero {
  text-align: center;
  max-width: 560px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}
.hero-sub {
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  font-size: 1.1rem;
}

/* --- Radar --- */
.radar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.radar {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  box-shadow:
    0 0 0 1px rgba(0, 229, 160, 0.25),
    inset 0 0 60px rgba(0, 212, 255, 0.06);
}
.radar-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 160, 0.2);
  transform: translate(-50%, -50%);
}
.radar-circle-1 { width: 100%;  height: 100%; }
.radar-circle-2 { width: 75%;  height: 75%; }
.radar-circle-3 { width: 50%;  height: 50%; }
.radar-circle-4 { width: 25%;  height: 25%; }
.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(0, 229, 160, 0.35) 0deg,
    rgba(0, 212, 255, 0.15) 30deg,
    transparent 60deg
  );
  animation: radar-sweep 4s linear infinite;
}
.radar-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 20px var(--glow-green);
}
@keyframes radar-sweep {
  to { transform: rotate(360deg); }
}
.radar {
  animation: radar-rotate 24s linear infinite;
}
@keyframes radar-rotate {
  to { transform: rotate(360deg); }
}

/* --- Buttons & inputs --- */
.btn {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  color: var(--bg-dark);
}
.btn-primary:hover {
  box-shadow: 0 0 24px var(--glow-green);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  margin-top: 0.75rem;
}
.btn-ghost:hover { color: var(--accent-cyan); }
.input-wallet {
  width: 100%;
  max-width: 420px;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-wallet::placeholder { color: var(--text-muted); }
.input-wallet:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--glow-cyan);
}
.input-wallet.error { border-color: #ef4444; }
.input-hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}
.input-hint.error { color: #f87171; }
.input-hint.ok { color: var(--accent-green); }

/* --- Blocks --- */
.cta-block,
.search-block,
.result-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.search-block .btn,
.result-block .btn { margin-top: 0.25rem; }
.hidden { display: none !important; }
.result-content {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.result-content .count { color: var(--accent-green); font-weight: 600; }

/* --- Modal --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}
.modal-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.1);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: var(--accent-cyan);
}
.modal-text {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.modal-text strong { color: var(--accent-green); }

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(10, 14, 23, 0.6);
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo { margin-bottom: 1rem; display: inline-flex; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-cyan); }
.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0.8;
}

/* --- A11y --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
