@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');
@import url('design-tokens.css');

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

body {
  font-family: var(--font-family-base);
  background-color: var(--color-background);
  color: var(--color-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container de Casca Mobile PWA */
.app-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--color-background);
  display: flex;
  flex-direction: column;
  position: relative;
  border-left: var(--border-hairline);
  border-right: var(--border-hairline);
}

/* Backoffice Container (Desktop / Tablet) */
.backoffice-shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--spacing-margin);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Editorial */
.app-header {
  padding: var(--spacing-margin) var(--spacing-margin) var(--spacing-space-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(251, 251, 251, 0.95);
  backdrop-filter: var(--backdrop-tactile);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: var(--border-hairline);
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: height 0.2s ease;
}

@media (min-width: 768px) {
  .brand-logo {
    height: 40px;
  }
}

/* Cartões com Borda Hairline */
.card-tier1 {
  background-color: var(--color-surface-container-lowest);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--spacing-margin);
  margin-bottom: var(--spacing-margin);
  box-shadow: var(--shadow-ambient);
}

/* Botões do Design System */
.btn-primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  border: none;
  border-radius: var(--radius-default);
  font-family: var(--font-family-base);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
  text-decoration: none;
}

.btn-primary-action:hover, .btn-primary-action:active {
  opacity: 0.92;
}

.btn-cobalt-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  background-color: var(--color-tertiary);
  color: var(--color-on-tertiary);
  border: none;
  border-radius: var(--radius-default);
  font-family: var(--font-family-base);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
  text-decoration: none;
}

.btn-cobalt-trigger:hover, .btn-cobalt-trigger:active {
  opacity: 0.92;
}

.btn-secondary-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-hairline-accent);
  border-radius: var(--radius-default);
  font-family: var(--font-family-base);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-decoration: none;
}

.btn-secondary-ghost:hover {
  background-color: var(--color-surface-container);
}

/* Indicadores de Status (Pill) */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill-secondary {
  background-color: rgba(197, 168, 128, 0.15);
  color: #78603e;
  border: 1px solid rgba(197, 168, 128, 0.3);
}

.status-pill-notarized {
  background-color: rgba(27, 67, 50, 0.1);
  color: var(--color-notarized);
  border: 1px solid rgba(27, 67, 50, 0.2);
}

.status-pill-error {
  background-color: var(--color-error-container);
  color: var(--color-error);
  border: 1px solid rgba(186, 26, 26, 0.2);
}

/* Campos de Formulário e Labels */
.fecho-form-group {
  margin-bottom: var(--spacing-space-md);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.fecho-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
  margin-bottom: 6px;
  display: block;
}

.fecho-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background-color: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-default);
  font-family: var(--font-family-base);
  font-size: 15px;
  color: var(--color-primary);
  transition: border-color 0.15s ease;
}

.fecho-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Modal e Overlay de Autenticação */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--spacing-margin);
}

.auth-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: var(--border-hairline);
  box-shadow: 0 12px 36px -4px rgba(17, 17, 17, 0.15);
  max-width: 440px;
  width: 100%;
  padding: 28px 24px;
  max-height: 92vh;
  overflow-y: auto;
}

.auth-nav-tabs {
  display: flex;
  background: var(--color-surface-container);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
}

.auth-nav-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--color-on-surface-variant);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  text-align: center;
}

