/* ============================================================================
   AVH Studios — Dashboard (logged-in hub)
   Builds on brand.css tokens/components.
   ============================================================================ */

.dash-wrap { max-width: var(--maxw); margin: 0 auto; padding: 28px 22px 60px; }

/* ---- Welcome / hero row ------------------------------------------------- */
.dash-hero {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 22px; margin: 8px 0 26px;
}
.dash-hero h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.dash-hero .sub { color: var(--text-dim); margin: 0; }
.dash-hero .avatar {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem; color: #0b0d12;
  background: linear-gradient(135deg, var(--accent), #ffb27a);
  box-shadow: 0 8px 24px rgba(255,107,53,.35);
}
.dash-hero .who { display: flex; align-items: center; gap: 14px; }

/* ---- Launch panel (Re-Production Studio) -------------------------------- */
.launch {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background:
    radial-gradient(120% 160% at 8% 0%, rgba(255,107,53,.22), transparent 55%),
    radial-gradient(120% 160% at 100% 100%, rgba(53,194,255,.18), transparent 55%),
    var(--panel);
  padding: 34px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: center;
  margin-bottom: 26px;
}
.launch h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.launch p { color: var(--text-dim); margin: 0 0 18px; max-width: 52ch; }
.launch .launch-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.launch .launch-visual {
  border-radius: 14px; border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow); transform: perspective(900px) rotateY(-8deg) rotateX(4deg);
}
.launch .launch-visual img { display: block; width: 100%; height: auto; }

/* ---- News & updates block (reuses the .launch layout) ------------------- */
.news-block { margin-top: 0; }
.news-block .news-copy { min-width: 0; }
.news-block .news-updated { margin: 12px 0 0; font-size: .8rem; }
.news-block .news-media { background: #0b0d12; }
.news-block .news-media img,
.news-block .news-media video { display: block; width: 100%; height: auto; }
.news-block .news-media .news-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000;
}
.news-block .news-media .news-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.news-block .news-media .news-placeholder {
  aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center;
  color: var(--text-dim); font-size: .9rem; padding: 20px;
  background: linear-gradient(135deg, rgba(255,107,53,.12), rgba(53,194,255,.12));
}

/* ---- Analytics panel ---------------------------------------------------- */
.analytics-panel { padding: 26px 26px 22px; margin-bottom: 26px; }
.analytics-panel .an-head {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start;
  justify-content: space-between; margin-bottom: 18px;
}
.analytics-panel .an-head h2 { margin: 6px 0 4px; font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.analytics-panel .an-head p { margin: 0; }
.an-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.an-stat {
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel-2);
  padding: 16px 18px;
}
.an-stat b { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.an-stat span { color: var(--text-dim); font-size: .82rem; }
.an-top { margin-top: 18px; display: grid; gap: 8px; }
.an-top .an-top-head { color: var(--text-dim); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.an-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel-2);
}
.an-row .an-row-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-row .an-row-type { color: var(--text-dim); font-size: .8rem; }
.an-row .an-row-plays { font-weight: 800; color: var(--accent); white-space: nowrap; }
.an-empty { color: var(--text-dim); font-size: .9rem; }

