/* ─── VARS & RESET ─────────────────────────────────────────────────────── */
:root {
    --bg: #080b10;
    --surface: #0e0900a6;
    --surface2: #ffffff1a;
    --surface3: #1a2332;
    --border: rgba(255, 255, 255, .2);
    --border2: #805618;
    --text: #e8f0fe;
    --text-dim: #7a96b8;
    --text-muted: #d5d5d5;
    --accent: #fbac35;
    --accent2: #fbac35;
    --accent3: #fbac35;
    --danger: #ef4444;
    --success: #10b981;
    --font-display: 'Syne', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --radius: 12px;
    --radius-sm: 8px;
    --glow: 0 0 30px rgba(255, 123, 0, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  

  --color1: #EDBF2D;
  --color2: #FCF1B1;
  --color3: #0C2150;
  --color4: #AAB2C2;
  --color5: #e8dfca;
  --color6: #fbac35;
  --color7: #dccfaf;

  --primary-color: var(--color1);
  --bg-color: radial-gradient(circle, #121212, black);
  --glass-bg: rgba(0, 0, 0, 0.2);
  --text-color: rgba(255, 255, 255, 0.9);
  --text-color-light: rgba(200, 200, 200, 0.9);
  --border-color: rgba(255, 255, 255, 0.2);
  --hover-glow: rgba(255, 140, 0, 0.6);
  --success-color: #4CAF50;

  font-family: 'Inter', system-ui, Avenir, Helvetica, Arial, sans-serif;
  color-scheme: dark;
  color: var(--text-color);
  background-color: var(--bg-color);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

html { scroll-behavior: smooth; }

body {
  /* background: var(--bg); */
  background: linear-gradient(rgba(0,0,0,0.9), rgba(0, 0, 0, 0.95)), url(/images/city_render3.webp);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: var(--text);
  font-family: var(--font-display);
  min-height: 100vh;
  overflow-x: hidden;
}

/* body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at center, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.6) 100%);
} */
/* ─── AMBIENT ──────────────────────────────────────────────────────────── */
.ambient {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent2), transparent);
  top: -200px; left: -150px;
  animation: drift1 20s ease-in-out infinite alternate;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent), transparent);
  bottom: -100px; right: -100px;
  animation: drift2 25s ease-in-out infinite alternate;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent3), transparent);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: drift3 30s ease-in-out infinite alternate;
}
.grain {
  position: absolute; inset: 0;
  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='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}

@keyframes drift1 { to { transform: translate(80px, 100px); } }
@keyframes drift2 { to { transform: translate(-60px, -80px); } }
@keyframes drift3 { to { transform: translate(-50%, -50%) scale(1.3); } }

/* ─── HEADER ────────────────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 0 32px; height: 64px;
}

@media (max-width: 900px) {
  .header-inner {
    gap: 16px;
    padding: 0 12px;
    height: 56px;
  }
  .logo-text {
    font-size: 15px;
  }
  .wallet-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 6px;
    height: auto;
  }
  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 2px;
    order: 3;
    margin-top: 4px;
  }
  .header-right {
    gap: 8px;
    margin-left: 0;
    order: 2;
  }
  .logo {
    order: 1;
  }
  .logo-text {
    font-size: 13px;
  }
  .nav-btn {
    padding: 4px 8px;
    font-size: 12px;
  }
  .wallet-btn {
    padding: 5px 8px;
    font-size: 11px;
  }
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-icon {
  font-size: 24px;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent);
  display: inline-block;
  animation: pulse-logo 3s ease-in-out infinite;
}
@keyframes pulse-logo {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.7; transform:scale(0.95); }
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}
.logo-text em { font-style: normal; color: var(--accent); }

nav { display: flex; gap: 4px; flex: 1; }
.nav-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-btn:hover { color: var(--text); background: var(--surface2); }
.nav-btn.active { color: var(--accent); background: rgba(255,153,0,0.1); }

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

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

.ws-status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
}
.ws-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-muted);
  transition: background 0.5s;
}
.ws-status.connected .ws-dot { background: var(--success); box-shadow: 0 0 8px var(--success); animation: live-pulse 1.5s ease-in-out infinite; }
.ws-status.connected .ws-label { color: var(--success); }
.ws-status.error .ws-dot { background: var(--danger); }
.ws-status.error .ws-label { color: var(--danger); }

.wallet-btn {
  background: var(--accent2);
  border: none; cursor: pointer;
  color: white;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.wallet-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.wallet-btn.connected {
  background: var(--surface2);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.balance-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono); font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 4px;
  transition: all 0.2s;
}

/* ─── ESCROW TICKER ─────────────────────────────────────────────────────── */
.escrow-ticker {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  position: relative; z-index: 10;
  overflow: hidden;
}
.ticker-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.ticker-label {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-muted); letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ticker-mono {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-dim);
  word-break: break-all;
}
.ticker-mono.accent { color: var(--accent); }
.ticker-sep { color: var(--border2); }
.ticker-dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: live-pulse 1.5s ease-in-out infinite;
}
@keyframes live-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.5; transform:scale(0.8); }
}

