/* =============================================
   RESET & VARIABLES
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:       #7c3aed;
  --purple-mid:   #9333ea;
  --purple-light: #a78bfa;
  --pink:         #ec4899;
  --cyan:         #06b6d4;
  --green:        #10b981;
  --gold:         #f59e0b;
  --dark:         #07070f;
  --dark-2:       #0f0f1a;
  --dark-3:       #161625;
  --card-bg:      rgba(255,255,255,0.04);
  --card-border:  rgba(255,255,255,0.08);
  --text:         #f1f5f9;
  --text-soft:    #94a3b8;
  --text-muted:   #64748b;
  --nav-h:        66px;
  --r:            16px;
  --r-sm:         10px;
}

html  { scroll-behavior: smooth; }
body  {
  background: var(--dark);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* =============================================
   BACKGROUND
   ============================================= */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.15;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb1 { width:600px;height:600px; background:var(--purple); top:-220px;left:-220px; animation-duration:20s; }
.orb2 { width:500px;height:500px; background:var(--pink);   top:35%;right:-200px;  animation-duration:24s; animation-delay:-7s; }
.orb3 { width:450px;height:450px; background:var(--cyan);   bottom:-180px;left:20%;animation-duration:22s; animation-delay:-12s; }

@keyframes drift { from{transform:translate(0,0) scale(1)} to{transform:translate(50px,40px) scale(1.1)} }

.grid-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed; top:0; left:0; right:0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px,5vw,48px);
  background: rgba(7,7,15,0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
}

.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em;
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .75; }

.logo-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg,var(--purple),var(--pink));
  box-shadow: 0 0 10px rgba(124,58,237,.9);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%,100%{ box-shadow:0 0 8px rgba(124,58,237,.8); }
  50%    { box-shadow:0 0 18px rgba(236,72,153,.9); }
}

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
  padding: 7px 15px; border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 500; color: var(--text-soft);
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-link.active { color: var(--text); background: rgba(124,58,237,.18); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px; transition: background .2s;
}
.hamburger:hover { background: rgba(255,255,255,.06); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-soft); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity: 0; }
.hamburger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO / PAGE HEADER
   ============================================= */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 48px) clamp(16px,5vw,48px) 80px;
}

.page-header {
  position: relative; z-index: 1;
  padding: calc(var(--nav-h) + 80px) clamp(16px,5vw,48px) 60px;
  text-align: center;
}

.hero-inner { max-width: 680px; margin: 0 auto; text-align: center; width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(124,58,237,.14); border: 1px solid rgba(167,139,250,.3);
  color: var(--purple-light); font-size: .72rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 15px; border-radius: 999px; margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero-title {
  font-size: clamp(2.4rem,8vw,4rem); font-weight: 900;
  letter-spacing: -.03em; line-height: 1.05; margin-bottom: 18px;
}
.hero-sub {
  font-size: clamp(.95rem,2.5vw,1.1rem); color: var(--text-soft);
  line-height: 1.8; margin-bottom: 40px;
}
.page-title {
  font-size: clamp(2rem,7vw,3.2rem); font-weight: 900;
  letter-spacing: -.03em; margin-bottom: 14px;
}
.page-subtitle { font-size: clamp(.9rem,2.5vw,1.05rem); color: var(--text-soft); line-height: 1.7; }

.gradient-text {
  background: linear-gradient(135deg, var(--purple-light), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-weight: 900;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-sm);
  font-size: .95rem; font-weight: 700; cursor: pointer;
  border: none; transition: transform .15s, box-shadow .15s, opacity .15s;
  white-space: nowrap;
}
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-primary {
  background: linear-gradient(135deg,var(--purple),var(--pink));
  color: #fff; box-shadow: 0 4px 20px rgba(124,58,237,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,58,237,.55); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(255,255,255,.06); color: var(--text-soft);
  border: 1px solid var(--card-border);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--text); transform: translateY(-2px); }
.btn:disabled { opacity:.7; cursor:default; transform:none !important; }
.mt-8  { margin-top:8px; }
.mt-16 { margin-top:16px; }

/* =============================================
   CONNECT PROMPT
   ============================================= */
.connect-prompt { display: flex; justify-content: center; }

/* =============================================
   MINT PANEL
   ============================================= */
.mint-panel {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r); padding: 28px 24px; max-width: 480px; margin: 0 auto;
  backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: 20px;
}

.wallet-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}

.wallet-pill {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.05); border: 1px solid var(--card-border);
  border-radius: 999px; padding: 6px 14px;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
}

.balance-pills { display: flex; gap: 8px; flex-wrap: wrap; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 700;
}
.pill.purple { background: rgba(124,58,237,.2); color: var(--purple-light); border: 1px solid rgba(124,58,237,.3); }
.pill.pink   { background: rgba(236,72,153,.2); color: #f9a8d4;             border: 1px solid rgba(236,72,153,.3); }

/* Supply bar */
.supply-label { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-soft); margin-bottom: 8px; }
.supply-label strong { color: var(--text); }
.supply-bar { height: 6px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.supply-fill { height: 100%; background: linear-gradient(90deg,var(--purple),var(--pink)); border-radius: 999px; transition: width .6s ease; }

.btn-mint { align-self: center; }
.mint-note { font-size: .78rem; color: var(--text-muted); text-align: center; }

/* =============================================
   SECTION
   ============================================= */
.section { position: relative; z-index: 1; padding: 80px clamp(16px,5vw,48px); }
.section-dark { background: rgba(255,255,255,.015); }
.section-inner { max-width: 960px; margin: 0 auto; }
.section-inner.narrow { max-width: 720px; }
.section-title { font-size: clamp(1.5rem,4vw,2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.section-sub { font-size: 1rem; color: var(--text-soft); margin-bottom: 36px; }

/* =============================================
   PREVIEW GRID (index)
   ============================================= */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
  gap: 14px;
}
.preview-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r); overflow: hidden; cursor: pointer;
  transition: border-color .25s, transform .25s;
}
.preview-card:hover { border-color: rgba(124,58,237,.5); transform: translateY(-4px); }
.preview-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.preview-label {
  padding: 10px 12px; font-size: .78rem; font-weight: 600; color: var(--text-soft);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px;
}

