/* ============================================================
   CADENCE — Music Capital Marketplace
   Design tokens + base + components
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Render native controls (selects, option popups, scrollbars) dark to match the theme */
  color-scheme: dark;

  /* ---- Surfaces (cool matte charcoal) ---- */
  --bg:          oklch(0.155 0.010 256);
  --bg-grad:     oklch(0.135 0.012 262);
  --surface-1:   oklch(0.193 0.012 256);
  --surface-2:   oklch(0.228 0.014 256);
  --surface-3:   oklch(0.265 0.015 256);
  --border:      oklch(0.305 0.014 256);
  --border-soft: oklch(0.255 0.012 256);

  /* ---- Text ---- */
  --text:      oklch(0.965 0.004 256);
  --text-dim:  oklch(0.760 0.012 256);
  --text-mute: oklch(0.580 0.012 256);
  --text-faint:oklch(0.460 0.012 256);

  /* ---- Accents ---- */
  --blue:        oklch(0.660 0.155 256);
  --blue-bright: oklch(0.730 0.165 252);
  --blue-dim:    oklch(0.520 0.110 256);
  --green:       oklch(0.755 0.155 158);
  --green-bright:oklch(0.820 0.165 158);
  --red:         oklch(0.660 0.190 22);
  --red-bright:  oklch(0.720 0.195 22);
  --gold:        oklch(0.825 0.110 88);

  /* ---- Glows / tints ---- */
  --blue-glow:  oklch(0.660 0.155 256 / 0.18);
  --green-glow: oklch(0.755 0.155 158 / 0.16);
  --blue-tint:  oklch(0.660 0.155 256 / 0.10);
  --green-tint: oklch(0.755 0.155 158 / 0.10);
  --red-tint:   oklch(0.660 0.190 22 / 0.12);

  /* ---- Type ---- */
  --font-ui:  'Hanken Grotesk', system-ui, sans-serif;
  --font-num: 'JetBrains Mono', ui-monospace, monospace;

  /* ---- Geometry ---- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-1: 0 1px 0 oklch(1 0 0 / 0.03) inset, 0 2px 8px oklch(0 0 0 / 0.35);
  --shadow-2: 0 1px 0 oklch(1 0 0 / 0.04) inset, 0 12px 40px oklch(0 0 0 / 0.45);
  --shadow-pop: 0 20px 60px oklch(0 0 0 / 0.55);

  /* ---- Layout ---- */
  --sidebar-w: 232px;
  --topbar-h: 64px;
  --maxw: 1480px;

  /* ---- density (driven by tweak) ---- */
  --density: 1;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

body {
  font-family: var(--font-ui);
  background:
    radial-gradient(1200px 600px at 78% -8%, var(--blue-glow), transparent 60%),
    radial-gradient(900px 520px at 8% 108%, var(--green-glow), transparent 62%),
    linear-gradient(180deg, var(--bg-grad), var(--bg) 42%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
}

::selection { background: var(--blue); color: #fff; }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--border); background-clip: content-box; }

/* numeric / tabular */
.num { font-family: var(--font-num); font-feature-settings: "tnum" 1, "zero" 1; letter-spacing: -0.02em; }
.pos { color: var(--green); }
.neg { color: var(--red); }
.muted { color: var(--text-mute); }
.dim { color: var(--text-dim); }

/* ============================================================
   APP SHELL
   ============================================================ */
#root { height: 100%; }
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ---- Sidebar ---- */
.sidebar {
  border-right: 1px solid var(--border-soft);
  background: linear-gradient(180deg, oklch(0.175 0.012 258 / 0.6), oklch(0.15 0.01 256 / 0.3));
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  gap: 6px;
  min-height: 0;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 18px; }
.brand-mark { width: 30px; height: 26px; display: block; flex: none; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.04em; }
.brand-name b { color: var(--text); }

.nav-group-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--text-faint); padding: 14px 10px 6px; font-weight: 700; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 11px; border-radius: var(--r-sm);
  color: var(--text-dim); font-size: 14px; font-weight: 500;
  cursor: pointer; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  user-select: none;
}
.nav-item svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav-item:hover { background: var(--surface-1); color: var(--text); }
.nav-item.active { background: var(--blue-tint); color: var(--text); border-color: oklch(0.66 0.155 256 / 0.28); }
.nav-item.active svg { color: var(--blue-bright); opacity: 1; }
.nav-badge { margin-left: auto; font-size: 10px; font-family: var(--font-num); background: var(--surface-2); color: var(--text-mute); padding: 2px 6px; border-radius: 999px; }

