@import url("../sidebar.css");
/* SONARA — Artist dashboard styles */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; border: 0; background: transparent; color: inherit; }

/* ---------------- Layout shell ---------------- */
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
  background: var(--background);
}
@media (max-width: 820px) { .shell { grid-template-columns: 1fr; } }

/* ---------------- Sidebar (desktop) ---------------- */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--border);
  background: var(--card);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 30;
}
@media (max-width: 820px) { .sidebar { display: none; } }

.sidebar-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.02em;
  padding: 4px 10px 18px;
}
.sidebar-logo .mark {
  width: 30px; height: 30px;
  background: var(--violet);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: var(--shadow-violet-sm);
}
.sidebar-section {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
  padding: 14px 14px 6px;
  font-weight: 500;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted-foreground);
  font-size: 14px;
  font-weight: 500;
  transition: all 150ms var(--ease-out);
  position: relative;
  text-align: left;
  width: 100%;
}
.nav-item:hover { background: var(--muted); color: var(--foreground); }
.nav-item.active {
  background: rgba(123,85,208,0.12);
  color: var(--foreground);
}
.nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--violet);
}
.nav-item .ic {
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-item.active .ic { color: var(--violet-bright, #7b55d0); }
.nav-item .badge-pill {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 7px;
  background: var(--violet);
  color: white;
  border-radius: 999px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.sidebar-foot {
  margin-top: auto;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--background);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-foot .av {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6b4bb8, #2e1866);
  color: white;
  font-family: var(--font-display); font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.sidebar-foot .meta { line-height: 1.25; min-width: 0; flex: 1; }
.sidebar-foot .meta .n { font-size: 13px; font-weight: 500; color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot .meta .h { font-size: 11px; color: var(--muted-foreground); }

/* ---------------- Main area ---------------- */
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.0);
  backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--background) 80%, transparent);
}
@media (max-width: 720px) { .topbar { padding: 12px 16px; } }

.search-box {
  flex: 1;
  max-width: 480px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  color: var(--muted-foreground);
  font-size: 14px;
  transition: border-color 150ms var(--ease-out);
}
.search-box:hover { border-color: var(--muted-foreground); }
.search-box .kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--muted);
  color: var(--muted-foreground);
  margin-left: auto;
  border: 1px solid var(--border);
}
.search-box input {
  flex: 1; min-width: 0;
  border: 0; outline: 0;
  background: transparent;
  color: var(--foreground);
  font-size: 14px;
}
.search-box input::placeholder { color: var(--muted-foreground); }

.icon-btn {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--foreground);
  position: relative;
  transition: all 150ms var(--ease-out);
}
.icon-btn:hover { background: var(--muted); border-color: var(--muted-foreground); }
.icon-btn .dot-notif {
  position: absolute; top: 9px; right: 10px;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--violet);
  border: 2px solid var(--card);
}

/* Primary CTA in topbar — same vocabulary as landing */
.cta-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--violet);
  color: white;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--cta-shadow-rest);
  transition: all 150ms var(--ease-out);
  white-space: nowrap;
}
.cta-pill:hover {
  background: var(--violet-light);
  box-shadow: var(--cta-shadow-hover);
  transform: translateY(-1px);
}
.cta-pill:active { transform: scale(0.98); }