.rarity {
  font-size: .65rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 999px;
}
.rarity.common    { background: rgba(100,116,139,.25); color: #94a3b8; }
.rarity.uncommon  { background: rgba(34,197,94,.2);   color: #86efac; }
.rarity.rare      { background: rgba(59,130,246,.2);  color: #93c5fd; }
.rarity.legendary { background: rgba(245,158,11,.2);  color: #fde68a; }

/* =============================================
   FEATURES GRID
   ============================================= */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 16px; }

.feature-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r); padding: 24px 20px;
  backdrop-filter: blur(12px); transition: border-color .25s, transform .25s;
}
.feature-card:hover { border-color: rgba(124,58,237,.35); transform: translateY(-3px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feature-icon.purple { background: rgba(124,58,237,.2); color: var(--purple-light); }
.feature-icon.pink   { background: rgba(236,72,153,.2); color: #f9a8d4; }
.feature-icon.cyan   { background: rgba(6,182,212,.2);  color: #67e8f9; }
.feature-icon.green  { background: rgba(16,185,129,.2); color: #6ee7b7; }

.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: .88rem; color: var(--text-soft); line-height: 1.65; }

/* =============================================
   NFT GALLERY GRID
   ============================================= */
.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 18px; margin-bottom: 36px;
}

.nft-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r); overflow: hidden; cursor: pointer;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.nft-card:hover {
  border-color: rgba(124,58,237,.5);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(124,58,237,.2);
}
.nft-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.nft-card-body { padding: 14px; }
.nft-card-name { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.nft-card-id   { font-size: .75rem; color: var(--text-muted); font-family: 'Courier New',monospace; margin-bottom: 10px; }
.nft-card-traits { display: flex; flex-wrap: wrap; gap: 6px; }
.nft-trait {
  font-size: .68rem; font-weight: 600; padding: 3px 9px;
  border-radius: 999px; background: rgba(124,58,237,.15);
  color: var(--purple-light); border: 1px solid rgba(124,58,237,.25);
}
.nft-etherscan {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 10px; font-size: .75rem; color: var(--purple-light);
  transition: color .2s;
}
.nft-etherscan:hover { color: #fff; }

/* =============================================
   GALLERY STATS BAR
   ============================================= */
.gallery-stats {
  display: flex; flex-wrap: wrap; gap: 12px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r); padding: 20px 24px;
}
.stat-item { flex: 1; min-width: 100px; }
.stat-label { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 4px; }
.stat-value { font-size: 1.2rem; font-weight: 800; }
.stat-value.green { color: var(--green); }

/* =============================================
   EMPTY STATE / LOADING
   ============================================= */
.empty-state {
  text-align: center; padding: 80px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.empty-icon { color: var(--text-muted); margin-bottom: 8px; }
.empty-state h2 { font-size: 1.4rem; font-weight: 700; }
.empty-state p  { font-size: .95rem; color: var(--text-soft); }

.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(124,58,237,.2);
  border-top-color: var(--purple-light);
  animation: spin .8s linear infinite;
  margin-bottom: 8px;
}
@keyframes spin { to{transform:rotate(360deg)} }

/* =============================================
   ABOUT — CREATOR CARD
   ============================================= */
.creator-card {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r); padding: 28px;
  backdrop-filter: blur(12px); margin-bottom: 56px;
}
.creator-avatar {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg,var(--purple),var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800; flex-shrink: 0;
  box-shadow: 0 0 30px rgba(124,58,237,.4);
}
.creator-role { font-size: .7rem; color: var(--purple-light); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 3px; }
.creator-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 10px; }
.creator-bio  { font-size: .93rem; color: var(--text-soft); line-height: 1.75; }
.creator-bio em     { color: var(--purple-light); font-style: italic; }
.creator-bio strong { color: var(--text); }

/* =============================================
   TECH LIST
   ============================================= */
.tech-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 48px; }
.tech-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r-sm); padding: 14px 18px;
  transition: border-color .2s;
}
.tech-item:hover { border-color: rgba(124,58,237,.3); }
.tech-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tech-icon.purple { background: rgba(124,58,237,.2); color: var(--purple-light); }
.tech-icon.pink   { background: rgba(236,72,153,.2); color: #f9a8d4; }
.tech-icon.cyan   { background: rgba(6,182,212,.2);  color: #67e8f9; }
.tech-icon.green  { background: rgba(16,185,129,.2); color: #6ee7b7; }
.tech-label { font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 2px; }
.tech-value { font-size: .9rem; font-weight: 600; }

/* =============================================
   PHILOSOPHY
   ============================================= */
.philo-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 14px; margin-bottom: 40px; }
.philo-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r); padding: 24px;
  transition: border-color .25s, transform .25s;
}
.philo-card:hover { border-color: rgba(124,58,237,.35); transform: translateY(-3px); }
.philo-num   { font-size: .7rem; font-weight: 800; letter-spacing: .12em; color: var(--purple-light); margin-bottom: 8px; }
.philo-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.philo-text  { font-size: .88rem; color: var(--text-soft); line-height: 1.7; }

.big-quote {
  border-left: 3px solid; border-image: linear-gradient(to bottom,var(--purple),var(--pink)) 1;
  padding: 22px 28px; background: rgba(124,58,237,.06);
  border-radius: 0 var(--r) var(--r) 0; margin-bottom: 36px;
}
.big-quote p      { font-size: clamp(1rem,3vw,1.2rem); font-weight: 600; line-height: 1.7; color: var(--text-soft); margin-bottom: 12px; }
.big-quote footer { font-size: .8rem; color: var(--text-muted); font-style: italic; }

.about-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* =============================================
   MONO
   ============================================= */
.mono { font-family: 'Courier New','Consolas',monospace; font-size: .85rem; color: var(--purple-light); }

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.9); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox img { max-width: min(480px,100%); max-height: 90vh; border-radius: var(--r); }
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: #fff; font-size: 1.1rem; width: 40px; height: 40px;
  border-radius: 50%; cursor: pointer; transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }

/* =============================================
   TOAST
   ============================================= */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: rgba(16,185,129,.92); color: #fff;
  padding: 10px 22px; border-radius: 999px;
  font-weight: 600; font-size: .88rem;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  opacity: 0; z-index: 999; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.error { background: rgba(239,68,68,.92); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--card-border);
  padding: 24px clamp(16px,5vw,48px);
}
.footer-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: .8rem; color: var(--text-muted);
}
.footer-logo { font-weight: 800; font-size: .9rem; color: var(--text-soft); }
.footer-link { color: var(--purple-light); transition: color .2s; }
.footer-link:hover { color: var(--text); }

/* =============================================
   UTILITY
   ============================================= */
.hidden { display: none !important; }

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    background: rgba(7,7,15,.97); backdrop-filter: blur(20px);
    padding: 12px 16px 20px; border-bottom: 1px solid var(--card-border); gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 14px; font-size: .95rem; }

  .creator-card { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
  .about-actions { flex-direction: column; }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 480px) {
  .hero { min-height: auto; padding-bottom: 60px; }
  .btn-lg { width: 100%; max-width: 320px; justify-content: center; }

  .preview-grid { grid-template-columns: repeat(2, 1fr); }
  .nft-grid     { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); }
  .philo-grid   { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }

  .wallet-row { flex-direction: column; align-items: flex-start; }
  .gallery-stats { flex-direction: column; }

  .mint-panel { padding: 20px 16px; }
  .section { padding: 60px clamp(16px,4vw,24px); }
}

/* =============================================
   PARTICLE CANVAS
   ============================================= */
.particle-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.6;
}

/* =============================================
   HERO SPLIT (two-column)
   ============================================= */
.hero-split {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(32px, 6vw, 80px);
  padding: calc(var(--nav-h) + 40px) clamp(16px,5vw,64px) 60px;
  min-height: 100vh;
}

.hero-left {
  flex: 0 0 auto; max-width: 520px; width: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
}