.auth-nav-tab.active {
  background: #ffffff;
  color: var(--color-on-surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.auth-role-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-role-btn {
  flex: 1;
  border: 1px solid var(--color-outline-variant);
  background: var(--color-surface);
  padding: 10px 8px;
  border-radius: var(--radius-default);
  cursor: pointer;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-on-surface-variant);
  transition: all 0.15s ease;
  font-family: inherit;
}

.auth-role-btn.active {
  border-color: var(--color-primary);
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}


.demo-credentials-box {
  margin-top: var(--spacing-space-md);
  padding: 12px;
  background-color: var(--color-surface-container);
  border-radius: var(--radius-default);
  border: var(--border-hairline);
  font-size: 12px;
}

.btn-demo-pill {
  background: #ffffff;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  transition: background-color 0.15s ease;
  margin-top: 6px;
  display: inline-block;
  margin-right: 6px;
}

.btn-demo-pill:hover {
  background-color: var(--color-surface-container-high);
}

/* Modais Táteis / Drawers e Overlays */
.fecho-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: var(--backdrop-tactile);
  -webkit-backdrop-filter: var(--backdrop-tactile);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.fecho-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.fecho-drawer-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  border-top: var(--border-hairline);
  box-shadow: 0 -8px 32px rgba(17, 17, 17, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.fecho-modal-overlay.active .fecho-drawer-sheet {
  transform: translateY(0);
}

.drawer-header {
  padding: 16px 20px 12px;
  border-bottom: var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.drawer-close-btn {
  background: var(--color-surface-container);
  border: none;
  border-radius: var(--radius-full);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--color-outline);
  cursor: pointer;
  line-height: 1;
}

.drawer-body {
  padding: 16px 20px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

/* Filtros de Status */
.status-filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-chip-btn {
  background: var(--color-surface-container);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-on-surface-variant);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.filter-chip-btn.active {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}

/* Cartão de Imóvel da Carteira */
.property-card {
  background: #ffffff;
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-ambient);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.property-card:hover {
  border-color: var(--color-outline);
}

.property-card.is-selected {
  border-color: var(--color-tertiary);
  box-shadow: 0 0 0 1px var(--color-tertiary);
  background: rgba(29, 78, 216, 0.02);
}

.property-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.property-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.property-location {
  font-size: 13px;
  color: var(--color-outline);
}

.property-price {
  font-family: var(--font-family-base);
  font-feature-settings: 'tnum' on, 'cv01' on;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.property-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: var(--border-hairline);
  gap: 8px;
}

.btn-card-action {
  background: var(--color-surface-container);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-default);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-card-action:hover {
  background: var(--color-surface-container-high);
}

.btn-card-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}

.btn-card-primary:hover {
  opacity: 0.9;
}

/* Seção de Fecho de Venda em Destaque */
.sold-closing-box {
  background: var(--color-surface-container);
  border: 1px solid var(--color-secondary);
  border-radius: var(--radius-default);
  padding: 14px;
  margin-top: 12px;
  display: none;
}

.sold-closing-box.visible {
  display: block;
}

/* ==========================================================================
   CARTÃO HERÓI DE IMÓVEL EM FOCO (CALOR ARQUITETURAL - EDITORIAL LUXURY)
   ========================================================================== */
.hero-property-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(17, 17, 17, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-property-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(17, 17, 17, 0.08);
}

.hero-image-box {
  height: 164px;
  position: relative;
  background: #242220;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
  box-sizing: border-box;
}

.hero-svg-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.05) 0%, rgba(17, 17, 17, 0.82) 100%);
  pointer-events: none;
}

.hero-top-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exclusive-badge {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(197, 168, 128, 0.5);
  color: #78603e;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-location-pill {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
}

.hero-bottom-info {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.hero-prop-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eedcc6;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.hero-price-val {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-commission {
  font-size: 11px;
  font-weight: 600;
  color: #d6be9a;
}

.hero-details-row {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-top: 1px solid #f0f0ee;
  font-size: 11px;
  color: #555550;
}

/* ==========================================================================
   Calculadora Visual de Viabilidade Financeira (Editorial PropTech Luxury)
   ========================================================================== */

/* Barra de Contexto do Imóvel em Foco */
.calc-context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(197, 168, 128, 0.1);
  border: 1px solid rgba(197, 168, 128, 0.25);
  border-radius: var(--radius-default);
  padding: 8px 12px;
  margin-bottom: 14px;
  gap: 8px;
}

/* Controles Segmentados (Segmented Control Pill Switchers) */
.segmented-control {
  display: flex;
  background-color: var(--color-surface-container);
  border: var(--border-hairline);
  border-radius: var(--radius-default);
  padding: 3px;
  gap: 3px;
}

.segmented-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-on-surface-variant);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  white-space: nowrap;
}

.segmented-btn.active {
  background-color: #ffffff;
  color: var(--color-primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(17, 17, 17, 0.08);
}

/* Card do Toggle de IMT Jovem */
.calc-jovem-toggle-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-default);
  padding: 12px 14px;
  margin-top: 4px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.calc-jovem-toggle-box.is-active {
  border-color: var(--color-secondary);
  background-color: rgba(197, 168, 128, 0.04);
}

/* Switch Tátil */
.fecho-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.fecho-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--color-outline-variant);
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 24px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.fecho-switch input:checked + .slider-round {
  background-color: var(--color-primary);
}

.fecho-switch input:checked + .slider-round:before {
  transform: translateX(20px);
}

