/* ==========================================================================
   Wink Tour — Light Corporate & Executive Lead Suite Design System
   Estilo clean, minimalista, sério e de alta conversão sem emojis.
   ========================================================================== */

:root {
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-input: #ffffff;

  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-focus: #2563eb;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --brand-primary: #1e293b;
  --brand-primary-hover: #0f172a;
  --brand-accent: #2563eb;
  --brand-accent-hover: #1d4ed8;
  --brand-accent-subtle: #eff6ff;

  --color-success: #059669;
  --color-success-subtle: #ecfdf5;
  --color-success-border: #a7f3d0;

  --color-warning: #d97706;
  --color-warning-subtle: #fffbeb;
  --color-warning-border: #fde68a;

  --color-hot: #dc2626;
  --color-hot-subtle: #fef2f2;
  --color-hot-border: #fecaca;

  --color-super: #7c3aed;
  --color-super-subtle: #f5f3ff;
  --color-super-border: #ddd6fe;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-main);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   APP SHELL & CABEÇALHO EXECUTIVO
   ========================================================================== */

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  z-index: 20;
  gap: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--brand-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-title-row h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-success);
  background-color: var(--color-success-subtle);
  border: 1px solid var(--color-success-border);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-success);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* TABS SEGMENTADAS (CONTROLE DE VISUALIZAÇÃO MOBILE) */
.view-segmented-control {
  display: none;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
}

.tab-segment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-segment.active {
  background-color: var(--bg-surface);
  color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.tab-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background-color: var(--brand-accent-subtle);
  color: var(--brand-accent);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

/* AÇÕES DO CABEÇALHO */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-clean-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clean-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn-clean-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background-color: var(--brand-primary);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-clean-primary:hover {
  background-color: var(--brand-primary-hover);
}

.btn-icon-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-icon-link:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* ==========================================================================
   LAYOUT PRINCIPAL (2 COLUNAS: CHAT + RAIO-X)
   ========================================================================== */

.app-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  flex: 1;
  overflow: hidden;
}

/* ==========================================================================
   COLUNA DO CHAT (EXPERIÊNCIA DO VIAJANTE)
   ========================================================================== */

.chat-section {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--bg-canvas);
  border-right: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.chat-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-behavior: smooth;
}