.hero-left .badge { margin-bottom: 22px; }

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 900;
  letter-spacing: -0.035em; line-height: 1.0; margin-bottom: 16px;
}
.hero-title-sub {
  display: block;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.02em;
  color: var(--text-soft);
}

.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.05rem); color: var(--text-soft);
  line-height: 1.8; margin-bottom: 32px; min-height: 3.6em;
}

.connect-prompt { display: flex; flex-direction: column; gap: 10px; }
.connect-hint { font-size: 0.75rem; color: var(--text-muted); text-align: center; }

/* ─── Animated border mint panel ────────────────────────────────────────── */
.mint-panel-wrap {
  position: relative; border-radius: calc(var(--r) + 2px);
  padding: 2px; width: 100%;
  background: linear-gradient(135deg, #7c3aed, #ec4899, #06b6d4, #7c3aed);
  background-size: 300% 300%;
  animation: grad-border 4s ease infinite;
}

@keyframes grad-border {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

.mint-panel-wrap .mint-panel {
  background: var(--dark-2); border: none; border-radius: var(--r);
  width: 100%;
}

/* ─── Glow button ───────────────────────────────────────────────────────── */
.glow-btn {
  position: relative; overflow: hidden;
  box-shadow: 0 0 20px rgba(124,58,237,0.4), 0 0 60px rgba(124,58,237,0.15);
  transition: box-shadow 0.3s, transform 0.15s;
}
.glow-btn:hover {
  box-shadow: 0 0 30px rgba(124,58,237,0.7), 0 0 80px rgba(236,72,153,0.25);
  transform: translateY(-2px);
}
.glow-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.glow-btn:hover::after { transform: translateX(100%); }

/* ─── Floating NFT showcase ─────────────────────────────────────────────── */
.hero-right {
  flex: 0 0 auto; width: clamp(260px, 38vw, 420px);
  position: relative; display: flex; align-items: center; justify-content: center;
}

.nft-showcase {
  position: relative; width: 260px; height: 340px;
}

.showcase-card {
  position: absolute; width: 200px; height: 200px; border-radius: 18px;
  overflow: hidden; border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
  cursor: pointer;
}
.showcase-card img { width: 100%; height: 100%; object-fit: cover; }

.sc-back {
  top: 0; left: 0;
  transform: rotate(-12deg) translateY(20px);
  animation: float-a 5s ease-in-out infinite;
  filter: brightness(0.6);
  z-index: 1;
}
.sc-mid {
  top: 40px; left: 40px;
  transform: rotate(-4deg);
  animation: float-b 6s ease-in-out infinite;
  filter: brightness(0.8);
  z-index: 2;
}
.sc-front {
  top: 80px; left: 80px;
  transform: rotate(5deg);
  animation: float-c 4.5s ease-in-out infinite;
  z-index: 3;
  border-color: rgba(245,158,11,0.5);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(245,158,11,0.25);
}

@keyframes float-a {
  0%,100%{ transform: rotate(-12deg) translateY(20px); }
  50%    { transform: rotate(-12deg) translateY(8px); }
}
@keyframes float-b {
  0%,100%{ transform: rotate(-4deg) translateY(0); }
  50%    { transform: rotate(-4deg) translateY(-12px); }
}
@keyframes float-c {
  0%,100%{ transform: rotate(5deg) translateY(0); }
  50%    { transform: rotate(5deg) translateY(-18px); }
}

.showcase-badge {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(245,158,11,0.9); color: #000;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
}

.showcase-glow {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.2) 0%, transparent 70%);
  filter: blur(30px); pointer-events: none;
}

/* ─── Shimmer overlay ───────────────────────────────────────────────────── */
.shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.06) 50%,
    transparent 70%
  );
  background-size: 200% 200%;
  animation: shimmer-move 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer-move {
  0%   { background-position: 200% 0%; }
  100% { background-position: -200% 0%; }
}

/* ─── Preview card enhancements ─────────────────────────────────────────── */
.preview-img-wrap {
  position: relative; overflow: hidden;
}

.preview-overlay {
  position: absolute; inset: 0;
  background: rgba(124,58,237,0.0);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s, background 0.25s;
}
.preview-overlay span {
  font-size: 0.78rem; font-weight: 700; color: white;
  background: rgba(124,58,237,0.8); padding: 6px 14px;
  border-radius: 999px; backdrop-filter: blur(4px);
}
.preview-card:hover .preview-overlay { opacity: 1; background: rgba(124,58,237,0.15); }
.preview-card:hover { border-color: rgba(124,58,237,0.6); }

/* ─── 3D Tilt cards ─────────────────────────────────────────────────────── */
.tilt-card { transform-style: preserve-3d; will-change: transform; }

/* ─── Scroll reveal ─────────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE — HERO SPLIT
   ============================================= */
@media (max-width: 900px) {
  .hero-split {
    flex-direction: column-reverse;
    padding-top: calc(var(--nav-h) + 30px);
    min-height: auto;
  }
  .hero-left { align-items: center; text-align: center; max-width: 600px; }
  .hero-left .badge { align-self: center; }
  .hero-right { width: 100%; max-width: 380px; height: 260px; }
  .nft-showcase { transform: scale(0.85); }
  .connect-prompt { align-items: center; }
  .mint-panel-wrap { max-width: 460px; }
}

@media (max-width: 480px) {
  .hero-right { display: none; }
  .hero-split { padding-bottom: 40px; }
}

/* =============================================
   DARK / LIGHT MODE
   ============================================= */
[data-theme="light"] {
  --dark:       #f8fafc;
  --dark-2:     #f1f5f9;
  --dark-3:     #e2e8f0;
  --card-bg:    rgba(0,0,0,0.03);
  --card-border:rgba(0,0,0,0.08);
  --text:       #0f172a;
  --text-soft:  #475569;
  --text-muted: #94a3b8;
}
[data-theme="light"] .navbar { background: rgba(248,250,252,0.85); }
[data-theme="light"] .nav-links { background: rgba(248,250,252,0.97); }
[data-theme="light"] .particle-canvas { opacity: 0.3; }
[data-theme="light"] .bg-orbs .orb { opacity: 0.08; }
[data-theme="light"] .grid-overlay { opacity: 0.4; }

.nav-right { display: flex; align-items: center; gap: 6px; }

.dark-mode-btn {
  background: none; border: 1px solid var(--card-border);
  border-radius: 8px; padding: 6px 8px; cursor: pointer;
  font-size: 0.85rem; transition: background 0.2s;
}
.dark-mode-btn:hover { background: rgba(255,255,255,0.08); }

/* =============================================
   GRAIN TEXTURE
   ============================================= */
.grain-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* =============================================
   SPINNING COIN
   ============================================= */
