/* =========================================================
   MEGA VELIXO V3 - mobile-first, OpenSea/Magic Eden inspired
   ========================================================= */
:root {
  --bg: #060608;
  --bg1: #0c0c12;
  --bg2: #14141c;
  --bg3: #1d1d28;
  --bg4: #2a2a38;
  --t1: #fff;
  --t2: #b7b7c4;
  --t3: #6e6e80;
  --t4: #45454f;
  --acc: #f85385;
  --acc2: #ff6da0;
  --acc-soft: rgba(248,83,133,0.12);
  --acc-glow: rgba(248,83,133,0.4);
  --grn: #4ade80;
  --grn-soft: rgba(74,222,128,0.12);
  --red: #f87171;
  --red-soft: rgba(248,113,113,0.12);
  --ylw: #fbbf24;
  --bd: rgba(255,255,255,0.08);
  --bd2: rgba(255,255,255,0.14);
  --bd3: rgba(255,255,255,0.22);
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-xl: 22px;
  --r-2xl: 28px;
  --tr: 200ms cubic-bezier(0.4,0,0.2,1);
  --tr-fast: 120ms cubic-bezier(0.4,0,0.2,1);
  --tr-spring: 420ms cubic-bezier(0.34,1.56,0.64,1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--acc); color: #000; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t1);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11','ss01';
  line-height: 1.5;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; background: none; border: none; color: inherit; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--t3); }
.mono { font-family: var(--mono); font-size: 0.92em; }
.small { font-size: 12px; }
.large { font-size: 18px; }
.no-wrap { white-space: nowrap; }

/* ============== BACKDROP ============== */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 50% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 50% at 50% 0%, black 30%, transparent 100%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  animation: float 20s ease-in-out infinite;
}
.o1 { width: 420px; height: 420px; background: var(--acc); top: -120px; left: -100px; }
.o2 { width: 360px; height: 360px; background: #6d4cff; top: 16%; right: -160px; animation-delay: -8s; }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(20px,-30px) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }

/* ============== NAV ============== */
.nav {
  position: sticky; top: 0; z-index: 90;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  background: rgba(6,6,8,0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--bd);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand-mark {
  border-radius: 8px;
  filter: drop-shadow(0 0 12px var(--acc-glow));
  transition: transform var(--tr);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-text strong { font-weight: 800; }

.nav-search {
  position: relative;
  display: none;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
.nav-search input {
  width: 100%;
  padding: 10px 40px 10px 38px;
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 999px;
  color: var(--t1);
  font-size: 14px;
  transition: border-color var(--tr), background var(--tr);
}
.nav-search input::placeholder { color: var(--t3); }
.nav-search input:focus {
  outline: none;
  border-color: var(--acc);
  background: var(--bg3);
}
.search-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--t3);
  pointer-events: none;
}
.nav-search kbd {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  padding: 2px 8px;
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: 6px;
  font-size: 11px;
  color: var(--t3);
  font-family: var(--mono);
}

.nav-links { display: none; }
.nav-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }

@media (min-width: 880px) {
  .nav { padding: 14px 28px; grid-template-columns: auto 1fr auto auto; }
  .nav-search { display: block; }
  .nav-links { display: flex; gap: 4px; }
  .nav-links a {
    color: var(--t2);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    transition: all var(--tr-fast);
  }
  .nav-links a:hover { color: var(--t1); background: var(--bg2); }
  .nav-links a.active { color: var(--acc); background: var(--acc-soft); }
}

.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--bd);
  color: var(--t2);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--tr);
}
.icon-btn:hover { background: var(--bg3); color: var(--t1); border-color: var(--bd2); }
.icon-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--acc);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  font-family: var(--mono);
}
.cart-count:empty, .cart-count[data-empty]:not([data-empty="0"]) { display: none; }