/* ─── MAIN ──────────────────────────────────────────────────────────────── */
main {
  max-width: 1440px; margin: 0 auto;
  padding: 40px 32px;
  position: relative; z-index: 1;
}

.view { display: none; margin-bottom: 20px; }
.view.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

.section-header { margin-bottom: 32px; }
.section-header h1 {
  font-size: 42px; font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 40%, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  color: var(--text-dim); font-size: 15px; margin-top: 6px;
  font-family: var(--font-mono);
}

/* ─── FILTERS ───────────────────────────────────────────────────────────── */
.filter-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 20px;
}
.search-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-mono); font-size: 13px;
  padding: 8px 14px;
  width: 240px;
  transition: border-color 0.2s;
  outline: none;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-muted); }
.sort-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-mono); font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
  outline: none;
}
.filter-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: rgba(255,153,0,0.1); border-color: var(--accent); color: var(--accent); }

/* ─── NFT GRID ──────────────────────────────────────────────────────────── */
.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}
.loading-state {
  color: var(--text-muted);
  font-family: var(--font-mono); font-size: 14px;
  grid-column: 1/-1; padding: 60px;
  text-align: center;
}

/* ─── NFT CARD ──────────────────────────────────────────────────────────── */
.nft-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.nft-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(255, 208, 0, 0.12);
}
.nft-card.sold-out { opacity: 0.6; }
.nft-card.sold-out:hover { transform: none; border-color: var(--border); box-shadow: none; }

.card-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface2);
}
.card-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.nft-card:hover .card-image-wrap img { transform: scale(1.05); }

.card-edition-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(8,11,16,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border2);
  border-radius: 20px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent);
  padding: 3px 10px;
  transition: all 0.3s;
}
.card-edition-badge.low { color: var(--accent3); border-color: var(--accent3); }
.card-edition-badge.sold-out-badge { color: var(--danger); border-color: var(--danger); }

.card-status-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.nft-card.sold-out .card-status-overlay { opacity: 1; }
.sold-out-label {
  font-family: var(--font-display);
  font-weight: 800; font-size: 22px;
  letter-spacing: 0.1em;
  color: var(--danger);
  border: 2px solid var(--danger);
  padding: 6px 16px;
  transform: rotate(-10deg);
}

.card-body { padding: 14px; }
.card-collection {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--accent); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 4px;
}
.card-name {
  font-weight: 700; font-size: 15px;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.card-artist {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); margin-bottom: 12px;
}
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.card-price {
  font-family: var(--font-mono); font-size: 14px;
  font-weight: 700; color: var(--text);
}
.card-price span { font-size: 11px; color: var(--text-dim); }
.card-avail {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted);
}

/* Edition count stacks */
.edition-stack {
  position: absolute; top: 10px; left: 10px;
  display: flex; gap: -4px;
}
.stack-layer {
  width: 4px; height: 36px;
  background: var(--surface3);
  border: 1px solid var(--border2);
  border-radius: 2px;
  margin-right: -2px;
}

/* ─── COLLECTION CARD ───────────────────────────────────────────────────── */
.collection-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.collection-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent2);
  box-shadow: 0 0 40px rgba(124,58,237,0.15);
}
.col-cover {
  height: 180px; overflow: hidden;
  position: relative;
}
.col-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.collection-card:hover .col-cover img { transform: scale(1.06); }
.col-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,11,16,0.95), transparent 50%);
}
.col-cover-title {
  position: absolute; bottom: 14px; left: 16px;
  font-weight: 800; font-size: 22px;
  letter-spacing: -0.01em;
}
.col-body { padding: 16px; }
.col-artist {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent2); margin-bottom: 6px;
}
.col-desc {
  font-size: 13px; color: var(--text-dim);
  line-height: 1.5; margin-bottom: 14px;
}
.col-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.col-stat {
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}
.col-stat span {
  display: block; font-family: var(--font-mono);
  font-size: 9px; color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 4px;
}
.col-stat strong {
  font-family: var(--font-mono); font-size: 14px;
  color: var(--accent);
}

