/* ============================================================================
   GNOTBOOK — refined technical UI.
   Flat graphite surfaces, hairline rules, 2–4px corners, one amber signal.
   Type: Inter Tight (display) + Inter (UI) + JetBrains Mono (data).
   ========================================================================== */

:root{
  /* neutrals — deliberately not a single blue family */
  --bg:#0A0B0D;
  --bg-2:#0D0F12;
  --surface:#121417;
  --surface-2:#16191D;
  --surface-3:#1C2026;
  --line:#22262D;
  --line-2:#2E333B;
  --text:#E9EBEE;
  --text-2:#A7ADB7;
  --text-3:#767D88;
  /* signal */
  --accent:#F0B429;          /* brand + primary action */
  --accent-soft:rgba(240,180,41,.14);
  --accent-ink:#12140F;
  --live:#3FB950;
  --live-soft:rgba(63,185,80,.14);
  --warn:#D29922;
  --warn-soft:rgba(210,153,34,.14);
  --danger:#F85149;
  --danger-soft:rgba(248,81,73,.12);
  --info:#58A6FF;
  --info-soft:rgba(88,166,255,.12);
  /* legacy aliases used by app.js templates */
  --primary:var(--accent);
  --primary-light:var(--accent);
  --panel:var(--surface);
  --panel-2:var(--surface-2);
  --panel-3:var(--surface-3);
  --line-legacy:var(--line);
  --muted:var(--text-2);
  --muted-2:var(--text-3);
  --error:#F85149;
  --error-bg:var(--danger-soft);
  --text-legacy:var(--text);
  --radius:4px;
  --topbar-h:56px;
  --rail-w:60px;
  --shadow:0 18px 44px rgba(0,0,0,.5);
  --shadow-sm:0 8px 22px rgba(0,0,0,.34);
  --font-display:"Inter Tight","Inter",system-ui,sans-serif;
  --font-ui:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--text);
  font:15px/1.55 var(--font-ui);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  padding-left:var(--rail-w);
}
body.menu-open{overflow:hidden}
img{display:block;max-width:100%}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
a{color:var(--text)}
h1,h2,h3{font-family:var(--font-display); letter-spacing:-.025em; margin:0; line-height:1.15; color:var(--text); font-weight:600}
h1{font-size:clamp(24px,2.6vw,34px)}
h2{font-size:clamp(18px,1.8vw,24px)}
h3{font-size:16px}
p{margin:0}
.mono{font-family:var(--font-mono); font-size:12.5px; letter-spacing:-.01em}
.skip-link{position:absolute;left:-9999px}
:focus-visible{outline:2px solid var(--accent); outline-offset:1px; border-radius:2px}
::selection{background:var(--accent); color:var(--accent-ink)}

/* micro labels — the index/label motif that carries the whole UI */
.tiny-label{font-family:var(--font-mono); font-size:10.5px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--text-3); display:block}
.eyebrow{display:inline-flex; align-items:center; gap:8px; font-family:var(--font-mono); font-size:11px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--text-3)}
.eyedot{width:5px; height:5px; background:var(--accent); flex-shrink:0}
.heading-period{color:var(--accent)}
.note{color:var(--text-2); font-size:13.5px; line-height:1.6}
.kv{display:flex; justify-content:space-between; gap:16px; padding:9px 0; border-bottom:1px solid var(--line); font-size:13.5px}
.kv span{color:var(--text-2)}
.kv b{color:var(--text); font-weight:500; text-align:right; overflow-wrap:anywhere; font-family:var(--font-mono); font-size:12.5px}

/* ---------------------------------------------------------------- topbar */
.topbar{
  position:sticky; top:0; z-index:80; height:var(--topbar-h);
  background:rgba(10,11,13,.88); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.topbar-inner{height:100%; padding:0 20px; display:flex; align-items:center; gap:18px}
.mobile-menu{display:none; width:34px; height:34px; border-radius:3px; padding:8px; flex-direction:column; gap:4px; align-items:center; justify-content:center; background:var(--surface-2); border:1px solid var(--line)}
.mobile-menu span{display:block; width:16px; height:1.5px; background:var(--text-2)}
.brand{display:flex; align-items:center; gap:9px; text-decoration:none; color:var(--text); flex-shrink:0}
/* the mark is a 2x2 brick plate: flat, square, one amber stud */
.brand-mark{
  display:grid; grid-template-columns:1fr 1fr; gap:2px; width:22px; height:22px;
  padding:3px; background:var(--surface-2); border:1px solid var(--line-2);
}
.brand-mark span{background:var(--text-3)}
.brand-mark span:first-child{background:var(--accent)}
.brand-word{font-family:var(--font-display); font-weight:600; font-size:17px; letter-spacing:-.03em}
.brand-dot{color:var(--accent)}
.header-search{flex:1; min-width:0; max-width:420px; margin:0 auto}
.search-shell{
  display:flex; align-items:center; gap:9px; background:var(--surface);
  border:1px solid var(--line); border-radius:3px; padding:7px 11px; color:var(--text-3);
  transition:border-color .15s, background .15s;
}
.search-shell:focus-within{border-color:var(--line-2); background:var(--surface-2)}
.search-shell input{flex:1; background:none; border:0; outline:0; color:var(--text); font:inherit; font-size:13.5px; min-width:0}
.search-shell input::placeholder{color:var(--text-3)}
.header-actions{display:flex; align-items:center; gap:10px; flex-shrink:0}
.net-status{font-family:var(--font-mono); font-size:11.5px; color:var(--text-3); white-space:nowrap}
.btn-network{
  display:inline-flex; align-items:center; gap:7px; padding:6px 11px; border-radius:3px;
  background:var(--surface); border:1px solid var(--line); font-size:12.5px; font-weight:500; color:var(--text-2);
}
.btn-network:hover{border-color:var(--line-2); color:var(--text)}
.status-pulse{width:6px; height:6px; border-radius:50%; background:var(--live)}
.wallet-btn{border-radius:3px}

/* ------------------------------------------------------------------- rail */
.main-nav{
  position:fixed; left:0; top:0; bottom:0; z-index:90; width:var(--rail-w);
  display:flex; flex-direction:column; padding:10px 0;
  background:var(--bg-2); border-right:1px solid var(--line);
  transition:width .2s ease;
}
.main-nav:hover{width:224px}
.nav-links{display:flex; flex-direction:column; gap:1px; padding:0 10px}
.nav-link{
  position:relative; display:flex; align-items:center; gap:12px; width:40px; padding:9px;
  border-radius:3px; color:var(--text-3); font-weight:500; font-size:13.5px;
  transition:color .12s, background .12s;
}
.nav-link svg{width:19px; height:19px; flex-shrink:0; stroke-linecap:round; stroke-linejoin:round}
.nav-link:hover{color:var(--text); background:var(--surface)}
.nav-link.active{color:var(--text); background:var(--surface)}
.nav-link.active::before{content:""; position:absolute; left:-10px; top:6px; bottom:6px; width:2px; background:var(--accent)}
.rail-label{opacity:0; transform:translateX(-6px); transition:opacity .15s, transform .15s; white-space:nowrap}
.main-nav:hover .rail-label{opacity:1; transform:none}
.nav-foot{
  margin-top:auto; display:flex; align-items:center; gap:10px; padding:12px 20px 2px;
  border-top:1px solid var(--line); color:var(--text-3); font-family:var(--font-mono); font-size:11px;
}
.nav-foot .status-pulse{flex-shrink:0}
.nav-backdrop{position:fixed; inset:0; z-index:85; background:rgba(4,5,7,.7); display:none}

/* ------------------------------------------------------------------- main */
.main-shell{padding:30px 28px 80px; min-height:70vh}
/* first-paint placeholder — the app swaps it for the real catalog */
.boot{display:flex; flex-direction:column; gap:22px}
.boot-bar{height:280px; border-radius:var(--radius); background:var(--surface)}
.boot-cards{display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:16px}
.boot-cards i{height:120px; border-radius:var(--radius); background:var(--surface); display:block}
.page-heading{display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:26px; padding-bottom:18px; border-bottom:1px solid var(--line)}
.page-heading p{color:var(--text-2); max-width:620px; margin-top:10px; font-size:14.5px}
.heading-actions{display:flex; gap:8px; flex-wrap:wrap; align-items:center}

/* section header with mono index — the signature of this UI */
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:18px; flex-wrap:wrap}
.section-head p{color:var(--text-2); margin-top:7px; max-width:600px; font-size:14px}
.section-index{font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; color:var(--text-3); display:block; margin-bottom:8px}
.section-index b{color:var(--accent); font-weight:500}

