/* ═══════════════════════════════════════════
   SAYLO — Components
   Reusable UI elements
═══════════════════════════════════════════ */

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.3px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--signal-l);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 77, 0, 0.35);
}

.btn--outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1.5px solid var(--bd-2);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--bd-3);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn--text {
  background: none;
  color: var(--text-secondary);
  padding: 0;
  gap: 10px;
}

.btn--text:hover { color: var(--text-primary); }

.btn__arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all var(--transition);
}

.btn--text:hover .btn__arrow {
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateX(3px);
}

/* Full width variant */
.btn--full { width: 100%; justify-content: center; }

/* Sizes */
.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn--lg { padding: 18px 36px; font-size: 16px; }

/* ─── STATUS PILLS ─── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pill__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

.pill--listening {
  background: rgba(255, 77, 0, 0.15);
  color: var(--signal-l);
  border: 1px solid rgba(255, 77, 0, 0.3);
}

.pill--processing {
  background: var(--sky-dim);
  color: var(--sky);
  border: 1px solid rgba(0, 212, 255, 0.25);
}

.pill--done {
  background: var(--pulse-dim);
  color: var(--pulse);
  border: 1px solid rgba(0, 229, 160, 0.25);
}

.pill--live {
  background: var(--pulse-dim);
  color: var(--pulse);
  border: 1px solid rgba(0, 229, 160, 0.2);
}

/* ─── EYEBROW BADGE ─── */
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 77, 0, 0.1);
  border: 1px solid rgba(255, 77, 0, 0.22);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--signal-l);
  letter-spacing: 0.4px;
  width: fit-content;
}

.eyebrow-badge__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  animation: blink 1.2s ease-in-out infinite;
}

/* ─── SECTION TAGS ─── */
.tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  font-weight: 600;
}

.tag--signal  { background: rgba(255, 77, 0, 0.12);  color: var(--signal-l); }
.tag--sky     { background: var(--sky-dim);           color: var(--sky); }
.tag--pulse   { background: var(--pulse-dim);         color: var(--pulse); }
.tag--violet  { background: var(--violet-dim);        color: var(--violet); }

/* ─── KPI CARD ─── */
.kpi-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bd);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.kpi-card__label {
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  font-family: var(--font-body);
}

.kpi-card__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -1px;
  line-height: 1;
}

.kpi-card__value--signal { color: var(--signal); }
.kpi-card__value--pulse  { color: var(--pulse); }
.kpi-card__value--sky    { color: var(--sky); }

.kpi-card__delta {
  font-size: 10px;
  color: var(--pulse);
  margin-top: 4px;
}

/* ─── PIPE CARD ─── */
.pipe-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bd);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 5px;
}

.pipe-card__name {
  font-weight: 600;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2px;
}

.pipe-card__val {
  font-size: 10px;
  color: var(--text-secondary);
}

.pipe-card__bar {
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 6px;
  overflow: hidden;
}

.pipe-card__fill {
  height: 100%;
  border-radius: 1px;
}

/* ─── PIPE COLUMN HEADER ─── */
.pipe-head {
  font-size: 10px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  text-align: center;
  letter-spacing: 0.3px;
}

.pipe-head--new  { background: rgba(255, 77, 0, 0.15);  color: var(--signal-l); }
.pipe-head--prop { background: var(--sky-dim);           color: var(--sky); }
.pipe-head--neg  { background: var(--violet-dim);        color: #A78BFA; }
.pipe-head--won  { background: var(--pulse-dim);         color: var(--pulse); }

/* ─── WAVEFORM ─── */
.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
}

.wf-bar {
  width: 3px;
  border-radius: 2px;
  background: var(--signal);
  animation: wf 1s ease-in-out infinite;
  opacity: 0.8;
}

.wf-bar:nth-child(1)  { height: 6px;  animation-delay: 0.00s; }
.wf-bar:nth-child(2)  { height: 14px; animation-delay: 0.08s; }
.wf-bar:nth-child(3)  { height: 26px; animation-delay: 0.16s; }
.wf-bar:nth-child(4)  { height: 34px; animation-delay: 0.24s; }
.wf-bar:nth-child(5)  { height: 28px; animation-delay: 0.20s; }
.wf-bar:nth-child(6)  { height: 36px; animation-delay: 0.12s; }
.wf-bar:nth-child(7)  { height: 22px; animation-delay: 0.28s; }
.wf-bar:nth-child(8)  { height: 30px; animation-delay: 0.04s; }
.wf-bar:nth-child(9)  { height: 18px; animation-delay: 0.20s; }
.wf-bar:nth-child(10) { height: 10px; animation-delay: 0.32s; }
.wf-bar:nth-child(11) { height: 5px;  animation-delay: 0.00s; }

@keyframes wf {
  0%, 100% { transform: scaleY(1);    opacity: 0.5; }
  50%       { transform: scaleY(0.3); opacity: 1;   }
}

/* Small waveform variant */
.waveform--sm .wf-bar { width: 2px; }
.waveform--sm .wf-bar:nth-child(1)  { height: 5px;  }
.waveform--sm .wf-bar:nth-child(2)  { height: 10px; }
.waveform--sm .wf-bar:nth-child(3)  { height: 7px;  }
.waveform--sm .wf-bar:nth-child(4)  { height: 13px; }
.waveform--sm .wf-bar:nth-child(5)  { height: 5px;  }
