/* ═══════════════════════════════════════════════════════════
   CLOUT EXCHANGE — style.css v4
   Design system: see CLAUDE.md for full token reference
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Caveat:wght@500;700&family=DM+Mono:wght@400;500&family=Outfit:wght@300;400;500;600;700;800&display=swap');

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

:root {
  /* Background scale */
  --bg:    #0d0b12;
  --bg2:   #15131d;
  --bg3:   #1c1929;
  --bg4:   #272234;
  --bg5:   #332c45;

  /* Text scale */
  --ink:   #f5f3fb;
  --ink2:  #d8d3e8;
  --mid:   #9a93b2;
  --mid2:  #6b6483;

  /* Brand accent */
  --acc:   #b8a3fc;
  --acc2:  #9a82f2;
  --glow:  rgba(154,130,242,.45);

  /* Signals */
  --pos:   #7fe3a8;
  --neg:   #fb8c7e;
  --pos-d: rgba(127,227,168,.14);
  --neg-d: rgba(251,140,126,.14);

  /* Gold (Clout / Established) */
  --gold:  #f3c34e;
  --gold-d: rgba(243,195,78,.14);

  /* Tier colors */
  --t1:    #f3c34e;   /* Established — gold */
  --t2:    #b8a3fc;   /* Rising — lavender */
  --t3:    #ff7ec6;   /* Underground — pink */
  --t4:    #5fe6cf;   /* Unknown — mint */
  --t1-d:  rgba(243,195,78,.14);
  --t2-d:  rgba(184,163,252,.14);
  --t3-d:  rgba(255,126,198,.14);
  --t4-d:  rgba(95,230,207,.14);

  /* Lines */
  --line:  rgba(184,163,252,.13);
  --line2: rgba(184,163,252,.26);
  --line3: rgba(184,163,252,.40);

  /* Typography */
  --disp:  'Bebas Neue', cursive;
  --sans:  'Outfit', sans-serif;
  --mono:  'DM Mono', monospace;
  --hand:  'Caveat', cursive;

  /* Radius */
  --r-s:  11px;
  --r:    16px;
  --r-l:  22px;
  --r-xl: 30px;

  /* Motion */
  --dur:  .36s;
  --ease: cubic-bezier(.22,.61,.36,1);

  /* Layout */
  --sb-w:       248px;
  --sb-w-slim:  78px;
  --topbar-h:   64px;
  --tabbar-h:   68px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg5); border-radius: 2px; }
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
button { cursor: pointer; font-family: var(--sans); }
a { text-decoration: none; color: inherit; }

/* ── AUTH SCREENS ── */
.screen {
  position: fixed; inset: 0;
  display: none; align-items: center; justify-content: center;
  z-index: 900;
  background: var(--bg);
}
.screen.show { display: flex; }

/* Auth split layout */
.auth-layout {
  display: flex;
  width: 100%; height: 100vh;
}

/* Left brand panel */
.auth-brand-panel {
  flex: 1;
  position: relative;
  display: none; /* hidden on mobile */
  flex-direction: column; justify-content: center;
  padding: 60px 72px;
  overflow: hidden;
}
.auth-brand-panel::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(184,163,252,.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(243,195,78,.07) 0%, transparent 60%);
  pointer-events: none;
}
.ab-logo {
  font-family: var(--disp); font-size: 26px; letter-spacing: 3px;
  color: var(--ink); margin-bottom: 48px; position: relative; z-index: 1;
}
.ab-logo span { color: var(--acc); }
.ab-logo-img {
  width: auto; height: 56px; margin-bottom: 48px;
  position: relative; z-index: 1; object-fit: contain;
}
.ab-headline {
  font-family: var(--disp); font-size: 72px; line-height: .95; letter-spacing: 1px;
  color: var(--ink); margin-bottom: 24px; position: relative; z-index: 1;
}
.ab-tagline {
  font-size: 16px; color: var(--mid); line-height: 1.75;
  margin-bottom: 48px; position: relative; z-index: 1;
}
.ab-facts {
  display: flex; gap: 40px; position: relative; z-index: 1;
}
.ab-fact { display: flex; flex-direction: column; gap: 4px; }
.ab-fact-num {
  font-family: var(--mono); font-size: 28px; font-weight: 500; color: var(--gold);
}
.ab-fact-label { font-size: 11px; color: var(--mid2); text-transform: uppercase; letter-spacing: .6px; }

/* Right auth card panel */
.auth-card-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 32px;
  width: 100%;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--bg2); border: 1px solid var(--line2);
  border-radius: var(--r-xl); padding: 44px 40px;
  position: relative; z-index: 1;
  animation: fadeUp var(--dur) var(--ease);
}
@media (min-width: 900px) {
  .auth-brand-panel { display: flex; }
  .auth-card-panel  { max-width: 520px; border-left: 1px solid var(--line); }
  .auth-card { border: none; background: transparent; padding: 20px 0; max-width: 380px; }
}

.auth-card-logo {
  font-family: var(--disp); font-size: 36px; letter-spacing: 3px; line-height: 1;
  margin-bottom: 8px;
}
.auth-card-logo span { color: var(--acc); }
.auth-card-title { font-family: var(--disp); font-size: 32px; letter-spacing: 1px; margin-bottom: 6px; }
.auth-card-sub  { font-size: 14px; color: var(--mid); line-height: 1.6; margin-bottom: 32px; }
.auth-footer    { font-size: 11px; color: var(--mid2); margin-top: 18px; text-align: center; }

/* Username picker card */
.auth-picker-card {
  width: 100%; max-width: 440px;
  background: var(--bg2); border: 1px solid var(--line2);
  border-radius: var(--r-xl); padding: 44px 40px;
  animation: fadeUp var(--dur) var(--ease);
  max-height: 90vh; overflow-y: auto;
}

/* Loading screen */
.loading-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 20px; position: relative; z-index: 1;
}
.ls-logo {
  font-family: var(--disp); font-size: 52px; letter-spacing: 4px; line-height: 1;
  animation: glow-pulse 2s ease-in-out infinite;
}
.ls-logo span { color: var(--acc); }
@keyframes glow-pulse {
  0%, 100% { opacity: 1; text-shadow: 0 0 20px transparent; }
  50%       { opacity: .85; text-shadow: 0 0 30px var(--glow); }
}
.ls-dots { display: flex; gap: 8px; }
.ls-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--bg5);
  animation: dot-bounce .9s ease-in-out infinite;
}
.ls-dot:nth-child(2) { animation-delay: .15s; background: var(--mid2); }
.ls-dot:nth-child(3) { animation-delay: .3s;  background: var(--acc); }
@keyframes dot-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.ls-text { font-size: 13px; color: var(--mid2); font-family: var(--mono); letter-spacing: .5px; }

/* Legacy ob-bg (used on username screen) */
.ob-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 20% 30%, rgba(184,163,252,.08) 0%, transparent 65%),
    radial-gradient(ellipse 50% 45% at 80% 70%, rgba(243,195,78,.05) 0%, transparent 65%);
}

.ob-logo {
  font-family: var(--disp);
  font-size: 48px;
  letter-spacing: 3px;
  margin-bottom: 12px;
  line-height: 1;
}
.ob-logo span { color: var(--acc); }

.ob-sub {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 32px;
}

.ob-footer {
  font-size: 11px;
  color: var(--mid2);
  margin-top: 24px;
  text-align: center;
}