/* ---------------------------------------------------------------- buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:9px 15px;
  border-radius:3px; font-weight:500; font-size:13.5px; line-height:1.3; text-decoration:none;
  border:1px solid var(--line-2); background:var(--surface-2); color:var(--text);
  transition:background .12s, border-color .12s, color .12s; white-space:nowrap;
}
.btn:hover{background:var(--surface-3); border-color:#3A4048}
.btn:active{transform:translateY(1px)}
.btn:disabled{opacity:.45; cursor:not-allowed; transform:none}
.btn-sm{padding:6px 11px; font-size:12.5px}
.btn-full{width:100%}
.btn-accent,.btn-dark,.btn-primary{
  background:var(--accent); color:var(--accent-ink); border-color:var(--accent); font-weight:600;
}
.btn-accent:hover,.btn-dark:hover,.btn-primary:hover{background:#FFC64A; border-color:#FFC64A}
.btn-outline{background:transparent; color:var(--text-2); border-color:var(--line-2)}
.btn-outline:hover{color:var(--text); border-color:#3A4048; background:var(--surface)}
.btn-soft{background:var(--surface-3); color:var(--text); border-color:transparent}
.btn-soft:hover{background:#232830}
.btn-ghost{background:transparent; color:var(--text-2); border-color:var(--line); border-radius:3px}
.btn-ghost:hover{color:var(--text); background:var(--surface)}
.text-action{color:var(--text-2); font-size:13px; font-weight:500; text-decoration:none; font-family:var(--font-mono); letter-spacing:.02em}
.text-action:hover{color:var(--accent)}

/* status chips — square, mono, a 5px state dot */
.status-chip,.chip{
  display:inline-flex; align-items:center; gap:6px; padding:3px 8px; border-radius:2px;
  font-family:var(--font-mono); font-size:10.5px; font-weight:500; letter-spacing:.08em; text-transform:uppercase;
  background:var(--surface-2); color:var(--text-2); border:1px solid var(--line);
}
.status-chip::before,.chip::before{content:""; width:5px; height:5px; border-radius:50%; background:currentColor; flex-shrink:0}
.status-chip.good,.chip.good{background:var(--live-soft); color:var(--live); border-color:rgba(63,185,80,.3)}
.status-chip.pending,.chip.pending{background:var(--warn-soft); color:var(--warn); border-color:rgba(210,153,34,.3)}
.status-chip.onchain,.chip.live{background:var(--info-soft); color:var(--info); border-color:rgba(88,166,255,.3)}
.chip:empty::before{display:none}