/* Campo de Valor e Atalhos */
.fecho-input-lg {
  font-size: 18px;
  font-weight: 700;
  height: 52px;
  letter-spacing: -0.01em;
}

.calc-shortcuts-bar {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.calc-shortcut-chip {
  background: var(--color-surface-container);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-on-surface-variant);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s ease;
}

.calc-shortcut-chip:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* Seção de Financiamento Bancário */
.calc-financiamento-section {
  background-color: var(--color-surface-container-low);
  border: var(--border-hairline);
  border-radius: var(--radius-default);
  padding: 14px;
  margin: 16px 0;
}

.calc-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* Slider de Alcance (Range Input) */
.fecho-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--color-surface-container-high);
  border-radius: 3px;
  outline: none;
  margin: 8px 0;
}

.fecho-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(17, 17, 17, 0.25);
  border: 2px solid #ffffff;
}

.fecho-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(17, 17, 17, 0.25);
  border: 2px solid #ffffff;
}

/* Matriz de Decomposição Financeira (Breakdown Card) */
.calc-breakdown-card {
  background: #ffffff;
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-ambient);
  margin-top: 16px;
}

.calc-hero-pmt {
  text-align: center;
  padding: 12px 8px 16px;
  border-bottom: var(--border-hairline);
}

.calc-pmt-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  margin: 6px 0 2px;
}

.calc-poupanca-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(197, 168, 128, 0.15);
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-radius: var(--radius-default);
  padding: 8px 12px;
  font-size: 12px;
  color: #78603e;
  margin: 12px 0;
}

.calc-data-matrix {
  display: flex;
  flex-direction: column;
}

.calc-matrix-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(234, 234, 234, 0.6);
  font-size: 13px;
}

.calc-row-label {
  color: var(--color-on-surface-variant);
  display: flex;
  align-items: center;
  gap: 6px;
}

.calc-row-value {
  font-weight: 600;
  color: var(--color-primary);
  text-align: right;
}

.calc-tag-pill {
  background: rgba(27, 67, 50, 0.1);
  color: var(--color-notarized);
  border-radius: var(--radius-full);
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 600;
}

.calc-matrix-subtotal {
  padding-top: 12px;
  border-bottom: var(--border-hairline);
  background-color: transparent;
}

.calc-matrix-hero {
  padding: 14px 0 4px;
  border-bottom: none;
}

/* ==========================================================================
   FASE 6: FEEDBACK DE VISITAS, GRAVADOR DE 30S E HUMAN-IN-THE-LOOP
   ========================================================================== */

/* Banner de Contexto do Imóvel */
.voice-property-banner {
  background: var(--color-surface-container-low);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--rounded-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}

/* Temporizador Tátil Circular */
.voice-timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}

.voice-timer-display {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.voice-progress-track {
  width: 140px;
  height: 4px;
  background: var(--color-surface-container-high);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 8px;
}

.voice-progress-bar {
  height: 100%;
  background: var(--color-tertiary);
  transition: width 0.25s linear;
}

/* Gatilho Háptico Redondo com Anéis de Pulso (Editorial Luxury) */
.voice-trigger-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 110px;
}

.btn-audio-record-pulse {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: none;
  background-color: var(--color-tertiary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(29, 78, 216, 0.35);
  transition: transform 0.15s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  z-index: 2;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-audio-record-pulse:active {
  transform: scale(0.94);
}

.btn-audio-record-pulse.is-recording {
  background-color: var(--color-error);
  box-shadow: 0 4px 20px rgba(186, 26, 26, 0.45);
}

.pulse-ring,
.pulse-ring-outer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

.btn-audio-record-pulse.is-recording ~ .pulse-ring,
.btn-audio-record-pulse.is-recording .pulse-ring {
  width: 104px;
  height: 104px;
  border: 2px solid rgba(186, 26, 26, 0.4);
  animation: audioPulseRing 1.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.btn-audio-record-pulse.is-recording ~ .pulse-ring-outer,
.btn-audio-record-pulse.is-recording .pulse-ring-outer {
  width: 126px;
  height: 126px;
  border: 1px solid rgba(186, 26, 26, 0.25);
  animation: audioPulseRing 1.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1) 0.35s;
}

@keyframes audioPulseRing {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Caixa de Transcrição ao Vivo */
.voice-live-transcript-box {
  background: var(--color-surface-container-low);
  border: 1px dashed var(--color-outline-variant);
  border-radius: var(--rounded-md);
  padding: 10px 12px;
  margin-top: 14px;
  text-align: left;
}

/* ==========================================================================
   ECRÃ DE REVISÃO HUMAN-IN-THE-LOOP
   ========================================================================== */
.hitl-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: var(--border-hairline);
  margin-bottom: 8px;
}

/* Seletor Tátil de Nível de Interesse (1 a 5) */
.hitl-star-rating-bar {
  display: flex;
  gap: 6px;
  width: 100%;
}

.hitl-star-btn {
  flex: 1;
  height: 42px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--color-outline-variant);
  background: var(--color-surface-container-low);
  color: var(--color-on-surface);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
}

.hitl-star-btn:hover {
  background: var(--color-surface-container-high);
}

.hitl-star-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.15);
}