.google-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 20px;
  background: #fff;
  border: none;
  border-radius: var(--r);
  color: #1f1f1f;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  transition: all .15s;
  margin-bottom: 12px;
}
.google-btn:hover { background: #f1f1f1; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.google-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.ob-btn {
  width: 100%;
  padding: 14px;
  background: var(--acc);
  border: none;
  border-radius: var(--r);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  transition: filter .15s;
  margin-top: 8px;
  box-shadow: 0 8px 26px var(--glow);
}
.ob-btn:hover { filter: brightness(1.1); }

/* ── FORM ELEMENTS ── */
.f-input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 13px 16px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  transition: border-color .15s;
  margin-bottom: 10px;
}
.f-input:focus { border-color: var(--acc); }
.f-input.sm { font-size: 14px; padding: 11px 14px; }
.f-textarea { resize: vertical; min-height: 80px; }
.f-hint { font-size: 11px; color: var(--mid2); margin-top: -4px; margin-bottom: 12px; }
.f-err  { font-size: 12px; color: var(--neg); margin-top: 6px; min-height: 16px; }

/* Loading spinner */
.auth-spinner {
  width: 32px; height: 32px;
  border: 2px solid rgba(184,163,252,.2);
  border-top-color: var(--acc);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { margin-top: 16px; font-size: 13px; color: var(--mid); }

/* ── ONBOARDING ── */
#onboard {
  position: fixed; inset: 0; z-index: 850;
  background: var(--bg);
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
}
#onboard.show { display: flex; }

.ob-step {
  display: none; flex-direction: column; align-items: center;
  width: 100%; max-width: 420px;
  padding: 0 24px;
  text-align: center;
  animation: fadeUp var(--dur) var(--ease);
}
.ob-step.active { display: flex; }

.ob-step-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mid2);
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.ob-step-icon { font-size: 56px; margin-bottom: 18px; }
.ob-step-title {
  font-family: var(--disp);
  font-size: 42px;
  letter-spacing: 2px;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1;
}
.ob-step-body { font-size: 15px; color: var(--mid); line-height: 1.75; margin-bottom: 32px; }
.ob-hand { font-family: var(--hand); font-size: 26px; color: var(--acc); line-height: 1.4; }

.ob-tier-list { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-bottom: 28px; }
.ob-tier-row {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--r-s); padding: 14px 16px;
}
.ob-tier-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.ob-tier-text { flex: 1; }
.ob-tier-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 3px; }
.ob-tier-name  { font-weight: 700; font-size: 14px; }
.ob-tier-range { font-family: var(--mono); font-size: 11px; color: var(--mid); flex-shrink: 0; margin-left: 8px; }
.ob-tier-desc  { font-size: 12px; color: var(--mid); line-height: 1.5; }

.ob-draft-search {
  width: 100%; margin-bottom: 12px;
  background: var(--bg3); border: 1px solid var(--line2);
  border-radius: var(--r-s); padding: 11px 14px;
  color: var(--ink); font-family: var(--sans); font-size: 14px;
  outline: none; transition: border-color .15s;
}
.ob-draft-search:focus { border-color: var(--acc); }
.ob-draft-search::placeholder { color: var(--mid2); }
.ob-draft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-bottom: 24px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.ob-draft-card {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 12px;
  cursor: pointer; transition: all .2s;
  position: relative; text-align: left;
}
.ob-draft-card:hover { border-color: var(--line2); transform: translateY(-2px); }
.ob-draft-card.selected { border-color: var(--acc); background: rgba(184,163,252,.08); }
.ob-draft-card.selected::after {
  content: '✓';
  position: absolute; top: 8px; right: 10px;
  font-size: 12px; color: var(--acc); font-weight: 700;
}
.odc-name { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.odc-tier { font-size: 10px; }
.odc-price { font-family: var(--mono); font-size: 12px; color: var(--gold); margin-top: 6px; }

.ob-skip-link {
  font-size: 12px; color: var(--mid2);
  background: none; border: none;
  text-decoration: underline; cursor: pointer;
  margin-top: 12px;
}

/* ── APP SHELL ── */
#app {
  display: none;
  min-height: 100vh;
}
#app.show {
  display: flex;
}

