/* SONARA — Producer-specific shell additions (KYC pill, revenue pill) */

/* ─────── Anchors styled as buttons: never underline ─────── */
a.ip-btn, a.prod-cta, a.prod-cta-secondary, a.cta-pill, a.wallet-pill,
a.qa-card, a.roster-row, a.tal-card, a.more, a.msg-row, a.pp-link,
a.pf-action-btn, a[class*="btn"] {
  text-decoration: none;
}

/* ─────── SIDEBAR: Marketplace primary CTA item ─────── */
.sidebar-section.accent {
  color: var(--violet-bright, #7b55d0);
  display: flex; align-items: center; gap: 6px;
  text-transform: uppercase;
}
.sidebar-section-dot {
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--violet-bright, #7b55d0);
  box-shadow: 0 0 0 3px rgba(123,85,208,0.18);
  animation: ip-pulse 1.8s ease-in-out infinite;
}

.nav-item.market {
  background:
    radial-gradient(ellipse 100% 80% at 0% 50%, rgba(123,85,208,0.16), transparent 60%),
    rgba(123,85,208,0.06);
  border: 1px solid rgba(123,85,208,0.30);
  padding: 12px 14px;
  margin-bottom: 4px;
  color: var(--foreground);
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all 200ms var(--ease-out);
}
.nav-item.market::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(123,85,208,0.10) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 600ms ease;
}
.nav-item.market:hover {
  border-color: rgba(123,85,208,0.55);
  background:
    radial-gradient(ellipse 100% 80% at 0% 50%, rgba(123,85,208,0.22), transparent 60%),
    rgba(123,85,208,0.10);
}
.nav-item.market:hover::after {
  transform: translateX(100%);
}
.nav-item.market.active {
  background:
    radial-gradient(ellipse 100% 80% at 0% 50%, rgba(123,85,208,0.26), transparent 60%),
    rgba(123,85,208,0.14);
  border-color: rgba(123,85,208,0.65);
}
.nav-item.market.active::before { display: none; }
.nav-item.market .ic {
  color: var(--violet-bright, #7b55d0);
  width: 24px; height: 24px;
}
.market-meta { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.market-meta .label {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: -0.005em;
}
.market-meta .sub {
  font-size: 10.5px;
  color: var(--muted-foreground);
  font-weight: 400;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-item.market .badge-pill.new {
  background: var(--violet);
  color: white;
  font-weight: 700;
  padding: 3px 9px;
  font-size: 11px;
  box-shadow: 0 4px 12px rgba(123,85,208,0.40);
}

/* ─────── TOPBAR: persistent Opportunità CTA ─────── */
.opp-cta-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px;
  padding: 0 6px 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet-light, #6b4bb8) 0%, var(--violet) 60%, var(--violet-dark, #2e1866) 100%);
  color: white;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 4px 14px -4px rgba(123,85,208,0.55);
  transition: all 160ms var(--ease-out);
  position: relative;
  white-space: nowrap;
}
.opp-cta-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -6px rgba(123,85,208,0.70);
}
.opp-cta-pill:active { transform: scale(0.98); }
.opp-cta-ic {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
}
.opp-cta-label { font-size: 13px; }
.opp-cta-badge {
  background: rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .opp-cta-pill .opp-cta-label { display: none; }
  .opp-cta-pill { padding: 0 6px 0 8px; }
}
@media (max-width: 720px) {
  .opp-cta-pill .opp-cta-badge { display: none; }
  .opp-cta-pill { padding: 0 10px; height: 36px; }
}

/* ─────── BOTTOM NAV: primary Opportunità lift ─────── */
.bottom-nav-item.primary {
  position: relative;
}
.bottom-nav-item.primary .ic {
  background: var(--violet);
  color: white;
  width: 44px; height: 44px;
  border-radius: 999px;
  box-shadow: 0 6px 16px -4px rgba(123,85,208,0.60);
  margin-top: -10px;
  margin-bottom: 2px;
}
.bottom-nav-item.primary.active .ic {
  background: var(--violet-light, #6b4bb8);
}
.bottom-nav-item.primary .badge-pill {
  top: -4px !important;
  right: 12% !important;
}

/* ─────── NOTIFICATIONS POPOVER ─────── */
.notif-wrap { position: relative; }
.icon-btn.active {
  background: rgba(123,85,208,0.14);
  border-color: rgba(123,85,208,0.40);
  color: var(--violet-bright, #7b55d0);
}
.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 24px);
  z-index: 60;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45), 0 0 0 1px rgba(123,85,208,0.10);
  overflow: hidden;
  display: flex; flex-direction: column;
  max-height: min(560px, calc(100vh - 110px));
  animation: notif-pop 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes notif-pop {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.notif-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--foreground);
  display: inline-flex; align-items: center; gap: 8px;
}
.notif-title-badge {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--violet);
  color: white;
  letter-spacing: 0.02em;
}
.notif-mark-all {
  background: transparent;
  border: 0;
  padding: 4px 6px;
  font-family: inherit;
  font-size: 11.5px;
  color: var(--muted-foreground);
  cursor: pointer;
  text-decoration: underline;
}
.notif-mark-all:hover { color: var(--foreground); }
.notif-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.notif-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: var(--muted-foreground);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 120ms;
}
.notif-tab:hover { color: var(--foreground); background: var(--muted); }
.notif-tab.active {
  background: var(--muted);
  color: var(--foreground);
}
.notif-tab .c {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--background);
  color: var(--muted-foreground);
}
.notif-tab.active .c {
  background: var(--violet);
  color: white;
}
.notif-list {
  flex: 1;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.notif-item {
  display: grid;
  grid-template-columns: 36px 1fr 8px;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 120ms;
  align-items: flex-start;
}
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: var(--muted); }
.notif-item.unread { background: color-mix(in oklab, var(--card) 92%, var(--violet) 8%); }
.notif-item.unread:hover { background: color-mix(in oklab, var(--card) 86%, var(--violet) 14%); }
.notif-ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-ic.violet {
  background: rgba(123,85,208,0.14);
  color: var(--violet-bright, #7b55d0);
  border: 1px solid rgba(123,85,208,0.28);
}
.notif-ic.warning {
  background: rgba(245,158,11,0.14);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.30);
}
.notif-ic.success {
  background: rgba(34,197,94,0.14);
  color: #16a34a;
  border: 1px solid rgba(34,197,94,0.28);
}
.notif-ic.gold {
  background: rgba(245,158,11,0.10);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.22);
}
.notif-ic.neutral {
  background: var(--muted);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}