/* ============== TICKER ============== */
.ticker {
  overflow: hidden;
  background: linear-gradient(90deg, var(--bg2), var(--bg3), var(--bg2));
  border-bottom: 1px solid var(--bd);
  padding: 7px 0;
  position: relative;
  font-size: 12px;
  font-family: var(--mono);
}
.ticker::before, .ticker::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 60px; z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.ticker-track {
  display: flex; gap: 32px;
  white-space: nowrap;
  animation: scroll 60s linear infinite;
  padding-left: 100vw;
}
.ticker-track:hover { animation-play-state: paused; }
.tk-item {
  color: var(--t2);
  display: inline-flex; align-items: center; gap: 8px;
}
.tk-item .b {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.tk-item .b.l { background: var(--grn-soft); color: var(--grn); }
.tk-item .b.s { background: var(--acc-soft); color: var(--acc); }
.tk-item .b.c { background: var(--red-soft); color: var(--red); }
.tk-item .b.o { background: rgba(251,191,36,0.12); color: var(--ylw); }
.tk-item .px { color: var(--acc); font-weight: 600; }
.tk-empty { color: var(--t3); padding: 0 24px; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ============== MAIN + ROUTES ============== */
main { min-height: calc(100vh - 200px); padding-bottom: 60px; }
.container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .container { padding: 0 24px; } }
@media (min-width: 1100px) { .container { padding: 0 32px; } }

.page-head {
  padding: 32px 0 24px;
}
.page-head h1 {
  font-size: clamp(28px,5vw,44px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.page-head p { color: var(--t2); margin-top: 8px; font-size: 15px; }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform var(--tr-fast), background var(--tr), border-color var(--tr), box-shadow var(--tr);
  white-space: nowrap;
  min-height: 42px;
  font-family: inherit;
  letter-spacing: -0.005em;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--acc); color: #000;
  box-shadow: 0 4px 16px var(--acc-glow);
}
.btn-primary:hover { background: var(--acc2); box-shadow: 0 6px 24px var(--acc-glow); }
.btn-ghost {
  background: var(--bg2); color: var(--t1);
  border-color: var(--bd);
}
.btn-ghost:hover { background: var(--bg3); border-color: var(--bd2); }
.btn-outline {
  background: transparent; color: var(--t1);
  border-color: var(--bd2);
}
.btn-outline:hover { background: var(--bg2); border-color: var(--acc); color: var(--acc); }
.btn-danger {
  background: var(--red-soft); color: var(--red);
  border-color: rgba(248,113,113,0.2);
}
.btn-danger:hover { background: rgba(248,113,113,0.18); border-color: var(--red); }
.btn-sm { padding: 7px 12px; font-size: 12px; min-height: 32px; border-radius: 9px; }
.btn-lg { padding: 14px 22px; font-size: 15px; min-height: 50px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grn);
  box-shadow: 0 0 8px var(--grn);
}

