/* ───────────────────────────────────────────────────────────────
   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;
}

.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%);
}

.wrap { position: relative; z-index: 1; max-width: 760px; 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: 28px; }
.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: 56ch; }

.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 + stats */
.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; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
@media (max-width: 520px){ .stats { grid-template-columns: 1fr; } }
.stat { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--background); }
.stat .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.stat .v { font-family: 'Geist Mono', monospace; font-size: 20px; margin-top: 4px; }
.stat .v small { font-size: 12px; color: var(--muted); }

/* Tabs */
.tabs { display: flex; gap: 6px; margin-bottom: 22px; border: 1px solid var(--border); border-radius: var(--radius); padding: 4px; background: var(--card); width: fit-content; }
.tab {
  border: none; background: transparent; color: var(--muted); cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: 7px;
  transition: background 0.2s ease, color 0.2s ease;
}
.tab:hover { color: var(--foreground); }
.tab.active { background: var(--background); color: var(--foreground); box-shadow: inset 0 0 0 1px var(--border); }

.panel { display: none; }
.panel.active { display: block; }

/* Form bits */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 500; }
.field .hint { font-size: 11px; color: var(--muted); }
input {
  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;
}
input::placeholder { color: rgba(136,136,136,0.6); }
input:focus { border-color: rgba(99,102,241,0.5); box-shadow: 0 0 0 3px var(--accent-glow); }

.input-suffix { position: relative; }
.input-suffix .max {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 11px; color: var(--accent-2); background: var(--card);
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; cursor: pointer;
}

/* 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.sm { padding: 0.45rem 0.8rem; font-size: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spread { justify-content: space-between; }

/* Account list */
.acct-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.acct {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 11px 13px; background: var(--background);
  transition: border-color 0.2s ease; cursor: pointer;
}
.acct:hover { border-color: rgba(255,255,255,0.12); }
.acct.disabled { cursor: default; }
.acct input[type=checkbox]{ width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; flex: none; }
.acct .avatar {
  width: 36px; height: 36px; border-radius: 9px; flex: none;
  border: 1px solid var(--border); background: var(--background);
  object-fit: cover; display: grid; place-items: center;
  font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 600; color: var(--accent-2);
  overflow: hidden;
}
.acct .info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.acct .name { font-size: 13px; font-weight: 500; display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.acct .name .sym { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.acct .name .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct .copykey {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--muted);
  background: transparent; border: none; cursor: pointer; padding: 0;
  transition: color 0.15s ease;
}
.acct .copykey:hover { color: var(--foreground); }
.acct .copykey .ico { opacity: 0.7; font-size: 12px; }
.acct .copykey.copied { color: var(--ok); }
.acct .meta { font-size: 11px; color: var(--muted); }
.acct .tag {
  font-size: 10.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border);
  color: var(--muted); flex: none; white-space: nowrap;
}
.acct .tag.empty { color: var(--ok); border-color: rgba(6,183,106,0.3); }
.acct .tag.hasbal { color: #d8a657; border-color: rgba(216,166,87,0.3); }
.acct.disabled { opacity: 0.5; }

.empty-state { color: var(--muted); font-size: 13px; text-align: center; padding: 26px 0; }

/* Log */
.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; }
.hide { display: none !important; }
