.card {
  background: var(--nx-card);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--nx-border);
}

.card-lg {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background 0.15s, opacity 0.15s;
}

.btn-primary {
  background: var(--nx-blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--nx-blue-dark);
}

.btn-secondary {
  background: var(--nx-blue-light);
  color: var(--nx-blue-dark);
}

.btn-merchant {
  background: var(--nx-merchant);
  color: #fff;
}

.btn-merchant:hover {
  background: var(--nx-merchant-dark);
}

.btn-outline {
  border: 1.5px solid var(--nx-border);
  background: var(--nx-card);
  color: var(--nx-text);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 36px;
  padding: 0 var(--space-3);
  font-size: var(--fs-xs);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
}

.chip-success {
  background: var(--nx-success-bg);
  color: var(--nx-success);
}

.chip-warning {
  background: var(--nx-warning-bg);
  color: var(--nx-warning);
}

.chip-neutral {
  background: var(--nx-surface);
  color: var(--nx-text-muted);
}

.chip-danger {
  background: var(--nx-danger-bg);
  color: var(--nx-danger);
}

.chip-accent {
  background: var(--nx-accent-bg);
  color: var(--nx-accent);
}

.chip-points {
  background: var(--nx-points-bg);
  color: var(--nx-points);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 700;
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
  color: #92400e;
  border: 1px solid #fcd34d;
}

.insight {
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--nx-success-bg), #d1fae5);
  border: 1px solid #a7f3d0;
}

.insight-warn {
  background: linear-gradient(135deg, var(--nx-warning-bg), #fde68a);
  border-color: #fcd34d;
}

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

.stat-tile {
  background: var(--nx-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}

.stat-tile .label {
  font-size: var(--fs-xs);
  color: var(--nx-text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-tile .value {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.delta-up {
  color: var(--nx-danger);
}

.delta-down {
  color: var(--nx-success);
}

.list-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--nx-border);
}

.list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.list-item:first-child {
  padding-top: 0;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--nx-blue-light);
  color: var(--nx-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-sm);
  flex-shrink: 0;
}

.avatar-teal {
  background: var(--nx-merchant-light);
  color: var(--nx-merchant);
}

.section-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nx-text-muted);
  margin-bottom: var(--space-3);
}

.points-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--nx-points-bg);
  color: var(--nx-points);
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.hero-value {
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  padding-top: var(--space-2);
}

.bar-chart .bar {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: var(--nx-blue-light);
  min-height: 8px;
  position: relative;
  transition: height 0.2s;
}

.bar-chart .bar.fill {
  background: var(--nx-blue);
}

.bar-chart .bar.merchant-fill {
  background: var(--nx-merchant);
}

.bar-chart .bar-label {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  color: var(--nx-text-muted);
  font-weight: 600;
}

.bar-wrap {
  padding-bottom: 22px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--nx-border);
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle {
  width: 48px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--nx-border);
  position: relative;
  flex-shrink: 0;
}

.toggle.on {
  background: var(--nx-success);
}

.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s;
}

.toggle.on::after {
  transform: translateX(20px);
}

.field {
  margin-bottom: var(--space-4);
}

.field label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--nx-text-muted);
  margin-bottom: var(--space-2);
}

.field .input-fake {
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--nx-border);
  border-radius: var(--radius-sm);
  background: var(--nx-surface);
  font-size: var(--fs-sm);
  color: var(--nx-text);
  display: flex;
  align-items: center;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nx-success);
  box-shadow: 0 0 0 3px rgba(13, 159, 110, 0.25);
  animation: pulse 1.6s ease infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-mark.merchant {
  box-shadow: 0 0 0 1.5px var(--nx-merchant);
}