/* ============== HOME HERO ============== */
.hero {
  padding: 56px 0 48px;
  text-align: center;
  position: relative;
}
@media (min-width: 720px) { .hero { padding: 96px 0 64px; } }
.hero h1 {
  font-size: clamp(36px,7vw,72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero .accent {
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradShift 6s ease-in-out infinite;
}
@keyframes gradShift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero p {
  margin: 18px auto 0;
  max-width: 600px;
  font-size: 16px;
  color: var(--t2);
  text-wrap: balance;
}
@media (min-width: 720px) { .hero p { font-size: 18px; } }
.hero-cta {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.stats-strip {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 720px) { .stats-strip { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.stat-card {
  background: rgba(20,20,28,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 16px;
  transition: all var(--tr);
  text-align: left;
}
.stat-card:hover { border-color: var(--acc-glow); transform: translateY(-2px); }
.stat-card .k {
  font-size: 11px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.stat-card .v {
  font-size: 22px;
  font-weight: 800;
  margin-top: 4px;
  font-family: var(--mono);
  letter-spacing: -0.01em;
}
.stat-card .delta { font-size: 11px; color: var(--t3); margin-top: 2px; }

/* ============== SECTION ============== */
.section { padding-top: 56px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-head p { color: var(--t3); font-size: 13px; margin-top: 2px; }
.section-link {
  color: var(--acc);
  font-size: 13px;
  font-weight: 600;
  transition: color var(--tr-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.section-link:hover { color: var(--acc2); gap: 8px; }

/* ============== GRID + CARDS ============== */
.grid-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .grid-list { gap: 16px; grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid-list { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1400px) { .grid-list.dense { grid-template-columns: repeat(5, 1fr); } }

.nft {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--tr);
  display: flex;
  flex-direction: column;
}
.nft:hover {
  transform: translateY(-3px);
  border-color: var(--acc-glow);
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.5), 0 0 24px -8px var(--acc-glow);
}
.nft.selected {
  border-color: var(--acc);
  box-shadow: 0 0 0 2px var(--acc), 0 12px 32px -8px var(--acc-glow);
}
.nft-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg3), var(--bg4));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--t3);
}
.nft-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 800ms cubic-bezier(0.16,1,0.3,1);
}
.nft:hover .nft-img img { transform: scale(1.06); }
.nft-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.7));
  opacity: 0;
  transition: opacity var(--tr);
}
.nft:hover .nft-img::after { opacity: 1; }
.nft-quick {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--tr);
  z-index: 2;
}
.nft:hover .nft-quick { opacity: 1; transform: translateY(0); }
.nft-quick .btn { flex: 1; min-height: 36px; backdrop-filter: blur(8px); }
.nft-body { padding: 10px 12px 12px; }
.nft-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.nft-sub {
  font-size: 11px;
  color: var(--t3);
  margin-top: 2px;
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nft-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 8px;
}
.nft-price {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.nft-price .pl { font-size: 9px; color: var(--t3); text-transform: uppercase; letter-spacing: 0.06em; }
.nft-price .pv { color: var(--t1); font-weight: 700; font-family: var(--mono); font-size: 13px; }
.nft-cart {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bd);
  transition: all var(--tr-fast);
  color: var(--t3);
  flex-shrink: 0;
}
.nft-cart svg { width: 14px; height: 14px; }
.nft-cart:hover { background: var(--acc-soft); color: var(--acc); border-color: var(--acc); }
.nft.selected .nft-cart { background: var(--acc); color: #000; border-color: var(--acc); }

/* ============== FILTER BAR ============== */
.filterbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 14px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--bd);
  position: sticky;
  top: 70px;
  background: rgba(6,6,8,0.92);
  backdrop-filter: blur(8px);
  z-index: 5;
}
@media (min-width: 880px) { .filterbar { top: 78px; } }
.filterbar select, .filterbar input[type="text"] {
  padding: 9px 32px 9px 14px;
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 10px;
  color: var(--t1);
  font-size: 13px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color var(--tr);
  font-family: inherit;
}
.filterbar select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b7b7c4' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.filterbar select:hover, .filterbar input:hover { border-color: var(--bd2); }
.filterbar select:focus, .filterbar input:focus { outline: none; border-color: var(--acc); }
.filterbar .spacer { flex: 1; }
.filterbar .count { color: var(--t3); font-size: 13px; font-family: var(--mono); }

/* ============== EMPTY ============== */
.empty {
  text-align: center;
  padding: 72px 24px 80px;
  background: var(--bg2);
  border: 1px dashed var(--bd2);
  border-radius: 16px;
  color: var(--t3);
  grid-column: 1/-1;
}
.empty-mark {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  border-radius: 18px;
  position: relative;
  opacity: 0.15;
  animation: floatY 3s ease-in-out infinite;
}
.empty-mark::after {
  content: '';
  position: absolute; inset: 8px;
  background: var(--bg2);
  border-radius: 12px;
}
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.empty h3 { color: var(--t1); font-size: 17px; margin-bottom: 6px; font-weight: 700; }
.empty p { font-size: 13px; margin-bottom: 18px; }

/* ============== ACTIVITY ============== */
.activity {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.act-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 10px;
  font-size: 13px;
  transition: border-color var(--tr);
}
.act-row:hover { border-color: var(--bd2); }
.act-row.fresh { animation: pulse 1.6s ease-out; }
@keyframes pulse {
  0% { background: var(--acc-soft); border-color: var(--acc); }
  100% { background: var(--bg2); border-color: var(--bd); }
}
.act-row .b {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.b.list { background: var(--grn-soft); color: var(--grn); }
.b.sale { background: var(--acc-soft); color: var(--acc); }
.b.cancel { background: var(--red-soft); color: var(--red); }
.b.offer { background: rgba(251,191,36,0.12); color: var(--ylw); }
.act-thumb {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--bg3), var(--bg4));
  overflow: hidden;
  flex-shrink: 0;
}
.act-thumb img { width: 100%; height: 100%; object-fit: cover; }
.act-info { min-width: 0; }
.act-info .row1 {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.act-info .row2 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t3);
  margin-top: 2px;
}
.act-row .px {
  color: var(--t1);
  font-family: var(--mono);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

/* ============== COLLECTION DETAIL ============== */
.col-banner {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(135deg, var(--acc), #6d4cff, var(--acc2));
  background-size: 200% 200%;
  animation: gradShift 12s ease-in-out infinite;
  overflow: hidden;
}
.col-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6,6,8,0.6));
}
@media (min-width: 720px) { .col-banner { height: 220px; } }
.col-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: -56px;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}
@media (min-width: 720px) {
  .col-head { flex-direction: row; align-items: flex-end; padding: 0 24px; gap: 20px; }
}
.col-avatar {
  width: 96px; height: 96px;
  background: var(--bg2);
  border: 4px solid var(--bg);
  border-radius: 22px;
  flex-shrink: 0;
  overflow: hidden;
}
.col-avatar img { width: 100%; height: 100%; object-fit: cover; }
.col-meta { flex: 1; }
.col-meta h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.col-addr {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--t3);
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--bd);
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 6px;
}
.col-addr:hover { color: var(--acc); border-color: var(--acc); cursor: pointer; }
.col-stats {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
  margin: 24px 0 16px;
}
@media (min-width: 720px) { .col-stats { grid-template-columns: repeat(5,1fr); gap: 14px; } }
.col-stats .stat-card.hi { border-color: var(--acc-glow); background: linear-gradient(180deg, var(--acc-soft), rgba(20,20,28,0.7)); }
.col-stats .stat-card.hi .v { color: var(--acc); }
.col-stats .stat-card { padding: 12px 14px; }
.col-stats .stat-card .v { font-size: 18px; }

