/* ── claim-dex-node-nft.css ── Dex Node™ claim page (Base Mainnet) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #03070f;
  --surface:  #080f1e;
  --border:   #0e2040;
  --accent:   #00c2ff;
  --accent2:  #0066ff;
  --green:    #00ffaa;
  --red:      #ff3b5c;
  --yellow:   #ffc847;
  --text:     #cde4ff;
  --muted:    #3a5a80;
  --mono:     'Share Tech Mono', monospace;
  --sans:     'Syne', sans-serif;
}

html, body {
  min-height: 100%;
  min-height: 100vh;
  background: #000;
  color: var(--text);
  font-family: var(--sans);
}

body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  margin: 0;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(0, 100, 180, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(120, 40, 200, 0.12), transparent 55%),
    #000 !important;
}

/* Pin site header flush to top (body padding was pushing fixed header down) */
body .header {
  top: 0 !important;
  left: 0;
  right: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  z-index: 50;
}

/* Soft glow (landing-page style) — no grid */
body::before {
  content: '';
  position: fixed;
  width: 420px;
  height: 420px;
  right: 8%;
  top: 18%;
  z-index: 0;
  background: radial-gradient(circle, rgba(0, 212, 232, 0.12), transparent 70%);
  pointer-events: none;
  animation: none;
}

body::after {
  content: none;
  display: none;
}

nav.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }

/* Site .header is used; keep claim card just below fixed header */
.page-wrap {
  position: relative; z-index: 3;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 1rem 1.25rem; /* flush under fixed 60px header */
  box-sizing: border-box;
}

.card {
  width: 100%; max-width: 480px;
  background: rgba(8,15,30,.95);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
  animation: cardIn .5s ease forwards;
  overflow: hidden;
  z-index: 3;
}

/* Desktop: ~25% wider claim container */
@media (min-width: 768px) {
  .card { max-width: 600px; }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(10px); } /* +10px visual shift; no layout/footer push */
}

.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
  animation: scanEdge 3s ease-in-out infinite;
}
@keyframes scanEdge {
  0%,100% { opacity: .4; }
  50%      { opacity: 1; }
}

.card-header {
  padding: 2rem 2rem 0.75rem; /* bottom was 1.5rem — −50% below subtitle */
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.node-icon {
  width: 100px; height: 100px; margin: 0 auto 1.25rem;
  border-radius: 50%;
  border: 2px solid rgba(0,194,255,.3);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,194,255,.2);
  animation: avatarGlow 3s ease-in-out infinite;
  background: radial-gradient(circle at 40% 35%, #0a2a4a 0%, #041018 70%);
  display: flex; align-items: center; justify-content: center;
}
@keyframes avatarGlow {
  0%,100% { box-shadow: 0 0 20px rgba(0,194,255,.2); }
  50%      { box-shadow: 0 0 40px rgba(0,194,255,.5); }
}
.node-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.node-icon svg { width: 58px; height: 58px; }

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .12em;
  color: var(--accent); border: 1px solid rgba(0,194,255,.25);
  background: rgba(0,194,255,.06); border-radius: 2px;
  padding: .25rem .8rem; margin-bottom: 1rem;
  text-transform: uppercase;
}

h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin: 0 0 0; /* space to subtitle handled by .subtitle */
}
h1 span { color: var(--accent); }
.subtitle {
  font-size: .85rem;
  color: #a8c8e8;
  margin-top: 0.42rem; /* was .6rem — −30% below headline */
  margin-bottom: 0;
  line-height: 1.6;
  font-family: var(--mono);
}

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.stat {
  padding: .85rem .65rem; text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-label {
  font-family: var(--mono); font-size: .55rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .1em;
}
.stat-value {
  font-family: var(--mono); font-size: .8rem; color: var(--text);
  margin-top: .25rem; font-weight: 600;
}
.stat-value.green  { color: var(--green); }
.stat-value.blue   { color: var(--accent); }
.stat-value.yellow { color: var(--yellow); }

.progress-wrap {
  padding: 1.1rem 2rem;
  border-bottom: 1px solid var(--border);
}
.progress-labels {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: .65rem; color: var(--muted); margin-bottom: .5rem;
}
.progress-bar {
  background: rgba(255,255,255,.05); border-radius: 2px; height: 5px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  transition: width 1s ease;
}

.tier-callout {
  margin: 1.25rem 2rem;
  padding: .85rem 1.1rem;
  background: rgba(0,194,255,.06);
  border: 1px solid rgba(0,194,255,.25);
  border-radius: 3px;
}
.tier-callout-row { display: flex; justify-content: space-between; align-items: center; }
.tier-label { font-family: var(--mono); font-size: .6rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.tier-price { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--text); margin-top: .2rem; }
.tier-price span { font-size: .85rem; color: var(--accent); }
.tier-note { font-family: var(--mono); font-size: .65rem; color: var(--muted); margin-top: .35rem; }
.tier-badge {
  font-family: var(--mono); font-size: .6rem;
  background: rgba(255,200,71,.06); border: 1px solid rgba(255,200,71,.25);
  color: var(--yellow); border-radius: 2px; padding: .25rem .65rem;
}

/* Nav claim status — gold when paused, bright green when live */
.claim-status-banner {
  margin: 0;
  padding: .4rem .85rem;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: .68rem;
  line-height: 1.3;
  white-space: nowrap;
  flex-shrink: 1;
}

.claim-status-banner--paused {
  background: rgba(255, 200, 71, 0.07);
  border: 1px solid rgba(255, 200, 71, 0.25);
  color: var(--yellow);
}

.claim-status-banner--live {
  background: rgba(0, 255, 170, 0.08);
  border: 1px solid rgba(0, 255, 170, 0.55);
  color: #00ffaa;
  box-shadow: 0 0 12px rgba(0, 255, 170, 0.2);
}

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

/* Match TERMS nav link styling */
.header .nav-home-link {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  background: none;
  border: none;
  box-shadow: none;
}
.header .nav-home-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 900px) {
  .claim-status-banner {
    white-space: normal;
    max-width: 220px;
    font-size: .6rem;
    text-align: right;
  }
}