/* Grade de Chips de Objeções Padronizadas */
.hitl-objection-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 42px;
}

.objection-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-outline-variant);
  background: var(--color-surface);
  color: var(--color-on-surface);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.objection-chip:hover {
  border-color: var(--color-outline);
}

.objection-chip.active {
  background: var(--color-primary-container);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.objection-chip.active:before {
  content: "✓";
  font-size: 10px;
  font-weight: 700;
  color: var(--color-secondary);
}

/* Card de Pré-visualização WhatsApp */
.hitl-feedback-preview-card {
  background: var(--color-surface-container-low);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--rounded-md);
  padding: 12px;
  margin-top: 14px;
}

.hitl-preview-text {
  font-family: inherit;
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-on-surface);
  white-space: pre-wrap;
  word-break: break-word;
  background: #ffffff;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--rounded-sm);
  padding: 10px;
  margin: 0;
  max-height: 180px;
  overflow-y: auto;
}

/* ==========================================================================
   FASE 7: SCRIPTS DE VÍDEO CURTO & TELEPROMPTER (#111111 DARK MODE)
   ========================================================================== */

/* Seletor Segmentado de Objetivos Comerciais */
.scripts-objective-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.scripts-obj-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--color-outline-variant);
  background: var(--color-surface);
  color: var(--color-on-surface);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  user-select: none;
}

.scripts-obj-btn:hover {
  border-color: var(--color-outline);
  background: var(--color-surface-container-low);
}

.scripts-obj-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 10px rgba(17, 17, 17, 0.15);
}

.scripts-obj-btn .obj-icon {
  font-size: 18px;
  margin-bottom: 4px;
}

.scripts-obj-btn .obj-title {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.scripts-obj-btn.active .obj-title {
  color: #ffffff;
}

.scripts-obj-btn .obj-badge {
  font-size: 9px;
  color: var(--color-outline);
  margin-top: 2px;
}

.scripts-obj-btn.active .obj-badge {
  color: var(--color-secondary);
  font-weight: 600;
}

/* Cartão do Imóvel em Foco para Scripts */
.scripts-prop-card {
  background: var(--color-surface-container-low);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--rounded-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Barra de Métricas do Roteiro */
.script-metrics-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--rounded-md);
  padding: 8px 12px;
  margin-bottom: 14px;
  font-size: 12px;
}

.script-metric-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.script-metric-val {
  font-weight: 700;
  font-feature-settings: 'tnum' on;
  color: var(--color-primary);
}

/* Container de Exibição dos 3 Blocos Estruturados */
.script-blocks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.script-block-card {
  background: #ffffff;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--rounded-md);
  padding: 12px 14px;
  position: relative;
  transition: border-color 0.2s ease;
}

.script-block-card:hover {
  border-color: var(--color-outline);
}

.script-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.script-block-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.script-block-badge {
  font-size: 10px;
  font-weight: 600;
  font-feature-settings: 'tnum' on;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--color-surface-container);
  color: var(--color-outline);
}

.script-block-content {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-on-surface);
  margin: 0;
  white-space: pre-wrap;
}

/* ==========================================================================
   MODAL / OVERLAY IMERSIVO DO TELEPROMPTER (#111111 SOLID BACKDROP)
   ========================================================================== */
