// Partner Status Tracker — vertical timeline

.pst-container {
  padding: 4px 0;
}

.pst-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gb-color-text-secondary, #6b7494);
  padding: 12px 0;
}

.pst-error {
  font-size: 12px;
  color: var(--gb-color-danger, #f04444);
  padding: 8px 0;
}

.pst-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--gb-color-border, rgba(255, 255, 255, 0.10));
  border-top-color: var(--gb-color-primary, #3d7fff);
  border-radius: 50%;
  animation: pst-spin 0.7s linear infinite;
}

@keyframes pst-spin {
  to { transform: rotate(360deg); }
}

// ── Timeline ──────────────────────────────────────────────────────────────────
.pst-timeline {
  display: flex;
  flex-direction: column;
}

.pst-step {
  display: flex;
  gap: 12px;
  padding: 0 0 8px;

  &--completed {
    .pst-step__dot {
      background: var(--gb-color-success-subtle, rgba(34, 211, 160, 0.10));
      border-color: var(--gb-color-success, #22d3a0);
      color: var(--gb-color-success, #22d3a0);
    }
    .pst-step__line { background: var(--gb-color-success, #22d3a0); }
    .pst-step__label { color: var(--gb-color-text-secondary, #6b7494); }
  }

  &--current {
    .pst-step__dot {
      background: var(--gb-color-primary-subtle, rgba(61, 127, 255, 0.10));
      border-color: var(--gb-color-primary, #3d7fff);
      color: var(--gb-color-primary, #3d7fff);
    }
    .pst-step__label { color: var(--gb-color-primary, #3d7fff); font-weight: 600; }
  }
}

.pst-step__track {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 22px;
}

.pst-step__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--gb-color-border, rgba(255, 255, 255, 0.10));
  background: var(--gb-color-surface-raised, rgba(255, 255, 255, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.pst-step__pulse {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gb-color-primary, #3d7fff);
  animation: pst-pulse 1.5s ease-in-out infinite;
}

@keyframes pst-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.pst-step__line {
  width: 1.5px;
  flex: 1;
  min-height: 14px;
  background: var(--gb-color-border, rgba(255, 255, 255, 0.08));
  margin: 3px 0;
}

.pst-step__body {
  flex: 1;
  padding-top: 2px;
  padding-bottom: 8px;
}

.pst-step__label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gb-color-text-primary, #eef0f6);
  line-height: 1.4;
}

.pst-step__meta {
  font-size: 11px;
  color: var(--gb-color-text-secondary, #6b7494);
  margin-top: 2px;
}

.pst-step__note {
  margin-top: 6px;
  font-size: 11.5px;
  background: var(--gb-color-surface-raised, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--gb-color-border, rgba(255, 255, 255, 0.08));
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--gb-color-text-primary, #b0b8d0);
  line-height: 1.6;
}

.pst-empty {
  font-size: 12px;
  color: var(--gb-color-text-tertiary, #aab4cc);
  padding: 8px 0;
}

// ── RTL support ───────────────────────────────────────────────────────────────
[dir="rtl"] {
  .pst-step {
    flex-direction: row-reverse;
  }
}