/* ============== ITEM PAGE ============== */
.item-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px 0;
}
@media (min-width: 880px) {
  .item-page { grid-template-columns: 5fr 4fr; gap: 32px; }
}
.item-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  border: 1px solid var(--bd);
  position: relative;
}
.item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-side h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.item-side .col-link {
  color: var(--acc);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.item-owner {
  font-size: 13px;
  color: var(--t3);
  margin-top: 8px;
  font-family: var(--mono);
}
.item-card {
  margin-top: 18px;
  padding: 18px;
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 16px;
}
.item-card .lbl {
  font-size: 11px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.item-card .px {
  font-size: 32px;
  font-family: var(--mono);
  color: var(--acc);
  font-weight: 800;
  margin-top: 4px;
  letter-spacing: -0.02em;
}
.item-card .px small { font-size: 14px; color: var(--t3); margin-left: 6px; font-weight: 500; }
.item-card .actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.item-card .actions .btn { flex: 1; }
.item-card .meta-row {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 13px;
}
.item-card .meta-row .k { color: var(--t3); }
.item-card .meta-row .v { color: var(--t1); font-family: var(--mono); }

.props {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 720px) { .props { grid-template-columns: repeat(3, 1fr); } }
.prop {
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 10px 12px;
  transition: border-color var(--tr);
}
.prop:hover { border-color: var(--acc); }
.prop .pk {
  font-size: 10px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.prop .pv {
  font-size: 13px;
  font-weight: 700;
  color: var(--t1);
  margin-top: 2px;
  font-family: var(--mono);
  word-break: break-word;
}

.subhead {
  margin: 24px 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.offers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.offer-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: 10px;
  font-size: 13px;
}
.offer-row .frm { font-family: var(--mono); color: var(--t2); }
.offer-row .px { color: var(--acc); font-family: var(--mono); font-weight: 700; }

/* ============== TABS ============== */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--bd);
  margin-bottom: 18px;
  overflow-x: auto;
}
.tabs button {
  padding: 12px 18px;
  font-size: 14px;
  color: var(--t2);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all var(--tr);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.tabs button:hover { color: var(--t1); }
.tabs button.active { color: var(--acc); border-bottom-color: var(--acc); }
.tab-pane { display: none; animation: fadeUp 320ms cubic-bezier(0.16,1,0.3,1); }
.tab-pane.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ============== TRENDING ============== */
.trend-list { display: flex; flex-direction: column; gap: 8px; }
.trend-row {
  display: grid;
  grid-template-columns: 32px 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--tr);
}
.trend-row:hover { border-color: var(--acc); transform: translateX(4px); }
.trend-rank { color: var(--t3); font-family: var(--mono); font-weight: 700; text-align: center; font-size: 13px; }
.trend-avatar {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--acc), #6d4cff);
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: 14px;
  color: #fff;
}
.trend-avatar img { width: 100%; height: 100%; object-fit: cover; }
.trend-info { min-width: 0; }
.trend-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-meta { font-family: var(--mono); font-size: 11px; color: var(--t3); margin-top: 2px; }
.trend-stats { display: flex; gap: 16px; }
.trend-stats > div { text-align: right; }
.trend-stats .k { font-size: 9px; color: var(--t3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.trend-stats .v { font-size: 13px; font-weight: 600; font-family: var(--mono); margin-top: 2px; }

/* ============== PROFILE ============== */
.profile-head {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: center;
  margin: 32px 0 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bd);
}
@media (min-width: 720px) {
  .profile-head { grid-template-columns: 96px 1fr auto; }
}
.profile-pfp {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acc), #6d4cff);
  flex-shrink: 0;
}
@media (min-width: 720px) { .profile-pfp { width: 96px; height: 96px; } }
.profile-head h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.profile-head .addr-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--bd);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--t3);
  margin-top: 6px;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  grid-column: 1/-1;
}
@media (min-width: 720px) {
  .profile-stats { grid-column: auto; grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

/* ============== SKELETON ============== */
.skel {
  background: linear-gradient(90deg, var(--bg2), var(--bg3), var(--bg2));
  background-size: 200% 100%;
  animation: shine 1.4s ease-in-out infinite;
  border-radius: 10px;
}
@keyframes shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============== MODALS ============== */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(3,3,6,0.65);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
  padding: 0;
  animation: bgIn 240ms cubic-bezier(0.16,1,0.3,1);
  isolation: isolate;
}
@media (min-width: 560px) { .modal-bg { align-items: center; padding: 32px 20px; } }
@keyframes bgIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(248,83,133,0.06) 0%, transparent 80px),
    linear-gradient(180deg, var(--bg2), var(--bg1));
  border: 1px solid var(--bd2);
  border-radius: 24px 24px 0 0;
  padding: 32px 22px 22px;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  animation: spring 420ms cubic-bezier(0.34,1.56,0.64,1);
  box-shadow:
    0 -1px 0 rgba(255,255,255,0.04) inset,
    0 -40px 80px -40px var(--acc-glow),
    0 24px 80px -12px rgba(0,0,0,0.6);
}
.modal-card::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 4px;
  border-radius: 2px;
  background: var(--bg4);
}
@media (min-width: 560px) {
  .modal-card { border-radius: 22px; padding: 28px 26px 26px; }
  .modal-card::before { display: none; }
}
@keyframes spring {
  from { transform: translateY(40px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-card.sm { max-width: 400px; }
.modal-card.lg { max-width: 920px; }
.modal-x {
  position: sticky;
  top: 0;
  margin-left: auto;
  margin-bottom: -32px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--bd2);
  color: var(--t1);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--tr);
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.modal-x:hover {
  background: var(--acc);
  border-color: var(--acc);
  color: #000;
  transform: rotate(90deg) scale(1.05);
}
.modal-card { display: flex; flex-direction: column; }
.modal-card > .modal-x { align-self: flex-end; }
.modal-card h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  margin-right: 40px;
}
.modal-card > p { color: var(--t3); font-size: 13px; margin-bottom: 18px; line-height: 1.55; }
.modal-card label {
  display: block;
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--t2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.modal-card input, .modal-card select, .modal-card textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: 12px;
  color: var(--t1);
  font-size: 15px;
  font-family: var(--mono);
  transition: all var(--tr);
}
.modal-card input::placeholder { color: var(--t4); }
.modal-card input:focus, .modal-card select:focus, .modal-card textarea:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-soft);
}
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-direction: column-reverse;
}
@media (min-width: 480px) { .modal-actions { flex-direction: row; justify-content: flex-end; } }
.modal-actions .btn { flex: 1; min-height: 48px; }
@media (min-width: 480px) { .modal-actions .btn { flex: 0 1 auto; min-width: 120px; } }
.line {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px;
  font-size: 14px;
  color: var(--t2);
}
.line.big {
  padding-top: 14px;
  border-top: 1px solid var(--bd);
  margin-top: 18px;
  font-size: 16px;
  color: var(--t1);
}
.status {
  margin-top: 16px;
  font-size: 13px;
  font-family: var(--mono);
  min-height: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--t3);
}
.status:not(:empty)::before {
  content: '';
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--t3);
  border-top-color: transparent;
  animation: spin 800ms linear infinite;
  flex-shrink: 0;
}
.status.ok { color: var(--grn); }
.status.ok::before {
  border: 0;
  background: var(--grn);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'><path d='M20 6 9 17l-5-5'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'><path d='M20 6 9 17l-5-5'/></svg>") no-repeat center / contain;
  animation: none;
}
.status.bad { color: var(--red); }
.status.bad::before {
  border: 0;
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'><path d='M18 6 6 18M6 6l12 12'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'><path d='M18 6 6 18M6 6l12 12'/></svg>") no-repeat center / contain;
  animation: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* preview card inside modal */
.preview {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: 12px;
}
.preview-img {
  width: 72px; height: 72px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bg3), var(--bg4));
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--t3);
  font-family: var(--mono);
}
.preview-img img { width: 100%; height: 100%; object-fit: cover; }
.preview .nm { font-weight: 700; }
.preview .sub { font-size: 12px; color: var(--t3); font-family: var(--mono); }