.teleprompter-overlay {
  position: fixed;
  inset: 0;
  background: #111111;
  color: #ffffff;
  z-index: 1200;
  display: none;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

/* Barra Superior de Controles do Teleprompter */
.teleprompter-header {
  height: 60px;
  padding: 0 16px;
  background: rgba(17, 17, 17, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  z-index: 20;
}

.teleprompter-header-left {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 45%;
}

.teleprompter-header-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teleprompter-header-badge {
  font-size: 10px;
  color: var(--color-secondary);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.teleprompter-header-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.teleprompter-ctrl-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 2px 4px;
}

.teleprompter-icon-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s ease;
}

.teleprompter-icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.teleprompter-speed-indicator {
  font-size: 12px;
  font-weight: 700;
  font-feature-settings: 'tnum' on;
  color: var(--color-secondary);
  min-width: 24px;
  text-align: center;
}

.teleprompter-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.teleprompter-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Área de Rolagem do Texto */
.teleprompter-viewport {
  flex: 1;
  position: relative;
  overflow-y: scroll;
  scroll-behavior: auto;
  padding: 120px 24px 200px;
  overscroll-behavior: contain;
}

/* Oculta scrollbars nativas para imersão visual limpa */
.teleprompter-viewport::-webkit-scrollbar {
  width: 4px;
}
.teleprompter-viewport::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Guia de Foco Visual (Reading Eye Guide Line) */
.teleprompter-eye-guide {
  position: absolute;
  top: 32%;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(197, 168, 128, 0.08) 0%, rgba(197, 168, 128, 0.14) 50%, rgba(197, 168, 128, 0.08) 100%);
  border-top: 1px dashed rgba(197, 168, 128, 0.35);
  border-bottom: 1px dashed rgba(197, 168, 128, 0.35);
  pointer-events: none;
  z-index: 10;
}

.teleprompter-eye-guide-marker {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-secondary);
  text-transform: uppercase;
}

/* Tipografia de Alta Performance para Ensaio */
.teleprompter-content {
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
  font-weight: 500;
  color: #f5f5f5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.prompter-block {
  margin-bottom: 36px;
}

.prompter-block-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 10px;
}

.prompter-block-content {
  margin: 0;
}

/* Barra Inferior Flutuante de Ações Decisivas */
.teleprompter-footer {
  height: 80px;
  padding: 0 20px;
  background: rgba(17, 17, 17, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  z-index: 20;
}

.teleprompter-footer-info {
  display: flex;
  flex-direction: column;
}

.teleprompter-btn-main {
  height: 52px;
  padding: 0 28px;
  border-radius: var(--rounded-lg);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  background: var(--color-tertiary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.4);
}

.teleprompter-btn-main.is-playing {
  background: #333333;
  color: #ffffff;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.teleprompter-btn-main:hover {
  transform: translateY(-1px);
}

.teleprompter-btn-sec {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--rounded-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.teleprompter-btn-sec:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Overlay de Contagem Regressiva 3-2-1 */
.teleprompter-countdown-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.teleprompter-countdown-number {
  font-size: 96px;
  font-weight: 800;
  color: #ffffff;
  font-feature-settings: 'tnum' on;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.pulse-anim {
  animation: prompterPulse 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes prompterPulse {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  40% {
    transform: scale(1.1);
    opacity: 1;
  }
  75% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.9;
  }
}

/* ==========================================================================
   FASE 8: PÓS-VENDA, ESFERA DE INFLUÊNCIA E ANIVERSÁRIOS DE ESCRITURA
   ========================================================================== */

/* Banner Matinal das 09:00 com Calor Arquitetural */
.anniversary-morning-card {
  background: linear-gradient(135deg, rgba(223, 202, 172, 0.32) 0%, rgba(248, 245, 240, 0.98) 100%);
  border: 1px solid rgba(197, 168, 128, 0.55);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: var(--spacing-space-md);
  box-shadow: 0 4px 18px rgba(197, 168, 128, 0.2);
  animation: fadeInBanner 0.4s ease-out;
}

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

/* Cartão de Contato na Esfera */
.contact-card {
  background: #ffffff;
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-ambient);
  transition: all 0.15s ease;
}

.contact-card:hover {
  border-color: var(--color-outline);
}

.contact-card.is-anniversary {
  border: 1.5px solid var(--color-secondary);
  background: linear-gradient(to bottom, #ffffff 0%, rgba(197, 168, 128, 0.05) 100%);
  box-shadow: 0 4px 14px rgba(197, 168, 128, 0.18);
}

.contact-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.contact-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.contact-meta {
  font-size: 13px;
  color: var(--color-on-surface-variant);
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-details {
  font-size: 12px;
  color: var(--color-outline);
  margin-top: 6px;
  line-height: 1.4;
}

.badge-anniversary {
  background: linear-gradient(135deg, #c5a880 0%, #b8976a 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(197, 168, 128, 0.35);
}

.badge-anonymized {
  background: var(--color-surface-container-high);
  color: var(--color-outline);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-outline-variant);
}

.badge-contact-type {
  background: var(--color-surface-container);
  color: var(--color-on-surface-variant);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: capitalize;
}

.contact-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: var(--border-hairline);
  gap: 8px;
}

/* Modal de WhatsApp e Caixa de Mensagem */
.whatsapp-preview-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #14532d;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 12px 0;
  font-family: inherit;
}

.whatsapp-template-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 10px;
  margin-bottom: 8px;
}

.whatsapp-chip-btn {
  background: var(--color-surface-container);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-on-surface-variant);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.whatsapp-chip-btn.active {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}

/* ==========================================================================
   BACKOFFICE DESKTOP / TABLET (EDITORIAL PROPTECH LUXURY)
   ========================================================================== */

.backoffice-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: var(--border-hairline);
  margin-bottom: var(--spacing-lg);
  overflow-x: auto;
  padding-bottom: 2px;
}