.sidebar-foot { margin-top: auto; }
.wallet-card {
  border: 1px solid var(--border-soft); border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--surface-1), oklch(0.17 0.012 256));
  padding: 13px; margin-top: 10px;
}
.wallet-card .lbl { font-size: 11px; color: var(--text-mute); letter-spacing: 0.02em; }
.wallet-card .bal { font-family: var(--font-num); font-size: 21px; font-weight: 600; margin-top: 3px; letter-spacing: -0.03em; }
.wallet-card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }

/* ---- Main column ---- */
.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar-h); flex: none;
  display: flex; align-items: center; gap: 16px;
  padding: 0 26px;
  border-bottom: 1px solid var(--border-soft);
  background: oklch(0.16 0.011 256 / 0.55);
  backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 30;
}
.search {
  flex: 1; max-width: 460px; position: relative;
  display: flex; align-items: center;
}
.search svg { position: absolute; left: 13px; width: 16px; height: 16px; color: var(--text-mute); pointer-events: none; }
.search input {
  width: 100%; height: 40px; padding: 0 14px 0 38px;
  background: var(--surface-1); border: 1px solid var(--border-soft);
  border-radius: 10px; color: var(--text); font-family: var(--font-ui); font-size: 14px;
  outline: none; transition: border-color .15s, background .15s;
}
.search input::placeholder { color: var(--text-faint); }
.search input:focus { border-color: var(--blue-dim); background: var(--surface-1); }
.topbar-spacer { flex: 1; }

.ticker-pill {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-num); font-size: 12.5px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--surface-1); border: 1px solid var(--border-soft);
}
.ticker-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 10px; background: var(--surface-1); border: 1px solid var(--border-soft);
  color: var(--text-dim); cursor: pointer; transition: .15s; position: relative;
}
.icon-btn:hover { color: var(--text); border-color: var(--border); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dotnote { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-bright); border: 2px solid var(--bg); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--blue), var(--green));
  display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #06120e; cursor: pointer;
}

.content { flex: 1; overflow-y: auto; min-height: 0; scroll-behavior: smooth; }
.page { max-width: var(--maxw); margin: 0 auto; padding: 30px 26px 80px; }

/* ============================================================
   PRIMITIVES
   ============================================================ */
.panel {
  background: linear-gradient(180deg, oklch(0.195 0.012 256 / 0.9), oklch(0.178 0.011 256 / 0.85));
  border: 1px solid var(--border-soft); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.panel-pad { padding: calc(20px * var(--density)); }

.panel-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-soft); }
.panel-head h3 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.panel-head .sub { font-size: 12px; color: var(--text-mute); }

h1.page-title { font-size: 27px; font-weight: 800; letter-spacing: -0.035em; margin: 0; }
.page-sub { color: var(--text-mute); font-size: 14px; margin-top: 4px; }

/* chips / tags */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  background: var(--surface-1); border: 1px solid var(--border-soft); color: var(--text-dim);
  cursor: pointer; transition: .15s; white-space: nowrap; user-select: none;
}
.chip:hover { color: var(--text); border-color: var(--border); }
.chip.active { background: var(--text); color: #0e1116; border-color: var(--text); }
.tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border-soft); }