/* ---- Featured Artist performance (§239) --------------------------------- */
.featured-perf-panel { padding: 26px 26px 22px; margin-bottom: 26px; }
.featured-perf-panel .fp-head {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start;
  justify-content: space-between; margin-bottom: 18px;
}
.featured-perf-panel .fp-head h2 { margin: 6px 0 4px; font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.featured-perf-panel .fp-head p { margin: 0; }
.fp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fp-stat {
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel-2);
  padding: 16px 18px;
}
.fp-stat b { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.fp-stat span { display: block; color: var(--text); font-size: .82rem; margin-top: 2px; }
.fp-stat small { display: block; color: var(--text-dim); font-size: .72rem; margin-top: 3px; }
.fp-meta {
  margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px;
  color: var(--text-dim); font-size: .84rem;
}
.fp-meta b { color: var(--text); }
.fp-empty {
  margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  border: 1px dashed var(--border); border-radius: var(--radius); background: var(--panel-2);
  padding: 18px 20px;
}
.fp-empty .fp-empty-ico { font-size: 1.8rem; line-height: 1; }
.fp-empty .fp-empty-txt { flex: 1; min-width: 200px; }
.fp-empty .fp-empty-txt b { display: block; }
.fp-empty .fp-empty-txt p { margin: 4px 0 0; }

@media (max-width: 900px) {
  .an-grid { grid-template-columns: repeat(2, 1fr); }
  .fp-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Stat cards --------------------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.stat {
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel);
  padding: 20px;
}
.stat .k { color: var(--text-dim); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }
.stat .v { font-size: 1.5rem; font-weight: 800; margin: 0; }
.stat .v small { font-size: .8rem; color: var(--text-dim); font-weight: 500; }
.stat .meter { height: 8px; border-radius: 99px; background: var(--panel-2); margin-top: 12px; overflow: hidden; }
.stat .meter > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #ffb27a); }
.stat .meter.unlim > i { width: 100%; background: linear-gradient(90deg, var(--accent-3), #7dffc4); }

/* ---- Quick nav tiles ---------------------------------------------------- */
.dash-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tile {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel);
  padding: 20px; transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.tile:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--panel-2); }
/* The "Your Wallet" tile is a <button> (opens the wallet modal). */
button.tile { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.tile .ico { font-size: 1.5rem; margin-bottom: 10px; }
.tile h3 { margin: 0 0 4px; font-size: 1.05rem; }
.tile p { margin: 0; color: var(--text-dim); font-size: .9rem; }
.tile-badge {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  min-width: 20px; padding: 1px 7px; border-radius: 999px;
  background: var(--accent); color: #171008; font-size: .72rem; font-weight: 700;
  line-height: 1.5; text-align: center;
}

/* ---- Side column -------------------------------------------------------- */
.side-card { border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); padding: 20px; margin-bottom: 18px; }
.side-card h3 { margin: 0 0 12px; font-size: 1rem; }
.side-card .row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.side-card .row:last-child { border-bottom: 0; }
.side-card .row .dim { color: var(--text-dim); }
.upsell {
  border-radius: var(--radius); border: 1px solid rgba(255,107,53,.4);
  background: linear-gradient(140deg, rgba(255,107,53,.16), rgba(53,194,255,.08));
  padding: 20px;
}
.upsell h3 { margin: 0 0 6px; }
.upsell p { color: var(--text-dim); font-size: .9rem; margin: 0 0 14px; }
/* Draws the eye when a fresh sign-up arrived via a plan CTA (?upgrade=pro). */
.upsell.pulse { animation: upsellPulse 1.5s ease-in-out 4; }
@keyframes upsellPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,53,0); border-color: rgba(255,107,53,.4); }
  50% { box-shadow: 0 0 0 5px rgba(255,107,53,.28); border-color: var(--accent); }
}

/* ---- Loading / empty ---------------------------------------------------- */
.dash-loading { padding: 60px 0; text-align: center; color: var(--text-dim); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); margin: 0 auto 14px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .launch { grid-template-columns: 1fr; }
  .launch .launch-visual { transform: none; }
  .stat-grid { grid-template-columns: 1fr; }
  .dash-cols { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
}

/* ---- Built-in token wallet (Token Bound) -------------------------------- */
.wallet { margin-top: 26px; }
.wallet .wallet-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 20px;
}
.wallet .wallet-head h2 { margin: 0 0 6px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.wallet .wallet-head p { margin: 0; max-width: 62ch; }
.wallet .wallet-net {
  align-self: flex-start; white-space: nowrap;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #c9ecff; border: 1px solid rgba(53,194,255,.4); background: rgba(53,194,255,.1);
  border-radius: 999px; padding: 7px 13px;
}
.wallet-loading { padding: 30px 0; text-align: center; color: var(--text-dim); }

.wallet .btn-sm { padding: 8px 14px; font-size: .85rem; }

/* address bar */
.wallet-addr {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--border); background: var(--panel-2);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px;
}
.wallet-addr-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wallet-addr-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
.wallet-addr-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92rem; word-break: break-all; color: var(--text);
}
.wallet-addr-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* stat row */
.wallet-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 22px; }
.wallet-stat {
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel-2); padding: 18px;
}
.wallet-stat .k { color: var(--text-dim); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }
.wallet-stat .v { font-size: 1.6rem; font-weight: 800; margin: 0; }
.wallet-stat .v small { font-size: .8rem; color: var(--text-dim); font-weight: 600; }
.wallet-stat .dim { margin: 6px 0 0; font-size: .85rem; }