/* ─── COLLECTION DETAIL ─────────────────────────────────────────────────── */
.collection-detail { animation: fadeIn 0.3s ease; }
.back-btn {
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  padding: 8px 16px; cursor: pointer;
  margin-bottom: 28px;
  transition: all 0.2s;
}
.back-btn:hover { color: var(--accent); border-color: var(--accent); }

.col-detail-header {
  display: flex; gap: 32px; align-items: flex-start;
  margin-bottom: 36px;
}
.col-detail-cover {
  width: 280px; flex-shrink: 0;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
}
.col-detail-cover img { width: 100%; display: block; }
.col-detail-info { flex: 1; }
.col-detail-info h2 {
  font-size: 36px; font-weight: 800; margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.col-detail-info .by {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--accent2); margin-bottom: 12px;
}
.col-detail-info p {
  color: var(--text-dim); font-size: 15px;
  line-height: 1.6; max-width: 500px;
}
.col-detail-stats {
  display: flex; gap: 20px; margin-top: 20px;
}
.col-detail-stat {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
}
.col-detail-stat span { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.col-detail-stat strong { font-family: var(--font-mono); font-size: 18px; color: var(--accent); }

/* ─── MINT FORM ─────────────────────────────────────────────────────────── */
.mint-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.mint-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.mint-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
  font-size: 13px; font-weight: 600;
  color: var(--text-dim); letter-spacing: 0.03em;
}
.req { color: var(--accent); }
input[type=text], input[type=url], input[type=number], select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-mono); font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
input:focus { border-color: var(--accent); }
input::placeholder { color: var(--text-muted); }
.hint { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.image-preview-wrap { margin-top: 10px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); max-height: 200px; }
.image-preview-wrap img { width: 100%; height: 200px; object-fit: cover; display: block; }
.hidden { display: none !important; }

.mint-submit-btn {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border: none; cursor: pointer;
  color: white;
  font-family: var(--font-display); font-size: 16px; font-weight: 800;
  letter-spacing: 0.04em;
  padding: 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.mint-submit-btn:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: var(--glow); }
.btn-icon { font-size: 20px; }

/* ─── MINT INFO PANEL ───────────────────────────────────────────────────── */
.mint-info-panel { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.info-card h3 {
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--text);
  margin-bottom: 10px;
}
.info-card p { color: var(--text-dim); font-size: 13px; line-height: 1.6; }
.info-card ol { color: var(--text-dim); font-size: 13px; line-height: 2; padding-left: 16px; }
.info-card strong { color: var(--accent); }
.escrow-card { border-color: var(--accent2); background: rgba(124,58,237,0.05); }
.mono-sm { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); word-break: break-all; margin-top: 4px; }
.escrow-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.escrow-stats div {
  background: var(--surface2); border-radius: var(--radius-sm);
  padding: 10px;
}
.escrow-stats div span { display: block; font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }
.escrow-stats div strong { font-family: var(--font-mono); font-size: 14px; color: var(--accent3); }

/* ─── LIVE FEED ─────────────────────────────────────────────────────────── */
.live-feed {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.live-feed h3 {
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--text);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.live-feed h3::after {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: live-pulse 1.5s ease-in-out infinite;
}
.feed-list { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow-y: auto; }
.feed-empty { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); padding: 20px 0; text-align: center; }
.feed-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex; gap: 10px; align-items: center;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { opacity:0; transform:translateX(-10px); } to { opacity:1; transform:translateX(0); } }
.feed-item-img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.feed-item-info { flex: 1; min-width: 0; }
.feed-item-name { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item-detail { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); }
.feed-item-price { font-family: var(--font-mono); font-size: 12px; color: var(--success); font-weight: 700; flex-shrink: 0; }