/* ---------------------------------------------------------- hero slider */
.hero-slider{
  position:relative; border-radius:var(--radius); overflow:hidden; margin-bottom:34px;
  background:var(--surface); border:1px solid var(--line);
}
.hero-track{display:flex; transition:transform .5s cubic-bezier(.25,.8,.3,1); will-change:transform}
.hero-slide{min-width:100%; min-height:400px; display:flex; align-items:center; position:relative; isolation:isolate}
.hero-slide::before{content:""; position:absolute; inset:0; z-index:-1; background-image:var(--slide-bg); background-size:cover; background-position:center}
.hero-slide::after{content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(95deg,rgba(6,7,9,.94) 24%,rgba(6,7,9,.66) 58%,rgba(6,7,9,.3))}
.hero-inner{padding:48px 46px 48px 52px; max-width:680px}
.hero-inner h2{color:#fff; font-size:clamp(26px,3.4vw,42px); margin-bottom:12px; font-weight:600}
.hero-inner p{color:rgba(255,255,255,.78); font-size:15px; margin-bottom:22px; max-width:480px}
.hero-cta{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.hero-cta .note{color:rgba(255,255,255,.6); font-family:var(--font-mono); font-size:12px}
.hero-meta{display:flex; gap:7px; flex-wrap:wrap; margin-bottom:18px}
.hero-meta .chip{background:rgba(6,7,9,.6); color:rgba(255,255,255,.8); border-color:rgba(255,255,255,.16)}
.hero-meta .chip.live{background:rgba(63,185,80,.25); color:#9BE7A8; border-color:rgba(255,255,255,.16)}
/* empty stage — the slider fills only when real collections exist */
.hero-empty{min-height:400px; display:flex; align-items:center}
.hero-empty-card{
  margin:40px auto; max-width:720px; width:calc(100% - 48px); text-align:center;
  padding:44px 28px; border-radius:var(--radius);
  background:var(--surface); border:1px solid var(--line);
}
.hero-empty-grid{display:flex; gap:6px; justify-content:center; margin:0 auto 22px}
.hero-empty-brick{width:34px; height:22px; border-radius:2px; background:var(--surface-3); border:1px solid var(--line-2); position:relative}
.hero-empty-brick::before{content:""; position:absolute; top:-4px; left:50%; transform:translateX(-50%); width:8px; height:8px; border-radius:50%; background:var(--surface-3); border:1px solid var(--line-2)}
.hero-empty-brick:first-child{background:var(--accent); border-color:var(--accent)}
.hero-empty-brick:first-child::before{background:var(--accent); border-color:var(--accent)}
.hero-empty-card h2{margin-bottom:9px}
.hero-empty-card p{color:var(--text-2); max-width:460px; margin:0 auto 22px}
.hero-arrow{
  position:absolute; top:50%; transform:translateY(-50%); width:38px; height:38px; border-radius:2px;
  background:rgba(10,11,13,.7); border:1px solid var(--line-2); color:var(--text-2);
  display:flex; align-items:center; justify-content:center; z-index:3; font-size:18px; line-height:1;
}
.hero-arrow:hover{background:var(--surface-3); color:var(--text)}
.hero-arrow.prev{left:14px}
.hero-arrow.next{right:14px}
.hero-dots{position:absolute; bottom:16px; left:0; right:0; display:flex; gap:6px; justify-content:center; z-index:3}
.hero-dot{width:7px; height:7px; border-radius:1px; background:rgba(255,255,255,.28); transition:all .15s}
.hero-dot.on{width:20px; background:var(--accent)}

/* self-service pinning: the creator pins in their own account and hands over CIDs */
.pin-choices{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.pin-choice{
  display:flex; gap:11px; align-items:flex-start; padding:13px 15px; border-radius:14px;
  background:var(--surface-2); border:2px solid var(--line); cursor:pointer;
}
.pin-choice:hover{border-color:var(--line-2)}
.pin-choice input{width:15px; height:15px; margin-top:3px; accent-color:var(--accent); flex-shrink:0}
.pin-choice b{display:block; font-size:13.5px; color:var(--text)}
.pin-choice small{display:block; color:var(--ink-soft); font-size:12.5px; margin-top:3px; line-height:1.45}
.pin-choice:has(input:checked){background:var(--surface-3); border-color:var(--accent)}
.pin-choice:has(input:disabled){opacity:.5; cursor:not-allowed}
.pin-self{display:flex; flex-direction:column; gap:14px; margin-top:4px}
.pin-guide{background:var(--surface-2); border:2px solid var(--line); border-radius:16px; padding:16px 18px}
.pin-steps{margin:12px 0 0; padding-left:20px; display:flex; flex-direction:column; gap:8px; color:var(--ink-muted); font-size:13px; line-height:1.6}
.pin-steps li::marker{color:var(--accent); font-family:var(--font-mono); font-size:12px}
.pin-steps b{color:var(--text)}
.pin-steps a{color:var(--lego-bright)}
.pin-steps code{font-family:var(--font-mono); font-size:12px; background:var(--surface-3); border-radius:4px; padding:1px 5px; color:var(--text-2)}
.pin-actions{display:flex; align-items:center; gap:12px; flex-wrap:wrap}
.pin-result{font-family:var(--font-mono); font-size:12.5px; color:var(--ink-soft)}
.pin-result.ok{color:var(--good)}
.pin-result.warn{color:var(--warn)}
@media (max-width:700px){ .pin-choices{grid-template-columns:1fr} }

/* ----------------------------------------------------------------- panels */
.panel{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:22px}
.traits-panel{max-width:820px}
.form-layout{display:grid; grid-template-columns:minmax(0,860px) 320px; gap:22px; align-items:start; justify-content:start}
.form-stack{display:flex; flex-direction:column; gap:16px}
.field label{display:block; font-weight:500; font-size:13px; margin-bottom:6px; color:var(--text-2)}
.field input,.field select,.field textarea{
  width:100%; background:var(--bg-2); border:1px solid var(--line); border-radius:3px;
  padding:9px 11px; color:var(--text); font:inherit; font-size:14px; outline:0;
  transition:border-color .12s, background .12s;
}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--accent); background:var(--surface)}
.field input:disabled{opacity:.55}
.field input::placeholder,.field textarea::placeholder{color:var(--text-3)}
.field textarea{min-height:92px; resize:vertical}
.field-grid{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.helper{display:block; color:var(--text-3); font-size:12.5px; margin-top:6px; line-height:1.5}
.checkbox-row{display:flex; gap:10px; align-items:flex-start; font-size:13.5px; color:var(--text-2); cursor:pointer}
.checkbox-row input{width:15px; height:15px; margin-top:3px; accent-color:var(--accent); flex-shrink:0}
.inline-info{background:var(--surface-2); border:1px solid var(--line); border-radius:3px; padding:12px 14px; font-size:13.5px; color:var(--text-2)}
.danger-info{border-color:rgba(248,81,73,.35); background:var(--danger-soft); color:#FFB3AE}
.upload-drop{
  display:flex; align-items:center; gap:14px; background:var(--surface-2); border:1px dashed var(--line-2);
  border-radius:3px; padding:14px; cursor:pointer; color:var(--text-2);
}
.upload-drop:hover{border-color:var(--accent); color:var(--text)}
.upload-drop strong + span{display:block; margin-top:3px; font-size:12.5px; color:var(--text-3)}
.upload-drop input{display:none}
.upload-icon{font-size:18px; background:var(--surface-3); border:1px solid var(--line); border-radius:2px; width:40px; height:40px; display:flex; align-items:center; justify-content:center}
.upload-choose{flex-shrink:0; margin-left:auto}
.fee-card{background:var(--surface-2); border:1px solid var(--line); border-radius:3px; padding:16px}
.fee-card .row{display:flex; justify-content:space-between; padding:7px 0; font-size:13.5px; border-bottom:1px solid var(--line)}
.fee-card .row:last-of-type{border-bottom:0}
.fee-card .row span{color:var(--text-2)}
.fee-card .row.tot{border-top:1px solid var(--line-2); border-bottom:0; font-weight:600; color:var(--text); padding-top:11px}
.preview-card{
  position:sticky; top:calc(var(--topbar-h) + 16px); background:var(--surface);
  border:1px solid var(--line); border-radius:var(--radius); padding:14px;
  display:flex; flex-direction:column; gap:14px;
}
.preview-image{width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:2px; background:var(--surface-3)}
.preview-ph{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; background:var(--surface-2); border:1px dashed var(--line-2)}
.brick-ghost{display:grid; grid-template-columns:repeat(2,26px); gap:4px}
.brick-ghost i{height:16px; border-radius:2px; background:var(--surface-3); border:1px solid var(--line-2)}
.preview-ph-note{font-family:var(--font-mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--text-3)}
.fee-breakdown{display:flex; flex-direction:column}
.fee-line{display:flex; justify-content:space-between; gap:10px; font-size:13px; padding:6px 0; border-bottom:1px solid var(--line)}
.fee-line span{color:var(--text-2)}
.fee-total{display:flex; justify-content:space-between; font-weight:600; padding-top:10px}

/* whitelist */
.wl-header{display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap}
.wl-actions{margin-left:auto; display:flex; gap:8px}
.wl-preview{display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.wl-pill{background:var(--surface-2); border:1px solid var(--line); border-radius:2px; padding:5px 10px; font-size:12.5px; color:var(--text-2); font-family:var(--font-mono)}
.wl-pill b{color:var(--text)}
.wl-errors{background:var(--danger-soft); border:1px solid rgba(248,81,73,.3); border-radius:3px; padding:11px 13px; font-size:12.5px; color:#FFB3AE; max-height:180px; overflow:auto; display:flex; flex-direction:column; gap:3px}

.empty-state{text-align:center; padding:52px 20px; color:var(--text-2); background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); max-width:680px; margin:0 auto}
.empty-state h3{color:var(--text); margin-bottom:8px}
.empty-state .btn{margin-top:18px}
.empty-state.is-compact{max-width:none; padding:36px 20px}
.legend-brick-cookie{width:44px; height:26px; margin:0 auto 18px; border-radius:2px; background:var(--surface-3); border:1px solid var(--line-2); position:relative}
.legend-brick-cookie::before{content:""; position:absolute; top:-5px; left:50%; transform:translateX(-50%); width:8px; height:8px; border-radius:50%; background:var(--surface-3); border:1px solid var(--line-2)}

/* --------------------------------------------------- creator grid (shelf) */
.collection-grid,.nft-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:16px}
.collection-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
  transition:border-color .14s, transform .14s; cursor:pointer;
}
.collection-card:hover{border-color:var(--line-2); transform:translateY(-2px)}
.collection-cover{position:relative; aspect-ratio:16/9; background:var(--surface-3); overflow:hidden}
.collection-cover img{width:100%; height:100%; object-fit:cover; transition:transform .4s}
.collection-card:hover .collection-cover img{transform:scale(1.03)}
.collection-count{
  position:absolute; bottom:0; left:0; right:0; padding:7px 11px;
  background:linear-gradient(transparent,rgba(6,7,9,.85));
  font-family:var(--font-mono); font-size:10.5px; letter-spacing:.1em; color:rgba(255,255,255,.85);
}
.collection-body{padding:14px 15px 16px; display:flex; flex-direction:column; gap:10px}
.collection-title-row{display:flex; align-items:center; justify-content:space-between; gap:8px}
.collection-title{font-size:15.5px}
.collection-creator{color:var(--text-3); font-size:12px; font-family:var(--font-mono)}
.collection-description{color:var(--text-2); font-size:13px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin:0}
.collection-stats{display:flex; gap:16px; font-size:12px; border-top:1px solid var(--line); padding-top:10px}
.collection-stats span{color:var(--text-3); display:block; font-family:var(--font-mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase}
.collection-stats strong{font-size:13px; font-family:var(--font-mono); font-weight:500}
.featured-collections{margin-bottom:40px}
.market-collection-row{display:flex; align-items:center; gap:12px; width:100%; padding:9px 10px; border-radius:2px; text-align:left}
.market-collection-row:hover{background:var(--surface-2)}
.market-collection-row img{width:38px; height:38px; border-radius:2px; object-fit:cover}
.market-collection-name{flex:1}
.market-collection-name small{display:block; color:var(--text-3); font-size:11.5px; font-family:var(--font-mono)}
.market-rank{color:var(--text-3); font-weight:500; font-size:11.5px; width:22px; font-family:var(--font-mono)}
.market-collection-name strong{font-size:14px}
.market-floor{text-align:right; font-weight:500; font-size:13px; font-family:var(--font-mono)}
.market-row-arrow{color:var(--text-3)}
.market-cols{display:grid; grid-template-columns:1.5fr 1fr; gap:18px; align-items:start}

/* ------------------------------------------------------------ mint page */
.drop-head{position:relative; margin-bottom:26px}
.drop-head .cover{height:280px; border-radius:var(--radius); border:1px solid var(--line); background-size:cover; background-position:center; background-color:var(--surface-3)}
.drop-head .cover::after{content:""; position:absolute; inset:0; border-radius:var(--radius); background:linear-gradient(180deg,transparent 55%,rgba(6,7,9,.9))}
.drop-id{position:relative; display:flex; align-items:flex-end; gap:16px; padding:0 20px; margin-top:-44px}
.drop-avatar{width:88px; height:88px; border-radius:3px; overflow:hidden; border:2px solid var(--bg); background:var(--surface-3); flex-shrink:0}
.drop-avatar img{width:100%; height:100%; object-fit:cover}
.drop-id h1{color:#fff}
.drop-id .note{color:rgba(255,255,255,.6); font-size:12.5px; font-family:var(--font-mono)}
.drop-id .chip{background:rgba(6,7,9,.6); color:rgba(255,255,255,.85); border-color:rgba(255,255,255,.18)}
.drop-id .chip.good{background:rgba(63,185,80,.25); color:#9BE7A8; border-color:rgba(255,255,255,.18)}
.drop-main{display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:24px; align-items:start; margin-top:24px}
.drop-main > .drop-left{grid-column:1; grid-row:1; min-width:0}
.drop-main > .mint-box{grid-column:2; grid-row:1}
.mint-box{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:20px;
  position:sticky; top:calc(var(--topbar-h) + 16px);
}
.mint-box .top{display:flex; align-items:center; gap:8px; font-size:12.5px; font-family:var(--font-mono); color:var(--text-2)}
.mint-progress{height:4px; background:var(--surface-3); overflow:hidden; margin:12px 0 4px}
.mint-progress i{display:block; height:100%; background:var(--accent); transition:width .4s}
.mint-price{margin:16px 0; padding:14px; background:var(--surface-2); border-radius:3px; display:flex; align-items:center; justify-content:space-between}
.mint-price .l{color:var(--text-2); font-size:12.5px; font-family:var(--font-mono)}
.mint-price .v{font-family:var(--font-mono); font-weight:500; font-size:19px; color:var(--text)}
.mint-box .qty{display:flex; justify-content:space-between; gap:14px; color:var(--text-3); font-size:12px; margin-bottom:12px; font-family:var(--font-mono)}
.mint-box .qty span:first-child{flex-shrink:0}
.mint-box .qty span:last-child{text-align:right}
.mint-box .total{display:flex; justify-content:space-between; align-items:center; padding-top:12px; border-top:1px solid var(--line); margin-bottom:16px; font-weight:600}
.reason-note{background:var(--danger-soft); border:1px solid rgba(248,81,73,.3); color:#FFB3AE; padding:10px 12px; border-radius:3px; font-size:12.5px; margin-top:12px}
.mint-schedule{margin-top:20px; padding-top:16px; border-top:1px solid var(--line)}
.mint-schedule .evt{display:grid; grid-template-columns:auto 1fr; gap:12px; margin-top:14px; align-items:start}
.mint-schedule .dot{width:7px; height:7px; border-radius:1px; margin-top:5px; background:var(--text-3)}
.mint-schedule .evt b{display:block; font-size:13px; color:var(--text); font-weight:500}
.mint-schedule .evt small{display:block; color:var(--text-3); line-height:1.5; font-size:12.5px}
.stats,.item-stats{display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:1px; margin-bottom:24px; background:var(--line); border:1px solid var(--line)}
.stat{background:var(--surface); padding:13px 15px}
.stat span{display:block; color:var(--text-3); font-size:10.5px; font-family:var(--font-mono); letter-spacing:.1em; text-transform:uppercase; margin-bottom:6px}
.stat b{font-size:16px; font-family:var(--font-mono); font-weight:500; color:var(--text)}

.tabs{display:flex; gap:2px; border-bottom:1px solid var(--line); margin-bottom:22px; overflow-x:auto; scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs button{padding:10px 14px; font-weight:500; font-size:13.5px; color:var(--text-3); border-bottom:2px solid transparent; margin-bottom:-1px}
.tabs button:hover{color:var(--text-2)}
.tabs button.on{color:var(--text); border-bottom-color:var(--accent)}
.nft-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; transition:border-color .14s}
.nft-card:hover{border-color:var(--line-2)}
.nft-art{aspect-ratio:1; background:var(--surface-3); position:relative; overflow:hidden}
.nft-art img{width:100%; height:100%; object-fit:cover}
.nft-meta{padding:12px 13px}
.nft-meta small{color:var(--text-3); display:block; font-size:11.5px; font-family:var(--font-mono)}
.nft-meta b{font-size:14px; display:block; margin-top:3px; color:var(--text)}
.nft-price{display:flex; justify-content:space-between; align-items:center; margin-top:10px; font-size:12.5px; font-family:var(--font-mono)}
.nft-price span{color:var(--text-3)}
.nft-price b{font-weight:500; color:var(--text)}
.locked-tile{
  display:flex; flex-direction:column; align-items:center; justify-content:center; aspect-ratio:1;
  background:repeating-linear-gradient(45deg,var(--surface) 0 14px,var(--surface-2) 14px 28px);
  border-radius:var(--radius); border:1px dashed var(--line-2); color:var(--text-3); text-align:center; padding:14px;
}
.locked-tile .edition{font-family:var(--font-mono); font-size:20px; color:var(--text-2)}
.punk-tile-big .lock{font-size:36px; opacity:.35}
.item-art-stage{position:relative; border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); background:var(--surface-3)}

/* --------------------------------------------------------------- upcoming */
.upcoming-toolbar{display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:20px}
.filter-pills{display:flex; gap:6px; flex-wrap:wrap}
.filter-pill{padding:6px 12px; border-radius:2px; background:transparent; border:1px solid var(--line); color:var(--text-3); font-family:var(--font-mono); font-size:11.5px; letter-spacing:.06em}
.filter-pill:hover{color:var(--text-2); border-color:var(--line-2)}
.filter-pill.active{background:var(--text); color:var(--bg); border-color:var(--text)}
.select-control{
  background:var(--surface); border:1px solid var(--line); border-radius:3px; padding:7px 32px 7px 11px;
  color:var(--text); font:inherit; font-size:13px; outline:0; appearance:none; -webkit-appearance:none; cursor:pointer;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23767D88' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat:no-repeat; background-position:right 11px center;
}
.select-control:hover{border-color:var(--line-2)}
.select-control:focus{border-color:var(--accent)}
.mint-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
  display:flex; flex-direction:column; transition:border-color .14s;
}
.mint-card:hover{border-color:var(--line-2)}
.mint-cover{position:relative; aspect-ratio:16/10; background:var(--surface-3); overflow:hidden; display:flex; align-items:center; justify-content:center}
.mint-cover img{width:100%; height:100%; object-fit:cover}
.mint-cover-ph{font-family:var(--font-mono); font-weight:500; font-size:20px; letter-spacing:.18em; color:var(--text-3)}
.mint-badge{position:absolute; top:10px; left:10px; z-index:2; font-family:var(--font-mono); font-size:10px; letter-spacing:.1em; text-transform:uppercase; padding:3px 7px; border-radius:2px; background:rgba(10,11,13,.8); border:1px solid var(--line-2); color:var(--text-2)}
.mint-badge.live{color:var(--live); border-color:rgba(63,185,80,.4)}
.mint-badge.scheduled{color:var(--info); border-color:rgba(88,166,255,.4)}
.mint-badge.ended{color:var(--text-3)}
.mint-badge.draft{color:var(--warn); border-color:rgba(210,153,34,.4)}
.mint-body{padding:15px 16px 16px; display:flex; flex-direction:column; gap:9px; flex:1}
.mint-body h3{font-size:15.5px}
.mint-desc{color:var(--text-2); font-size:13px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.countdown{font-family:var(--font-mono); font-weight:500; font-size:14px; color:var(--accent); font-variant-numeric:tabular-nums}
.mint-when{display:flex; align-items:center; gap:9px; color:var(--text-3); font-size:12.5px; font-family:var(--font-mono)}
.mint-when .ico{width:22px; height:22px; flex-shrink:0; display:flex; align-items:center; justify-content:center; border-radius:2px; background:var(--surface-2); border:1px solid var(--line)}
.mint-when .ico svg{width:13px; height:13px; stroke:var(--text-2); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.mint-foot{display:flex; justify-content:space-between; align-items:center; margin-top:auto; padding-top:11px; border-top:1px solid var(--line); font-size:12px; color:var(--text-3); font-family:var(--font-mono)}
.mint-meta{display:flex; gap:6px; flex-wrap:wrap}
.mint-action{margin-top:auto}
.mint-title{font-size:15.5px}
.mint-countdown{font-family:var(--font-mono); font-weight:500; color:var(--accent)}

/* --------------------------------------------------------------- activity */
.activity-row{display:flex; align-items:center; gap:13px; padding:12px 14px; border:1px solid var(--line); border-radius:2px; background:var(--surface); margin-bottom:8px}
.activity-row small{color:var(--text-3)}
.activity-list{display:flex; flex-direction:column; gap:8px}
.activity-icon{width:36px; height:36px; border-radius:2px; background:var(--surface-2); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:15px; flex-shrink:0}
.activity-value{margin-left:auto; font-weight:500; font-family:var(--font-mono); color:var(--text)}

/* -------------------------------------------------------- settings (profile) */
.settings-layout{display:grid; grid-template-columns:210px minmax(0,1fr); gap:24px; align-items:start; max-width:1080px}
.side-nav{position:sticky; top:calc(var(--topbar-h) + 16px); display:flex; flex-direction:column; gap:1px; border:1px solid var(--line); border-radius:var(--radius); padding:6px; background:var(--surface)}
.side-nav button{display:flex; align-items:center; gap:10px; padding:9px 11px; border-radius:2px; color:var(--text-3); font-weight:500; font-size:13.5px; text-align:left}
.side-nav button:hover{background:var(--surface-2); color:var(--text-2)}
.side-nav button.on{background:var(--surface-3); color:var(--text)}
.dot-mini{width:5px; height:5px; border-radius:1px; background:var(--accent); opacity:0; margin-left:auto}
.side-nav button.on .dot-mini{opacity:1}
.settings-body{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:22px}
.settings-body .panel{background:var(--surface-2); border:1px solid var(--line)}
.profile-head{display:flex; align-items:center; gap:18px; margin-bottom:20px}
.profile-avatar{
  width:72px; height:72px; border-radius:2px; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-weight:500; font-size:20px; color:var(--accent-ink);
  background:var(--accent); border:1px solid var(--accent);
}
.two-col{display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:start}

/* wallet / modals */
.modal-backdrop{position:fixed; inset:0; z-index:120; background:rgba(4,5,7,.74); backdrop-filter:blur(3px); display:flex; align-items:center; justify-content:center; padding:20px}
.modal{
  position:relative; background:var(--surface); border:1px solid var(--line-2); border-radius:var(--radius);
  padding:26px; max-width:520px; width:100%; max-height:86vh; overflow:auto; box-shadow:var(--shadow);
}
.modal-panel{background:var(--surface); border:1px solid var(--line-2); border-radius:var(--radius); padding:24px; max-width:520px; width:100%; max-height:86vh; overflow:auto; box-shadow:var(--shadow)}
.modal-body h2{margin-bottom:8px}
.detail-info{color:var(--text-2); margin-bottom:14px}
.detail-price{background:var(--surface-2); border:1px solid var(--line); border-radius:3px; padding:14px; margin-bottom:14px}
.detail-price label{color:var(--text-3); font-size:10.5px; font-family:var(--font-mono); letter-spacing:.12em; text-transform:uppercase; display:block; margin-bottom:6px}
.detail-actions{display:flex; gap:8px; flex-wrap:wrap; margin:12px 0}
.modal-note{color:var(--text-3); font-size:12.5px; margin-top:10px}
.modal-close{position:absolute; top:12px; right:12px; width:30px; height:30px; border-radius:2px; background:var(--surface-2); border:1px solid var(--line); color:var(--text-3); font-size:16px}
.modal-close:hover{color:var(--text); border-color:var(--line-2)}
.toast{
  position:fixed; bottom:22px; left:50%; transform:translate(-50%,16px); z-index:140;
  background:var(--surface-2); border:1px solid var(--line-2); color:var(--text); padding:11px 16px; border-radius:3px;
  font-weight:500; font-size:13px; opacity:0; transition:opacity .2s, transform .2s; max-width:min(520px,90vw);
  box-shadow:var(--shadow-sm); pointer-events:auto;
}
.toast-region{position:fixed; inset:0; pointer-events:none; z-index:140}
.toast.show{opacity:1; transform:translate(-50%,0)}
.toast.error{border-color:rgba(248,81,73,.5)}
.toast.success{border-color:rgba(63,185,80,.5)}

/* footer */
.site-footer{border-top:1px solid var(--line); background:var(--bg-2); margin-top:40px}
.footer-inner{padding:34px 28px; display:flex; gap:48px; flex-wrap:wrap; align-items:flex-start}
.footer-brand{display:flex; gap:12px; max-width:340px}
.footer-brand b{color:var(--text); font-family:var(--font-display); font-size:16px}
.footer-brand p{color:var(--text-3); font-size:12.5px; margin-top:5px}
.footer-inner .tiny-label{color:var(--text-3)}
.footer-links{display:flex; gap:6px 18px; flex-wrap:wrap; margin-top:8px}
.footer-link{color:var(--text-2); font-size:13px; text-decoration:none}
.footer-link:hover{color:var(--accent)}
.footer-socials{display:flex; gap:8px}

.footer-brand-links{margin-top:10px}
.footer-brand-links .tiny-label{display:block; color:var(--text-3); font-family:var(--font-mono); font-size:10px; letter-spacing:.1em; text-transform:uppercase; margin-bottom:6px}
.footer-social{width:32px; height:32px; border-radius:2px; background:var(--surface); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; color:var(--text-3)}
.footer-social:hover{color:var(--text); border-color:var(--line-2)}
.footer-social svg{width:15px; height:15px}
.footer-line{border-top:1px solid var(--line); text-align:center; padding:13px; color:var(--text-3); font-size:11.5px; font-family:var(--font-mono)}

/* --------------------------------------------------------------- mobile */
@media (max-width:1180px){
  .form-layout,.market-cols,.drop-main,.settings-layout,.two-col{grid-template-columns:1fr}
  .side-nav,.preview-card,.mint-box{position:static}
}
@media (max-width:980px){
  body{padding-left:0}
  .mobile-menu{display:flex}
  .btn-network span:last-child{display:none}
  .topbar{overflow:hidden}
  .topbar-inner{min-width:0; padding:0 14px; gap:12px}
  .header-search{min-width:0; max-width:none}
  .header-actions{flex-shrink:0}
  .main-nav{
    left:0; top:0; bottom:0; width:260px;
    transform:translateX(-102%); transition:transform .24s ease;
  }
  .main-nav.open{transform:translateX(0)}
  .main-nav:hover{width:260px}
  body.menu-open .nav-backdrop{display:block}
  .rail-label,.main-nav .rail-label{opacity:1; transform:none}
  .nav-link{width:100%}
  .nav-foot{flex-direction:column; align-items:flex-start}
  .hero-inner{padding:34px 22px}
  .hero-slide{min-height:360px}
  .main-shell{padding:22px 16px 56px}
  .footer-inner{padding:26px 16px; gap:26px}
  .wallet-btn{padding:9px 12px; font-size:12.5px}
}
@media (max-width:560px){
  .brand-word{display:none}
  .collection-grid,.nft-grid,.upcoming-grid{grid-template-columns:1fr}
  .hero-arrow{display:none}
  .hero-inner{padding:26px 18px 58px}
  .page-heading h1{font-size:24px}
  .page-heading{padding-bottom:14px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto}
}

/* ========================================================================
   Legacy view compatibility layer — rewards/quests/market/genesis/activity
   views on the same system.
   ======================================================================== */
.rank-track{height:4px; background:var(--surface-3); overflow:hidden}
.rank-track > span,.rank-track i{display:block; height:100%; background:var(--accent)}
.trending-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); align-items:start}
.trending-grid > .community-card{grid-column:1/-1}
.community-card{
  position:relative; overflow:hidden; background:var(--surface-2); border:1px solid var(--line);
  border-radius:var(--radius); padding:26px; display:flex; flex-direction:column; gap:10px; min-height:190px;
}
.community-glow{position:absolute; inset:-30% -10% auto auto; width:300px; height:300px; background:radial-gradient(circle,rgba(240,180,41,.12),transparent 62%); pointer-events:none}
.community-copy h3{font-size:22px; margin-bottom:6px}
.community-copy p{color:var(--text-2); font-size:13.5px; max-width:440px}
.community-links{display:flex; gap:8px; margin-top:10px}
.community-arrow{position:absolute; top:14px; right:14px; width:32px; height:32px; border-radius:2px; background:var(--surface-3); color:var(--text-2); font-size:16px; display:flex; align-items:center; justify-content:center; z-index:2; border:1px solid var(--line)}
.community-arrow:hover{color:var(--text); border-color:var(--line-2)}
.nft-card .nft-image-wrap{position:relative}
.nft-image{width:100%; aspect-ratio:1; object-fit:cover}
.nft-image-wrap{overflow:hidden}
.punk-image-wrap img{filter:saturate(1.05)}
.punk-art{image-rendering:pixelated}
.punk-edition-stamp{position:absolute; top:8px; right:8px; background:rgba(10,11,13,.8); border-radius:2px; padding:3px 7px; font-size:10.5px; font-weight:500; font-family:var(--font-mono); color:var(--text-2)}
.nft-tag{position:absolute; top:8px; left:8px; background:var(--surface); color:var(--text-2); font-family:var(--font-mono); font-size:10px; letter-spacing:.08em; padding:3px 7px; border-radius:2px; border:1px solid var(--line-2)}
.nft-tag.preview{color:var(--info); border-color:rgba(88,166,255,.4)}
.nft-title{font-size:14px; margin-top:2px; color:var(--text)}
.nft-title-row{display:flex; justify-content:space-between; align-items:center; gap:8px}
.nft-collection{color:var(--text-3); font-size:11.5px; margin:0; font-family:var(--font-mono)}
.card-collection-dot{display:inline-block; width:6px; height:6px; border-radius:1px; background:var(--accent); margin-right:5px}
.price-label{color:var(--text-3); font-size:10px; font-family:var(--font-mono); letter-spacing:.1em; text-transform:uppercase}
.price-value{font-family:var(--font-mono); font-weight:500; font-size:14px; color:var(--text)}
.favorite-btn{position:absolute; top:8px; right:8px; z-index:2; width:30px; height:30px; border-radius:2px; background:rgba(10,11,13,.8); color:var(--text-2); border:1px solid var(--line); display:flex; align-items:center; justify-content:center}
.lock-text{color:var(--text-3); font-size:12px}
.divider{height:1px; background:var(--line); margin:14px 0}
.right{display:flex; align-items:center}
.slim{padding:24px 18px}
.grid{display:grid; gap:16px}
.chk{display:flex; align-items:center; gap:9px; font-size:13px; color:var(--text-2); cursor:pointer; padding:3px 0}
.chk:hover{color:var(--text)}
.chk input{accent-color:var(--accent); width:14px; height:14px; flex-shrink:0; cursor:pointer}
.chk em{margin-left:auto; font-style:normal; font-size:12px; color:var(--text-3); font-family:var(--font-mono)}
.cover-ph{font-family:var(--font-mono); font-weight:500; letter-spacing:.16em; color:var(--text-3)}
.search-glyph{color:var(--text-3); margin-right:6px}
.empty-art{font-size:30px; color:var(--text-3); margin-bottom:10px; font-family:var(--font-mono)}
.empty-state.is-compact{padding:36px 18px}
.empty-orbit{width:56px; height:56px; border-radius:2px; border:1px dashed var(--line-2); display:flex; align-items:center; justify-content:center; color:var(--text-3); font-size:18px; margin-bottom:12px; font-family:var(--font-mono)}
.market-page{display:flex; flex-direction:column; gap:30px}
.market-heading,.market-heading-actions{display:flex; gap:12px; align-items:flex-end}
.market-heading-actions{flex-wrap:wrap; margin-left:auto}
.market-heading{justify-content:space-between; width:100%; flex-wrap:wrap}
.market-metrics{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:1px; background:var(--line); border:1px solid var(--line)}
.market-metrics > div{background:var(--surface); padding:13px 15px}
.market-metrics span{display:block; color:var(--text-3); font-size:10.5px; font-family:var(--font-mono); letter-spacing:.1em; text-transform:uppercase; margin-bottom:5px}
.market-metrics strong{font-family:var(--font-mono); font-weight:500; font-size:17px; color:var(--text)}
.market-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
.market-listings,.market-collections{margin-bottom:12px}
.market-section-head{flex-wrap:wrap}
.market-controls{display:flex; gap:10px; align-items:center; margin-left:auto}
.market-local-search{display:flex; align-items:center; background:var(--surface); border:1px solid var(--line); border-radius:3px; padding:8px 11px; color:var(--text-3)}
.market-local-search input{background:none; border:0; outline:0; color:var(--text); font:inherit; min-width:150px}
.market-empty{display:flex; flex-direction:column; gap:10px; align-items:center; justify-content:center; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:42px 20px; text-align:center}
.market-empty.slim{padding:26px 20px}
.market-empty-actions{display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; justify-content:center}
.ecosystem-feature{display:flex; gap:22px; align-items:center; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:24px; flex-wrap:wrap}
.ecosystem-art{width:88px; height:88px; border-radius:3px; background:var(--surface-2); border:1px solid var(--line-2); display:flex; flex-direction:column; align-items:center; justify-content:center; font-family:var(--font-mono); font-weight:500; font-size:24px; color:var(--accent)}
.ecosystem-art small{font-size:8px; letter-spacing:.12em; margin-top:4px; color:var(--text-3)}
.upcoming-filters{display:flex; gap:10px; flex-wrap:wrap}
.upcoming-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); gap:16px}
.mint-when,.mint-meta{color:var(--text-3); font-size:12.5px}
.mint-slider-track{scroll-snap-type:x mandatory; overflow-x:auto}
.mint-slider-item{scroll-snap-align:start}
.slider-controls{display:flex; align-items:center; gap:8px; margin-left:auto}
.slider-arrow{width:32px; height:32px; border-radius:2px; border:1px solid var(--line); background:var(--surface); color:var(--text-2); font-size:16px}
.slider-arrow:hover{border-color:var(--line-2); color:var(--text)}
.cd-placeholder{color:var(--text-3); font-size:12.5px}
.tabs-row{display:flex; gap:6px; flex-wrap:wrap}
.tab-btn{padding:7px 13px; border-radius:2px; border:1px solid var(--line); background:transparent; color:var(--text-3); font-weight:500; font-size:13px}
.tab-btn.on{background:var(--text); color:var(--bg); border-color:var(--text)}
.tab-btn:hover{color:var(--text-2)}
.detail-title{font-size:22px; margin-bottom:6px; color:var(--text)}
.art-shell{position:relative; border-radius:var(--radius); overflow:hidden; background:var(--surface-2); border:1px solid var(--line)}
.art-foot{display:flex; justify-content:space-between; padding:12px 14px; color:var(--text-2); font-size:12.5px}
.trait{background:var(--surface-2); border:1px solid var(--line); border-radius:2px; padding:8px 10px; font-size:12px; color:var(--text-2)}
.trait-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:8px}
.facet{display:flex; flex-direction:column; gap:6px; background:var(--surface-2); border:1px solid var(--line); border-radius:3px; padding:12px 13px; align-items:stretch}
.facet h4{display:flex; align-items:baseline; gap:8px; font-family:var(--font-mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--text-3); margin-bottom:2px}
.facet h4 span{margin-left:auto; font-size:11px}
.facet .kv{display:flex; justify-content:space-between; align-items:baseline; gap:10px; border-bottom:1px solid var(--line); padding:5px 0; font-size:12.5px}
.facet .kv:last-child{border-bottom:0}
.facet .kv span{color:var(--text-2)}
.network-cards{display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px}
.network-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:18px}
.stat-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:16px}
.stat-card .stat-label{display:block; color:var(--text-3); font-size:10.5px; font-family:var(--font-mono); letter-spacing:.1em; text-transform:uppercase; margin-bottom:6px}
.stat-foot{color:var(--text-3); font-size:12px; margin-top:8px}
.stat-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:1px; background:var(--line); border:1px solid var(--line)}
.points-mark{display:inline-flex; width:6px; height:6px; border-radius:1px; background:var(--accent)}
.points-tag{background:var(--surface-2); border-radius:2px; padding:3px 9px; font-size:11px; font-weight:500; color:var(--text-2); font-family:var(--font-mono)}
.points-total{font-family:var(--font-mono); font-weight:500; font-size:28px; color:var(--text)}
.history-details{font-size:12.5px; color:var(--text-2)}
.history-mark{width:6px; height:6px; border-radius:1px; background:var(--live); flex-shrink:0}
.history-points{margin-left:auto; font-weight:500; font-size:12.5px; font-family:var(--font-mono)}
.reward-history-list{display:flex; flex-direction:column; gap:8px}
.reward-history-row{display:flex; gap:10px; align-items:center; background:var(--surface-2); border:1px solid var(--line); border-radius:2px; padding:10px 12px; font-size:13px}
.reward-hero,.reward-hero-premium{background:var(--surface-2); border:1px solid var(--line); border-radius:var(--radius); padding:26px; display:flex; gap:20px; flex-wrap:wrap; align-items:center; justify-content:space-between; margin-bottom:22px}
.rewards-page{display:flex; flex-direction:column; gap:24px}
.reward-next{font-weight:500; color:var(--accent)}
.reward-quests{margin-bottom:24px}
.quest-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:14px}
.quest-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:16px; display:flex; flex-direction:column; gap:10px}
.quest-card-top{display:flex; gap:11px; align-items:center}
.quest-icon{width:36px; height:36px; border-radius:2px; background:var(--surface-2); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; color:var(--accent)}
.quest-counter{color:var(--text-3); font-size:12px; font-family:var(--font-mono)}
.quest-state{font-size:10.5px; font-weight:500; font-family:var(--font-mono); letter-spacing:.08em; text-transform:uppercase; padding:3px 8px; border-radius:2px; background:var(--live-soft); color:var(--live); align-self:flex-start}
.quest-cta,.quest-bottom{margin-top:auto}
.reward-empty{background:var(--surface); border:1px dashed var(--line-2); border-radius:var(--radius); padding:30px; text-align:center; color:var(--text-2)}
.reward-empty-mark{font-size:26px; margin-bottom:8px; color:var(--text-3); font-family:var(--font-mono)}
.reward-verify{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:20px; display:flex; flex-direction:column; gap:12px}
.reward-verify-copy{color:var(--text-2); font-size:13px}
.reward-verify-form{display:flex; gap:10px; flex-wrap:wrap}
.reward-verify-form input{flex:1; min-width:220px; background:var(--bg-2); border:1px solid var(--line); border-radius:3px; padding:9px 11px; color:var(--text); font:inherit; outline:0}
.safety-check{color:var(--live); font-size:12.5px; font-weight:500}
.safety-points{font-family:var(--font-mono); font-weight:500; color:var(--text)}
.safety-row{display:flex; gap:9px; align-items:center; font-size:13px; color:var(--text-2)}
.wallet-hero{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:22px; display:flex; gap:16px; align-items:center; flex-wrap:wrap; margin-bottom:20px}
.wallet-balance{font-family:var(--font-mono); font-weight:500; font-size:28px; color:var(--text)}
.wallet-address{color:var(--text-2); font-size:12px; word-break:break-all}
.genesis-head{margin-bottom:18px}
.genesis-head h2{font-size:24px}
.genesis-head p{color:var(--text-2); margin-top:6px; max-width:640px}
.genesis-toolbar{display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:18px}
.genesis-filters{display:flex; gap:8px; flex-wrap:wrap; align-items:center; flex:1}
.genesis-search{display:flex; align-items:center; background:var(--surface); border:1px solid var(--line); border-radius:3px; padding:8px 11px; color:var(--text-3)}
.genesis-search input{background:none; border:0; outline:0; color:var(--text); font:inherit; min-width:170px}
.genesis-count{color:var(--text-3); font-size:12px; font-family:var(--font-mono)}
.genesis-empty{color:var(--text-2); padding:30px; text-align:center; grid-column:1/-1}
.genesis-more{display:flex; gap:12px; align-items:center; justify-content:center; margin-top:16px; color:var(--text-3); font-size:12px; font-family:var(--font-mono); flex-wrap:wrap}
.brick-spikes{display:inline-flex; gap:5px; margin-bottom:10px}
.brick-spikes i{width:8px; height:8px; border-radius:1px; background:var(--line-2)}
.showcase-card{background:var(--surface-2); border:1px solid var(--line); border-radius:var(--radius); padding:18px; color:var(--text-2)}
.showcase-label b{display:block; color:var(--text); font-size:13.5px; letter-spacing:.04em}
.showcase-label small{color:var(--text-3); font-size:11px}
.bar{height:4px; background:var(--surface-3); overflow:hidden}
.bar > i,.bar > span{display:block; height:100%; background:var(--accent)}
.blur{filter:blur(0)}