/* ── SIDEBAR ── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sb-w);
  height: 100vh;
  background: var(--bg2);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  z-index: 200;
  transition: width var(--dur) var(--ease);
  overflow: hidden;
}
.sidebar.collapsed { width: var(--sb-w-slim); }

.sb-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.sb-logo {
  font-family: var(--disp);
  font-size: 26px;
  letter-spacing: 3px;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}
.sb-logo span { color: var(--acc); }

.sb-toggle {
  width: 28px; height: 28px;
  background: var(--bg3); border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--mid);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .15s;
}
.sb-toggle:hover { border-color: var(--line2); color: var(--ink); }

/* Sidebar nav */
.sb-nav {
  padding: 12px 10px;
  display: flex; flex-direction: column; gap: 2px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.sn-item {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 12px;
  background: none; border: none;
  border-radius: var(--r-s);
  color: var(--mid);
  font-size: 14px; font-weight: 600;
  width: 100%;
  text-align: left;
  transition: all .15s;
  white-space: nowrap;
  position: relative;
}
.sn-item:hover { background: var(--bg3); color: var(--ink2); }
.sn-item.active { background: rgba(184,163,252,.12); color: var(--acc); }

.sn-icon {
  font-size: 18px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sn-label { transition: opacity var(--dur); }
.sidebar.collapsed .sn-label { opacity: 0; pointer-events: none; }
.sidebar.collapsed .sb-logo span:last-child { display: none; }

.sn-badge {
  position: absolute;
  right: 10px; top: 50%; transform: translateY(-50%);
  background: var(--neg); color: #fff;
  font-family: var(--mono);
  font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.sidebar.collapsed .sn-badge { right: 6px; top: 6px; transform: none; }

/* Sidebar bottom section */
.sb-bottom {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  padding: 10px 10px 6px;
  display: flex; flex-direction: column; gap: 2px;
}

.sb-wallet {
  margin: 8px 12px 6px;
  padding: 14px 16px;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: all var(--dur);
}
.sidebar.collapsed .sb-wallet { margin: 8px 8px 6px; padding: 12px 8px; text-align: center; }

.sw-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .8px;
  color: var(--mid2);
  text-transform: uppercase;
  margin-bottom: 4px;
  white-space: nowrap;
}
.sw-coin { color: var(--gold); font-size: 13px; }
.sw-val {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar.collapsed .sw-label,
.sidebar.collapsed .sw-coin-row { display: none; }
.sidebar.collapsed .sw-val { font-size: 12px; }

.sb-user-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px 14px;
  cursor: pointer;
  border-radius: var(--r-s);
  transition: background .15s;
  overflow: hidden;
}
.sb-user-pill:hover { background: var(--bg3); }
.sup-avatar {
  font-size: 22px;
  width: 36px; height: 36px;
  background: var(--bg4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sup-name { font-size: 13px; font-weight: 700; white-space: nowrap; }
.sup-rank { font-size: 10px; color: var(--gold); margin-top: 1px; white-space: nowrap; }
.sidebar.collapsed .sup-name, .sidebar.collapsed .sup-rank { display: none; }

/* ── CONTENT WRAP ── */
#content-wrap {
  margin-left: var(--sb-w);
  display: flex; flex-direction: column;
  min-height: 100vh;
  flex: 1;
  transition: margin-left var(--dur) var(--ease);
}
#app.sidebar-collapsed #content-wrap { margin-left: var(--sb-w-slim); }

/* ── TOPBAR ── */
#topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--topbar-h);
  background: rgba(13,11,18,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  padding: 0 28px;
  gap: 16px;
}

.tb-search {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 9px 16px;
  max-width: 380px;
}
.tb-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--ink); font-family: var(--sans); font-size: 14px;
}
.tb-search input::placeholder { color: var(--mid2); }
.tb-search-icon { color: var(--mid2); font-size: 14px; }

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

.balance-pill {
  display: flex; align-items: center; gap: 7px;
  background: var(--gold-d);
  border: 1px solid rgba(243,195,78,.25);
  border-radius: var(--r-xl);
  padding: 7px 16px;
}
.bp-coin { font-size: 15px; }
.bp-val {
  font-family: var(--mono);
  font-size: 14px; font-weight: 500;
  color: var(--gold);
}

/* Mobile logo in topbar */
.tb-logo {
  font-family: var(--disp);
  font-size: 22px; letter-spacing: 2px;
  display: none;
  cursor: pointer;
}
.tb-logo span { color: var(--acc); }

/* Bell button (mobile topbar) */
.tb-bell-btn {
  display: none;
  position: relative;
  width: 38px; height: 38px;
  background: var(--bg3); border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center; justify-content: center;
  font-size: 17px;
  transition: background .15s;
}
.tb-bell-btn:hover { background: var(--bg4); }

/* Avatar button */
.tb-avatar-btn {
  width: 38px; height: 38px;
  background: var(--bg4); border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.notif-badge {
  position: absolute;
  top: 3px; right: 3px;
  background: var(--neg); color: #fff;
  font-family: var(--mono);
  font-size: 8px; font-weight: 700;
  min-width: 14px; height: 14px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 1.5px solid var(--bg);
}

/* User dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px); right: 0;
  background: var(--bg2); border: 1px solid var(--line2);
  border-radius: var(--r-l);
  padding: 8px;
  min-width: 200px;
  z-index: 400;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  display: none;
}
.user-dropdown.open { display: block; animation: fadeUp .2s var(--ease); }
.ud-head { padding: 10px 12px 4px; font-size: 14px; font-weight: 700; }
.ud-rank { padding: 0 12px 10px; font-size: 11px; color: var(--gold); }
.ud-sep { border: none; border-top: 1px solid var(--line); margin: 4px 0; }
.ud-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 12px;
  background: none; border: none; border-radius: 8px;
  color: var(--ink2); font-size: 13px; font-weight: 500;
  text-align: left; transition: background .1s;
}
.ud-item:hover { background: var(--bg3); }
.ud-item.danger { color: var(--neg); }

/* ── NOTIFICATION PANEL ── */
.notif-panel {
  position: fixed;
  z-index: 350;
  background: var(--bg2); border: 1px solid var(--line2);
  border-radius: var(--r-l);
  padding: 8px;
  width: 340px;
  max-height: 420px;
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  display: none;
}
.notif-panel.open { display: block; animation: fadeUp .2s var(--ease); }

/* Desktop: position near sidebar bell button */
@media (min-width: 769px) {
  .notif-panel {
    top: auto;
    bottom: 160px;
    left: calc(var(--sb-w) + 16px);
  }
  #app.sidebar-collapsed .notif-panel { left: calc(var(--sb-w-slim) + 16px); }
}

.notif-panel-head {
  padding: 8px 12px 10px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--mid);
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.notif-item {
  padding: 11px 12px; border-radius: 10px;
  cursor: pointer; transition: background .1s;
  border: 1px solid transparent; margin-bottom: 2px;
}
.notif-item:hover { background: var(--bg3); }
.notif-item.unread { border-color: var(--line); background: var(--bg3); }
.ni-title { font-size: 13px; font-weight: 600; }
.ni-msg   { font-size: 11px; color: var(--mid); margin-top: 2px; line-height: 1.4; }
.ni-time  { font-size: 10px; color: var(--mid2); margin-top: 4px; font-family: var(--mono); }
.notif-empty { padding: 32px; text-align: center; font-size: 13px; color: var(--mid2); }

/* ── MAIN CONTENT ── */
#main {
  padding: 28px 34px 60px;
  width: 100%;
  /* No max-width — fills all available space so the UI scales with browser zoom */
}
.view { display: none; animation: fadeIn .2s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.view-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.view-title {
  font-family: var(--disp);
  font-size: 40px; letter-spacing: 1.5px; line-height: 1;
  color: var(--ink);
}
.view-sub { font-size: 13px; color: var(--mid); margin-top: 6px; }

/* ── FILTER BAR ── */
.filter-bar { display: flex; gap: 6px; flex-wrap: wrap; }
.fb {
  padding: 7px 16px;
  background: none; border: 1px solid var(--line);
  border-radius: var(--r-xl);
  color: var(--mid);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
  transition: all .15s;
}
.fb:hover { border-color: var(--line2); color: var(--ink2); }
.fb.active {
  background: rgba(184,163,252,.12);
  border-color: var(--acc);
  color: var(--acc);
}

/* ── MOVERS STRIP ── */
.movers-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.mover-card {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.mover-card:hover { border-color: var(--line2); transform: translateY(-2px); }
.mc-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--mid2); margin-bottom: 8px; }
.mc-artist { font-size: 14px; font-weight: 700; }
.mc-price { font-family: var(--mono); font-size: 17px; font-weight: 500; color: var(--gold); margin-top: 4px; }
.mc-chg { display: inline-flex; align-items: center; margin-top: 6px; }

/* ── ARTIST GRID ── */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
  gap: 14px;
}

/* ── ARTIST CARD ── */
.artist-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

/* Top accent bar — fades at ends */
.artist-card::before {
  content: '';
  position: absolute; top: 0; left: 14px; right: 14px;
  height: 2.5px; border-radius: 0 0 3px 3px;
  z-index: 2; pointer-events: none;
}
.artist-card.t1::before { background: linear-gradient(to right, transparent, var(--t1) 30%, var(--t1) 70%, transparent); }
.artist-card.t2::before { background: linear-gradient(to right, transparent, var(--t2) 30%, var(--t2) 70%, transparent); }
.artist-card.t3::before { background: linear-gradient(to right, transparent, var(--t3) 30%, var(--t3) 70%, transparent); }
.artist-card.t4::before { background: linear-gradient(to right, transparent, var(--t4) 30%, var(--t4) 70%, transparent); }

.artist-card:hover { transform: translateY(-4px); border-color: var(--line2); }
.artist-card.t1:hover { box-shadow: 0 12px 32px rgba(243,195,78,.18); }
.artist-card.t2:hover { box-shadow: 0 12px 32px rgba(184,163,252,.18); }
.artist-card.t3:hover { box-shadow: 0 12px 32px rgba(255,126,198,.18); }
.artist-card.t4:hover { box-shadow: 0 12px 32px rgba(95,230,207,.18); }
.artist-card:active { transform: scale(.985); }

/* Holographic foil on T1 */
.artist-card.t1 .ac-cover::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.1) 45%, rgba(255,255,255,.05) 50%, transparent 55%);
  background-size: 200% 200%;
  animation: foil 3.5s ease-in-out infinite;
  pointer-events: none; z-index: 3;
}
@keyframes foil {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 150% 150%; }
  100% { background-position: 0% 0%; }
}