/* ─── BUY MODAL ─────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  max-width: 780px; width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  position: relative;
  animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes modalIn {
  from { opacity:0; transform:scale(0.9) translateY(20px); }
  to { opacity:1; transform:scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px; height: 32px;
  color: var(--text-dim); cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 10;
}
.modal-close:hover { color: var(--text); background: var(--surface3); }
.modal-inner { display: grid; grid-template-columns: 1fr 1fr; }
.modal-image-wrap {
  position: relative;
  aspect-ratio: 1; overflow: hidden;
  border-radius: 16px 0 0 16px;
}
.modal-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.modal-badge {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(8,11,16,0.85); backdrop-filter: blur(8px);
  border: 1px solid var(--border2);
  border-radius: 20px; padding: 4px 12px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent);
}
.modal-info { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.modal-collection { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; }
.modal-title { font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.modal-artist { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.modal-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.stat {
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 10px;
}
.stat span { display: block; font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.stat strong { font-family: var(--font-mono); font-size: 15px; color: var(--text); }

.qty-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qty-row label { font-size: 13px; font-weight: 600; color: var(--text-dim); width: 70px; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--border2); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn {
  background: var(--surface2); border: none; cursor: pointer;
  color: var(--text); font-size: 18px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.qty-btn:hover { background: var(--surface3); }
.qty-control input {
  width: 60px; border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-radius: 0;
  text-align: center;
  font-family: var(--font-mono); font-size: 16px; font-weight: 700;
  padding: 0 10px; height: 36px;
}
.qty-max { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

.price-breakdown {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.price-row {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-dim);
  padding: 4px 0;
}
.price-row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px; padding-top: 10px;
  font-size: 16px; color: var(--text);
}
.price-row.total strong { color: var(--accent3); }

.buy-btn {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border: none; cursor: pointer;
  color: white;
  font-family: var(--font-display); font-size: 16px; font-weight: 800;
  letter-spacing: 0.04em;
  padding: 14px;
  border-radius: var(--radius-sm);
  width: 100%;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.buy-btn:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); box-shadow: var(--glow); }
.buy-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-spinner {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.escrow-note { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); text-align: center; }

/* ─── TOAST ─────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 9999;
}
.toast {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-family: var(--font-mono); font-size: 13px;
  box-shadow: var(--shadow);
  max-width: 320px;
  animation: slideIn 0.3s ease;
  display: flex; align-items: flex-start; gap: 10px;
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.info { border-color: var(--accent); }
.toast-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.toast-text { flex: 1; }
.toast-title { font-weight: 700; margin-bottom: 2px; }
.toast-body { color: var(--text-dim); font-size: 11px; }

/* ─── AVAILABILITY BAR ──────────────────────────────────────────────────── */
.avail-bar {
  height: 3px; border-radius: 2px;
  background: var(--surface2);
  overflow: hidden; margin-top: 8px;
}
.avail-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.5s ease;
}
.avail-bar-fill.low { background: var(--accent3); }
.avail-bar-fill.critical { background: var(--danger); }

/* ─── REALTIME UPDATE FLASH ─────────────────────────────────────────────── */
@keyframes flashUpdate {
  0% { border-color: var(--accent); box-shadow: 0 0 20px rgba(0,229,255,0.4); }
  100% { border-color: var(--border); box-shadow: none; }
}
.nft-card.updated { animation: flashUpdate 1s ease forwards; }

/* ─── SCROLLBAR ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent2); }

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .header-inner { padding: 0 16px; gap: 12px; }
  .mint-layout { grid-template-columns: 1fr; }
  .modal-inner { grid-template-columns: 1fr; }
  .modal-image-wrap { aspect-ratio: 16/9; border-radius: 16px 16px 0 0; }
  .col-detail-header { flex-direction: column; }
  .col-detail-cover { width: 100%; }
  .header-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 2px;
    height: auto;
  }
  nav {
    width: 100%;
    justify-content: center;
    margin-top: 2px;
    order: 3;
  }
  .header-right {
    justify-content: center;
    width: 100%;
    margin-left: 0;
    order: 2;
    gap: 8px;
  }
  .header-right-inner {
    gap: 8px;
    order:2;
  }
  .logo {
    justify-content: center;
    width: 100%;
    order: 1;
  }
}
@media (max-width: 600px) {
  main { padding: 24px 16px; }
  .filter-row { gap: 8px; }
  .nft-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .collections-grid { grid-template-columns: 1fr; }
  .section-header h1 { font-size: 28px; }

  .header-right-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 480px) {
}

@keyframes float {
    0%, 100% { transform: translateY(20px); }
    50% { transform: translateY(0px); }
}




/* Discord */

