/* SONARA — Producer dashboard additions */

/* ─────── Revenue card (right column) ─────── */
.rev-card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 90% 60% at 0% 0%, rgba(123,85,208,0.18), transparent 60%),
    linear-gradient(135deg, rgba(123,85,208,0.10) 0%, rgba(65,34,142,0.04) 60%, transparent 100%),
    var(--card);
  padding: 20px 20px 18px;
  position: relative;
  overflow: hidden;
}
.rev-card::before {
  content: '';
  position: absolute;
  width: 240px; height: 240px;
  right: -80px; top: -80px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(123,85,208,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.rev-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  position: relative;
}
.rev-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  font-weight: 500;
  margin-bottom: 4px;
}
.rev-balance {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
  display: inline-flex; align-items: baseline; gap: 2px;
  line-height: 1;
}
.rev-balance .ccy { font-size: 22px; color: var(--muted-foreground); font-weight: 500; }
.rev-balance .num { font-size: 38px; }
.rev-balance .cents { font-size: 20px; color: var(--muted-foreground); font-weight: 500; }
.rev-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--violet);
  color: white;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow-violet-sm);
  transition: all 150ms var(--ease-out);
  white-space: nowrap;
}
.rev-btn:hover { background: var(--violet-light, #6b4bb8); transform: translateY(-1px); }

.rev-pipeline {
  display: flex; flex-direction: column;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
  margin-bottom: 14px;
  position: relative;
}
.rev-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
}
.rev-dot {
  width: 10px; height: 10px;
  border-radius: 3px;
}
.rev-dot.esc { background: rgba(245,158,11,0.85); box-shadow: 0 0 0 3px rgba(245,158,11,0.18); }
.rev-dot.clr { background: rgba(123,85,208,0.85); box-shadow: 0 0 0 3px rgba(123,85,208,0.18); }
.rev-dot.pay { background: rgba(34,197,94,0.85); box-shadow: 0 0 0 3px rgba(34,197,94,0.18); }
.rev-row-l {
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 2px;
}
.rev-row-s {
  font-size: 11.5px;
  color: var(--muted-foreground);
  line-height: 1.4;
}
.rev-row-v {
  font-size: 14px;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.rev-row-v strong { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
.rev-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,0.14);
  color: #16a34a;
  border: 1px solid rgba(34,197,94,0.30);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.rev-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.rev-mini > div { min-width: 0; }
.rev-mini-l {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  font-weight: 500;
  margin-bottom: 4px;
}
.rev-mini-v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--foreground);
  line-height: 1;
}
.rev-mini-d {
  font-size: 11px;
  color: var(--muted-foreground);
  margin-top: 4px;
  display: inline-flex; align-items: center; gap: 3px;
}
.rev-mini-d.up { color: #22c55e; }
.rev-mini-d.down { color: #ef4444; }

/* ─────── Performance row (full-width 6-stat) ─────── */
.perf-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
@media (max-width: 1180px) { .perf-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .perf-row { grid-template-columns: repeat(2, 1fr); } }

.perf-stat {
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.perf-stat .l {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  font-weight: 500;
}
.perf-stat .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--foreground);
  line-height: 1.1;
  display: inline-flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.perf-stat .d {
  font-size: 11px;
  color: var(--muted-foreground);
  display: inline-flex; align-items: center; gap: 4px;
}
.perf-stat .d.up { color: #22c55e; }
.perf-stat .d.down { color: #ef4444; }
.perf-stars { display: inline-flex; color: #f59e0b; gap: 1px; margin-left: 2px; }
.perf-trophy { font-size: 18px; }

.perf-stat.highlight {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(245,158,11,0.18), transparent 60%),
    var(--card);
  border-color: rgba(245,158,11,0.28);
}

/* ─────── KYC banner ─────── */
.kyc-banner {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 18px;
}
.kyc-banner.alert {
  background: rgba(245,158,11,0.07);
  border: 1px solid rgba(245,158,11,0.30);
}
.kyc-banner.review {
  background: rgba(123,85,208,0.07);
  border: 1px solid rgba(123,85,208,0.30);
}
.kyc-banner .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.kyc-banner.alert .ic { background: rgba(245,158,11,0.18); color: #f59e0b; }
.kyc-banner.review .ic { background: rgba(123,85,208,0.18); color: var(--violet-bright, #7b55d0); }
.kyc-banner .meta .t {
  font-size: 14px; font-weight: 600;
  color: var(--foreground);
}
.kyc-banner .meta .s {
  font-size: 12.5px;
  color: var(--muted-foreground);
  margin-top: 2px;
}

/* ─────── Msg "waits" indicator ─────── */
.msg-waits {
  font-size: 8px;
  color: #f59e0b;
  margin-left: 4px;
  animation: ip-pulse 1.6s ease-in-out infinite;
}
