@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg: #08080c;
  --card: rgba(18, 18, 26, 0.92);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --muted: #9ca3af;
  --accent: #a78bfa;
  --accent-2: #6366f1;
  --warn: #fbbf24;
  --ok: #34d399;
  --radius: 20px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --w3m-z-index: 2147483646;
  --wcm-z-index: 2147483646;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.vg-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  isolation: isolate;
}

.vg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.vg-glow-a {
  width: 420px;
  height: 420px;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(167, 139, 250, 0.18);
}
.vg-glow-b {
  width: 320px;
  height: 320px;
  bottom: 10%;
  right: -80px;
  background: rgba(99, 102, 241, 0.12);
}

.vg-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.vg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.vg-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(167, 139, 250, 0.35);
}

.vg-top-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.vg-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vg-pill-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ok);
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.08);
}

.vg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: vg-pulse 2s ease infinite;
}

@keyframes vg-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.vg-pill-scan {
  color: var(--accent);
  border-color: rgba(167, 139, 250, 0.3);
  background: rgba(167, 139, 250, 0.1);
}

.vg-stage {
  flex: 1;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 8px 20px 32px;
}

.vg-panel { animation: vg-in 0.35s ease; }
.vg-hidden { display: none !important; }

@keyframes vg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.vg-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.vg-card-main { text-align: center; }

.vg-hero-icon {
  margin: 0 auto 16px;
  width: 56px;
  height: 56px;
}

.vg-title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.vg-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.vg-lead-sm { font-size: 0.88rem; margin-bottom: 0; }

.vg-steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.vg-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}

.vg-step span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
}

.vg-step.is-active {
  color: var(--text);
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.1);
}

.vg-step.is-active span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg);
}

.vg-section { margin-bottom: 20px; text-align: left; }

.vg-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.vg-chains {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vg-chains .net-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text);
}

.vg-chains .net-pill img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.vg-btn-connect {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg);
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}

.vg-btn-connect:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.45);
}

.vg-btn-connect:disabled,
.vg-btn-connect[data-loading="1"] {
  opacity: 0.72;
  cursor: wait;
}

.vg-error {
  min-height: 1.2em;
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: #f87171;
}

.vg-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0 16px;
}

.vg-metrics div {
  padding: 12px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
}

.vg-metrics strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.vg-metrics span {
  font-size: 0.72rem;
  color: var(--muted);
}

.vg-footnote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: left;
  line-height: 1.45;
}

.vg-footnote svg { flex-shrink: 0; margin-top: 2px; opacity: 0.7; }

.vg-scan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.vg-scan-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.vg-wallet-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  margin-bottom: 20px;
}

.vg-wallet-chip p { margin: 0; }
.step-4-wallet-name { font-weight: 600; font-size: 0.92rem; }

.vg-mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  word-break: break-all;
}

.vg-loader {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 14px;
}

.vg-loader-bar {
  height: 100%;
  width: 35%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: vg-slide 1.2s ease-in-out infinite;
}

@keyframes vg-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(320%); }
}

.vg-card-report { text-align: center; }

.vg-score-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
}

.vg-score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.vg-score-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.vg-score-fill {
  fill: none;
  stroke: url(#scoreGrad);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 0.8s ease;
}

.vg-score-ring .total-percent {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.vg-risk-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--warn);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.vg-bars {
  margin: 20px 0;
  text-align: left;
}

.vg-bar-row { margin-bottom: 14px; }

.vg-bar-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: var(--muted);
}

.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.progress-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--p-width, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.7s ease;
}

.vg-btn-secondary {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.vg-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.vg-bottom {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 16px 20px 28px;
  font-size: 0.78rem;
  color: var(--muted);
}

.vg-bottom p { margin: 0; }

/* Legal pages */
.vg-app .card h1 { margin-top: 0; }
.vg-app .head-desc { color: var(--muted); }

.vg-asset-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
  font-size: 0.88rem;
}

.vg-asset-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vg-asset-list li:last-child { border-bottom: 0; }

.vg-asset-list .vg-method {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.25);
  color: #c4b5fd;
}

@media (max-width: 480px) {
  .vg-top, .vg-stage { padding-left: 16px; padding-right: 16px; }
  .vg-card { padding: 22px 18px; }
  .vg-metrics { gap: 6px; }
  .vg-steps { flex-wrap: wrap; }
}