.bo-tab-btn {
  background: transparent;
  border: none;
  padding: 10px 18px;
  font-family: var(--font-family-base);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-outline);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

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

.bo-tab-btn.active {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom-color: var(--color-primary);
}

.bo-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--spacing-margin);
}

.bo-period-selector {
  display: inline-flex;
  background: var(--color-surface-container);
  border-radius: var(--radius-default);
  padding: 3px;
  border: var(--border-hairline);
}

.bo-period-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-on-surface-variant);
  border-radius: calc(var(--radius-default) - 2px);
  cursor: pointer;
  transition: all 0.15s ease;
}

.bo-period-btn.active {
  background: #ffffff;
  color: var(--color-primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Tabela Editorial Backoffice */
.bo-table-container {
  width: 100%;
  overflow-x: auto;
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.bo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.bo-table th {
  background: var(--color-surface);
  color: var(--color-outline);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: var(--border-hairline);
  white-space: nowrap;
}

.bo-table td {
  padding: 14px 16px;
  border-bottom: var(--border-hairline);
  color: var(--color-on-surface);
  vertical-align: middle;
}

.bo-table tr:last-child td {
  border-bottom: none;
}

.bo-table tr:hover td {
  background-color: var(--color-surface-container-low);
}

/* Barras de Progresso e Distribuição */
.bo-progress-track {
  width: 100%;
  max-width: 140px;
  height: 8px;
  background: var(--color-surface-container-high);
  border-radius: var(--radius-full);
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.bo-progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.bo-progress-fill-gold {
  background: linear-gradient(90deg, #725b38, #b89868);
}

/* Gráfico de Objeções em Barras */
.obj-bar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--color-outline-variant);
}

.obj-bar-row:last-child {
  border-bottom: none;
}

.obj-bar-label {
  width: 220px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
}

.obj-bar-track {
  flex: 1;
  height: 22px;
  background: var(--color-surface-container);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.obj-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1c1b1b 0%, #725b38 100%);
  border-radius: var(--radius-sm);
  transition: width 0.4s ease;
  min-width: 4px;
}

.obj-bar-value {
  width: 90px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-primary);
}

/* Card de Argumentação de Preço */
.negotiation-box {
  background: #fdfbf7;
  border: 1px solid #e8dec8;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: var(--spacing-lg);
}

.negotiation-textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #d4c4a8;
  border-radius: var(--radius-md);
  font-family: var(--font-family-base);
  font-size: 13px;
  line-height: 1.6;
  color: #2b261f;
  resize: vertical;
  margin: 12px 0;
}

/* Cards de Exportação CSV */
.export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-margin);
}

.export-card {
  background: #ffffff;
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-ambient);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.export-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   MODO LUZ SOLAR INTENSA (Sunlight Readability - docs/DESIGN.md)
   Otimizado para visitas sob luz solar direta (Cascais, Algarve, obras externas).
   Eleva o contraste lumínico para o limite máximo, reforça bordas estruturais e pesos tipográficos.
   ========================================================================== */