/* delta badges */
.delta { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-num); font-size: 12.5px; font-weight: 600; padding: 3px 8px; border-radius: 7px; letter-spacing: -0.02em; }
.delta.up { color: var(--green-bright); background: var(--green-tint); }
.delta.down { color: var(--red-bright); background: var(--red-tint); }
.delta svg { width: 11px; height: 11px; }

/* buttons */
.btn {
  font-family: var(--font-ui); font-weight: 600; font-size: 14px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: .15s; display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  user-select: none;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 18px var(--blue-glow); }
.btn-primary:hover { background: var(--blue-bright); }
.btn-buy { background: var(--green); color: #04130c; box-shadow: 0 4px 20px var(--green-glow); }
.btn-buy:hover { background: var(--green-bright); }
.btn-sell { background: transparent; color: var(--red-bright); border-color: oklch(0.66 0.19 22 / 0.4); }
.btn-sell:hover { background: var(--red-tint); }
.btn-ghost { background: var(--surface-1); color: var(--text); border-color: var(--border-soft); }
.btn-ghost:hover { border-color: var(--border); background: var(--surface-2); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 20px; font-size: 15px; }

/* stat blocks */
.stat .k { font-size: 12px; color: var(--text-mute); font-weight: 500; }
.stat .v { font-family: var(--font-num); font-size: 22px; font-weight: 600; letter-spacing: -0.03em; margin-top: 3px; }
.stat .v.sm { font-size: 18px; }

.divider { height: 1px; background: var(--border-soft); border: 0; margin: 0; }
.kbd { font-family: var(--font-num); font-size: 11px; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border-soft); color: var(--text-mute); }

/* cover art placeholder */
.cover {
  position: relative; border-radius: var(--r-md); overflow: hidden; flex: none;
  background: var(--surface-2);
  isolation: isolate;
}
.cover .cv-grad { position: absolute; inset: 0; z-index: 0; }
.cover .cv-noise { position: absolute; inset: 0; z-index: 1; opacity: .5;
  background-image: repeating-linear-gradient(115deg, oklch(1 0 0 / 0.05) 0 1px, transparent 1px 7px); }
.cover .cv-label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 8px; font-family: var(--font-num); font-size: 9px; color: oklch(1 0 0 / 0.7); letter-spacing: 0.04em; }

/* loading shimmer for live values */
@keyframes flashUp { 0% { background: var(--green-tint); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: var(--red-tint); } 100% { background: transparent; } }
.flash-up { animation: flashUp .6s ease-out; border-radius: 5px; }
.flash-down { animation: flashDown .6s ease-out; border-radius: 5px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .4s cubic-bezier(.2,.7,.2,1) both; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); animation: pulse 1.6s ease-in-out infinite; }

/* equalizer bars (mini, animated) used near 'now playing' */
@keyframes eq { 0%,100% { height: 28%; } 50% { height: 92%; } }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 2.5px; background: var(--green); border-radius: 2px; height: 40%; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2){ animation-delay: .25s } .eq i:nth-child(3){ animation-delay: .5s } .eq i:nth-child(4){ animation-delay: .15s }

/* tables */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .12s; cursor: pointer; }
.tbl tbody tr:hover { background: var(--surface-1); }

/* segmented control */
.seg { display: inline-flex; background: var(--surface-1); border: 1px solid var(--border-soft); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { font-family: var(--font-num); font-size: 12px; font-weight: 600; color: var(--text-mute); background: transparent; border: 0; padding: 6px 11px; border-radius: 6px; cursor: pointer; transition: .13s; }
.seg button:hover { color: var(--text-dim); }
.seg button.on { background: var(--surface-3); color: var(--text); }

/* progress / allocation bar */
.alloc { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; display: flex; }
.alloc i { height: 100%; }

.grid-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); }