.wallet-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 14px;
  font-weight: 500;
  transition: all 150ms var(--ease-out);
}
.wallet-pill:hover { border-color: var(--muted-foreground); background: var(--muted); }
.wallet-pill .ic {
  width: 24px; height: 24px;
  border-radius: 999px;
  background: rgba(123,85,208,0.14);
  color: var(--violet-bright, #7b55d0);
  display: inline-flex; align-items: center; justify-content: center;
}
.wallet-pill .num { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }

.avatar-btn {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6b4bb8, #2e1866);
  color: white;
  font-family: var(--font-display); font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  border: 2px solid var(--border);
}

/* ---------------- Page content ---------------- */
.page {
  padding: 28px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}
@media (max-width: 720px) { .page { padding: 18px 16px 80px; } }

.greet {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.greet .hello {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin: 0;
}
/* Lighter, more "app" treatment for section + card titles —
   Space Grotesk only for the hero greet + hero numbers */
.section-head .t,
.proj-title,
.qa .t,
.beat-info .title,
.profile-head .meta .t,
.welcome-card .t {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.beat-info .price,
.stat .num,
.wallet-card .balance,
.profile-ring .pct,
.proj-deadline .big {
  /* Numbers stay display — they're the "hero" data */
  font-family: var(--font-display);
}
.greet .hello .name { background: var(--gradient-text-violet); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.greet .sub {
  font-size: 14px;
  color: var(--muted-foreground);
  margin-top: 4px;
}
.greet .right {
  display: flex; gap: 8px; align-items: center;
}

/* ---------------- Grid ---------------- */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
}
@media (max-width: 1080px) { .grid { grid-template-columns: 1fr; } }

.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.section-head .t {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 10px;
}
.section-head .t .count {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-foreground);
  font-family: var(--font-sans);
  letter-spacing: 0;
}
.section-head .more {
  font-size: 13px;
  color: var(--muted-foreground);
  display: inline-flex; align-items: center; gap: 4px;
}
.section-head .more:hover { color: var(--foreground); }

/* ---------------- Card primitives ---------------- */
.card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 18px;
  transition: all 200ms var(--ease-out);
  position: relative;
  overflow: hidden;
}
.card.padless { padding: 0; overflow: hidden; }

/* ---------------- In Corso ---------------- */
.inprogress-list { display: flex; flex-direction: column; gap: 10px; }

/* ============== Section header — urgent flag ============== */
.section-head .t .ip-urgent-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans, inherit);
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(245,158,11,0.12);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.28);
}
.section-head .t .ip-urgent-flag.info {
  background: rgba(123,85,208,0.12);
  color: var(--violet-bright, #7b55d0);
  border-color: rgba(123,85,208,0.28);
}
.section-head .t .ip-urgent-flag .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in oklab, currentColor 18%, transparent);
  animation: ip-pulse 1.6s ease-in-out infinite;
}
@keyframes ip-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.section-head.sub { margin-top: 14px; }

/* ============== IP Card — dense single-row layout ============== */
.ip-list { display: flex; flex-direction: column; gap: 8px; }

.ip-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background 160ms;
}
.ip-card:hover {
  border-color: rgba(123,85,208,0.45);
  background: color-mix(in oklab, var(--card) 92%, var(--violet-bright, #7b55d0) 8%);
}
.ip-card.urgent {
  border-color: rgba(245,158,11,0.55);
  background: linear-gradient(90deg, rgba(245,158,11,0.07) 0%, rgba(245,158,11,0.02) 60%, transparent 100%), var(--card);
  box-shadow: inset 3px 0 0 0 #f59e0b;
  padding-left: 16px;
}
.ip-card.urgent:hover {
  border-color: rgba(245,158,11,0.7);
  background: linear-gradient(90deg, rgba(245,158,11,0.10) 0%, rgba(245,158,11,0.03) 60%, transparent 100%), var(--card);
}

.ip-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(123,85,208,0.12);
  border: 1px solid rgba(123,85,208,0.20);
  color: var(--violet-bright, #7b55d0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ip-card.urgent .ip-icon {
  background: rgba(245,158,11,0.14);
  border-color: rgba(245,158,11,0.30);
  color: #f59e0b;
}

.ip-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ip-row1 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.3;
  flex-wrap: wrap;
}
.ip-kind {
  font-family: var(--font-display, inherit);
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: -0.005em;
}
.ip-dot {
  width: 3px; height: 3px;
  border-radius: 999px;
  background: var(--muted-foreground);
  opacity: 0.6;
}
.ip-title {
  color: var(--foreground);
  font-weight: 500;
}
.ip-spacer { flex: 1; }
.ip-time {
  font-size: 12px;
  color: var(--muted-foreground);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ip-time.urgent {
  color: #f59e0b;
  font-weight: 600;
}
.ip-time-pulse {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.22);
  animation: ip-pulse 1.6s ease-in-out infinite;
}

.ip-row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.ip-meta {
  font-size: 12px;
  color: var(--muted-foreground);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}
.ip-meta .sep { color: color-mix(in oklab, var(--muted-foreground) 50%, transparent); }
.ip-av {
  width: 18px; height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6b4bb8, #2e1866);
  color: white;
  font-size: 9px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, inherit);
  flex-shrink: 0;
}
.ip-who { color: var(--foreground); font-weight: 500; }