body.sunlight-mode {
  --color-background: #ffffff !important;
  --color-primary: #000000 !important;
  --color-on-background: #000000 !important;
  --color-surface-container-lowest: #ffffff !important;
  --color-on-surface: #000000 !important;
  --color-on-surface-variant: #111111 !important;
  --color-hairline: #000000 !important;
  --color-outline: #111111 !important;
  --color-outline-variant: #000000 !important;
  --border-hairline: 1.5px solid #000000 !important;
  background-color: #ffffff !important;
  color: #000000 !important;
}

body.sunlight-mode .card-tier1,
body.sunlight-mode .hero-property-card,
body.sunlight-mode .anniversary-morning-card,
body.sunlight-mode .modal-card,
body.sunlight-mode .drawer-container,
body.sunlight-mode .btn-secondary-ghost,
body.sunlight-mode .input-editorial,
body.sunlight-mode .backoffice-nav-tabs,
body.sunlight-mode .export-card {
  border: 1.5px solid #000000 !important;
  box-shadow: none !important;
}

body.sunlight-mode .hero-property-card {
  background: #ffffff !important;
}

body.sunlight-mode .hero-image-box {
  background: #000000 !important;
}

body.sunlight-mode .exclusive-badge {
  background: #ffffff !important;
  border: 1.5px solid #000000 !important;
  color: #000000 !important;
  font-weight: 800 !important;
}

body.sunlight-mode .hero-location-pill {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
  font-weight: 700 !important;
}

body.sunlight-mode .hero-details-row {
  border-top: 1.5px solid #000000 !important;
  color: #000000 !important;
  font-weight: 700 !important;
}

body.sunlight-mode .anniversary-morning-card {
  background: #ffffff !important;
  border: 1.5px solid #000000 !important;
}

body.sunlight-mode .label-caps {
  color: #000000 !important;
  font-weight: 700 !important;
}

body.sunlight-mode .status-pill {
  border: 1.5px solid #000000 !important;
  font-weight: 700 !important;
  color: #000000 !important;
}

body.sunlight-mode .financial-display,
body.sunlight-mode .tabular-nums {
  color: #000000 !important;
  font-weight: 800 !important;
}

body.sunlight-mode .btn-primary-action {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
  font-weight: 700 !important;
}

@media (prefers-contrast: more) {
  :root {
    --color-background: #ffffff;
    --color-primary: #000000;
    --color-on-surface: #000000;
    --border-hairline: 1.5px solid #000000;
  }
  .card-tier1, .modal-card, .export-card {
    border: 1.5px solid #000000;
  }
}

/* ==========================================================================
   REFINOS ERGONÔMICOS E OUTDOOR UX (AUDITORIA DE ARQUITETURA DE DESIGN)
   ========================================================================== */

/* 1. Badge Persistente de Fila Offline (Caves / Garagens) */
.status-pill-offline-queue {
  background-color: rgba(197, 168, 128, 0.18);
  color: #78603e;
  border: 1px solid rgba(197, 168, 128, 0.45);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
  user-select: none;
}

.status-pill-offline-queue:hover {
  background-color: rgba(197, 168, 128, 0.28);
}

.status-pill-offline-queue.synced-flash {
  background-color: rgba(27, 67, 50, 0.15) !important;
  color: #1b4332 !important;
  border-color: #1b4332 !important;
}

/* 2. Barra Inferior Móvel Tátil com Safe Area para iOS e Android */
.app-bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 100;
  border-top: var(--border-hairline);
  padding: 8px var(--spacing-margin) max(10px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: var(--backdrop-tactile);
  -webkit-backdrop-filter: var(--backdrop-tactile);
  box-shadow: 0 -2px 10px rgba(17, 17, 17, 0.03);
}

.nav-tab-item {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 8px;
  color: var(--color-outline);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  min-width: 54px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  -webkit-tap-highlight-color: transparent;
}

.nav-tab-item:active {
  transform: scale(0.94);
}

.nav-tab-item .nav-tab-icon {
  font-size: 16px;
  line-height: 1;
}

.nav-tab-item .nav-tab-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-tab-item.active {
  color: var(--color-primary);
}

.nav-tab-item.active .nav-tab-label {
  color: var(--color-primary);
  font-weight: 700;
}

.nav-tab-item.active::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  margin-top: 1px;
}

/* 3. Prevenção de Auto-Zoom do Safari Móvel (16px em Inputs) */
@media (max-width: 768px) {
  .fecho-input,
  select.fecho-input,
  textarea.fecho-input {
    font-size: 16px !important;
  }
}