/* ── COVER ART AREA ── */
.ac-cover {
  position: relative;
  height: 152px;
  overflow: hidden;
  background: #0a0810;
}

/* Grain overlay */
.ac-cover::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: .08;
  mix-blend-mode: overlay;
  pointer-events: none; z-index: 4;
}

.cover-bg { position: absolute; inset: 0; z-index: 0; }
.cover-motif { position: absolute; inset: 0; z-index: 1; opacity: .07; }
.cover-shade {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 72px;
  background: linear-gradient(to top, rgba(10,8,16,.9) 0%, transparent 100%);
  z-index: 2; pointer-events: none;
}
.cover-num {
  position: absolute; top: 10px; left: 12px; z-index: 5;
  font-family: var(--disp); font-size: 13px; letter-spacing: 1px;
  color: rgba(255,255,255,.2);
}
.cover-initials {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -56%);
  font-family: var(--disp); font-size: 88px; line-height: 1;
  letter-spacing: -6px; z-index: 5;
  pointer-events: none;
}
.cover-tier-badge {
  position: absolute; bottom: 32px; left: 10px; z-index: 5;
  font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  padding: 3px 8px; border-radius: var(--r-xl);
  background: rgba(13,11,18,.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
}
.cover-ribbon {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  font-size: 10px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--r-xl);
  background: rgba(13,11,18,.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--ink2); white-space: nowrap;
}
.ac-spark {
  position: absolute; bottom: 2px; left: 0; right: 0;
  width: 100%; height: 28px;
  z-index: 5; pointer-events: none;
}

/* Motif patterns */
.motif-rings { background-image: repeating-radial-gradient(circle at 50% 50%, transparent 20px, transparent 23px, white 23px, white 24px); }
.motif-bars  { background-image: repeating-linear-gradient(90deg, white 0, white 1px, transparent 1px, transparent 20px); }
.motif-dots  { background-image: radial-gradient(circle, white 1.5px, transparent 1.5px); background-size: 14px 14px; }
.motif-waves { background-image: repeating-linear-gradient(-45deg, transparent 0, transparent 6px, white 6px, white 7px); }
.motif-grid  {
  background-image: linear-gradient(white 1px, transparent 1px), linear-gradient(90deg, white 1px, transparent 1px);
  background-size: 20px 20px;
}
.motif-burst { background-image: repeating-conic-gradient(transparent 0deg, white .5deg, transparent 1deg, transparent 10deg); background-position: 50% 50%; }

/* ── CARD BODY ── */
.ac-body { padding: 12px 14px 8px; }
.ac-name { font-size: 16.5px; font-weight: 800; letter-spacing: -.2px; }
.ac-meta { font-size: 11px; color: var(--mid); margin-top: 3px; }

.ac-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px 14px;
}
.ac-price-group { display: flex; align-items: baseline; gap: 6px; }
.ac-coin { color: var(--gold); font-size: 14px; font-weight: 700; }
.ac-price { font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--gold); }
.ac-buy-btn {
  width: 34px; height: 34px;
  background: var(--gold);
  border: none; border-radius: 50%;
  color: var(--bg); font-size: 20px; font-weight: 300; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: filter .15s, transform .15s;
  flex-shrink: 0;
}
.ac-buy-btn:hover { filter: brightness(1.1); transform: scale(1.08); }

/* Legacy artist marker (replaces the + buy button on the card) */
.ac-legacy-mark {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--line2);
  cursor: default;
}

/* Change badges */
.badge { font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: 5px; }
.up { background: var(--pos-d); color: var(--pos); }
.dn { background: var(--neg-d); color: var(--neg); }
.fl { background: var(--bg4); color: var(--mid); }

/* Tier badge colors */
.tier-t1 { color: var(--t1); border-color: rgba(243,195,78,.3); }
.tier-t2 { color: var(--t2); border-color: rgba(184,163,252,.3); }
.tier-t3 { color: var(--t3); border-color: rgba(255,126,198,.3); }
.tier-t4 { color: var(--t4); border-color: rgba(95,230,207,.3); }

/* ── SUGGEST FAB ── */
.suggest-fab {
  position: fixed; bottom: 30px; right: 30px;
  background: var(--bg3); border: 1px solid var(--line2);
  border-radius: var(--r-xl); padding: 12px 20px;
  font-size: 13px; font-weight: 700; color: var(--mid);
  transition: all .2s; z-index: 50;
  display: flex; align-items: center; gap: 8px;
}
.suggest-fab:hover { border-color: var(--acc); color: var(--acc); }

/* ── ARTIST DETAIL OVERLAY ── */
.artist-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: none; align-items: flex-start; justify-content: flex-end;
}
.artist-overlay.open { display: flex; }
.ao-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
}
.ao-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 520px;
  height: 100vh;
  background: var(--bg2);
  border-left: 1px solid var(--line2);
  overflow-y: auto;
  animation: slideInRight .28s var(--ease);
  display: flex; flex-direction: column;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: none; }
}

.ao-cover-hero {
  position: relative;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}
.ao-hero-bg { position: absolute; inset: 0; }
.ao-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,11,18,.2) 0%, rgba(13,11,18,.85) 100%);
}
.ao-hero-btns {
  position: absolute; top: 16px; left: 16px; right: 16px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 3;
}
.ao-back-btn, .ao-share-btn {
  width: 36px; height: 36px;
  background: rgba(13,11,18,.7); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border-radius: 50%;
  color: var(--ink); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.ao-back-btn:hover, .ao-share-btn:hover { background: rgba(13,11,18,.9); }
.ao-hero-content {
  position: absolute; bottom: 18px; left: 20px; right: 20px; z-index: 3;
}
.ao-artist-name {
  font-family: var(--disp); font-size: 48px; letter-spacing: 1px; line-height: 1;
}
.ao-artist-meta { font-size: 12px; color: var(--ink2); margin-top: 5px; }

/* Panel body */
.ao-body { padding: 20px; flex: 1; }

.ao-price-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  flex-wrap: wrap;
}
.ao-price {
  font-family: var(--mono); font-size: 38px; font-weight: 500;
  color: var(--gold);
}
.ao-price-coin { color: var(--gold); font-size: 20px; font-weight: 700; }

.ao-range-tabs {
  display: flex; gap: 4px; margin-bottom: 14px;
  background: var(--bg3); border-radius: var(--r-xl);
  padding: 4px; width: fit-content;
}
.rt-btn {
  padding: 5px 14px;
  background: none; border: none; border-radius: 20px;
  font-family: var(--mono); font-size: 11px; color: var(--mid);
  transition: all .15s;
}
.rt-btn.active { background: var(--bg2); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.3); }

.ao-chart-wrap {
  background: var(--bg3); border-radius: var(--r);
  padding: 16px; margin-bottom: 16px; height: 160px; position: relative;
}