/* two-column holdings + purchases */
.wallet-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.wallet-block h3 { margin: 0 0 12px; font-size: 1rem; }
.wallet-list { list-style: none; margin: 0; padding: 0; }
.wallet-list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px dashed var(--border);
}
.wallet-list-item:last-child { border-bottom: 0; }
.wallet-list-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wallet-list-title { font-weight: 700; font-size: .95rem; }
.wallet-list-sub { color: var(--text-dim); font-size: .82rem; }
.wallet-list-amt { font-weight: 800; white-space: nowrap; color: var(--accent-3); }
.wallet-list-amt small { font-size: .72rem; color: var(--text-dim); font-weight: 600; }
.wallet-list-amt.pending { color: var(--text-dim); }
.wallet-empty {
  color: var(--text-dim); font-size: .9rem; margin: 0; padding: 14px 0; line-height: 1.5;
}
.wallet-foot { margin: 22px 0 0; color: var(--text-dim); font-size: .85rem; }

/* ---- AIVH activity feed (\u00a7213) ---------------------------------------- */
/* Every mint/burn the wallet never used to show: rewards, featured bids +
   refunds, gifts, beat sales, contest entries, AIVH purchases. */
.wallet-activity { margin-top: 22px; }
.wallet-act-list { list-style: none; margin: 0; padding: 0; }
.wallet-act-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.wallet-act-item:last-child { border-bottom: 0; }
.wallet-act-item.is-bad { opacity: .55; }
.wallet-act-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.wallet-act-ico.in { background: rgba(53, 255, 158, .13); color: var(--accent-3); }
.wallet-act-ico.out { background: rgba(255, 77, 94, .13); color: var(--danger); }
.wallet-act-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.wallet-act-title { font-weight: 700; font-size: .95rem; }
.wallet-act-sub { color: var(--text-dim); font-size: .8rem; }
.wallet-act-tx { color: var(--accent-2); text-decoration: none; }
.wallet-act-tx:hover { text-decoration: underline; }
.wallet-act-amt { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wallet-act-amt.in { color: var(--accent-3); }
.wallet-act-amt.out { color: var(--danger); }
.wallet-act-amt small { font-size: .72rem; color: var(--text-dim); font-weight: 600; }

/* fiat earnings block (real-money wallet) */
.fiat-block {
  border: 1px solid var(--border); background: var(--panel-2);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 22px;
}
.fiat-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.fiat-head h3 { margin: 0; font-size: 1.05rem; }
.fiat-target { font-size: .82rem; color: var(--text-dim); }
.fiat-target.warn { color: var(--accent); }
.fiat-target a { color: var(--accent-2); }
.fiat-stats { margin-bottom: 16px; }
.fiat-progress { margin-bottom: 16px; }
.fiat-progress-bar { height: 8px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); overflow: hidden; }
.fiat-progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-3)); border-radius: 999px; transition: width .4s ease; }
.fiat-progress-note { margin: 8px 0 0; font-size: .82rem; color: var(--text-dim); }
.fiat-actions { margin-bottom: 18px; }
.fiat-payout-btn[disabled] { opacity: .55; cursor: not-allowed; }
.fiat-sub { margin: 18px 0 8px; font-size: .95rem; }
.fiat-empty { color: var(--text-dim); font-size: .9rem; margin: 0; padding: 8px 0; line-height: 1.5; }
.fiat-badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-dim); white-space: nowrap; }
.fiat-badge.paid { color: var(--accent-3); border-color: rgba(53,255,158,.4); background: rgba(53,255,158,.1); }
.fiat-badge.requested, .fiat-badge.processing { color: var(--accent); border-color: rgba(255,107,53,.4); background: rgba(255,107,53,.1); }
.fiat-badge.rejected { color: var(--danger); border-color: rgba(255,77,94,.4); background: rgba(255,77,94,.1); }

