:root {
  --bg:      #04080f;
  --surface: #080f1a;
  --panel:   #0b1520;
  --border:  #141e2a;
  --gold:    #c9a84c;
  --gold2:   #f0d080;
  --accent:  #c9a84c;
  --accent2: #f0d080;
  --success: #3ecf8e;
  --warn:    #ffb800;
  --danger:  #e05050;
  --cream:   #ede8dc;
  --text:    #cdd9e5;
  --muted:   #4a6a7a;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --sidebar-w: 220px;
  --sidebar-cw: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { zoom: 1.1; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-mono);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Glow orbs */
body::after {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.orb2 {
  position: fixed;
  bottom: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201,168,76,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── HEADER ── */
header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid rgba(201,168,76,0.12);
  background: rgba(4,8,15,0.85);
  backdrop-filter: blur(20px);
}

.logo {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 3px;
  color: var(--gold);
  text-decoration: none;
}

.logo span {
  color: var(--cream);
  opacity: 0.4;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 2px;
  margin-left: 10px;
  vertical-align: middle;
}

.header-right { display: flex; align-items: center; gap: 16px; }

.network-badge {
  font-size: 11px;
  padding: 4px 12px;
  border: 1px solid rgba(255,184,0,0.5);
  color: var(--warn);
  border-radius: 20px;
  letter-spacing: 1px;
  font-family: var(--font-mono);
}

/* ── MAIN LAYOUT ── */
main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Hide tabs and main until connected */
.tabs { display: none; }
.tabs.visible { display: flex; }
main { display: none; }
main.visible { display: block; }

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  border-top: 1px solid rgba(201,168,76,0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
}
footer span { color: var(--gold); opacity: 0.6; }
.footer-contract { display:block; margin-top:6px; font-size:10px; color:var(--muted); opacity:0.5; letter-spacing:1px; font-family:var(--font-mono); }
.footer-contract a { color:var(--gold); opacity:0.7; text-decoration:none; }
.footer-contract a:hover { opacity:1; }