.ao-owned-banner {
  background: rgba(127,227,168,.1);
  border: 1px solid rgba(127,227,168,.25);
  border-radius: var(--r); padding: 14px 16px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.aob-label { font-size: 11px; color: var(--pos); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.aob-val { font-family: var(--mono); font-size: 15px; font-weight: 500; }

.ao-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 16px;
}
.ao-stat {
  background: var(--bg3); border-radius: var(--r-s);
  padding: 14px 12px;
}
.aos-label { font-size: 10px; color: var(--mid2); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; }
.aos-val { font-family: var(--mono); font-size: 16px; font-weight: 500; }
.aos-sub { font-size: 10px; color: var(--mid2); margin-top: 2px; }

.ao-desc {
  font-size: 13px; color: var(--mid); line-height: 1.75;
  padding: 14px; background: var(--bg3);
  border-radius: var(--r-s); margin-bottom: 16px;
}

/* Legacy notice in artist detail */
.ao-legacy-note {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin-bottom: 16px;
  background: rgba(184,163,252,.07);
  border: 1px solid var(--line2);
  border-radius: var(--r-s);
}
.alm-icon  { font-size: 24px; flex-shrink: 0; }
.alm-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.alm-sub   { font-size: 12px; color: var(--mid); margin-top: 2px; }

/* Legacy label in the sticky trade bar (replaces buy/sell buttons) */
.ao-legacy-label {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px;
  font-size: 14px; font-weight: 700; color: var(--mid);
  background: var(--bg3);
  border: 1px solid var(--line2);
  border-radius: var(--r);
  cursor: default;
}
.ao-section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--mid2); margin-bottom: 10px;
}
.ao-links { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ao-link {
  font-size: 11px; font-weight: 600; padding: 5px 12px;
  border-radius: var(--r-s); border: 1px solid var(--line);
  color: var(--mid); transition: all .1s;
}
.ao-link:hover { border-color: var(--line2); color: var(--ink); }
.ao-link.spotify  { border-color: rgba(30,215,96,.3); color: #1ed760; }
.ao-link.instagram { border-color: rgba(225,48,108,.3); color: #e1306c; }
.ao-link.youtube  { border-color: rgba(255,0,0,.25); color: #ff4040; }

/* Holders list */
.holder-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px;
}
.holder-row:last-child { border-bottom: none; }
.holder-info { display: flex; align-items: center; gap: 8px; }
.holder-rank { font-size: 10px; color: var(--gold); font-family: var(--mono); }

/* Sticky bottom bar in panel */
.ao-sticky-bar {
  position: sticky; bottom: 0;
  background: var(--bg2);
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  display: flex; gap: 10px;
}

/* ── BUY SHEET ── */
.buy-sheet, .sell-sheet, .trade-receipt, .share-studio-overlay {
  position: fixed; inset: 0; z-index: 500;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.buy-sheet.open, .sell-sheet.open, .trade-receipt.open, .share-studio-overlay.open {
  display: flex;
}
.sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.75); backdrop-filter: blur(6px);
}
.sheet-card {
  position: relative; z-index: 1;
  background: var(--bg2); border: 1px solid var(--line2);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  width: 100%; max-width: 400px;
  display: flex; flex-direction: column; gap: 14px;
  animation: fadeUp .25s var(--ease);
}
.sheet-title {
  font-family: var(--disp); font-size: 28px; letter-spacing: 1px;
}
.sheet-sub { font-size: 13px; color: var(--mid); margin-top: -10px; }

/* Quantity controls */
.qty-row { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 36px; height: 36px;
  background: var(--bg3); border: 1px solid var(--line);
  border-radius: 10px; color: var(--ink);
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  transition: background .1s; flex-shrink: 0;
}
.qty-btn:hover { background: var(--bg4); }
.qty-input {
  flex: 1;
  background: var(--bg3); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px;
  color: var(--ink); font-family: var(--mono); font-size: 16px;
  text-align: center; outline: none; transition: border-color .15s;
}
.qty-input:focus { border-color: var(--acc); }
.qty-quick { display: flex; gap: 6px; }
.qq-btn {
  flex: 1; padding: 7px;
  background: var(--bg3); border: 1px solid var(--line);
  border-radius: 8px; color: var(--mid);
  font-size: 12px; font-weight: 700; font-family: var(--mono);
  transition: all .15s;
}
.qq-btn:hover { border-color: var(--acc); color: var(--acc); }

.cost-preview {
  background: var(--bg3); border-radius: var(--r);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.cp-row {
  display: flex; justify-content: space-between; align-items: center;
}
.cp-label { font-size: 12px; color: var(--mid); }
.cp-val   { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.cp-val.gold { color: var(--gold); }
.cp-val.pos  { color: var(--pos); }
.cp-val.neg  { color: var(--neg); }
.cp-sep { border: none; border-top: 1px solid var(--line); margin: 2px 0; }
.cp-total { font-family: var(--mono); font-size: 17px; font-weight: 500; color: var(--gold); }

.buy-warning {
  font-size: 12px; color: var(--neg);
  padding: 10px 12px; background: var(--neg-d);
  border-radius: 8px; border: 1px solid rgba(251,140,126,.2);
}

/* ── TRADE RECEIPT ── */
.receipt-card {
  position: relative; z-index: 1;
  background: var(--bg2); border: 1px solid var(--line2);
  border-radius: var(--r-xl); padding: 36px 28px;
  width: 100%; max-width: 400px;
  display: flex; flex-direction: column; align-items: center;
  gap: 18px; text-align: center;
  animation: fadeUp .3s var(--ease);
}
.receipt-stamp {
  font-family: var(--disp); font-size: 52px; letter-spacing: 3px;
  line-height: 1;
}
.receipt-stamp.win  { color: var(--pos); }
.receipt-stamp.buy  { color: var(--acc); }
.receipt-stamp.loss { color: var(--mid); }
.receipt-tagline { font-family: var(--hand); font-size: 22px; color: var(--mid); }
.receipt-value  {
  font-family: var(--mono); font-size: 38px; font-weight: 500;
}
.receipt-value.pos  { color: var(--pos); }
.receipt-value.neg  { color: var(--neg); }
.receipt-value.gold { color: var(--gold); }
.receipt-detail { font-size: 13px; color: var(--mid); line-height: 1.7; }
.receipt-mini-card {
  background: var(--bg3); border-radius: var(--r);
  padding: 14px 18px; width: 100%;
  display: flex; align-items: center; gap: 12px;
}
.rmc-initials { font-family: var(--disp); font-size: 28px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.rmc-info { text-align: left; }
.rmc-name { font-size: 14px; font-weight: 700; }
.rmc-tier { font-size: 10px; color: var(--mid); margin-top: 2px; }

/* Confetti particles */
.confetti-wrap {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none; border-radius: var(--r-xl);
}
.confetti-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  animation: confettiFall 2s ease-in forwards;
}
@keyframes confettiFall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(300px) rotate(720deg); opacity: 0; }
}

/* ── SHARE STUDIO ── */
.share-studio-card {
  position: relative; z-index: 1;
  background: var(--bg2); border: 1px solid var(--line2);
  border-radius: var(--r-xl); padding: 24px;
  width: 100%; max-width: 600px;
  display: flex; flex-direction: column; gap: 16px;
  animation: fadeUp .25s var(--ease);
}
.ss-title { font-family: var(--disp); font-size: 28px; letter-spacing: 1px; }
.card-preview-wrap { display: flex; justify-content: center; }
.card-preview-wrap canvas { max-height: 360px; width: auto; border-radius: 12px; }
.card-actions { display: flex; gap: 10px; }
.card-tip { font-size: 11px; color: var(--mid2); text-align: center; }

/* ── SUGGEST MODAL ── */
.suggest-modal {
  position: fixed; inset: 0; z-index: 500;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.suggest-modal.open { display: flex; }
.suggest-card {
  position: relative; z-index: 1;
  background: var(--bg2); border: 1px solid var(--line2);
  border-radius: var(--r-xl); padding: 28px 24px;
  width: 100%; max-width: 420px;
  display: flex; flex-direction: column; gap: 12px;
  animation: fadeUp .25s var(--ease);
}
.sg-title { font-family: var(--disp); font-size: 28px; letter-spacing: 1px; }
.sg-sub   { font-size: 13px; color: var(--mid); margin-top: -8px; line-height: 1.6; }

/* ── CTA BUTTONS ── */
.cta-btn {
  flex: 1; padding: 14px;
  background: var(--acc); border: none; border-radius: var(--r);
  color: var(--bg); font-family: var(--sans);
  font-size: 14px; font-weight: 800;
  letter-spacing: .2px;
  box-shadow: 0 8px 26px var(--glow);
  transition: filter .15s;
}
.cta-btn:hover:not(:disabled) { filter: brightness(1.1); }
.cta-btn:active:not(:disabled) { transform: scale(.99); }
.cta-btn:disabled { background: var(--bg4); color: var(--mid); cursor: not-allowed; box-shadow: none; }
.cta-btn.gold { background: var(--gold); color: var(--bg); box-shadow: 0 8px 26px rgba(243,195,78,.3); }
.cta-btn.gold:hover:not(:disabled) { filter: brightness(1.08); }

.ghost-btn {
  padding: 13px; background: none;
  border: 1px solid var(--line2); border-radius: var(--r);
  color: var(--ink2); font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  transition: all .15s;
}
.ghost-btn:hover { border-color: var(--line3); color: var(--ink); }
.ghost-btn.sm { padding: 8px 16px; font-size: 12px; }
.ghost-btn.danger { color: var(--neg); border-color: rgba(251,140,126,.3); }
.ghost-btn.danger:hover { background: var(--neg-d); }

.trade-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--mid2);
}

/* ── PORTFOLIO VIEW ── */
.port-hero {
  background: linear-gradient(135deg, rgba(184,163,252,.1), rgba(243,195,78,.05));
  border: 1px solid var(--line2);
  border-radius: var(--r-l);
  padding: 28px 30px;
  margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.port-hero::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(184,163,252,.15) 0%, transparent 70%);
  pointer-events: none;
}
.ph-label { font-size: 11px; color: var(--mid2); font-family: var(--mono); letter-spacing: .6px; text-transform: uppercase; margin-bottom: 8px; }
.ph-value { font-family: var(--mono); font-size: 46px; font-weight: 500; color: var(--ink); line-height: 1; }
.ph-coin  { color: var(--gold); font-size: 28px; font-weight: 700; vertical-align: middle; margin-right: 4px; }
.ph-change { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ph-chg-pct { font-family: var(--mono); font-size: 16px; font-weight: 500; }
.ph-chg-abs { font-family: var(--mono); font-size: 13px; color: var(--mid); }

.port-mini-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-bottom: 20px;
}
.pms-card {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px;
}
.pms-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--mid2); margin-bottom: 6px; }
.pms-val   { font-family: var(--mono); font-size: 20px; font-weight: 500; }
.pms-sub   { font-size: 11px; color: var(--mid2); margin-top: 3px; }