/* ---- Buy AIVH (cash -> AIVH on-ramp, §212 Phase 1) ---------------------- */
.buy-block {
  border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-bottom: 22px;
  background: linear-gradient(180deg, rgba(255,107,53,.07), transparent 70%);
}
.buy-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; }
.buy-head h3 { margin: 0; font-size: 1.1rem; }
.buy-peg {
  font-size: .76rem; font-weight: 800; letter-spacing: .04em; color: var(--accent-3);
  border: 1px solid rgba(53,255,158,.4); background: rgba(53,255,158,.1);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.buy-lede { margin: 8px 0 16px; color: var(--text-dim); font-size: .88rem; line-height: 1.5; }
.buy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 12px; }
.buy-pack {
  display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer;
  padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel);
  color: var(--text); font: inherit; transition: transform .12s ease, border-color .12s ease;
}
.buy-pack:hover { transform: translateY(-2px); border-color: var(--accent); }
.buy-pack:active { transform: translateY(0); }
.buy-pack.busy { opacity: .6; cursor: progress; }
.buy-pack-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.buy-pack-name { font-weight: 700; font-size: .9rem; }
.buy-bonus {
  font-size: .64rem; font-weight: 800; color: var(--accent-3);
  background: rgba(53,255,158,.12); border: 1px solid rgba(53,255,158,.35);
  border-radius: 999px; padding: 2px 7px; white-space: nowrap;
}
.buy-pack-tokens { font-size: 1.25rem; font-weight: 800; }
.buy-pack-tokens small { font-size: .66rem; color: var(--text-dim); font-weight: 600; }
.buy-pack-price { font-size: .85rem; color: var(--text-dim); }
.buy-custom { margin-top: 16px; }
.buy-custom label { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin-bottom: 8px; }
.buy-custom-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.buy-custom-prefix { font-weight: 800; font-size: 1.05rem; color: var(--text-dim); }
.buy-custom-row input {
  width: 108px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); font: inherit; font-size: .95rem;
}
.buy-custom-row input:focus { outline: none; border-color: var(--accent); }
.buy-custom-tokens { font-weight: 800; color: var(--accent-3); white-space: nowrap; }
.buy-custom-note { margin: 8px 0 0; font-size: .8rem; color: var(--text-dim); }
.buy-sub { margin: 20px 0 8px; font-size: .95rem; }

/* ---- Collapsible wallet sections (Buy AIVH + AIVH activity) ------------- */
/* Native <details>/<summary>: the toggle is keyboard-accessible and needs no
   JS. Both sections default to open and can be folded to shrink the modal. */
.collapsible > .collapsible-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; cursor: pointer; list-style: none; user-select: none;
}
.collapsible > .collapsible-head::-webkit-details-marker { display: none; }
.collapsible > .collapsible-head::marker { content: ''; }
.collapsible > .collapsible-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.collapsible > .collapsible-head h3 { margin: 0; transition: color .12s ease; }
.collapsible > .collapsible-head:hover h3 { color: var(--accent); }
.collapsible-tail { display: flex; align-items: center; gap: 10px; }
.collapsible-chev {
  flex: none; width: 9px; height: 9px; margin-top: -4px;
  border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg); transition: transform .18s ease, border-color .12s ease;
}
.collapsible > .collapsible-head:hover .collapsible-chev { border-color: var(--accent); }
.collapsible[open] > .collapsible-head .collapsible-chev { transform: rotate(-135deg); margin-top: 3px; }
.collapsible-body { margin-top: 12px; }

@media (max-width: 900px) {
  .wallet-stats { grid-template-columns: 1fr; }
  .wallet-cols { grid-template-columns: 1fr; }
}

/* ---- Wallet modal (opened from the "Your Wallet" tile) ------------------- */
/* The wallet now lives in a modal instead of a big inline section, so the
   dashboard stays compact; the tile opens the full view on demand. */
body.modal-open { overflow: hidden; }
.dash-modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(6, 8, 12, .72); backdrop-filter: blur(6px);
}
.dash-modal.open { display: flex; }
.dash-modal-card {
  position: relative; width: min(880px, 96vw); max-height: 90vh; overflow: auto;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(30, 34, 43, .98), rgba(17, 19, 24, .99));
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7); padding: 30px;
  animation: dashPop .28s cubic-bezier(.2, .7, .2, 1);
}
@keyframes dashPop { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }
.dash-modal-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--panel-2);
  color: var(--text); font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.dash-modal-close:hover { border-color: var(--accent); }
