.merchant-app {
  --nav-active: var(--nx-merchant);
  font-family: var(--font-merchant);
}

.merchant-app .app-header {
  background: linear-gradient(180deg, #fff 0%, var(--nexi-wash) 100%);
  border-top: 3px solid var(--nexi-blue);
}

.merchant-app .btn.is-on,
.merchant-app .btn-merchant.is-on {
  background: var(--nexi-blue-dark);
  color: #fff;
}

.mcc-tag {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--nx-merchant);
  background: var(--nx-merchant-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.alert-live {
  background: linear-gradient(145deg, #fff 0%, var(--nexi-wash) 100%);
  border: 2px solid var(--nx-merchant);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: 0 8px 24px rgba(45, 50, 170, 0.16);
}

.alert-live .live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nx-merchant);
  margin-bottom: var(--space-3);
}

.metric-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.metric-split .box {
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--nx-surface);
  text-align: center;
}

.metric-split .box .pct {
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.suggest-box {
  background: var(--nx-warning-bg);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border: 1px solid #fcd34d;
}

.placeholder-page {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--nx-text-muted);
}

.placeholder-page svg {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  opacity: 0.5;
}

.radar {
  position: relative;
  height: 180px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(45, 50, 170, 0.18);
  background:
    radial-gradient(circle at 50% 54%, rgba(94, 209, 215, 0.55), transparent 46%),
    #e4e3f6;
  overflow: hidden;
}

.radar .ring {
  position: absolute;
  left: 50%;
  top: 54%;
  border: 1.5px dashed rgba(45, 50, 170, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.radar .ring.r1 { width: 64px; height: 64px; }
.radar .ring.r2 { width: 112px; height: 112px; }
.radar .ring.r3 { width: 164px; height: 164px; }

.radar .you {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--nexi-blue);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar .blip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pz-accent);
  box-shadow: 0 0 0 4px rgba(94, 209, 215, 0.35);
}

.compare-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  align-items: end;
  height: 120px;
}

.compare-bars .col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  text-align: center;
  gap: 6px;
}

.compare-bars .fill {
  width: 64px;
  margin: 0 auto;
  border-radius: 8px 8px 2px 2px;
  background: var(--nexi-blue);
}

.compare-bars .fill.holdout {
  background: var(--nexi-gray);
}