/* MENSAGENS */
.chat-msg {
  display: flex;
  gap: 12px;
  max-width: 86%;
  animation: fadeInMsg 0.25s ease-out;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.assistant {
  align-self: flex-start;
}

.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.chat-msg.assistant .msg-avatar {
  background-color: var(--brand-primary);
  color: #ffffff;
}

.chat-msg.user .msg-avatar {
  background-color: var(--brand-accent);
  color: #ffffff;
}

.msg-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg-bubble {
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  font-size: 0.92rem;
  line-height: 1.6;
}

.chat-msg.assistant .msg-bubble {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-top-left-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.chat-msg.user .msg-bubble {
  background-color: var(--brand-primary);
  color: #ffffff;
  border-top-right-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.msg-bubble p {
  margin-bottom: 12px;
  line-height: 1.6;
}

.msg-bubble p:last-child {
  margin-bottom: 0;
}

.msg-bubble strong {
  font-weight: 700;
}

/* CARD SINGELO DE RECOMENDAÇÃO (DISCRETO, COMPACTO E ELEGANTE) */
.package-singelo-card {
  margin-top: 10px;
  padding: 14px 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 520px;
  animation: fadeInSingelo 0.35s ease-out;
}

@keyframes fadeInSingelo {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.package-singelo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.package-singelo-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-accent);
  background-color: var(--brand-accent-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.package-singelo-duracao {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.package-singelo-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 2px 0 0 0;
}

.package-singelo-price {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
}

.package-singelo-price strong {
  color: var(--brand-primary);
  font-weight: 700;
}

.package-singelo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.btn-singelo-itinerary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 170px;
  padding: 9px 14px;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-singelo-itinerary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-hover);
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.btn-singelo-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 170px;
  padding: 9px 14px;
  background-color: #059669;
  color: #ffffff;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-singelo-whatsapp:hover {
  background-color: #047857;
  color: #ffffff;
  transform: translateY(-1px);
}

/* CHIPS DE SUGESTÃO RÁPIDA */
.quick-chips-stream {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.clean-chip-btn {
  padding: 7px 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.clean-chip-btn:hover {
  background-color: var(--brand-accent-subtle);
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  transform: translateY(-1px);
}

/* CARD DE APRESENTAÇÃO DE PACOTE (CLEAN & SÉRIO) */
.package-showcase-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 8px;
}

.package-cover-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.package-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.package-cover-wrap:hover .package-cover-img {
  transform: scale(1.03);
}

.package-cover-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.package-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.package-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.package-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.package-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: var(--bg-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.package-highlights-list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.package-highlights-list li svg {
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ROTEIRO DIA A DIA */
.itinerary-days-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.itinerary-day-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 10px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.day-thumb {
  width: 80px;
  height: 65px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.day-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.day-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
}

.day-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.day-sensory {
  font-size: 0.75rem;
  color: var(--brand-accent);
  font-weight: 600;
  font-style: italic;
}

/* CALLOUT WHATSAPP */
.handover-callout {
  margin-top: 8px;
  padding: 14px;
  background-color: var(--color-success-subtle);
  border: 1px solid var(--color-success-border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.handover-callout h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #065f46;
}

.handover-callout p {
  font-size: 0.82rem;
  color: #047857;
}

.btn-cta-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background-color: #059669;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-cta-whatsapp:hover {
  background-color: #047857;
  transform: translateY(-1px);
}

/* DIGITAÇÃO (TYPING INDICATOR) */
.typing-container {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
}

.typing-container.active {
  display: flex;
}

.typing-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typing-bubble {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.typing-bubble .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--text-muted);
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-bubble .dot:nth-child(1) { animation-delay: 0s; }
.typing-bubble .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-bubble .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.typing-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* BARRA DE ENVIO */
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
}

.clean-input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
  outline: none;
}

.clean-input:focus {
  background-color: var(--bg-surface);
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn-send-message {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--brand-primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-send-message:hover {
  background-color: var(--brand-primary-hover);
}

.btn-send-message:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   COLUNA DO RAIO-X DO LEAD (B2B SUITE)
   ========================================================================== */

.lead-panel {
  background-color: var(--bg-surface);
  height: 100%;
  overflow-y: auto;
  padding: 24px;
}

.lead-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 540px;
  margin: 0 auto;
}

.panel-header-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.panel-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.panel-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* CARD STATUS & SCORE */
.lead-status-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.status-funnel-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.heat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.heat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.heat-pill.frio {
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
.heat-pill.frio .heat-dot { background-color: var(--text-muted); }

.heat-pill.morno {
  background-color: var(--color-warning-subtle);
  color: var(--color-warning);
  border: 1px solid var(--color-warning-border);
}
.heat-pill.morno .heat-dot { background-color: var(--color-warning); }

.heat-pill.quente {
  background-color: var(--color-hot-subtle);
  color: var(--color-hot);
  border: 1px solid var(--color-hot-border);
}
.heat-pill.quente .heat-dot { background-color: var(--color-hot); }

.heat-pill.super-quente {
  background-color: var(--color-super-subtle);
  color: var(--color-super);
  border: 1px solid var(--color-super-border);
}
.heat-pill.super-quente .heat-dot { background-color: var(--color-super); }

.score-progress-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.score-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.score-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.score-number {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
}

.progress-track {
  width: 100%;
  height: 7px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--brand-accent);
  border-radius: var(--radius-full);
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}

/* OPORTUNIDADE COMERCIAL */
.lead-commercial-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-section-header svg {
  color: var(--brand-accent);
}

.deal-metrics-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.deal-val-block, .deal-sub-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.deal-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.deal-value-amount {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-success);
}

.deal-ticket-amount {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.suggested-package-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.deal-package-name {
  font-weight: 600;
  color: var(--brand-accent);
}

/* MATRIZ DE DADOS DO VIAJANTE (MONTAGEM PROGRESSIVA) */
.lead-matrix-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-card-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

/* Estado Vazio (Aguardando) */
.profile-card-item.empty {
  border: 1px dashed var(--border-color);
  background-color: var(--bg-canvas);
}

.profile-card-item.empty .card-item-icon {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
}

.profile-card-item.empty .card-item-value {
  color: var(--text-muted);
  font-weight: 500;
  font-style: italic;
}

.profile-card-item.empty .card-item-status {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* Estado Preenchido (Mapeado) */
.profile-card-item.filled {
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.profile-card-item.filled .card-item-icon {
  background-color: var(--brand-accent-subtle);
  color: var(--brand-accent);
}

.profile-card-item.filled .card-item-value {
  color: var(--text-primary);
  font-weight: 600;
  font-style: normal;
}

.profile-card-item.filled .card-item-status {
  background-color: var(--color-success-subtle);
  color: var(--color-success);
  border: 1px solid var(--color-success-border);
}

/* ANIMAÇÃO DE MONTAGEM E DESCOBERTA */
.profile-card-item.just-discovered {
  animation: cardAssemble 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardAssemble {
  0% {
    transform: scale(0.97);
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
    background-color: var(--brand-accent-subtle);
  }
  60% {
    transform: scale(1.02);
    border-color: var(--brand-accent);
  }
  100% {
    transform: scale(1);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
    background-color: var(--bg-surface);
  }
}

.card-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.card-item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.card-item-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.card-item-value {
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-item-status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* CHIPS DE PRIORIDADES */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.chip-muted {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.chip-tag {
  font-size: 0.72rem;
  font-weight: 600;
  background-color: var(--brand-accent-subtle);
  color: var(--brand-accent);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  animation: fadeInMsg 0.3s ease;
}

/* ESTRATÉGIA COPILOTO */
.copilot-pitch-box {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--brand-accent);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pitch-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pitch-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* BOTÕES DE AÇÃO DO PAINEL */
.panel-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-top: 4px;
}

.btn-clean-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
}

.btn-action-copy {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-action-copy:hover {
  background-color: var(--border-color);
}

.btn-action-whatsapp {
  background-color: var(--color-success);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-action-whatsapp:hover {
  background-color: #047857;
  transform: translateY(-1px);
}

/* ==========================================================================
   TOAST DE NOTIFICAÇÃO
   ========================================================================== */

.toast-card {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--brand-primary);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  transform: translateY(80px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.toast-card.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  color: #34d399;
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE & TABLET)
   ========================================================================== */

@media (max-width: 960px) {
  .app-shell {
    height: 100vh;
    height: 100dvh;
  }

  .app-header {
    padding: 10px 16px;
    flex-wrap: wrap;
  }

  .brand-subtitle {
    display: none;
  }

  .view-segmented-control {
    display: flex;
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .app-main-grid {
    grid-template-columns: 1fr;
    position: relative;
  }

  .chat-section {
    display: none;
    border-right: none;
  }

  .chat-section.active {
    display: flex;
  }

  .lead-panel {
    display: none;
  }

  .lead-panel.active {
    display: block;
  }

  .chat-viewport {
    padding: 16px;
  }

  .chat-msg {
    max-width: 92%;
  }

  .chat-input-bar {
    padding: 12px 16px;
  }
}

/* ==========================================================================
   BANNER DE ROTEIRO COMPILADO & BOTÕES DE AÇÃO DO CHAT
   ========================================================================== */

.itinerary-ready-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid var(--color-success-border);
  border-radius: var(--radius-md);
  margin-top: 10px;
  box-shadow: var(--shadow-sm);
  animation: bannerFadeIn 0.4s ease-out;
}

@keyframes bannerFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.banner-pulse-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-success);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.banner-text strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: #065f46;
}

.banner-text span {
  font-size: 0.8rem;
  color: #047857;
  line-height: 1.4;
}

/* CARDS DO PACOTE NO CHAT */
.package-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.official-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-accent);
  background-color: var(--brand-accent-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.package-card-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.btn-open-modal-itinerary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 18px;
  background-color: var(--brand-primary);
  color: #ffffff;
  border: 1px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-open-modal-itinerary:hover {
  background-color: var(--brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   MODAL DE ROTEIRO COMPLETO DIA A DIA (INTERATIVE SHOWCASE)
   ========================================================================== */

.itinerary-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.itinerary-modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.itinerary-modal-container {
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.itinerary-modal-backdrop.active .itinerary-modal-container {
  transform: translateY(0) scale(1);
}

/* CABEÇALHO DA MODAL */
.itinerary-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  z-index: 10;
}

.modal-header-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-category-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-accent);
}

.modal-package-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.btn-close-modal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  background-color: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: rotate(90deg);
}

/* CORPO DA MODAL */
.itinerary-modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.itinerary-modal-body::-webkit-scrollbar {
  width: 6px;
}

.itinerary-modal-body::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: var(--radius-full);
}

/* HERO DA MODAL */
.modal-hero-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.modal-hero-meta-bar {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.modal-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.modal-meta-tag.highlight {
  background-color: #059669;
  color: #ffffff;
}

/* SEÇÕES DA MODAL */
.modal-section-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.modal-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.modal-section-header svg {
  color: var(--brand-accent);
}

/* GRID DE DESTAQUES INCLUSOS */
.modal-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  list-style: none;
}

.modal-highlights-grid li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background-color: var(--bg-surface);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.modal-highlights-grid li svg {
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* LINHA DO TEMPO DIA A DIA */
.modal-timeline-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-day-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-day-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.modal-day-thumb-wrap {
  width: 140px;
  height: 105px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.modal-day-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.modal-day-card:hover .modal-day-thumb {
  transform: scale(1.05);
}

.modal-day-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-day-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.day-badge-pill {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  background-color: var(--brand-primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.modal-day-headline {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-day-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.modal-day-sensory-box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background-color: var(--brand-accent-subtle);
  border-left: 3px solid var(--brand-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.76rem;
  font-style: italic;
  color: #1e40af;
  margin-top: 4px;
}

/* RODAPÉ FIXO DA MODAL */
.itinerary-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  gap: 16px;
  z-index: 10;
}

.modal-footer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-footer-info strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-footer-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-modal-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: #059669;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn-modal-whatsapp:hover {
  background-color: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* RESPONSIVIDADE DA MODAL (MOBILE) */
@media (max-width: 640px) {
  .itinerary-modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .itinerary-modal-container {
    max-height: 94vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .modal-hero-wrap {
    height: 180px;
  }

  .modal-day-card {
    grid-template-columns: 1fr;
  }

  .modal-day-thumb-wrap {
    width: 100%;
    height: 140px;
  }

  .itinerary-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-modal-whatsapp {
    justify-content: center;
    width: 100%;
  }
}