.coin-wrap {
  perspective: 600px;
  width: 52px; height: 52px;
  margin-bottom: 18px;
}
.coin {
  width: 100%; height: 100%;
  position: relative; transform-style: preserve-3d;
  animation: spin-coin 3s linear infinite;
}
.coin-face {
  position: absolute; inset: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.85rem; letter-spacing: -0.02em;
  backface-visibility: hidden;
  border: 2px solid rgba(245,158,11,0.5);
}
.coin-front {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #000;
  box-shadow: 0 0 20px rgba(245,158,11,0.4);
}
.coin-back {
  background: linear-gradient(135deg, #b45309, #d97706);
  color: #fde68a;
  transform: rotateY(180deg);
}
@keyframes spin-coin {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* =============================================
   GAS TRACKER PILL
   ============================================= */
.gas-pill {
  display: flex; align-items: center; gap: 5px;
  background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.25);
  border-radius: 999px; padding: 5px 12px;
  font-size: 0.75rem; font-weight: 600; color: var(--purple-light);
  white-space: nowrap; cursor: default;
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0;
  background: var(--card-bg); border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 28px clamp(16px,5vw,48px);
}
.stat-counter {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 clamp(24px,5vw,56px);
  border-right: 1px solid var(--card-border);
}
.stat-counter:last-child { border-right: none; }
.stat-num {
  font-size: clamp(2rem,5vw,3rem); font-weight: 900;
  letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(135deg, #fff 30%, var(--purple-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-num.gradient-text { background: linear-gradient(135deg, var(--purple-light), var(--pink)); -webkit-background-clip: text; background-clip: text; }
.stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-top: 4px; }

/* =============================================
   COUNTDOWN
   ============================================= */
.countdown-wrap {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(124,58,237,0.08); border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--r-sm); padding: 10px 16px;
}
.countdown-inner { display: flex; align-items: baseline; gap: 6px; }
.countdown-num {
  font-size: 1.8rem; font-weight: 900; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--purple-light), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.countdown-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.countdown-dots { display: flex; gap: 5px; }
.countdown-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--purple); transition: background 0.4s, transform 0.4s;
}
.countdown-dot.minted { background: var(--text-muted); transform: scale(0.7); }

/* =============================================
   MINT EXTRA BUTTONS
   ============================================= */
.btn-sm { padding: 8px 14px; font-size: 0.8rem; }
.mint-extra-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* =============================================
   RARITY FILTER
   ============================================= */
.rarity-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-btn {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--card-border);
  background: var(--card-bg); color: var(--text-soft); font-size: 0.82rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover { border-color: rgba(124,58,237,0.4); color: var(--text); }
.filter-btn.active { background: rgba(124,58,237,0.2); border-color: rgba(124,58,237,0.5); color: var(--purple-light); }

/* Card hide/show for filter */
.preview-card.filtered { opacity: 0.15; transform: scale(0.95); pointer-events: none; }

/* =============================================
   HOLOGRAPHIC FOIL
   ============================================= */
.holo-card { position: relative; overflow: hidden; }
.holo-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(255,0,128,0) 0%,
    rgba(255,0,128,0.06) 25%,
    rgba(0,255,255,0.06) 50%,
    rgba(128,0,255,0.06) 75%,
    rgba(255,0,128,0) 100%
  );
  background-size: 300% 300%;
  mix-blend-mode: screen;
  transition: background-position 0.1s ease;
  border-radius: inherit;
}

/* =============================================
   ACTIVITY FEED
   ============================================= */
.activity-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.activity-header .section-title { margin-bottom: 4px; }
.activity-header .section-sub { margin-bottom: 0; }

.activity-feed {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 280px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(124,58,237,0.3) transparent;
}
.activity-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r-sm); padding: 12px 16px;
  animation: slide-in 0.4s ease;
}
@keyframes slide-in { from{opacity:0;transform:translateX(-12px)} to{opacity:1;transform:translateX(0)} }
.activity-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800;
}
.activity-text { flex: 1; }
.activity-text strong { color: var(--text); }
.activity-text .activity-addr { color: var(--purple-light); font-family: 'Courier New',monospace; font-size: 0.8rem; }
.activity-time { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }
.activity-empty { text-align: center; padding: 32px; color: var(--text-muted); font-size: 0.9rem; }

/* =============================================
   OWNERSHIP CHECKER
   ============================================= */
.ownership-form {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.ownership-input {
  flex: 1; min-width: 200px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r-sm); padding: 12px 16px;
  color: var(--text); font-family: 'Courier New',monospace; font-size: 0.85rem;
  outline: none; transition: border-color 0.2s;
}
.ownership-input:focus { border-color: rgba(124,58,237,0.5); }
.ownership-input::placeholder { color: var(--text-muted); font-family: inherit; }
select.ownership-input {
  color-scheme: dark;
  cursor: pointer;
  appearance: auto;
}
select.ownership-input option {
  background: #1a1130;
  color: #f8fafc;
  font-family: inherit;
  padding: 8px;
}
select.ownership-input option:checked,
select.ownership-input option:focus {
  background: #3b1f6e;
  color: #f8fafc;
}
.ownership-result {
  margin-top: 20px; background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r); padding: 20px;
}

/* =============================================
   FAQ
   ============================================= */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r-sm); overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(124,58,237,0.3); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 16px 20px; color: var(--text); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-arrow { flex-shrink: 0; transition: transform 0.3s; }
.faq-q.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 20px; max-height: 0; overflow: hidden;
  font-size: 0.88rem; color: var(--text-soft); line-height: 1.7;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-a.open { max-height: 200px; padding: 0 20px 16px; }

/* =============================================
   NFT DETAIL MODAL
   ============================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.nft-modal {
  background: var(--dark-3); border: 1px solid var(--card-border);
  border-radius: 24px; width: 100%; max-width: 760px;
  position: relative; overflow: hidden;
  animation: modal-pop 0.3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modal-pop { from{opacity:0;transform:scale(0.9)} to{opacity:1;transform:scale(1)} }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 1rem; width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer; transition: background 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.2); }
.nft-modal-inner { display: flex; flex-wrap: wrap; }
.nft-modal-img-wrap {
  flex: 0 0 auto; width: 280px; aspect-ratio: 1;
  border-radius: 24px 0 0 24px; overflow: hidden;
}
.nft-modal-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.nft-modal-info {
  flex: 1; min-width: 240px; padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.modal-badge { display: inline-block; width: fit-content; }
.modal-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.modal-desc  { font-size: 0.88rem; color: var(--text-soft); line-height: 1.65; }
.modal-traits { display: flex; flex-direction: column; gap: 10px; }
.trait-row { display: flex; flex-direction: column; gap: 4px; }
.trait-header { display: flex; justify-content: space-between; font-size: 0.75rem; }
.trait-name  { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.trait-value { color: var(--text); font-weight: 700; }
.trait-bar-bg { height: 5px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.trait-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--purple), var(--pink)); transition: width 0.8s ease; }
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

/* =============================================
   TX RECEIPT MODAL
   ============================================= */
