/* GAIROX Client Journey & Scenario 1 Styles */
.journey-stage-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card, #121816);
  border: 1px solid var(--border, #22342c);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 22px;
  overflow-x: auto;
}
.journey-step-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #7e9c90);
  white-space: nowrap;
}
.journey-step-chip.active {
  color: var(--accent, #64dcb5);
}
.journey-step-chip .step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1c2b24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border: 1px solid #2d453b;
}
.journey-step-chip.active .step-num {
  background: #183e30;
  border-color: #64dcb5;
  color: #64dcb5;
}
.journey-arrow {
  color: #385547;
  font-size: 12px;
}
.journey-client-card {
  background: var(--bg-card, #121816);
  border: 1px solid var(--border, #22342c);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.journey-client-card:hover {
  border-color: #3b5c4e;
}
.journey-client-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.journey-client-title h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  color: #e6f2ed;
}
.journey-client-title p {
  margin: 0;
  font-size: 12px;
  color: var(--muted, #7e9c90);
}
.journey-client-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  background: #0d1311;
  border: 1px solid #1c2b24;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 12px;
}
.journey-meta-item small {
  display: block;
  font-size: 10px;
  color: #688579;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.journey-meta-item b {
  color: #c9e0d6;
}
.journey-actions-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #1c2b24;
}
.journey-actions-panel .button {
  font-size: 12px;
  padding: 6px 12px;
}
.badge-stage {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stage-booked { background: #1b2f29; color: #64dcb5; border: 1px solid #2e594b; }
.stage-confirmed { background: #26291a; color: #d6e279; border: 1px solid #545b2f; }
.stage-rescheduled { background: #32251a; color: #e5a770; border: 1px solid #6b4c2b; }
.stage-intake_completed { background: #242236; color: #bcaaf0; border: 1px solid #4a4270; }
.stage-demo_built { background: #1c2838; color: #8bbdff; border: 1px solid #36557a; }
.stage-quote_sent { background: #332029; color: #f29ac2; border: 1px solid #6e3750; }
.stage-followup_sent { background: #33271c; color: #e6b17c; border: 1px solid #6b4d30; }
.stage-paid { background: #1c3629; color: #7de8b0; border: 1px solid #336e4f; }
.stage-delivered { background: #1a3338; color: #7dcbe8; border: 1px solid #2f5d69; }
.stage-day5_checkup { background: #26291a; color: #c8dc82; border: 1px solid #4d542d; }
.stage-completed { background: #153326; color: #52e39c; border: 1px solid #296b4b; }

.webhook-snippet {
  background: #0d1311;
  border: 1px solid #1c2b24;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 10px 0;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: #8bbdff;
  word-break: break-all;
}

/* WhatsApp Pairing Modal Styles */
.wa-pair-box {
  background: #0d1311;
  border: 1px solid #1c2b24;
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  margin: 14px 0;
}
.wa-qr-img {
  background: #ffffff;
  padding: 12px;
  border-radius: 8px;
  max-width: 240px;
  display: block;
  margin: 12px auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.wa-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wa-status-pill.online {
  background: #143526;
  color: #52e39c;
  border: 1px solid #286b49;
}
.wa-status-pill.waiting {
  background: #332714;
  color: #f7c96e;
  border: 1px solid #6e5223;
}
.wa-status-pill.offline {
  background: #331a1a;
  color: #e57373;
  border: 1px solid #6b2828;
}

/* Chat & Meeting Intake Modal Styles */
.chat-dialogue-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-messages-box {
  background: #0a0e0c;
  border: 1px solid #1c2b24;
  border-radius: 8px;
  padding: 14px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
}
.chat-bubble.client {
  align-self: flex-start;
  background: #182822;
  border: 1px solid #2e4d40;
  color: #e6f2ed;
}
.chat-bubble.ai {
  align-self: flex-end;
  background: #192a38;
  border: 1px solid #2e5573;
  color: #dceeff;
}
.chat-bubble-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted, #7e9c90);
  margin-bottom: 4px;
  gap: 8px;
}
.chat-intent-tag {
  background: #233b30;
  color: #64dcb5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}
.chat-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}
.chat-preset-btn {
  background: #14201b;
  border: 1px solid #253d33;
  color: #a8d5c4;
  padding: 5px 10px;
  border-radius: 14px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chat-preset-btn:hover {
  background: #1d332a;
  border-color: #64dcb5;
  color: #ffffff;
}
.chat-composer {
  display: flex;
  gap: 8px;
}
.chat-composer input {
  flex: 1;
}
.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: #14241e;
  border: 1px solid #244237;
  color: #8ce0bd;
}
.channel-select {
  background: #121d18;
  border: 1px solid #223c30;
  color: #c9e0d6;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
}