.ip-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ip-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 120ms, border-color 120ms, color 120ms;
}
.ip-btn:hover { background: var(--muted); }
.ip-btn.ghost {
  border-color: transparent;
  color: var(--muted-foreground);
  padding: 6px 9px;
}
.ip-btn.ghost:hover { background: var(--muted); color: var(--foreground); }
.ip-btn.primary {
  background: var(--violet-bright, #7b55d0);
  color: white;
  border-color: var(--violet-bright, #7b55d0);
}
.ip-btn.primary:hover {
  background: color-mix(in oklab, var(--violet-bright, #7b55d0) 88%, white);
}
.ip-btn.urgent {
  background: #f59e0b;
  color: #1a0e02;
  border-color: #f59e0b;
  font-weight: 600;
}
.ip-btn.urgent:hover { background: #fbbf24; }

/* ============== Open Requests — compact ============== */
.oreq-list { display: flex; flex-direction: column; gap: 8px; }
.oreq-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  transition: border-color 160ms;
}
.oreq-row:hover { border-color: rgba(123,85,208,0.45); }
.oreq-icon {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: rgba(123,85,208,0.12);
  border: 1px solid rgba(123,85,208,0.20);
  color: var(--violet-bright, #7b55d0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.oreq-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.oreq-body .t {
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
}
.oreq-body .s {
  font-size: 11.5px;
  color: var(--muted-foreground);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.oreq-body .s strong { color: var(--foreground); font-weight: 600; }
.oreq-body .s .sep { color: color-mix(in oklab, var(--muted-foreground) 50%, transparent); }
.oreq-new {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--violet-bright, #7b55d0);
  color: white;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .ip-row1 { gap: 6px; }
  .ip-time { font-size: 11px; }
  .ip-row2 { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ip-actions { width: 100%; justify-content: flex-end; }
  .oreq-row { grid-template-columns: 28px 1fr; }
  .oreq-row .ip-btn { grid-column: 2 / 3; justify-self: end; }
}

/* empty state slot for in-progress when none */
.empty {
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  color: var(--muted-foreground);
}
.empty .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(123,85,208,0.10);
  border: 1px solid rgba(123,85,208,0.25);
  color: var(--violet-bright, #7b55d0);
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}

/* ---------------- Messages ---------------- */
.msg-list { display: flex; flex-direction: column; }
.msg-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  padding: 12px 4px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  cursor: pointer;
  border-radius: 12px;
  transition: background 120ms var(--ease-out);
  position: relative;
}
.msg-row:hover { background: var(--muted); }
.msg-row + .msg-row { border-top: 1px solid var(--border); }
.msg-row .av {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6b4bb8, #2e1866);
  color: white;
  font-family: var(--font-display); font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
  position: relative;
}
.msg-row .av .online {
  position: absolute; bottom: -1px; right: -1px;
  width: 11px; height: 11px;
  border-radius: 999px;
  background: #22c55e;
  border: 2px solid var(--card);
}
.msg-row .body { min-width: 0; }
.msg-row .row1 {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px;
  margin-bottom: 2px;
}
.msg-row .row1 .name { font-weight: 600; color: var(--foreground); }
.msg-row .row1 .verified { color: var(--violet-bright, #7b55d0); display: inline-flex; }
.msg-row .preview {
  font-size: 13px;
  color: var(--muted-foreground);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.msg-row.unread .preview { color: var(--foreground); font-weight: 500; }
.msg-row .right {
  text-align: right;
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
}
.msg-row .time { font-size: 11px; color: var(--muted-foreground); }
.msg-row .unread-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--violet);
}

/* ---------------- Quick actions (button-cards) ---------------- */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 1100px) { .qa-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .qa-grid { grid-template-columns: 1fr; } }

.qa-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  min-height: 168px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background 180ms var(--ease-out);
  overflow: hidden;
}
.qa-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(123,85,208,0.10), transparent 55%);
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
  pointer-events: none;
}
.qa-card:hover {
  transform: translateY(-2px);
  border-color: rgba(123,85,208,0.42);
  box-shadow: 0 14px 32px -14px rgba(65,34,142,0.28);
}
.qa-card:hover::before { opacity: 1; }

.qa-ic {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(123,85,208,0.10);
  color: var(--violet-bright, #7b55d0);
  border: 1px solid rgba(123,85,208,0.22);
  transition: all 180ms var(--ease-out);
  flex-shrink: 0;
}
.qa-title {
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.qa-sub {
  font-size: 12.5px;
  color: var(--muted-foreground);
  line-height: 1.5;
  flex: 1;
}
.qa-foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.qa-arrow {
  width: 24px; height: 24px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--muted);
  color: var(--muted-foreground);
  transition: all 180ms var(--ease-out);
  flex-shrink: 0;
}
.qa-card:hover .qa-foot { color: var(--foreground); border-top-color: rgba(123,85,208,0.32); }
.qa-card:hover .qa-arrow { background: var(--violet); color: white; transform: translateX(2px); }

/* Primary variant — viola pieno */
.qa-card.primary {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255,255,255,0.10), transparent 60%),
    linear-gradient(135deg, var(--violet-light, #6b4bb8) 0%, var(--violet) 55%, var(--violet-dark, #2e1866) 100%);
  border-color: rgba(255,255,255,0.10);
  box-shadow: var(--shadow-violet-sm);
}
.qa-card.primary::before {
  background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,0.10), transparent 55%);
}
.qa-card.primary:hover {
  border-color: rgba(255,255,255,0.18);
  box-shadow: var(--shadow-violet-md);
}
.qa-card.primary .qa-ic {
  background: rgba(255,255,255,0.16);
  color: white;
  border-color: rgba(255,255,255,0.20);
}
.qa-card.primary .qa-title { color: white; }
.qa-card.primary .qa-sub   { color: rgba(255,255,255,0.78); }
.qa-card.primary .qa-foot  { color: rgba(255,255,255,0.85); border-top-color: rgba(255,255,255,0.20); }
.qa-card.primary .qa-arrow { background: rgba(255,255,255,0.18); color: white; }
.qa-card.primary:hover .qa-foot   { color: white; border-top-color: rgba(255,255,255,0.32); }
.qa-card.primary:hover .qa-arrow  { background: white; color: var(--violet); }

/* ---------------- Per Te feed (beats) ---------------- */
.feed-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--muted);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.feed-tab {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: all 150ms var(--ease-out);
}
.feed-tab.active {
  background: var(--card);
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
}

.beats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 1180px) { .beats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .beats-grid { grid-template-columns: 1fr; } }