.notif-ic.urgent {
  box-shadow: 0 0 0 3px rgba(245,158,11,0.16);
  animation: ip-pulse 1.6s ease-in-out infinite;
}
.notif-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.notif-row1 {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px;
}
.notif-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.notif-time {
  font-size: 11px;
  color: var(--muted-foreground);
  white-space: nowrap;
  flex-shrink: 0;
}
.notif-text {
  font-size: 12.5px;
  color: var(--muted-foreground);
  line-height: 1.45;
}
.notif-item.unread .notif-text { color: var(--foreground); }
.notif-unread-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--violet);
  margin-top: 14px;
}
.notif-empty {
  padding: 50px 30px;
  text-align: center;
  color: var(--muted-foreground);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.notif-empty svg { color: var(--muted-foreground); opacity: 0.6; }
.notif-empty .t {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
}
.notif-empty .s { font-size: 12px; }
.notif-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--background);
}
.notif-foot-link {
  font-size: 12px;
  color: var(--muted-foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 120ms;
}
.notif-foot-link:hover { color: var(--violet-bright, #7b55d0); }
@media (max-width: 720px) {
  .notif-panel {
    right: 12px;
    width: calc(100vw - 24px);
    max-width: 380px;
  }
}

.kyc-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--card);
  transition: all 150ms var(--ease-out);
  text-decoration: none;
}
.kyc-pill:hover { border-color: var(--muted-foreground); background: var(--muted); }
.kyc-pill .ic {
  width: 18px; height: 18px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}
.kyc-pill.ok { color: var(--foreground); }
.kyc-pill.ok .ic { background: rgba(34,197,94,0.14); color: #22c55e; }
.kyc-pill.warn { color: var(--foreground); }
.kyc-pill.warn .ic { background: rgba(245,158,11,0.14); color: #f59e0b; }
.kyc-pill.alert {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.35);
  color: #f59e0b;
}
.kyc-pill.alert .ic { background: rgba(245,158,11,0.2); color: #f59e0b; }

@media (max-width: 720px) {
  .kyc-pill .label { display: none; }
  .kyc-pill { padding: 0 8px; }
}

.wallet-pill.prod-wallet { padding-right: 14px; }
.wallet-pill.prod-wallet .dim {
  font-size: 11px;
  color: var(--muted-foreground);
  font-weight: 500;
  margin-left: -2px;
}

@media (max-width: 720px) {
  .wallet-pill.prod-wallet .dim { display: none; }
}

/* Greet right-side actions can wrap on narrow */
.greet .right { flex-wrap: wrap; }
.greet .right .wallet-pill { padding-right: 14px; }
