/* ═══════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #080808;
  color: #e8e8e8;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ═══════════════════════════════════════════════════
   CSS VARIABLES
═══════════════════════════════════════════════════ */
:root {
  --green:       #00ff87;
  --green-dim:   #00cc6a;
  --green-glow:  rgba(0,255,135,.18);
  --purple:      #7c3aed;
  --purple-mid:  #a855f7;
  --purple-glow: rgba(124,58,237,0.2);
  --bg:          #080808;
  --bg-2:        #0d0d0d;
  --bg-3:        #111111;
  --surface:     rgba(255,255,255,.04);
  --surface-2:   rgba(255,255,255,.07);
  --border:      rgba(255,255,255,.08);
  --border-g:    rgba(0,255,135,.2);
  --text:        #e8e8e8;
  --text-2:      #888888;
  --text-3:      #555555;
  --pink:        #00ff87;
  --pink-d:      rgba(0,255,135,.12);
  --muted:       #888888;
  --dark:        rgba(255,255,255,.05);
}

/* ═══════════════════════════════════════════════════
   BACKGROUND CANVAS + NOISE OVERLAY
═══════════════════════════════════════════════════ */
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .4;
}

/* ═══════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════ */
.page-wrap { position: relative; z-index: 2; padding-top: 128px; min-height: 100vh; }
.container  { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 128px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(8,8,8,.8);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: all .3s;
}
nav.scrolled {
  background: rgba(8,8,8,.95);
  border-bottom-color: rgba(0,255,135,.12);
  box-shadow: 0 1px 40px rgba(0,0,0,.6);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 36px; font-weight: 700; letter-spacing: -.3px; color: #95f4de;
}
.nav-logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--green), var(--purple-mid));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; color: #000;
}
.nav-logo span { color: #95f4de; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  display: block; padding: 10px 20px;
  font-size: 18px; font-weight: 500; color: var(--text-2);
  border-radius: 8px; transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.btn-nav {
  padding: 14px 28px; background: var(--green); color: #000;
  font-size: 17px; font-weight: 700; border: none; border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,255,135,.3); transition: all .2s;
  text-decoration: none; display: inline-block;
}
.btn-nav:hover { background: #1aff97; box-shadow: 0 0 30px rgba(0,255,135,.5); transform: translateY(-1px); }
.btn-connect {
  padding: 14px 28px; background: var(--green); color: #000;
  font-size: 17px; font-weight: 700; border: none; border-radius: 8px; cursor: pointer;
  transition: all .2s; font-family: inherit;
  box-shadow: 0 0 20px rgba(0,255,135,.3); letter-spacing: .01em;
}
.btn-connect:hover { background: #fff; box-shadow: 0 0 30px rgba(0,255,135,.5); transform: translateY(-1px); }
.nav-mobile-toggle {
  display: none; background: transparent; border: 1px solid var(--border);
  color: var(--text); padding: 7px 11px; border-radius: 6px;
  cursor: pointer; font-family: inherit; font-size: 16px; line-height: 1;
}

/* ═══════════════════════════════════════════════════
   MOBILE MENU
═══════════════════════════════════════════════════ */
.mobile-menu {
  display: none; position: fixed; top: 128px; left: 0; right: 0;
  z-index: 99; background: rgba(8,8,8,.97);
  border-bottom: 1px solid var(--border); backdrop-filter: blur(20px);
  padding: 12px 16px 16px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu ul a { display: block; padding: 10px 14px; font-size: 15px; color: var(--text-2); border-radius: 8px; }
.mobile-menu ul a:hover, .mobile-menu ul a.active { background: var(--surface); color: var(--text); }
.mobile-menu .mobile-cta {
  margin-top: 10px; display: block; text-align: center;
  padding: 12px; background: var(--green); color: #000;
  font-weight: 700; font-size: 14px; border-radius: 10px;
}

/* ═══════════════════════════════════════════════════
   COMMON COMPONENTS
═══════════════════════════════════════════════════ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green); margin-bottom: 10px;
}
.eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--green); }

.page-title { font-size: clamp(24px, 4vw, 40px); font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; }
.page-sub   { color: var(--text-2); font-size: 15px; }

.page-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; border-top: 1px solid var(--border);
  margin-top: 40px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; gap: 10px;
}

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb-sep { color: var(--text-3); }

.card { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.card-header {
  padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: 14px; font-weight: 700; color: var(--text); }
.card-count { font-size: 13px; color: var(--text-2); }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 10px 16px; text-align: left;
  font-size: 11px; font-weight: 600; color: var(--text-2);
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); white-space: nowrap;
}
.data-table td { padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 14px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(0,255,135,.02); }

.mini-bar { height: 5px; background: rgba(255,255,255,.08); border-radius: 3px; width: 70px; display: inline-block; vertical-align: middle; margin-right: 6px; overflow: hidden; }
.mini-bar-fill { height: 100%; background: var(--green); border-radius: 3px; }

.op-deploy   { color: #f59e0b; font-weight: 600; }
.op-mint     { color: var(--green); font-weight: 600; }
.op-transfer { color: #a78bfa; font-weight: 600; }
.msg-row { text-align: center; color: var(--text-2); font-size: 14px; padding: 24px; }

/* ═══════════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #222; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE — NAVIGATION
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  nav { height: 96px; }
  .nav-logo { font-size: 28px; }
  .nav-logo img { height: 80px !important; }
  .page-wrap { padding-top: 96px; }
  .mobile-menu { top: 96px; }
}
@media (max-width: 768px) {
  nav { height: 64px; }
  .nav-logo { font-size: 20px; }
  .nav-logo img { height: 40px !important; border-radius: 6px !important; }
  .page-wrap { padding-top: 64px; }
  .mobile-menu { top: 64px; }
  .nav-links, .nav-right .btn-nav, .nav-right .btn-connect { display: none; }
  .nav-mobile-toggle { display: flex; align-items: center; }
}
@media (max-width: 480px) {
  nav { height: 56px; }
  .nav-logo { font-size: 18px; }
  .nav-logo img { height: 34px !important; }
  .container { padding: 0 14px; }
  .mobile-menu { top: 56px; }
}