.beat {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  transition: all 200ms var(--ease-out);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.beat:hover {
  border-color: rgba(123,85,208,0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -10px rgba(65,34,142,0.22);
}
.beat-cover {
  aspect-ratio: 1.4 / 1;
  position: relative;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 12px;
  overflow: hidden;
}
.beat-cover .gradient {
  position: absolute; inset: 0;
  z-index: 0;
}
.beat-cover.b1 .gradient { background: linear-gradient(135deg, #41228e, #6b4bb8 60%, #f59e0b); }
.beat-cover.b2 .gradient { background: linear-gradient(135deg, #2e1866, #41228e 50%, #16a34a); }
.beat-cover.b3 .gradient { background: linear-gradient(135deg, #6b4bb8, #2e1866 60%, #1f1147); }
.beat-cover.b4 .gradient { background: linear-gradient(135deg, #f59e0b, #41228e 70%); }
.beat-cover.b5 .gradient { background: linear-gradient(135deg, #16a34a, #41228e 70%); }
.beat-cover.b6 .gradient { background: linear-gradient(135deg, #6b4bb8, #ec4899 80%); }

.beat-cover::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 80% 20%, rgba(255,255,255,0.18), transparent 60%);
  z-index: 1;
}

.beat-noise {
  position: absolute; inset: 0;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.25) 0%, transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.25) 0%, transparent 30%);
}

.beat-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 0 14% 28%;
  z-index: 2;
  pointer-events: none;
}
.beat-bars > span {
  flex: 1;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  animation: wavebars 1.4s ease-in-out infinite;
}
@keyframes wavebars {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
.beat-cover.paused .beat-bars > span { animation-play-state: paused; }

.beat-play {
  position: absolute;
  z-index: 3;
  bottom: 12px; right: 12px;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  color: #1a0e3e;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  transition: transform 150ms var(--ease-out);
}
.beat-play:hover { transform: scale(1.06); }

.beat-tags {
  position: absolute;
  z-index: 3;
  top: 12px; left: 12px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.beat-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.42);
  color: white;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
}
.beat-tag.exclusive { background: rgba(245,158,11,0.85); border-color: rgba(255,255,255,0.4); color: #1a0e3e; }

.beat-fav {
  position: absolute;
  z-index: 3;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 999px;
  background: rgba(0,0,0,0.42);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  transition: all 150ms var(--ease-out);
}
.beat-fav:hover { background: rgba(0,0,0,0.7); }
.beat-fav.on { background: var(--violet); border-color: var(--violet); }

.beat-info {
  padding: 12px 14px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.beat-info .top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px;
}
.beat-info .title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--foreground);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.beat-info .price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--foreground);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.beat-info .producer {
  font-size: 12px;
  color: var(--muted-foreground);
  display: inline-flex; align-items: center; gap: 6px;
}
.beat-info .producer .av {
  width: 16px; height: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6b4bb8, #2e1866);
  color: white;
  font-size: 8px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
}
.beat-info .producer .verified { color: var(--violet-bright, #7b55d0); display: inline-flex; }
.beat-info .meta-row {
  display: flex; align-items: center;
  font-size: 11px;
  color: var(--muted-foreground);
  gap: 8px;
  margin-top: 2px;
}
.beat-info .meta-row .dot { width: 3px; height: 3px; border-radius: 999px; background: var(--border); }
.beat-info .bar {
  display: flex; align-items: center; gap: 4px;
  margin-top: 4px;
}
.beat-info .bar > span {
  flex: 1;
  height: 2px;
  background: var(--muted);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
.beat-info .bar > span::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--played, 0%);
  background: linear-gradient(90deg, var(--violet), var(--violet-bright, #7b55d0));
}

/* ---------------- Stats card ---------------- */
.stats-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.stat {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--background);
  display: flex; flex-direction: column; gap: 6px;
}
.stat .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  font-weight: 500;
}
.stat .num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat .delta {
  font-size: 11px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
}
.stat .delta.up { color: #22c55e; }
.stat .delta.down { color: #ef4444; }
.stat .delta.flat { color: var(--muted-foreground); }
.stat .spark {
  height: 22px;
  margin-top: 2px;
}

/* ---------------- Profile completeness ---------------- */
.profile-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(123,85,208,0.10), transparent 60%),
    var(--card);
}
.profile-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.profile-ring {
  width: 56px; height: 56px; flex-shrink: 0;
  position: relative;
}
.profile-ring svg { transform: rotate(-90deg); }
.profile-ring .pct {
  position: absolute; inset: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--foreground);
  letter-spacing: -0.01em;
}
.profile-head .meta { flex: 1; min-width: 0; }
.profile-head .meta .t {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: -0.01em;
}
.profile-head .meta .s {
  font-size: 13px;
  color: var(--muted-foreground);
  margin-top: 2px;
  line-height: 1.45;
}

.completion-list { display: flex; flex-direction: column; gap: 4px; }
.completion-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--foreground);
  cursor: pointer;
  transition: background 120ms var(--ease-out);
}
.completion-item:hover { background: var(--muted); padding-left: 8px; padding-right: 8px; }
.completion-item .check-circle {
  width: 22px; height: 22px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: transparent;
}
.completion-item.done .check-circle {
  background: rgba(34,197,94,0.14);
  border-color: rgba(34,197,94,0.4);
  color: #22c55e;
}
.completion-item.done {
  color: var(--muted-foreground);
  text-decoration: line-through;
  text-decoration-color: var(--border);
}
.completion-item .pts {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-foreground);
  background: var(--muted);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 999px;
}
.completion-item.done .pts { background: rgba(34,197,94,0.10); border-color: rgba(34,197,94,0.25); color: #22c55e; }
.completion-item .arrow {
  width: 16px; height: 16px;
  color: var(--muted-foreground);
  margin-left: 4px;
  opacity: 0;
  transition: all 150ms var(--ease-out);
}
.completion-item:hover .arrow { opacity: 1; transform: translateX(2px); }

/* ---------------- Wallet mini card ---------------- */
.wallet-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(123,85,208,0.18) 0%, rgba(65,34,142,0.08) 60%, transparent 100%),
    var(--card);
  position: relative;
  overflow: hidden;
}
.wallet-card::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  right: -60px; top: -60px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(123,85,208,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.wallet-card .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted-foreground); font-weight: 500;
}
.wallet-card .balance {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700;
  color: var(--foreground); letter-spacing: -0.025em;
  margin: 6px 0 4px;
  display: inline-flex; align-items: baseline; gap: 4px;
}
.wallet-card .balance .ccy { font-size: 18px; color: var(--muted-foreground); font-weight: 500; }
.wallet-card .promo {
  font-size: 12px;
  color: var(--violet-bright, #7b55d0);
  margin-bottom: 14px;
}
.wallet-card .acts {
  display: flex; gap: 8px;
}
.wallet-card .btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 150ms var(--ease-out);
}
.wallet-card .btn-primary {
  background: var(--violet); color: white;
  box-shadow: var(--shadow-violet-sm);
}
.wallet-card .btn-primary:hover { background: var(--violet-light); }
.wallet-card .btn-ghost {
  background: var(--card); color: var(--foreground);
  border: 1px solid var(--border);
}
.wallet-card .btn-ghost:hover { background: var(--muted); }

/* ---------------- Open requests inline ---------------- */
.open-req {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.open-req-row { display: flex; align-items: center; gap: 12px; }
.open-req .av-stack { display: inline-flex; }
.open-req .av-stack .av {
  width: 26px; height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6b4bb8, #2e1866);
  color: white;
  font-family: var(--font-display);
  font-size: 10px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--card);
  margin-left: -8px;
}
.open-req .av-stack .av:first-child { margin-left: 0; }
.open-req .body { flex: 1; min-width: 0; }
.open-req .t {
  font-size: 14px; font-weight: 500; color: var(--foreground);
}
.open-req .s {
  font-size: 12px; color: var(--muted-foreground); margin-top: 2px;
}
.open-req .pill {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(123,85,208,0.14);
  color: var(--violet-bright, #7b55d0);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------------- Mobile bottom nav ---------------- */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 30;
  background: color-mix(in oklab, var(--card) 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 8px 8px env(safe-area-inset-bottom, 8px);
}
@media (max-width: 820px) { .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); } }
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 4px;
  font-size: 10px;
  color: var(--muted-foreground);
  border-radius: 10px;
  position: relative;
}
.bottom-nav-item.active { color: var(--violet-bright, #7b55d0); }
.bottom-nav-item .ic { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.bottom-nav-item .badge-pill {
  position: absolute; top: 2px; right: 22%;
  font-size: 9px;
  padding: 1px 5px;
  background: var(--violet);
  color: white;
  border-radius: 999px;
  font-weight: 600;
}

/* Small helpers */
.flex-row { display: flex; align-items: center; gap: 8px; }
.spacer { flex: 1; }
.muted { color: var(--muted-foreground); }