/* -------------------------------------------------------------------------
   Morrow creator edition — clearer information architecture and a persistent
   text navigation rail. The charcoal / amber palette remains the visual anchor.
   ------------------------------------------------------------------------- */
:root{--rail-w:220px}
.main-nav{width:var(--rail-w);padding:12px 0;background:#0c0e11}
.main-nav:hover{width:var(--rail-w)}
.nav-links{gap:4px;padding:0 12px}
.nav-link{width:100%;min-height:42px;padding:10px 12px;gap:13px;font-size:13px;color:#9097a2}
.nav-link svg{width:18px;height:18px}
.rail-label{opacity:1;transform:none;letter-spacing:.005em}
.nav-foot{padding:14px 18px 3px;gap:10px}
.main-shell{max-width:1680px;margin:0 auto;padding:34px clamp(22px,3vw,48px) 88px}
.page-heading{margin-bottom:30px;padding-bottom:22px}
.page-heading h1{font-size:clamp(30px,3vw,42px);letter-spacing:-.045em}
.page-heading p{max-width:760px;font-size:15px;line-height:1.7}
.tabs-row.creator-tabs{gap:5px;overflow-x:auto;padding:0 0 12px;margin-bottom:22px;scrollbar-width:thin}
.creator-tabs .tab-btn{white-space:nowrap;padding:10px 14px;border-color:transparent}
.creator-tabs .tab-btn.active{background:var(--surface-2);border-color:var(--line-2);color:var(--accent)}
.hero-empty{min-height:340px;padding:24px}
.hero-empty-card{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(300px,.92fr);gap:42px;align-items:center;text-align:left;max-width:none;width:100%;margin:0;padding:clamp(28px,4vw,52px);background:linear-gradient(125deg,#171a1f 0%,#111317 58%,#17130b 100%);border-color:#292d34}
.hero-empty-copy{max-width:620px}
.hero-empty-grid{justify-content:flex-start;margin:0 0 20px}
.hero-empty-copy h2{font-size:clamp(30px,4vw,48px);line-height:1.04;letter-spacing:-.045em;max-width:600px;margin:0 0 16px}
.hero-empty-copy p{max-width:560px;margin:0 0 24px;font-size:15px;line-height:1.7;color:#b4bac4}
.hero-empty-copy .hero-cta{justify-content:flex-start}
.hero-art-mosaic{min-height:235px;position:relative;display:grid;grid-template-columns:1.1fr .9fr;grid-template-rows:1fr 1fr;gap:10px;transform:rotate(-2deg)}
.mosaic-tile{position:relative;display:flex;flex-direction:column;justify-content:space-between;min-height:108px;padding:16px;border:1px solid #3a3425;background:linear-gradient(145deg,#292319,#15171a);overflow:hidden}
.mosaic-tile::after{content:"";position:absolute;width:130px;height:130px;right:-30px;bottom:-46px;border:1px solid rgba(240,180,41,.3);transform:rotate(32deg);box-shadow:0 0 0 12px rgba(240,180,41,.04),0 0 0 28px rgba(240,180,41,.025)}
.mosaic-tile span{font:11px var(--font-mono);color:var(--accent)}
.mosaic-tile b{font:600 19px var(--font-display);letter-spacing:.04em;color:#f0ede5}
.mosaic-a{grid-row:span 2;background:linear-gradient(150deg,#45391c,#17191d 78%)}
.mosaic-a b{font-size:27px}
.mosaic-b{background:linear-gradient(145deg,#282c31,#17191d)}
.mosaic-c{background:linear-gradient(145deg,#3a2d13,#1b1b1a)}
.mosaic-stamp{position:absolute;right:12px;top:50%;transform:translate(18%,-50%) rotate(12deg);width:74px;height:74px;border-radius:50%;display:grid;place-content:center;text-align:center;background:var(--accent);color:#16130a;font:700 9px/1.15 var(--font-mono);letter-spacing:.1em;box-shadow:0 8px 30px rgba(0,0,0,.4)}
.mosaic-stamp i{font-style:normal;font-size:18px}
.creator-path{margin:12px 0 42px;padding:26px 28px;border:1px solid var(--line);background:#0e1013}
.creator-path-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:22px}
.creator-path-head h2{font-size:clamp(22px,2.4vw,30px);margin-top:6px}
.creator-path-head p{color:var(--text-2);margin-top:8px;font-size:14px}
.creator-path-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line)}
.creator-path-steps article{padding:20px 24px 4px 0;position:relative}
.creator-path-steps article+article{border-left:1px solid var(--line);padding-left:24px}
.creator-path-steps article>span{font:11px var(--font-mono);color:var(--accent)}
.creator-path-steps h3{font-size:18px;margin:10px 0 6px}
.creator-path-steps p{font-size:13px;line-height:1.65;color:var(--text-2);max-width:360px}

.bulk-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px;align-items:start}
.bulk-main{padding:clamp(18px,2.5vw,30px);min-width:0}
.bulk-intro{display:flex;justify-content:space-between;align-items:center;gap:22px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.bulk-intro h2{font-size:clamp(23px,2.5vw,32px);margin:8px 0 9px;letter-spacing:-.04em}
.bulk-intro p{max-width:690px;color:var(--text-2);font-size:14px;line-height:1.7}
.bulk-count{min-width:116px;border-left:1px solid var(--line);padding-left:22px;text-align:right}
.bulk-count strong{display:block;font:500 30px var(--font-display);color:var(--accent);line-height:1.1}
.bulk-count span{font:10px var(--font-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--text-3)}
.bulk-step{display:grid;grid-template-columns:36px minmax(0,1fr);gap:15px;padding:24px 0;border-bottom:1px solid var(--line)}
.bulk-step-num{width:30px;height:30px;display:grid;place-items:center;background:var(--accent-soft);border:1px solid rgba(240,180,41,.28);color:var(--accent);font:11px var(--font-mono)}
.bulk-step-content{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.bulk-step-content h3{font-size:18px}
.bulk-step-content>p{font-size:13.5px;line-height:1.65;color:var(--text-2);max-width:760px}
.bulk-step-content code,.bulk-note code{font:12px var(--font-mono);color:#e4c16d;background:rgba(240,180,41,.09);padding:2px 4px}
.bulk-drop{width:100%;min-height:78px;background:#0d0f12}
.bulk-folder-drop{width:100%;min-height:70px}
.bulk-file-summary{display:flex;gap:8px;flex-wrap:wrap}
.bulk-file-summary span{border:1px solid var(--line);background:var(--surface-2);padding:6px 9px;font:11px var(--font-mono);color:var(--text-2)}
.bulk-step-content .field{width:100%;max-width:720px}
.bulk-step-content .field-grid{width:100%;max-width:720px}
.bulk-step-content .status-chip{margin-top:0}
.bulk-success{border-color:rgba(63,185,80,.28);background:rgba(63,185,80,.07);color:#b7dec0}
.bulk-note{margin-top:22px;border-left:2px solid var(--accent);padding:12px 16px;background:rgba(240,180,41,.05);font-size:13px;line-height:1.65;color:var(--text-2)}
.bulk-note strong{color:var(--text)}
.bulk-aside{display:flex;flex-direction:column;gap:14px;position:sticky;top:78px}
.bulk-aside .panel{padding:20px}
.bulk-aside h3{font-size:18px;margin:8px 0 10px}
.bulk-aside p{font-size:13px;line-height:1.65;color:var(--text-2)}
.bulk-rules{padding:0;margin:14px 0 0;list-style:none}
.bulk-rules li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-top:1px solid var(--line)}
.bulk-rules li b{font:500 14px var(--font-mono);color:var(--accent);white-space:nowrap}
.bulk-rules li span{font-size:12px;color:var(--text-2);text-align:right}

.pin-choice{border-radius:3px;border-width:1px}
.pin-guide{border-width:1px;border-radius:3px}
.form-layout{grid-template-columns:minmax(0,1fr) 310px;gap:18px}
.form-layout>.panel{padding:clamp(18px,2vw,26px)}
.form-stack{gap:19px}
.field-grid{gap:16px}

@media(max-width:1180px){
  .bulk-layout{grid-template-columns:minmax(0,1fr) 250px}
  .form-layout{grid-template-columns:minmax(0,1fr) 280px}
}
@media(max-width:980px){
  :root{--rail-w:0px}
  .main-nav{width:260px}
  .main-nav:hover{width:260px}
  .main-shell{padding:24px 18px 60px}
  .bulk-layout,.form-layout{grid-template-columns:1fr}
  .bulk-aside{position:static;display:grid;grid-template-columns:1fr 1fr}
  .hero-empty-card{grid-template-columns:1fr;gap:26px}
  .hero-art-mosaic{min-height:190px;max-width:520px;width:100%;margin:0 auto}
}
@media(max-width:700px){
  .hero-empty{padding:12px;min-height:0}
  .hero-empty-card{padding:24px 18px;gap:18px}
  .hero-empty-copy h2{font-size:30px}
  .hero-art-mosaic{min-height:165px;gap:7px}
  .creator-path{padding:20px 18px;margin-bottom:30px}
  .creator-path-head{align-items:flex-start;flex-direction:column}
  .creator-path-steps{grid-template-columns:1fr}
  .creator-path-steps article,.creator-path-steps article+article{padding:16px 0;border-left:0;border-top:1px solid var(--line)}
  .bulk-aside{grid-template-columns:1fr}
  .bulk-intro{align-items:flex-start}
  .bulk-count{min-width:84px;padding-left:12px}
  .bulk-step{grid-template-columns:28px minmax(0,1fr);gap:10px}
  .bulk-step-num{width:26px;height:26px}
  .bulk-main{padding:18px 14px}
  .bulk-step-content .field-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .topbar-inner{gap:8px}
  .header-search{display:none}
  .header-actions{margin-left:auto}
  .net-status{display:none}
  .main-shell{padding:18px 12px 48px}
  .creator-tabs .tab-btn{padding:9px 10px;font-size:12px}
}