.port-share-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--bg3); border: 1px solid var(--line2);
  border-radius: var(--r-xl);
  font-size: 13px; font-weight: 700; color: var(--mid);
  transition: all .15s;
}
.port-share-btn:hover { border-color: var(--acc); color: var(--acc); }

/* Portfolio sub-tabs */
.port-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.pt {
  padding: 10px 18px;
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--mid);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  transition: all .15s;
}
.pt:hover { color: var(--ink2); }
.pt.active { color: var(--ink); border-bottom-color: var(--acc); }

/* Holdings table */
.holdings-table {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--r-l); overflow: hidden;
}
.ht-head, .h-row {
  display: grid;
  grid-template-columns: 2.5fr .6fr .9fr .9fr 1.2fr 80px;
  gap: 8px; padding: 12px 16px;
  align-items: center;
}
.ht-head {
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--mid2); border-bottom: 1px solid var(--line);
}
.h-row {
  border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background .1s;
}
.h-row:last-child { border-bottom: none; }
.h-row:hover { background: var(--bg3); }
.h-artist { display: flex; align-items: center; gap: 10px; }
.h-ava {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0;
}
.h-name { font-size: 13px; font-weight: 700; }
.h-tier { font-size: 10px; color: var(--mid2); margin-top: 1px; }
.h-val  { font-family: var(--mono); font-size: 13px; color: var(--ink2); }
.h-sell-btn {
  padding: 5px 0; background: none;
  border: 1px solid var(--line); border-radius: 7px;
  color: var(--mid); font-size: 11px; font-weight: 700;
  width: 100%; text-align: center; transition: all .15s;
}
.h-sell-btn:hover:not(:disabled) { background: var(--neg-d); border-color: var(--neg); color: var(--neg); }
.h-sell-btn:disabled { opacity: .3; cursor: not-allowed; }

/* Analytics */
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.an-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.an-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--mid2); margin-bottom: 8px; }
.an-val  { font-family: var(--mono); font-size: 22px; font-weight: 500; }
.an-sub  { font-size: 12px; color: var(--mid); margin-top: 4px; }

.archetype-card {
  background: linear-gradient(135deg, rgba(184,163,252,.1), rgba(154,130,242,.05));
  border: 1px solid rgba(184,163,252,.3);
  border-radius: var(--r-l); padding: 22px; margin-bottom: 16px;
}
.arc-eyebrow { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--mid2); margin-bottom: 4px; }
.arc-title { font-family: var(--disp); font-size: 32px; letter-spacing: 1px; color: var(--acc); }

.tier-dist-wrap { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 16px; }
.tier-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tier-bar-label { font-size: 12px; font-weight: 600; min-width: 90px; }
.tier-bar-track { flex: 1; height: 6px; background: var(--bg4); border-radius: 3px; overflow: hidden; }
.tier-bar-fill  { height: 100%; border-radius: 3px; transition: width .6s ease; }
.tier-bar-val   { font-family: var(--mono); font-size: 11px; color: var(--mid); min-width: 55px; text-align: right; }