.receipt-modal {
  background: var(--dark-3); border: 1px solid var(--card-border);
  border-radius: 24px; width: 100%; max-width: 480px;
  position: relative; overflow: hidden;
  animation: modal-pop 0.3s cubic-bezier(.34,1.56,.64,1);
}
.receipt-header { text-align: center; padding: 32px 28px 20px; }
.receipt-icon { font-size: 3rem; margin-bottom: 12px; }
.receipt-header h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.receipt-header p { font-size: 0.88rem; color: var(--text-soft); }
.receipt-body {
  display: flex; flex-direction: column; gap: 8px;
  padding: 0 24px; margin-bottom: 20px;
}
.receipt-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r-sm); padding: 10px 14px;
}
.receipt-row-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.receipt-row-value { font-size: 0.85rem; font-weight: 700; font-family: 'Courier New',monospace; color: var(--purple-light); }
.receipt-actions { display: flex; gap: 10px; justify-content: center; padding: 0 24px 28px; flex-wrap: wrap; }

/* =============================================
   NOTHING METER (roadmap)
   ============================================= */
.nothing-meter-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r); padding: 32px; text-align: center;
}
.nothing-meter-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--purple-light);
}
.nothing-meter-sub { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 24px; }
.nothing-bar-wrap { max-width: 400px; margin: 0 auto 16px; }
.nothing-bar { height: 12px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.nothing-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--purple), var(--pink)); border-radius: 999px; }
.nothing-labels { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-muted); }
.nothing-reading { font-size: 0.9rem; color: var(--text-soft); line-height: 1.7; }

/* =============================================
   ROADMAP TIMELINE
   ============================================= */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: flex; gap: 20px; padding-bottom: 32px;
  position: relative;
}
.timeline-item::before {
  content: ''; position: absolute;
  left: 19px; top: 40px; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, rgba(124,58,237,0.4), transparent);
}
.timeline-item:last-child::before { display: none; }

.timeline-dot {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 800; z-index: 1;
  border: 2px solid var(--card-border);
  background: var(--dark-3);
}
.timeline-dot.completed { background: linear-gradient(135deg, var(--green), #06b6d4); border-color: var(--green); color: #fff; }
.timeline-dot.active    { background: linear-gradient(135deg, var(--purple), var(--pink)); border-color: var(--purple); color: #fff; animation: pulse-dot 2s ease-in-out infinite; }
.timeline-dot.upcoming  { color: var(--text-muted); }
.timeline-dot.future    { background: linear-gradient(135deg, #f59e0b, #fbbf24); border-color: #f59e0b; color: #000; font-size: 1.2rem; }

@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.4); }
  50%     { box-shadow: 0 0 0 8px rgba(124,58,237,0); }
}

.timeline-card {
  flex: 1; background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r); padding: 20px 22px;
}
.active-card { border-color: rgba(124,58,237,0.4); background: rgba(124,58,237,0.06); }
.future-card { border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.05); }