.hero-discord {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    padding: 50px;
    background: url('/images/heros/scratches.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
    background-color: var(--color6);
    height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
    overflow: hidden;
}

.hero-discord .hero-content {
    max-width: 60%;
    background-color: transparent
}

.hero-discord .hero-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow:
    3px 3px 0px var(--color3),
    -1px -1px 0px var(--color3),
    -1px 1px 0px var(--color3),
    1px -1px 0px var(--color3);
}

.hero-discord .hero-content p {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--color3);
    font-family: arial;
    font-weight: 700;
}
.hero-image{
    width: 40%; /* Adjust size as needed */
    height: auto; /* Adjust size as needed */
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image img {
    width: 100%;
    /* height: auto;
    object-fit: cover; */
}

@media (max-width: 768px) {

    .row1 {
        flex-direction: column;
        gap: 10px;
    
    }
    .hero-discord {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 20px;
    }

    .hero-discord .hero-content {
        max-width: 100%;
    }

    .hero-discord .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-discord .hero-content p {
        font-size: 1.25rem;
    }

    .hero-image {
        margin-top: 20px;
    }
    

}



/* Status bar */


.status-menu {
  background: transparent;
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  color: #c7c7c7;
  padding: 0;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  z-index: 99;

}
.status-menu li{
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  padding: 0px 10px;
}
.status-menu li:hover{
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* #status {
  transform: scale(0.7);
}
.connected {
  color: #00ff00;
  box-shadow: 0 0 4px 1px #00ff00, 0 0 6px 2px #00ff00;
  animation: status-pulse-green 1.5s infinite alternate;
  display: inline-block;
  width: 10px;
  border-radius: 8px;
  background: #00ff00;
  height: 10px;
  margin-right: 5px;
}
.disconnected {
  color: red;
  box-shadow: 0 0 4px 1px red, 0 0 6px 2px red;
  animation: status-pulse-red 1.5s infinite alternate;
  display: inline-block;
  width: 10px;
  border-radius: 8px;
  background: red;
  height: 10px;
  margin-right: 5px;
}

@keyframes status-pulse-green {
  0% {
    transform: scale(0.7);
  }
  100% {
    transform: scale(1.1);
  }
}
@keyframes status-pulse-red {
  0% {
    transform: scale(0.7);
  }
  100% {
    transform: scale(1.1);
  }
} */



.recently-sold-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 0;
}

.recently-sold-item {
    display: flex;
    align-items: center;
    background: var(--surface2);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 14px 20px;
    gap: 18px;
    transition: box-shadow 0.2s;
    border: 1px solid var(--border);
}

.recently-sold-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.16);
}

.recently-sold-img {
  /* width: 48px; */
  height: 65px;
}

.recently-sold-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.recently-sold-name {
  font-weight: 600;
  font-size: 1.1em;
  color: #fff;
}

.recently-sold-detail {
  color: #b5b5b5;
  font-size: 0.98em;
}

.recently-sold-detail .buyer {
  color: #7fd1b9;
  font-family: var(--font-mono, monospace);
}

.recently-sold-meta {
  color: #888;
  font-size: 0.92em;
  margin-top: 2px;
}

.tx-hash {
  color: #f7c873;
  font-family: var(--font-mono, monospace);
}







          #bypassDiv {
            border: none;
            font-size: 15px;
            outline: 1px solid var(--border);
            border-radius: 8px;
            padding: 10px 18px;
            MARGIN-BOTTOM: 10px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
          }
          #bypassInput {
            border: none;
            border-radius: 6px;
            padding: 7px 12px;
            font-size: 15px;
            outline: none;
            transition: border 0.2s;
            background: var(--bg);
            color: #222;
            min-width: 160px;
          }
          #bypassBtn {
          background: var(--accent2);
            color: #fff;
            border: none;
            border-radius: 6px;
            padding: 7px 18px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 1px 4px 0 rgba(60,80,120,0.07);
            transition: background 0.2s, box-shadow 0.2s;
          }
          #bypassBtn:hover {
            box-shadow: 0 2px 8px 0 rgba(60,80,120,0.13);
          }
          #bypassStatus {
            min-width: 120px;
            font-weight: 500;
            font-size: 14px;
            margin-left: 8px;
            letter-spacing: 0.01em;
            transition: color 0.2s;
          }