/* Mobile header only: compact left logo + Base capsule (desktop unchanged) */
.claim-mobile-base {
  display: none;
}

@media (max-width: 768px) {
  body .header {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
    height: 60px !important;
    gap: 0 !important;
    padding: 0 14px;
    box-sizing: border-box;
  }

  body .header .header-left {
    flex-direction: row !important;
    width: auto !important;
    text-align: left !important;
    gap: 0;
    align-items: center;
  }

  /* ~40% of desktop 40px logo height; stay left */
  body .header .logo img {
    height: 16px !important;
    width: auto !important;
    max-width: none;
    margin-left: 4px !important;
  }

  body .header .nav-links,
  body .header .wallet-controls {
    display: none !important;
  }

  body .header .claim-mobile-base {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #00d4e8;
    border: 1px solid rgba(0, 212, 232, 0.35);
    background: rgba(0, 212, 232, 0.08);
    border-radius: 999px;
    padding: 4px 12px;
    white-space: nowrap;
  }

  .claim-mobile-base-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00d4e8;
    flex-shrink: 0;
    animation: pulse 1.8s ease-in-out infinite;
  }
}

.benefits { padding: 0 2rem 1.25rem; }
.benefits-title {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .15em;
  color: var(--muted); text-transform: uppercase; margin-bottom: .75rem;
}
.benefit {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .45rem 0; font-family: var(--mono); font-size: .75rem;
  color: var(--text); border-bottom: 1px solid rgba(14,32,64,.6);
  line-height: 1.5;
}
.benefit:last-child { border-bottom: none; }
.benefit-icon { flex-shrink: 0; font-size: .95rem; margin-top: .05rem; }

.cta-wrap { padding: 0 2rem 1.75rem; }
#connect-btn {
  width: 100%; padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border: none; border-radius: 3px;
  color: #fff; font-family: var(--mono); font-size: .9rem; font-weight: 700;
  letter-spacing: .05em; cursor: pointer;
  transition: all .2s; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
}
#connect-btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1), transparent);
  opacity: 0; transition: opacity .2s;
}
#connect-btn:hover::after { opacity: 1; }
#connect-btn:active { transform: scale(.98); }
#connect-btn:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }

.cta-note {
  text-align: center; font-family: var(--mono); font-size: .62rem;
  color: var(--muted); margin-top: .75rem;
}

#status-msg {
  margin: 0 2rem 1.25rem;
  padding: .65rem 1rem;
  border-radius: 3px;
  font-family: var(--mono); font-size: .72rem; line-height: 1.5;
  display: none;
}
#status-msg.info    { background: rgba(0,194,255,.07); border: 1px solid rgba(0,194,255,.2); color: var(--accent); }
#status-msg.success { background: rgba(0,255,170,.07); border: 1px solid rgba(0,255,170,.2); color: var(--green); }
#status-msg.error   { background: rgba(255,59,92,.07);  border: 1px solid rgba(255,59,92,.2);  color: var(--red); }

/* Pinned footer — same idea as index.ejs (full-width dark bar at bottom) */
footer.footer.claim-footer,
body > .footer.claim-footer {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  width: 100%;
  max-width: none;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 1.5rem;
  box-sizing: border-box;
  background: #000;
  border-top: 1px solid #1e3050;
  font-family: 'Exo 2', var(--sans), sans-serif;
  font-size: 0.75rem;
  color: #5a7a94;
  text-align: center;
  line-height: 1;
}

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

@media (max-width: 520px) {
  h1 { font-size: 1.15rem; white-space: normal; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1),
  .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
}