/* Transaction history */
.tx-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.tx-item:last-child { border-bottom: none; }
.tx-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.tx-icon.buy  { background: var(--pos-d); }
.tx-icon.sell { background: var(--neg-d); }
.tx-info { flex: 1; }
.tx-name   { font-size: 13px; font-weight: 700; }
.tx-detail { font-size: 11px; color: var(--mid2); margin-top: 2px; }
.tx-right  { text-align: right; flex-shrink: 0; }
.tx-amount { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.tx-date   { font-size: 10px; color: var(--mid2); margin-top: 2px; }
.tx-pnl    { font-family: var(--mono); font-size: 11px; }
.load-more-btn {
  width: 100%; margin-top: 16px; padding: 12px;
  background: var(--bg2); border: 1px solid var(--line2);
  border-radius: var(--r); color: var(--mid);
  font-size: 13px; font-weight: 600;
  transition: all .15s;
}
.load-more-btn:hover { border-color: var(--line3); color: var(--ink); }

/* Digest */
.digest-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; margin-bottom: 12px; }
.dc-header { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--mid2); margin-bottom: 14px; }
.dc-perf { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dc-perf:last-child { border-bottom: none; }
.dp-info { display: flex; align-items: center; gap: 10px; }
.dp-name { font-size: 14px; font-weight: 700; }
.dp-qty  { font-size: 11px; color: var(--mid2); }
.dp-pct  { font-family: var(--mono); font-size: 14px; font-weight: 500; }

/* ── LEADERBOARD ── */
.lb-list { display: flex; flex-direction: column; gap: 8px; }
.lb-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 14px 18px;
  transition: all .15s; cursor: pointer;
}
.lb-row:hover { border-color: var(--line2); transform: translateX(2px); }
.lb-row.is-me { border-color: rgba(184,163,252,.35); background: rgba(184,163,252,.04); }
.lb-rank { font-family: var(--mono); font-size: 14px; color: var(--mid2); min-width: 28px; }
.r1 { color: var(--gold); font-size: 16px; }
.r2 { color: #c0c0c0; }
.r3 { color: #cd7f32; }
.lb-avatar { font-size: 24px; flex-shrink: 0; }
.lb-info   { flex: 1; min-width: 0; }
.lb-username  { font-size: 14px; font-weight: 700; }
.lb-rank-title { font-size: 11px; color: var(--gold); margin-top: 2px; }
.lb-archetype  { font-size: 10px; color: var(--mid2); }
.lb-tiers { display: flex; gap: 4px; margin-top: 4px; }
.lb-right { text-align: right; flex-shrink: 0; }
.lb-val { font-family: var(--mono); font-size: 15px; font-weight: 500; }
.lb-pnl { font-family: var(--mono); font-size: 11px; margin-top: 2px; }

/* ── SQUADS VIEW ── */
.squads-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 20px; text-align: center;
}
.se-title { font-family: var(--disp); font-size: 36px; letter-spacing: 2px; margin-bottom: 12px; }
.se-sub   { font-size: 14px; color: var(--mid); margin-bottom: 28px; }
.se-actions { display: flex; gap: 12px; }

/* Squad browse view */
.squads-browse { max-width: 640px; }
.sb-intro { margin-bottom: 22px; }
.sb-intro .se-title { font-size: 30px; margin-bottom: 8px; }
.sb-intro .se-sub { margin-bottom: 0; }
.sb-row { display: flex; gap: 10px; margin-bottom: 12px; }
.sb-row .f-input { flex: 1; }
.sb-section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--mid2); margin: 20px 0 12px;
}

.squads-form {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 24px;
  max-width: 480px;
}
.sf-title { font-family: var(--disp); font-size: 28px; letter-spacing: 1px; margin-bottom: 18px; }

.emoji-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ep-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg3); border: 1px solid var(--line);
  font-size: 20px;
  transition: all .15s;
}
.ep-btn:hover { border-color: var(--line2); }
.ep-btn.selected { border-color: var(--acc); background: rgba(184,163,252,.1); }

.type-toggle { display: flex; gap: 8px; margin-bottom: 12px; }
.tt-btn {
  flex: 1; padding: 10px;
  background: var(--bg3); border: 1px solid var(--line);
  border-radius: var(--r-s); color: var(--mid);
  font-size: 13px; font-weight: 700; transition: all .15s;
}
.tt-btn.active { border-color: var(--acc); color: var(--acc); background: rgba(184,163,252,.1); }

/* Squad room */
.squad-room { }
.sr-banner {
  background: var(--bg2); border: 1px solid var(--line2);
  border-radius: var(--r-l); padding: 24px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 16px;
}
.sr-emoji { font-size: 52px; flex-shrink: 0; }
.sr-name  { font-family: var(--disp); font-size: 36px; letter-spacing: 1px; }
.sr-code  { font-family: var(--mono); font-size: 12px; color: var(--mid); margin-top: 4px; }
.sr-copy-code {
  padding: 5px 12px; background: var(--bg3); border: 1px solid var(--line);
  border-radius: 20px; font-size: 11px; font-weight: 700; color: var(--mid);
  transition: all .15s; margin-left: 8px;
}
.sr-copy-code:hover { border-color: var(--acc); color: var(--acc); }

.squad-podium {
  display: grid; grid-template-columns: 1fr 1.15fr 1fr;
  gap: 10px; margin-bottom: 16px;
}
.podium-slot {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 18px 14px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; cursor: pointer; transition: all .15s;
}
.podium-slot:hover { border-color: var(--line2); }
.podium-slot.p1 { border-color: rgba(243,195,78,.35); order: 2; }
.podium-slot.p1 .ps-rank::before { content: '👑 '; }
.ps-avatar { font-size: 30px; margin-bottom: 6px; }
.ps-name   { font-size: 12px; font-weight: 700; }
.ps-val    { font-family: var(--mono); font-size: 13px; color: var(--gold); margin-top: 4px; }
.ps-rank   { font-family: var(--mono); font-size: 10px; color: var(--mid2); margin-bottom: 4px; }

.squad-standings { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.ss-head, .ss-row {
  display: grid; grid-template-columns: 40px 1fr 1fr 80px;
  gap: 10px; padding: 12px 16px; align-items: center;
}
.ss-head { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--mid2); border-bottom: 1px solid var(--line); }
.ss-row  { border-bottom: 1px solid var(--line); cursor: pointer; transition: background .1s; }
.ss-row:last-child { border-bottom: none; }
.ss-row:hover { background: var(--bg3); }
.ss-rank   { font-family: var(--mono); font-size: 13px; color: var(--mid); }
.ss-member { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.ss-val    { font-family: var(--mono); font-size: 13px; }
.ss-chg    { font-family: var(--mono); font-size: 12px; text-align: right; }

/* Public squad list */
.public-squad-card {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: all .15s; margin-bottom: 8px;
}
.public-squad-card:hover { border-color: var(--line2); }
.psc-emoji { font-size: 28px; flex-shrink: 0; }
.psc-name  { font-size: 14px; font-weight: 700; }
.psc-count { font-size: 11px; color: var(--mid); margin-top: 2px; }
.psc-code  { font-family: var(--mono); font-size: 11px; color: var(--mid2); margin-left: auto; }

/* ── EARN / TASKS ── */
.ref-hero {
  background: linear-gradient(135deg, rgba(184,163,252,.1), rgba(243,195,78,.06));
  border: 1px solid var(--line2);
  border-radius: var(--r-l); padding: 24px 26px;
  margin-bottom: 20px;
}
.rh-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--mid2); margin-bottom: 6px; }
.rh-title { font-family: var(--disp); font-size: 34px; letter-spacing: 1px; margin-bottom: 6px; }
.rh-sub   { font-size: 13px; color: var(--mid); margin-bottom: 16px; }

.rh-code-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg3); border: 1px dashed var(--line2);
  border-radius: var(--r); padding: 12px 16px; margin-bottom: 12px;
}
.rh-code { font-family: var(--mono); font-size: 16px; color: var(--acc); flex: 1; }
.rh-copy {
  padding: 7px 16px; background: var(--acc);
  border: none; border-radius: 8px;
  color: var(--bg); font-size: 12px; font-weight: 700;
  transition: filter .15s;
}
.rh-copy:hover { filter: brightness(1.1); }
.rh-stats { font-size: 12px; color: var(--mid); }