.timeline-quarter { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.tl-badge { padding: 2px 8px; border-radius: 999px; font-size: 0.65rem; font-weight: 700; }
.tl-badge.completed { background: rgba(16,185,129,0.2); color: var(--green); }
.tl-badge.active    { background: rgba(124,58,237,0.2); color: var(--purple-light); }
.tl-badge.upcoming  { background: rgba(100,116,139,0.2); color: var(--text-muted); }
.tl-badge.future    { background: rgba(245,158,11,0.2); color: #fbbf24; }

.timeline-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.timeline-desc  { font-size: 0.88rem; color: var(--text-soft); line-height: 1.65; margin-bottom: 12px; }
.timeline-check { display: flex; flex-direction: column; gap: 4px; }
.check-item { font-size: 0.8rem; color: var(--green); }
.check-item.check-pending { color: var(--text-muted); }

/* =============================================
   MATRIX CANVAS
   ============================================= */
.matrix-canvas {
  position: fixed; inset: 0; z-index: 150;
  cursor: pointer;
}

/* =============================================
   CURSOR TRAIL
   ============================================= */
.cursor-dot {
  position: fixed; pointer-events: none; z-index: 9998;
  border-radius: 50%; mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  animation: trail-fade 0.6s ease forwards;
}
@keyframes trail-fade { to { opacity: 0; transform: translate(-50%,-50%) scale(0); } }

/* =============================================
   SKELETON
   ============================================= */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}
@keyframes skeleton-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.skeleton-card { height: 220px; border-radius: var(--r); }
.skeleton-line { height: 14px; margin-bottom: 8px; }
.skeleton-line.short { width: 60%; }

/* =============================================
   LEADERBOARD
   ============================================= */
.leaderboard { display: flex; flex-direction: column; gap: 8px; }
.lb-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r-sm); padding: 12px 16px;
  transition: border-color 0.2s;
}
.lb-item:hover { border-color: rgba(124,58,237,0.3); }
.lb-rank {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 800;
}
.lb-rank.gold   { background: rgba(245,158,11,0.2); color: #fbbf24; border: 1px solid rgba(245,158,11,0.4); }
.lb-rank.silver { background: rgba(148,163,184,0.2); color: #cbd5e1; border: 1px solid rgba(148,163,184,0.3); }
.lb-rank.bronze { background: rgba(180,83,9,0.2); color: #d97706; border: 1px solid rgba(180,83,9,0.3); }
.lb-rank.other  { background: var(--card-bg); color: var(--text-muted); border: 1px solid var(--card-border); }
.lb-addr { flex: 1; font-family: 'Courier New',monospace; font-size: 0.82rem; color: var(--purple-light); }
.lb-count { font-size: 0.82rem; font-weight: 700; color: var(--text); }

/* =============================================
   NOTHING COUNTER BAR
   ============================================= */
.nothing-counter-bar {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
  background: rgba(124,58,237,0.08); border-bottom: 1px solid rgba(124,58,237,0.2);
  padding: 10px 20px; text-align: center;
}
.nc-label { font-size: 0.8rem; color: var(--text-muted); }
.nc-time {
  font-size: 0.9rem; font-weight: 800; font-family: 'Courier New', monospace;
  background: linear-gradient(135deg, var(--purple-light), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* =============================================
   CARD OWNER ROW
   ============================================= */
.card-owner-row {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px 10px; border-top: 1px solid var(--card-border);
  font-size: 0.72rem;
}
.card-owner-label { color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.card-owner-addr  { color: var(--purple-light); font-family: 'Courier New',monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =============================================
   GALLERY CARD ACTIONS
   ============================================= */
.nft-card-actions {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  padding: 8px 12px; border-top: 1px solid var(--card-border);
}
.nft-action-btn {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r-sm); padding: 5px 9px;
  font-size: 0.82rem; cursor: pointer; transition: all 0.2s;
  color: var(--text);
}
.nft-action-btn:hover { border-color: rgba(124,58,237,0.4); background: rgba(124,58,237,0.1); }
.transfer-btn:hover   { border-color: rgba(236,72,153,0.4); background: rgba(236,72,153,0.1); }
.nft-etherscan { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; padding: 5px 8px; }

/* =============================================
   CONTRACT INFO
   ============================================= */
.contract-info-grid { display: flex; flex-direction: column; gap: 0; }
.contract-info-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--card-border);
}
.contract-info-row:last-child { border-bottom: none; }
.contract-info-grid { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--r); overflow: hidden; }
.ci-label  { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; flex: 0 0 120px; }
.ci-value  { flex: 1; font-size: 0.88rem; color: var(--text); }
.ci-value.mono { font-family: 'Courier New',monospace; color: var(--purple-light); }
.ci-copy {
  background: none; border: 1px solid var(--card-border); border-radius: 6px;
  padding: 3px 7px; cursor: pointer; font-size: 0.8rem; color: var(--text-muted);
  transition: all 0.2s;
}
.ci-copy:hover { border-color: var(--purple); color: var(--purple-light); }
.ci-link  { color: var(--purple-light); font-size: 0.88rem; text-decoration: none; }
.ci-link:hover { color: var(--pink); }

/* =============================================
   TOKENOMICS CHART
   ============================================= */
.tokenomics-wrap {
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
  justify-content: center; margin-top: 24px;
}
.tokenomics-chart-wrap {
  position: relative; width: 220px; height: 220px; flex-shrink: 0;
}
.tokenomics-chart-wrap canvas { position: absolute; inset: 0; }
.chart-center-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none;
}
.chart-center-num { font-size: 1.8rem; font-weight: 900; letter-spacing: -0.03em; color: var(--text); }
.chart-center-sub { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.tokenomics-legend { display: flex; flex-direction: column; gap: 10px; }
.legend-item { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-soft); }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.legend-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; font-style: italic; }

/* =============================================
   CERTIFICATE MODAL
   ============================================= */
.cert-modal {
  background: #0a0614; border: 1px solid rgba(124,58,237,0.3);
  border-radius: 24px; width: 100%; max-width: 580px;
  position: relative; overflow: hidden;
  animation: modal-pop 0.3s cubic-bezier(.34,1.56,.64,1);
}
.cert-inner {
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 36px 28px; position: relative;
  border: 2px solid transparent;
  background: linear-gradient(#0a0614,#0a0614) padding-box,
              linear-gradient(135deg,#7c3aed,#ec4899,#7c3aed) border-box;
  border-radius: 22px; margin: 8px;
}
.cert-watermark {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(-30deg);
  font-size: 6rem; font-weight: 900; color: rgba(124,58,237,0.06);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.cert-nft-img { width: 100px; height: 100px; border-radius: 16px; margin-bottom: 20px; }
.cert-badge-wrap { position: relative; z-index: 1; }
.cert-issued { font-size: 0.68rem; color: var(--purple-light); text-transform: uppercase; letter-spacing: 0.2em; font-weight: 700; margin-bottom: 8px; }
.cert-title { font-size: 1.5rem; font-weight: 900; text-align: center; margin-bottom: 16px; }
.cert-owner-label { font-size: 0.78rem; color: var(--text-muted); text-align: center; margin-bottom: 4px; }
.cert-owner { font-family: 'Courier New',monospace; font-size: 0.85rem; color: var(--purple-light); font-weight: 700; text-align: center; margin-bottom: 12px; }
.cert-token { font-weight: 700; font-size: 0.95rem; text-align: center; margin-bottom: 4px; }
.cert-divider { width: 100%; height: 1px; background: rgba(124,58,237,0.25); margin: 20px 0; }
.cert-footer-row { display: flex; gap: 32px; justify-content: center; margin-bottom: 16px; }
.cert-meta-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; text-align: center; }
.cert-meta-val   { font-size: 0.9rem; font-weight: 700; text-align: center; }
.cert-sig { font-size: 0.78rem; color: var(--text-muted); font-style: italic; text-align: center; }
.cert-body { position: relative; z-index: 1; width: 100%; text-align: center; }
.cert-actions { display: flex; gap: 10px; justify-content: center; padding: 16px 24px 24px; flex-wrap: wrap; }

@media print {
  body > *:not(.cert-modal) { display: none !important; }
  .modal-overlay { position: static !important; background: none !important; }
  .cert-modal { box-shadow: none; border: none; }
  .cert-actions, .modal-close { display: none !important; }
}

/* =============================================
   RESPONSIVE ADDITIONS
   ============================================= */
/* =============================================
   VOTE NAV LINK ACCENT
   ============================================= */
.nav-link.vote-link { color: #10b981; font-weight: 700; }
.nav-link.vote-link:hover, .nav-link.vote-link.active { color: #6ee7b7; }

/* =============================================
   ELECTION CARDS
   ============================================= */
.elections-list { display: flex; flex-direction: column; gap: 12px; }
.election-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r); overflow: hidden; transition: border-color 0.2s;
}
.election-card:hover { border-color: rgba(16,185,129,0.35); }
.election-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 20px 22px 16px;
}
.election-card-info { flex: 1; }
.election-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.election-id { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; font-family: monospace; }
.election-title-text { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.election-desc { font-size: 0.82rem; color: var(--text-soft); }
.election-card-stats { display: flex; gap: 16px; flex-shrink: 0; }
.election-stat { display: flex; flex-direction: column; align-items: center; }
.election-stat strong { font-size: 1.4rem; font-weight: 900; line-height: 1; }
.election-stat span  { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.election-stat.time-left strong { font-size: 1rem; color: #10b981; font-family: monospace; }
.election-card-footer {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 22px; border-top: 1px solid var(--card-border);
  background: rgba(0,0,0,0.1);
}
.election-status { padding: 3px 10px; border-radius: 999px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.status-open    { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.status-closed  { background: rgba(100,116,139,0.15); color: var(--text-muted); border: 1px solid rgba(100,116,139,0.2); }
.status-pending { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }

/* =============================================
   CANDIDATE OPTIONS (vote modal)
   ============================================= */
.candidate-list { display: flex; flex-direction: column; gap: 8px; }
.candidate-option {
  background: var(--card-bg); border: 2px solid var(--card-border);
  border-radius: var(--r-sm); padding: 12px 14px;
  cursor: pointer; transition: all 0.2s; user-select: none;
}
.candidate-option:hover   { border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.05); }
.candidate-option.selected { border-color: #10b981; background: rgba(16,185,129,0.08); }
.candidate-option.user-choice { border-color: rgba(124,58,237,0.4); background: rgba(124,58,237,0.06); cursor: default; }
.candidate-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.candidate-select-area { display: flex; align-items: center; gap: 10px; flex: 1; }
.candidate-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--card-border); flex-shrink: 0; transition: all 0.2s; }
.candidate-radio.checked { border-color: #10b981; background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
.candidate-name { font-weight: 700; font-size: 0.9rem; }
.candidate-pct  { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.candidate-bar-bg { height: 5px; background: rgba(255,255,255,0.07); border-radius: 999px; overflow: hidden; margin-bottom: 5px; }
.candidate-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg,#10b981,#06b6d4); transition: width 0.7s ease; }
.candidate-vote-count { font-size: 0.72rem; color: var(--text-muted); }
.your-vote-tag { background: rgba(124,58,237,0.2); color: var(--purple-light); padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; }
.leading-tag   { background: rgba(16,185,129,0.2); color: #10b981; padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; }
.already-voted-msg { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.25); border-radius: var(--r-sm); padding: 10px 14px; font-size: 0.85rem; color: var(--purple-light); margin-top: 12px; }

/* =============================================
   RESULTS BARS
   ============================================= */
.results-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.results-title { font-size: 1.05rem; font-weight: 800; flex: 1; }
.results-winner { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25); border-radius: var(--r-sm); padding: 10px 16px; font-size: 0.88rem; margin-bottom: 16px; color: #10b981; }
.results-bars { display: flex; flex-direction: column; gap: 14px; }
.result-row { display: flex; flex-direction: column; gap: 5px; }
.result-label-row { display: flex; justify-content: space-between; font-size: 0.85rem; }
.result-name  { font-weight: 700; }
.result-count { color: var(--text-muted); }
.result-bar-bg { height: 10px; background: rgba(255,255,255,0.07); border-radius: 999px; overflow: hidden; }
.result-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg,var(--purple),var(--pink)); transition: width 0.8s ease; }
.result-bar-fill.leading { background: linear-gradient(90deg,#10b981,#06b6d4); }

/* =============================================
   ADMIN FORM
   ============================================= */
.admin-form { background: var(--card-bg); border: 1px solid rgba(245,158,11,0.2); border-radius: var(--r); padding: 24px; }
.admin-form-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; color: #f59e0b; }
.admin-label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
textarea.ownership-input { font-family: inherit; line-height: 1.6; }

/* =============================================
   MESSAGE BOARD
   ============================================= */
.board-compose { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
.board-textarea { width: 100%; resize: vertical; font-family: inherit; font-size: 0.95rem; line-height: 1.6; background: transparent; border: none; outline: none; color: var(--text-main); padding: 0; }
.board-textarea::placeholder { color: var(--text-muted); }
.board-compose-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--card-border); }
.board-char-count { font-size: 0.75rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.board-immutability-note { display: flex; align-items: flex-start; gap: 8px; font-size: 0.78rem; color: var(--text-muted); background: rgba(6,182,212,0.06); border: 1px solid rgba(6,182,212,0.2); border-radius: var(--r-sm); padding: 10px 14px; }
.board-immutability-note svg { flex-shrink: 0; margin-top: 1px; color: #06b6d4; }

.board-list { display: flex; flex-direction: column; gap: 10px; }
.board-msg-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r-sm); padding: 14px 16px;
  transition: border-color 0.2s;
}
.board-msg-card:hover { border-color: rgba(6,182,212,0.3); }
.board-msg-card.board-msg-deleted { opacity: 0.5; border-style: dashed; }
.board-msg-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.board-msg-author-row { display: flex; align-items: center; gap: 10px; }
.board-msg-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; color: rgba(255,255,255,0.8); flex-shrink: 0; }
.board-msg-author { font-size: 0.8rem; font-weight: 700; color: var(--purple-light); text-decoration: none; }
.board-msg-author:hover { text-decoration: underline; }
.board-msg-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.board-msg-actions { display: flex; align-items: center; gap: 8px; }
.board-etherscan-link { font-size: 0.75rem; color: var(--text-muted); text-decoration: none; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--card-border); transition: all 0.15s; }
.board-etherscan-link:hover { color: var(--purple-light); border-color: rgba(124,58,237,0.4); }
.board-delete-btn { background: none; border: 1px solid rgba(239,68,68,0.3); border-radius: 6px; color: #ef4444; cursor: pointer; padding: 3px 8px; font-size: 0.72rem; transition: all 0.15s; }
.board-delete-btn:hover { background: rgba(239,68,68,0.1); }
.board-msg-content { font-size: 0.9rem; line-height: 1.6; word-break: break-word; white-space: pre-wrap; margin: 0; }
.board-deleted-content { font-style: italic; color: var(--text-muted); font-size: 0.82rem; }
.board-msg-footer { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.board-msg-id { font-size: 0.68rem; color: var(--text-muted); }
.board-deleted-badge { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.25); padding: 1px 8px; border-radius: 999px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.board-you-tag { background: rgba(124,58,237,0.2); color: var(--purple-light); padding: 2px 7px; border-radius: 999px; font-size: 0.65rem; font-weight: 700; }

/* =============================================
   LOTTERY
   ============================================= */
.lottery-round-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r); padding: 24px; max-width: 600px; margin: 0 auto;
  transition: opacity 0.4s, transform 0.4s;
}
.lottery-round-card.visible { opacity: 1; transform: none; }
.lottery-round-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.lottery-round-id { font-size: 0.75rem; color: var(--text-muted); font-family: monospace; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.lottery-round-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.lottery-prize-box { text-align: right; }
.lottery-prize-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.lottery-prize-amount { font-size: 2rem; font-weight: 900; color: #f59e0b; line-height: 1; }
.lottery-stats-row { display: flex; gap: 24px; padding: 16px 0; border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); margin-bottom: 20px; }
.lottery-stat { display: flex; flex-direction: column; }
.lottery-stat strong { font-size: 1.4rem; font-weight: 900; line-height: 1.1; }
.lottery-stat span { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.lottery-winner-banner { display: flex; align-items: center; gap: 16px; background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.25); border-radius: var(--r-sm); padding: 16px; }
.lottery-winner-crown { font-size: 2rem; }
.lottery-winner-addr { font-size: 1rem; font-weight: 700; color: #f59e0b; word-break: break-all; }

.players-list { display: flex; flex-direction: column; gap: 6px; }
.player-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--card-bg); border-radius: var(--r-sm); border: 1px solid var(--card-border); }
.player-num { font-size: 0.72rem; color: var(--text-muted); font-weight: 700; width: 20px; }
.player-avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.62rem; font-weight: 800; color: rgba(255,255,255,0.8); flex-shrink: 0; }
.player-addr { font-size: 0.82rem; text-decoration: none; color: var(--text-soft); }
.player-addr:hover { color: var(--purple-light); }

.past-rounds-list { display: flex; flex-direction: column; gap: 8px; }
.past-round-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--r-sm); flex-wrap: wrap; }
.past-round-id { font-size: 0.75rem; color: var(--text-muted); font-family: monospace; font-weight: 700; min-width: 70px; }
.past-round-info { flex: 1; display: flex; align-items: center; gap: 8px; }
.past-round-winner { font-size: 0.85rem; font-weight: 700; }
.past-round-prize { font-size: 0.85rem; color: #f59e0b; font-weight: 700; }
.past-round-count { font-size: 0.72rem; color: var(--text-muted); }

/* =============================================
   AUCTION
   ============================================= */
.auction-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 16px; }
.auction-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r); overflow: hidden; transition: border-color 0.2s, transform 0.2s;
}
.auction-card:hover { border-color: rgba(236,72,153,0.35); transform: translateY(-2px); }
.auction-card-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: rgba(0,0,0,0.3); }
.auction-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auction-card-badge { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.15); }
.auction-card-body { padding: 16px; }
.auction-card-id-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.auction-id-label { font-size: 0.72rem; color: var(--text-muted); font-family: monospace; font-weight: 700; }
.auction-bid-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.auction-bid-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }
.auction-bid-amount { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.auction-bidder { font-size: 0.7rem; color: var(--text-muted); margin-top: 3px; }
.auction-countdown { font-size: 1rem; font-weight: 800; color: #f59e0b; font-family: monospace; text-align: right; }

.settled-list { display: flex; flex-direction: column; gap: 8px; }
.settled-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--r-sm); flex-wrap: wrap; }
.settled-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.settled-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.settled-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.settled-winner { font-size: 0.85rem; font-weight: 700; }
.settled-no-bids { font-size: 0.82rem; color: var(--text-muted); font-style: italic; }
.settled-amount { font-size: 0.9rem; font-weight: 700; color: #10b981; }

.bid-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: rgba(0,0,0,0.2); border-radius: var(--r-sm); padding: 14px; border: 1px solid var(--card-border); }
.bid-info-cell { display: flex; flex-direction: column; gap: 3px; }
.bid-info-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.bid-info-value { font-size: 0.9rem; font-weight: 800; }