/* generic grid helpers */
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.gap8 { gap: 8px; } .gap6 { gap: 6px; } .gap16 { gap: 16px; } .gap20 { gap: 20px; } .gap24 { gap: 24px; }
.mt4{margin-top:4px}.mt8{margin-top:8px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt20{margin-top:20px}.mt24{margin-top:24px}
.grow { flex: 1; }

/* song card */
.song-card {
  background: linear-gradient(180deg, oklch(0.198 0.012 256 / 0.92), oklch(0.176 0.011 256 / 0.9));
  border: 1px solid var(--border-soft); border-radius: var(--r-lg);
  padding: 13px; cursor: pointer; transition: transform .18s cubic-bezier(.2,.7,.2,1), border-color .18s, box-shadow .18s;
  position: relative; overflow: hidden;
}
.song-card:hover { transform: translateY(-3px); border-color: var(--border); box-shadow: var(--shadow-2); }
.song-card .topline { display: flex; gap: 12px; }
.song-card .cover { width: 60px; height: 60px; }
.song-card .meta { min-width: 0; flex: 1; }
.song-card .title { font-weight: 700; font-size: 15px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-card .artist { font-size: 12.5px; color: var(--text-mute); margin-top: 1px; }
.song-card .price-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 14px; }
.song-card .price { font-family: var(--font-num); font-size: 19px; font-weight: 600; letter-spacing: -0.03em; }
.song-card .sparkbox { margin-top: 10px; height: 38px; }
.song-card .footrow { display: flex; justify-content: space-between; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--border-soft); font-size: 11.5px; color: var(--text-mute); }
.song-card .footrow .num { color: var(--text-dim); }

.play-fab {
  position: absolute; right: 13px; top: 13px;
  width: 30px; height: 30px; border-radius: 50%;
  background: oklch(0.16 0.01 256 / 0.7); backdrop-filter: blur(6px);
  border: 1px solid var(--border); display: grid; place-items: center; color: var(--text);
  opacity: 0; transform: scale(.85); transition: .18s;
}
.song-card:hover .play-fab { opacity: 1; transform: none; }
.play-fab svg { width: 13px; height: 13px; }

/* tooltip for charts */
.chart-tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: oklch(0.12 0.01 256 / 0.96); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 10px; font-size: 11px; box-shadow: var(--shadow-pop);
  transform: translate(-50%, -120%); white-space: nowrap;
}
.chart-tip .tp { font-family: var(--font-num); font-size: 13px; font-weight: 600; }
.chart-tip .td { color: var(--text-mute); margin-top: 1px; }

/* responsive */
@media (max-width: 1180px) {
  .song-detail-grid { grid-template-columns: 1fr 1fr !important; }
  .sd-right { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .mobile-tabbar { display: flex !important; }
  .content { padding-bottom: 76px; }
  .song-detail-grid { grid-template-columns: 1fr !important; }
  .hide-sm { display: none !important; }
}
@media (max-width: 620px) {
  .page { padding: 20px 14px 90px; }
  .topbar { padding: 0 14px; }
  .hide-xs { display: none !important; }
}

/* mobile bottom tab bar */
.mobile-tabbar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  height: 64px; padding-bottom: env(safe-area-inset-bottom);
  background: oklch(0.16 0.011 256 / 0.92); backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-soft);
  align-items: center; justify-content: space-around;
}
.mobile-tabbar .mt { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-mute); font-size: 10px; font-weight: 600; cursor: pointer; }
.mobile-tabbar .mt svg { width: 21px; height: 21px; }
.mobile-tabbar .mt.active { color: var(--blue-bright); }