/* Reuse the wallet styles inside the modal; drop the section's top margin. */
.dash-modal-card.wallet { margin-top: 0; }
.dash-modal-card .wallet-head { margin-bottom: 20px; padding-right: 46px; }

@media (max-width: 640px) {
  .dash-modal { padding: 12px; }
  .dash-modal-card { padding: 22px 18px; }
  .dash-modal-card .wallet-head { padding-right: 40px; }
}

/* ---- Featured creators carousel (advertised / top profiles) -------------- */
.dash-carousel { margin-top: 26px; }
.dc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.dc-head h2 { margin: 6px 0 4px; }
.dc-head .dim { margin: 0; max-width: 62ch; }
.dc-nav { display: flex; gap: 8px; flex-shrink: 0; }
.dc-arrow {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  transition: border-color .15s, background .15s, opacity .15s;
}
.dc-arrow:hover:not(:disabled) { border-color: var(--accent); background: var(--panel); }
.dc-arrow:disabled { opacity: .35; cursor: default; }

.dc-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 14px; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.dc-track::-webkit-scrollbar { height: 8px; }
.dc-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.dc-track::-webkit-scrollbar-track { background: transparent; }

.dc-card {
  position: relative; flex: 0 0 232px; scroll-snap-align: start;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel);
  padding: 18px; transition: transform .15s ease, border-color .15s ease;
}
.dc-card:hover { transform: translateY(-3px); border-color: rgba(255, 107, 53, .4); }
.dc-card.dc-promoted { border-color: rgba(255, 107, 53, .55); box-shadow: 0 0 0 1px rgba(255, 107, 53, .22), 0 14px 40px rgba(255, 107, 53, .12); }
.dc-featured-tag {
  position: absolute; top: 12px; right: 12px; font-size: .62rem; font-weight: 900; letter-spacing: .06em;
  text-transform: uppercase; color: #1a0d05; background: linear-gradient(92deg, var(--accent), #ff8a4c);
  border-radius: 999px; padding: 2px 8px;
}
.dc-card-top { display: flex; align-items: center; gap: 12px; }
.dc-avatar {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; font-weight: 800; color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35); position: relative;
}
.dc-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.dc-avatar.online::after {
  content: ''; position: absolute; right: 2%; bottom: 2%; width: 26%; height: 26%;
  min-width: 8px; min-height: 8px; border-radius: 50%; background: var(--accent-3);
  border: 2px solid var(--panel); box-sizing: border-box;
  animation: avh-online-blink 1.6s ease-in-out infinite;
}
.dc-name { font-weight: 700; font-size: .98rem; text-decoration: none; color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.dc-name:hover { color: var(--accent); }
.dc-handle { color: var(--text-dim); font-size: .82rem; margin-top: 2px; }
.dc-pro { font-size: .62rem; font-weight: 900; letter-spacing: .04em; color: #ffd9c6; border: 1px solid rgba(255, 107, 53, .5); background: rgba(255, 107, 53, .14); border-radius: 6px; padding: 1px 6px; }
.dc-bio { color: var(--text-dim); font-size: .84rem; margin: 12px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0 0; color: var(--text-dim); font-size: .76rem; }
.dc-stats b { color: var(--text); }
.dc-card .btn { margin-top: 14px; display: block; text-align: center; }
.dc-empty, .dc-loading { flex: 0 0 100%; text-align: center; color: var(--text-dim); padding: 26px 10px; }
.dc-loading p, .dc-empty { margin: 0; }

@media (max-width: 640px) {
  .dc-head { flex-direction: column; }
  .dc-nav { align-self: flex-end; }
  .dc-card { flex-basis: 200px; }
}

/* ============================================================================
   Section 123: the Provenance tile carries a "Publish a work" CTA.
   ========================================================================== */
.tile-split { display: flex; flex-direction: column; gap: 12px; }
.tile-body { display: block; text-decoration: none; color: inherit; }
.tile-cta {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: .82rem; font-weight: 700; color: var(--accent-2); text-decoration: none;
  border: 1px solid rgba(53, 194, 255, .34); border-radius: 999px; padding: 6px 12px;
  background: rgba(53, 194, 255, .08); transition: .15s ease;
}
.tile-cta:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-1px); }