/* ── PROFILE ── */
.profile-header {
  display: flex; align-items: center; gap: 20px;
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 24px;
  margin-bottom: 16px;
}
.prof-avatar {
  font-size: 52px; width: 80px; height: 80px;
  background: var(--bg3); border-radius: 20px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.prof-info { flex: 1; }
.prof-name     { font-family: var(--disp); font-size: 32px; letter-spacing: .5px; }
.prof-username { font-size: 13px; color: var(--mid); margin-top: 2px; }
.prof-rank {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 3px 10px; background: var(--gold-d);
  border: 1px solid rgba(243,195,78,.2); border-radius: 4px;
  color: var(--gold); margin-top: 8px;
}
.prof-bio    { font-size: 13px; color: var(--mid); margin-top: 8px; line-height: 1.6; }
.prof-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.prof-badge  { font-size: 10px; font-weight: 700; padding: 3px 10px; background: var(--bg4); border: 1px solid var(--line); border-radius: 4px; color: var(--mid); }

.prof-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }

/* ── SETTINGS ── */
.settings-card {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 24px; max-width: 580px;
}
.set-section {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
  color: var(--mid2); margin: 20px 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.set-section:first-child { margin-top: 0; }
.set-field  { margin-bottom: 14px; }
.set-label  { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--mid2); margin-bottom: 7px; }
.set-sub    { font-size: 11px; color: var(--mid2); margin-top: 2px; }
.toggle-field { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--bg4); border-radius: 24px; cursor: pointer; transition: background .2s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; top: 3px;
  background: var(--mid); border-radius: 50%;
  transition: transform .2s, background .2s;
}
.toggle input:checked + .toggle-slider { background: var(--pos); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); background: #fff; }

/* ── STAT CARDS ── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.stat-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.sc-label  { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--mid2); margin-bottom: 8px; }
.sc-val    { font-family: var(--mono); font-size: 21px; font-weight: 500; }
.sc-sub    { font-size: 11px; color: var(--mid2); margin-top: 4px; }

/* ── LOGOUT MODAL ── */
.logout-modal {
  position: fixed; inset: 0; z-index: 600;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.logout-modal.open { display: flex; }
.logout-card {
  position: relative; z-index: 1;
  background: var(--bg2); border: 1px solid var(--line2);
  border-radius: var(--r-xl); padding: 32px 28px;
  width: 100%; max-width: 360px; text-align: center;
  animation: fadeUp .2s var(--ease);
}
.lm-title { font-family: var(--disp); font-size: 40px; letter-spacing: 2px; margin-bottom: 10px; }
.lm-sub   { font-size: 14px; color: var(--mid); line-height: 1.6; margin-bottom: 24px; }

/* ── COVER EMOJI PFP ── */
.cover-emoji-pfp {
  position: absolute;
  bottom: -14px; left: 14px; z-index: 6;
  width: 40px; height: 40px;
  background: var(--bg2);
  border: 2.5px solid var(--bg2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.ac-body { padding: 22px 14px 8px; } /* extra top padding for pfp overlap */

/* ── MISC ── */
.loading   { padding: 60px; text-align: center; color: var(--mid); font-size: 14px; }
.empty-state { padding: 60px; text-align: center; }
.es-icon  { font-size: 44px; margin-bottom: 14px; }
.es-title { font-size: 16px; font-weight: 700; color: var(--ink2); margin-bottom: 6px; }
.es-sub   { font-size: 13px; color: var(--mid); }

.tier-pill { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.tp1 { background: var(--t1-d); color: var(--t1); }
.tp2 { background: var(--t2-d); color: var(--t2); }
.tp3 { background: var(--t3-d); color: var(--t3); }
.tp4 { background: var(--t4-d); color: var(--t4); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  background: var(--bg2); border: 1px solid var(--line2);
  border-radius: var(--r-l); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px; max-width: 320px;
  transform: translateY(120%); opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.toast.show { transform: none; opacity: 1; }
#t-icon  { font-size: 20px; flex-shrink: 0; }
#t-title { font-size: 13px; font-weight: 700; }
#t-sub   { font-size: 11px; color: var(--mid); margin-top: 2px; }

/* ── MOBILE TAB BAR ── */
#tab-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--tabbar-h);
  background: rgba(13,11,18,.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  z-index: 200;
  padding: 0 8px env(safe-area-inset-bottom, 0);
}
.tb-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: none; border: none;
  color: var(--mid2); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
  padding: 8px 4px;
  transition: color .15s;
  position: relative;
}
.tb-item.active { color: var(--acc); }
.tb-icon { font-size: 22px; line-height: 1; }

/* ── DESKTOP RESPONSIVE ── */
@media (min-width: 1081px) {
  .sidebar { display: flex; }
}

/* ── TABLET / NARROW DESKTOP ── */
@media (max-width: 1080px) and (min-width: 769px) {
  .sidebar { width: var(--sb-w-slim); }
  .sn-label, .sw-label, .sup-name, .sup-rank, .sb-logo span:last-child { display: none; }
  .sb-wallet { padding: 10px 8px; margin: 8px 8px 6px; text-align: center; }
  .sw-val { font-size: 12px; }
  #content-wrap { margin-left: var(--sb-w-slim); }
  #main { padding: 20px 20px 40px; }
  .port-mini-stats, .stat-grid, .prof-stats { grid-template-columns: 1fr 1fr; }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  #content-wrap { margin-left: 0; }
  #tab-bar { display: flex; }
  #main { padding: 16px 14px calc(var(--tabbar-h) + 20px); }

  /* Topbar: mobile layout */
  .tb-logo    { display: flex; }
  .tb-search  { display: none; }
  .tb-bell-btn { display: flex; }

  .view-title { font-size: 30px; }
  .movers-strip { grid-template-columns: 1fr 1fr; }
  .artist-grid  { grid-template-columns: 1fr 1fr; }

  /* Mobile: artist detail is bottom sheet */
  .ao-panel {
    max-width: 100%;
    height: 92vh;
    border-left: none;
    border-top: 1px solid var(--line2);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    animation: slideInUp .28s var(--ease);
  }
  .artist-overlay { align-items: flex-end; }
  @keyframes slideInUp {
    from { transform: translateY(100%); }
    to   { transform: none; }
  }

  /* Mobile: sheets are bottom sheets */
  .buy-sheet, .sell-sheet, .trade-receipt, .suggest-modal { align-items: flex-end; padding: 0; }
  .sheet-card, .suggest-card, .receipt-card {
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    max-width: 100%;
    animation: slideInUp .25s var(--ease);
    padding-bottom: calc(env(safe-area-inset-bottom, 0) + 20px);
  }

  .port-hero .ph-value { font-size: 36px; }
  .port-mini-stats, .stat-grid, .prof-stats { grid-template-columns: 1fr 1fr; }
  .ht-head, .h-row { grid-template-columns: 2fr .5fr 1fr 70px; }
  .h-col-hide { display: none; }
  .analytics-grid { grid-template-columns: 1fr; }
  .suggest-fab { bottom: calc(var(--tabbar-h) + 14px); }
  .toast { bottom: calc(var(--tabbar-h) + 14px); right: 14px; max-width: calc(100vw - 28px); }
  .notif-panel { top: auto; bottom: calc(var(--tabbar-h) + 10px); right: 10px; left: 10px; width: auto; }
  .squad-podium { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 420px) {
  .artist-grid { grid-template-columns: 1fr; }
  .movers-strip { grid-template-columns: 1fr 1fr; }
  .auth-picker-card { border-radius: var(--r-xl) var(--r-xl) 0 0; position: fixed; bottom: 0; left: 0; right: 0; max-width: 100%; max-height: 85vh; }
}