/* now playing bar (bottom, when a song is playing) */
.nowplaying {
  position: fixed; bottom: 0; left: var(--sidebar-w); right: 0; z-index: 40;
  height: 66px; padding: 0 22px;
  background: oklch(0.14 0.011 256 / 0.94); backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 16px;
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.nowplaying.show { transform: none; }
@media (max-width: 980px) { .nowplaying { left: 0; bottom: 64px; } }

/* toast */
.toast-wrap { position: fixed; top: 78px; right: 22px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: oklch(0.18 0.012 256 / 0.97); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 16px; box-shadow: var(--shadow-pop); min-width: 280px; max-width: 360px;
  display: flex; gap: 12px; align-items: flex-start;
  animation: toastIn .35s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(20px) scale(.97); } to { opacity: 1; transform: none; } }
.toast .ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.toast .ic svg { width: 17px; height: 17px; }
.toast .t { font-weight: 700; font-size: 13.5px; }
.toast .d { font-size: 12.5px; color: var(--text-mute); margin-top: 2px; }

/* modal */
.modal-back { position: fixed; inset: 0; z-index: 90; background: oklch(0.08 0.01 256 / 0.7); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; animation: fadeUp .2s both; }
.modal { width: 100%; max-width: 420px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-pop); overflow: hidden; }

/* range input (used in trading panels + tweaks) */
input[type="range"].rng { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 999px; background: var(--surface-3); outline: none; }
input[type="range"].rng::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--text); cursor: pointer; box-shadow: 0 2px 8px oklch(0 0 0 / 0.5); border: 3px solid var(--surface-1); }
input[type="range"].rng.green::-webkit-slider-thumb { background: var(--green); }

/* numeric input */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--text-mute); font-weight: 500; }
.input {
  display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 0 12px; height: 46px; transition: border-color .15s;
}
.input:focus-within { border-color: var(--blue-dim); }
.input .pre { color: var(--text-mute); font-family: var(--font-num); font-size: 16px; }
.input input { flex: 1; background: transparent; border: 0; outline: none; color: var(--text); font-family: var(--font-num); font-size: 16px; font-weight: 600; width: 100%; text-align: right; letter-spacing: -0.02em; }
.input select { flex: 1; background: transparent; border: 0; outline: none; color: var(--text); font-family: var(--font-ui); font-size: 14px; font-weight: 600; width: 100%; cursor: pointer; }
.input select option { background: var(--surface-2); color: var(--text); }
.input .suf { color: var(--text-mute); font-size: 12px; }
.stepper { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qbtn { font-family: var(--font-num); font-size: 12px; font-weight: 600; padding: 7px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border-soft); color: var(--text-dim); cursor: pointer; transition: .13s; }
.qbtn:hover { color: var(--text); border-color: var(--border); }

/* buy/sell tab */
.bs-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--surface-2); border-radius: 11px; padding: 4px; }
.bs-tabs button { font-weight: 700; font-size: 14px; padding: 10px; border-radius: 8px; border: 0; background: transparent; color: var(--text-mute); cursor: pointer; transition: .15s; }
.bs-tabs button.buy.on { background: var(--green); color: #04130c; }
.bs-tabs button.sell.on { background: var(--red); color: #fff; }

.summary-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; }
.summary-row .k { color: var(--text-mute); }
.summary-row .v { font-family: var(--font-num); font-weight: 600; }
.summary-row.total { border-top: 1px solid var(--border-soft); margin-top: 6px; padding-top: 12px; font-size: 15px; }

/* activity feed */
.feed-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.feed-item:last-child { border-bottom: 0; }
.feed-dot { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; font-family: var(--font-num); font-size: 10px; font-weight: 700; }
.feed-dot.buy { background: var(--green-tint); color: var(--green-bright); }
.feed-dot.sell { background: var(--red-tint); color: var(--red-bright); }

/* hero marquee on marketplace */
.hero {
  border-radius: var(--r-xl); overflow: hidden; position: relative;
  border: 1px solid var(--border-soft);
  background: linear-gradient(110deg, oklch(0.2 0.03 262), oklch(0.17 0.012 256) 55%);
  padding: 30px 32px; display: flex; align-items: center; gap: 28px;
}
.hero .glowblob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