/* ============================================================================
   §241 — Dashboard refresh (keeps the existing layout/components).
   * Welcome header → Concept C "command bar" (glass bar + inline chips)
   * Featured Artist gets a green "How your feature is performing" pop-out
   * Rewards card (Concept A) replaces the Account summary (Pro-gated)
   ========================================================================== */

/* ---- Welcome header → Concept C command bar ----------------------------- */
.dash-hero {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px 22px; margin: 8px 0 26px; padding: 18px 20px;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 50px -34px rgba(0,0,0,.9);
}
.dash-hero .who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dash-hero .avatar {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem; color: #0b0d12; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #ffb27a);
  box-shadow: 0 8px 24px rgba(255,107,53,.35);
}
.dash-hero h1 { margin: 0 0 4px; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.3px; }
.dash-hero .sub { color: var(--text-dim); margin: 0; font-size: .92rem; }
.hero-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.hchip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 12px;
  font-size: .82rem; font-weight: 600; color: var(--text); white-space: nowrap;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
}
.hchip .i { font-size: .95rem; line-height: 1; }
.hchip b { font-size: .95rem; }
.hchip.o b { color: var(--accent); }
.hchip.g b { color: var(--accent-3); }
.hchip.b b { color: var(--accent-2); }
@media (max-width: 720px) {
  .dash-hero { flex-direction: column; align-items: flex-start; }
  .hero-right { align-items: flex-start; width: 100%; }
  .hero-chips { justify-content: flex-start; }
}

/* ---- Featured Artist: performance pop-out trigger ----------------------- */
.fp-open-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  font-weight: 700; font-size: .86rem; cursor: pointer; color: #06120c;
  border: 1px solid rgba(53,255,158,.5); border-radius: 999px; padding: 9px 16px;
  background: linear-gradient(135deg, var(--accent-3), #8affc6);
  box-shadow: 0 10px 26px -14px rgba(53,255,158,.9);
  transition: filter .15s, transform .15s;
}
.fp-open-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.fp-open-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: #06120c; animation: fpDot 1.6s ease-in-out infinite; }
@keyframes fpDot { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ---- Featured-performance pop-out modal --------------------------------- */
.fp-modal-card { width: min(720px, 96vw); }
.fp-modal-card .fp-head {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start;
  justify-content: space-between; margin-bottom: 18px; padding-right: 46px;
}
.fp-modal-card .fp-head h2 { margin: 6px 0 4px; font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.fp-modal-card .fp-head p { margin: 0; }

/* ---- Rewards card (replaces the Account summary) ------------------------ */
.rewards-card { position: relative; overflow: hidden; }
.rewards-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(85% 60% at 92% 0%, rgba(53,255,158,.14), transparent 62%);
}
.rewards-card > * { position: relative; z-index: 1; }
.rewards-card .rw-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.rewards-card .rw-head h3 { margin: 0; font-size: 1rem; }
.pill-pro {
  font-size: .62rem; font-weight: 900; letter-spacing: .06em; color: #06120c;
  background: linear-gradient(135deg, var(--accent-3), #8affc6); border: 0;
  border-radius: 999px; padding: 3px 9px;
}
.rw-total { display: flex; align-items: baseline; gap: 8px; }
.rw-total .rw-amt { font-size: 2rem; font-weight: 900; letter-spacing: -1px; color: var(--accent-3); line-height: 1; }
.rw-total small { color: var(--text-dim); font-size: .82rem; font-weight: 600; }
.rw-list { display: grid; gap: 8px; margin-top: 14px; }
.rw-row { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.rw-row .i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.06); flex-shrink: 0; }
.rw-row .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-row .amt { color: var(--accent-3); font-weight: 800; white-space: nowrap; }
.rw-bar { height: 8px; border-radius: 999px; background: var(--panel-2); margin-top: 16px; overflow: hidden; }
.rw-bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-3), #8affc6); }
.rw-note { font-size: .8rem; color: var(--text-dim); margin-top: 8px; }
.rw-empty { color: var(--text-dim); font-size: .88rem; margin: 12px 0 0; }
.rw-locked .rw-lock { font-size: 1.7rem; line-height: 1; margin-bottom: 8px; }
.rw-locked p { color: var(--text-dim); font-size: .9rem; margin: 0 0 14px; }
.rw-loading { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: .88rem; padding: 4px 0; }
