/* ───────────────────────────────────────────────────────────────
   Hollow colour scheme (matched to hollowwebsite/app/globals.css)
   ─────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --background: #050505;
  --foreground: #e8e8e8;
  --muted: #888888;
  --border: #1a1a1a;
  --card: #0c0c0c;
  --accent: #6366f1;
  --accent-2: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --ok: #06b76a;
  --err: #f0616d;
  --radius: 0.625rem;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Background grid + glow, lifted from the hollow site */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

.glow-orb {
  position: fixed;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 760px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

/* Layout */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

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

.brand { display: flex; align-items: center; gap: 12px; }

.brand .mark {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--card);
  box-shadow: 0 0 24px var(--accent-glow);
}
.brand .mark span { width: 12px; height: 12px; border: 2px solid var(--accent-2); border-radius: 4px; }

.brand h1 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.brand p { font-size: 12px; color: var(--muted); margin: 2px 0 0; }

.hero { margin-bottom: 32px; }
.hero h2 {
  font-size: 30px; line-height: 1.1; margin: 0 0 10px;
  letter-spacing: -0.03em; font-weight: 600;
}
.hero h2 em { font-style: normal; color: var(--accent-2); }
.hero p { color: var(--muted); font-size: 14px; margin: 0; max-width: 52ch; }

/* Card */
.card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}
.card:hover { border-color: rgba(255,255,255,0.12); }
.card h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.card .sub { color: var(--muted); font-size: 12.5px; margin: 0 0 18px; }

/* Wallet bar */
.wallet-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wallet-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wallet-meta .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.wallet-meta .addr { font-family: 'Geist Mono', monospace; font-size: 13px; word-break: break-all; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
}
.badge.ok { color: var(--ok); border-color: rgba(6,183,106,0.3); }
.badge.warn { color: #d8a657; border-color: rgba(216,166,87,0.3); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Form */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 560px){ .grid2, .grid3 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 12px; color: var(--foreground); font-weight: 500; }
.field .hint { font-size: 11px; color: var(--muted); }

input, textarea, select {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.7rem 0.85rem;
  font-size: 13.5px;
  color: var(--foreground);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea { resize: vertical; min-height: 76px; }
input::placeholder, textarea::placeholder { color: rgba(136,136,136,0.6); }
input:focus, textarea:focus, select:focus {
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
select { appearance: none; cursor: pointer; }

input[type=file]{ padding: 0.55rem 0.6rem; font-size: 12.5px; cursor: pointer; }
input[type=file]::file-selector-button{
  background: var(--card); color: var(--foreground);
  border: 1px solid var(--border); border-radius: 7px;
  padding: 5px 10px; margin-right: 10px; cursor: pointer; font-family: inherit; font-size: 12px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  padding: 0.7rem 1.2rem;
  font-size: 13.5px; font-weight: 500; font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn:hover:not(:disabled){ border-color: rgba(255,255,255,0.25); }
.btn:disabled{ opacity: 0.45; cursor: not-allowed; }

.btn.primary {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover:not(:disabled){ background: var(--accent-2); box-shadow: 0 4px 24px var(--accent-glow); }
.btn.full { width: 100%; padding: 0.85rem; font-size: 14px; }
.btn.ghost { color: var(--muted); }

.row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Log / status */
.log {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #070707;
  padding: 14px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  max-height: 260px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  display: none;
}
.log.show { display: block; }
.log .l-info { color: var(--muted); }
.log .l-ok { color: var(--ok); }
.log .l-err { color: var(--err); }
.log a { color: var(--accent-2); }

footer.site { text-align: center; color: var(--muted); font-size: 12px; margin-top: 36px; }
footer.site a { color: var(--muted); }

.hide { display: none !important; }