/* wallet list */
.wallets { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.wallet-opt {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: 14px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--t1);
  transition: all var(--tr);
  position: relative;
  overflow: hidden;
}
.wallet-opt:hover { background: var(--bg2); border-color: var(--acc); transform: translateX(2px); }
.wallet-opt svg { width: 16px; height: 16px; color: var(--t3); transition: all var(--tr); }
.wallet-opt:hover svg { color: var(--acc); transform: translateX(2px); }
.w-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg3);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.w-icon.mm { background: linear-gradient(135deg, #f6851b, #e2761b); }
.w-icon.rb { background: linear-gradient(135deg, #7084ff, #4860d6); }
.w-icon.cb { background: linear-gradient(135deg, #1652f0, #0a3ec0); }
.w-icon.ot { background: linear-gradient(135deg, var(--acc), var(--acc2)); }

/* share */
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }

/* ============== TOAST ============== */
.toast-stack {
  position: fixed;
  left: 16px; right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  z-index: 10000;
  pointer-events: none;
}
@media (min-width: 720px) {
  .toast-stack { left: auto; right: 24px; bottom: 24px; max-width: 400px; }
}
.toast {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent),
    var(--bg2);
  border: 1px solid var(--bd2);
  border-radius: 14px;
  padding: 14px 16px 14px 14px;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.5);
  animation: tspring 460ms cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: auto;
  overflow: hidden;
}
.toast::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}
.toast::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  background: currentColor;
  opacity: 0.5;
  animation: tprog 4400ms linear forwards;
}
.toast.ok { color: var(--grn); }
.toast.ok::before { background: var(--grn); box-shadow: 0 0 12px var(--grn); }
.toast.err { color: var(--red); }
.toast.err::before { background: var(--red); box-shadow: 0 0 12px var(--red); }
.toast.info { color: var(--acc); }
.toast.info::before { background: var(--acc); box-shadow: 0 0 12px var(--acc); }
.toast.pending { color: var(--ylw); }
.toast.pending::before { background: var(--ylw); box-shadow: 0 0 12px var(--ylw); }
.toast.pending::after { animation: none; opacity: 0; }
.t-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.18;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.t-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 16px;
  mask-size: 16px;
  opacity: 7;
}
.toast.ok .t-icon::after { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'><path d='M20 6 9 17l-5-5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'><path d='M20 6 9 17l-5-5'/></svg>"); }
.toast.err .t-icon::after { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'><path d='M18 6 6 18M6 6l12 12'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'><path d='M18 6 6 18M6 6l12 12'/></svg>"); }
.toast.info .t-icon::after { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'><circle cx='12' cy='12' r='10'/><path d='M12 16v-4M12 8h.01'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'><circle cx='12' cy='12' r='10'/><path d='M12 16v-4M12 8h.01'/></svg>"); }
.toast.pending .t-icon { animation: spin 800ms linear infinite; }
.toast.pending .t-icon::after { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'><path d='M21 12a9 9 0 1 1-6.2-8.6'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'><path d='M21 12a9 9 0 1 1-6.2-8.6'/></svg>"); }
.t-body { min-width: 0; color: var(--t1); }
.t-title { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.t-msg {
  color: var(--t2);
  margin-top: 2px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t-action {
  font-size: 12px;
  font-weight: 700;
  color: currentColor;
  padding: 6px 10px;
  border-radius: 8px;
  background: currentColor;
  position: relative;
}
.t-action span { color: var(--bg); position: relative; z-index: 1; }
.toast.fadeout { animation: tout 220ms cubic-bezier(0.4,0,1,1) forwards; }
@keyframes tspring {
  0% { transform: translateY(40px) scale(0.9); opacity: 0; }
  60% { transform: translateY(-4px) scale(1.02); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes tout { to { transform: translateX(20px) scale(0.96); opacity: 0; } }
@keyframes tprog { from { width: 100%; } to { width: 0%; } }

/* ============== DRAWER (cart) ============== */
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 380px;
  background: var(--bg2);
  border-left: 1px solid var(--bd2);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 40px -16px rgba(0,0,0,0.5);
  animation: drawerIn 320ms cubic-bezier(0.16,1,0.3,1);
}
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--bd);
  position: sticky;
  top: 0;
  background: var(--bg2);
  z-index: 2;
}
.drawer-head h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.drawer-head .icon-btn {
  background: var(--bg3);
  border: 1px solid var(--bd);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}
.drawer-head .icon-btn:hover { background: var(--acc); color: #000; border-color: var(--acc); }
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer-foot {
  padding: 16px 20px;
  border-top: 1px solid var(--bd);
}
.cart-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px;
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: 10px;
}
.cart-thumb {
  width: 48px; height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg3);
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { min-width: 0; }
.cart-info .nm { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-info .px { font-size: 12px; color: var(--acc); font-family: var(--mono); margin-top: 2px; }
.cart-x {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--bg3);
  color: var(--t3);
  font-size: 16px;
}
.cart-x:hover { background: var(--red-soft); color: var(--red); }
.cart-total {
  display: flex; justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}
.cart-total strong { font-family: var(--mono); color: var(--acc); font-size: 16px; }

/* ============== WALLET MENU ============== */
.wm {
  position: fixed;
  z-index: 9000;
  min-width: 240px;
  background: var(--bg2);
  border: 1px solid var(--bd2);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 12px 40px -8px rgba(0,0,0,0.6);
  animation: spring 320ms cubic-bezier(0.34,1.56,0.64,1);
}
.wm-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--bd); gap: 8px; }
.wm-addr { font-size: 13px; color: var(--t1); font-weight: 600; font-family: var(--mono); }
.wm-copy { background: var(--bg3); color: var(--t2); border: 1px solid var(--bd); border-radius: 6px; padding: 4px 10px; font-size: 11px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.wm-copy:hover { background: var(--acc-soft); color: var(--acc); border-color: var(--acc); }
.wm-x {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--bd);
  color: var(--t2);
  font-size: 16px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wm-x:hover { background: var(--acc); color: #000; border-color: var(--acc); }
.wm-balance { font-size: 22px; font-weight: 800; color: var(--acc); font-family: var(--mono); margin: 12px 0; }
.wm-actions { display: flex; flex-direction: column; gap: 4px; }
.wm-link { padding: 10px 12px; background: var(--bg1); border: 1px solid var(--bd); border-radius: 8px; color: var(--t2); font-size: 13px; font-weight: 500; text-align: left; transition: all var(--tr); display: block; }
.wm-link:hover { background: var(--bg3); color: var(--t1); }
.wm-link.danger:hover { color: var(--red); border-color: var(--red); background: rgba(248,113,113,0.08); }

/* ============== BOTTOM NAV (mobile) ============== */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(6,6,8,0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--bd);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.bottom-nav .bn-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  color: var(--t3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color var(--tr-fast);
  position: relative;
}
.bottom-nav .bn-link svg { width: 20px; height: 20px; }
.bottom-nav .bn-link:hover { color: var(--t1); }
.bottom-nav .bn-link.active {
  color: var(--acc);
}
.bottom-nav .bn-link.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 2px;
  background: var(--acc);
  border-radius: 0 0 2px 2px;
  box-shadow: 0 0 8px var(--acc);
}
@media (min-width: 880px) { .bottom-nav { display: none; } }
@media (max-width: 879px) {
  body { padding-bottom: 64px; }
  main { padding-bottom: 80px; }
  .footer { padding-bottom: 80px; }
}

/* ============== FOOTER ============== */
.footer {
  border-top: 1px solid var(--bd);
  padding: 32px 0 60px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 720px) {
  .footer-inner { padding: 0 32px; flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px;
}
.footer-brand strong { font-weight: 800; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--t2); font-size: 13px; transition: color var(--tr-fast); }
.footer-links a:hover { color: var(--acc); }
.footer-meta { font-size: 12px; color: var(--t3); }

/* ============== SCROLLBAR ============== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg1); }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--bg4); }