.withdraw-list { display: flex; flex-direction: column; gap: 10px; }
.withdraw-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--r-sm); padding: 12px 14px; }

/* =============================================
   NAV WALLET SESSION
   ============================================= */
.nav-wallet-wrap { display: flex; align-items: center; gap: 8px; }
.nav-connect-btn {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff; border: none; border-radius: 999px;
  padding: 7px 14px; font-size: 0.78rem; font-weight: 700;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
}
.nav-connect-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.nav-wallet-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card-bg); border: 1px solid rgba(124,58,237,0.35);
  border-radius: 999px; padding: 5px 12px 5px 6px;
  text-decoration: none; color: var(--text-main);
  transition: border-color 0.2s, background 0.2s;
  max-width: 160px;
}
.nav-wallet-pill:hover { border-color: rgba(124,58,237,0.6); background: rgba(124,58,237,0.08); }
.nav-wallet-emoji { font-size: 1rem; line-height: 1; }
#navWalletLabel { font-size: 0.75rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =============================================
   PROFILE PAGE
   ============================================= */
.profile-page { position: relative; z-index: 1; min-height: calc(100vh - var(--nav-h)); }

.profile-guest {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 40px) 20px 60px;
}
.profile-guest-card {
  width: 100%; max-width: 440px; text-align: center;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r); padding: 40px 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.profile-guest-icon { font-size: 3rem; margin-bottom: 16px; }
