.utm-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: row-reverse; /* newest appears on the right, stack extends left */
  align-items: flex-end;
  justify-content: flex-start;
  flex-wrap: wrap-reverse; /* if we run out of horizontal space, wrap upward */
  gap: 10px;
}

.utm-card {
  width: 180px;
  max-width: calc(100vw - 32px);
}

.utm-card {
  position: relative;
  border: 1px solid rgba(0,0,0,.125);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  overflow: hidden;
}

.utm-fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(0);
  background: rgba(13, 110, 253, 0.12);
  pointer-events: none;
}

.utm-card-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.utm-card-body {
  position: relative;
  z-index: 1;
  padding: 10px 12px 12px 12px;
}

.utm-status {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 8px;
}

.utm-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.utm-actions .btn {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 10px;
}

/* Old tiny progress bar is kept hidden (we now fill the whole card background) */
.utm-progress { display: none; }
.utm-progress > div { display: none; }

.utm-card.utm-success .utm-card-header { background: rgba(25,135,84,.08); }
.utm-card.utm-success .utm-fill { background: rgba(25,135,84,.14); }

.utm-card.utm-failure .utm-card-header { background: rgba(220,53,69,.08); }
.utm-card.utm-failure .utm-fill { background: rgba(220,53,69,.14); }