.profile-guest-title {
  font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 900;
  letter-spacing: -.03em; margin-bottom: 12px;
}
.profile-guest-sub { color: var(--text-soft); line-height: 1.7; margin-bottom: 24px; }
.profile-guest-hint { margin-top: 14px; font-size: 0.78rem; color: var(--text-muted); }

.profile-top {
  padding: calc(var(--nav-h) + 32px) clamp(16px,5vw,48px) 24px;
}

.profile-card {
  background: var(--card-bg);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: calc(var(--r) + 4px);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.22);
}

.profile-card-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px 24px;
  align-items: start;
  padding: 28px;
  border-bottom: 1px solid var(--card-border);
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(236,72,153,0.05));
}

.profile-avatar-wrap { flex-shrink: 0; }
.profile-avatar {
  width: 80px; height: 80px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(124,58,237,0.35), rgba(236,72,153,0.25));
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
}

.profile-card-info { min-width: 0; }
.profile-kicker {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 6px;
}
.profile-name {
  font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 900;
  letter-spacing: -.02em; line-height: 1.15; margin-bottom: 8px;
  word-break: break-word;
}
.profile-address {
  font-size: 0.78rem; color: var(--text-muted);
  word-break: break-all; margin-bottom: 8px;
}
.profile-ens { font-size: 0.85rem; color: var(--purple-light); margin-bottom: 6px; }
.profile-bio {
  font-size: 0.88rem; color: var(--text-soft); line-height: 1.55;
  margin-bottom: 12px; max-width: 520px;
}
.profile-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-badge {
  background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.25);
  color: var(--purple-light); padding: 4px 10px; border-radius: 999px;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}
.profile-badge-green {
  background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.25); color: #10b981;
}

.profile-card-actions {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.profile-disconnect-btn { border-color: rgba(239,68,68,0.35) !important; color: #ef4444 !important; }

.profile-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.profile-stat-card {
  padding: 18px 16px; text-align: center;
  border-right: 1px solid var(--card-border);
}
.profile-stat-card:last-child { border-right: none; }
.profile-stat-label {
  font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.08em; display: block; margin-bottom: 6px;
}
.profile-stat-value { font-size: 1.15rem; font-weight: 900; line-height: 1.1; display: block; }
.profile-stat-sm { font-size: 0.82rem; font-weight: 700; }

.profile-form {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r); padding: 24px;
}
.emoji-picker { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.emoji-btn {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 2px solid var(--card-border);
  font-size: 1.3rem; cursor: pointer; transition: all 0.15s;
}
.emoji-btn:hover { border-color: rgba(124,58,237,0.4); }
.emoji-btn.active { border-color: var(--purple); background: rgba(124,58,237,0.15); }
.profile-links-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;
}
.profile-link-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r-sm); padding: 14px 16px; text-decoration: none;
  color: var(--text-main); font-weight: 600; font-size: 0.88rem;
  transition: border-color 0.2s, transform 0.15s;
}
.profile-link-card:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-2px); }

/* =============================================
   RESPONSIVE (updated)
   ============================================= */
@media (max-width: 900px) {
  .nav-links { gap: 4px; }
  .nav-link { font-size: 0.78rem; padding: 6px 8px; }
}

@media (max-width: 768px) {
  .nft-modal-img-wrap { width: 100%; border-radius: 24px 24px 0 0; aspect-ratio: auto; height: 220px; }
  .nft-modal-inner { flex-direction: column; }
  .stats-bar { gap: 16px; }
  .stat-counter { border-right: none; border-bottom: 1px solid var(--card-border); padding: 12px 0; width: 45%; }
  .stat-counter:nth-child(odd) { align-items: flex-start; }
  .gas-pill { display: none; }
  .lottery-stats-row { gap: 12px; }
  .lottery-prize-amount { font-size: 1.5rem; }
  .auction-grid { grid-template-columns: 1fr; }
  .nav-connect-btn { padding: 6px 10px; font-size: 0.72rem; }
  .nav-wallet-pill { max-width: 120px; }
  .profile-card-main { grid-template-columns: 1fr; text-align: center; }
  .profile-card-actions { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .profile-avatar-wrap { display: flex; justify-content: center; }
  .profile-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-stat-card { border-right: none; border-bottom: 1px solid var(--card-border); }
  .profile-stat-card:nth-child(odd) { border-right: 1px solid var(--card-border); }
  .profile-stat-card:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 480px) {
  .stat-counter { width: 100%; border-bottom: 1px solid var(--card-border); align-items: center; }
  .ownership-form { flex-direction: column; }
  .ownership-input { width: 100%; }
  .mint-extra-btns { flex-direction: column; }
  .receipt-actions { flex-direction: column; align-items: center; }
  .board-compose-footer { flex-direction: column; gap: 10px; align-items: flex-end; }
  .bid-info-grid { grid-template-columns: 1fr; }
}
