/* ===========================
   KLIN TECH — DEMO INTERATIVO
   =========================== */

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

:root {
  --blue:        #4F46E5;
  --purple:      #7C3AED;
  --blue-light:  #EEF2FF;
  --purple-light:#F5F3FF;
  --dark:        #1E1B4B;
  --text:        #374151;
  --muted:       #6B7280;
  --border:      #E5E7EB;
  --white:       #FFFFFF;
  --green:       #10B981;
  --green-light: #D1FAE5;
  --wpp-bg:      #ECE5DD;
  --wpp-green:   #075E54;
  --wpp-bubble-out: #DCF8C6;
  --wpp-bubble-in:  #FFFFFF;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #F8F7FF;
  color: var(--text);
  min-height: 100vh;
}

/* ===========================
   HERO
   =========================== */
.hero {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 60%, #5B21B6 100%);
  padding: 48px 24px 80px;
  position: relative;
  overflow: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  font-size: 20px;
  margin-bottom: 36px;
}

.logo strong { font-weight: 800; }

.logo-img { height: 40px; width: auto; display: block; }

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

.badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero-text h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-text h1 span { color: #A5F3FC; }

.hero-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* ===========================
   DEMO STAGES
   =========================== */
.demo-stages {
  background: #F8F7FF;
}

.etapa {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ===========================
   HERO INPUT (etapa 1 integrada)
   =========================== */
.hero-input-wrap {
  margin-top: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-input-row {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  padding: 8px 8px 8px 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
}

.hero-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: white;
  background: transparent;
  padding: 10px 0;
  min-width: 0;
}

.hero-input::placeholder { color: rgba(255,255,255,0.45); }

.btn-ver-demo {
  flex-shrink: 0;
  padding: 13px 20px;
  background: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.6);
  font-weight: 700;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border: none;
  border-radius: 10px;
  cursor: not-allowed;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-ver-demo.active {
  background: white;
  color: var(--blue);
  cursor: pointer;
}

.btn-ver-demo.active:hover  { opacity: 0.92; transform: translateY(-1px); }
.btn-ver-demo.active:active { transform: translateY(0); }

.hero-choose-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.nome-options {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.nome-btn {
  padding: 13px 26px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.nome-btn:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

.nome-btn.selected {
  background: white;
  color: var(--blue);
  border-color: white;
}

.hero-social-proof {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.2px;
}

@media (max-width: 560px) {
  .hero-input-wrap { max-width: 100%; }
  .hero-input-row {
    flex-direction: column;
    padding: 14px;
    gap: 10px;
    border-radius: 16px;
  }
  .hero-input { width: 100%; }
  .btn-ver-demo { width: 100%; text-align: center; padding: 14px; }
}

/* ===========================
   ETAPA 2 — DASHBOARD AGENDA
   =========================== */
.etapa2-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* ===========================
   WPP OVERLAY / POPUP
   =========================== */
.wpp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wpp-popup {
  background: var(--wpp-bg);
  border-radius: 20px;
  max-width: 360px;
  width: 92%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  max-height: 88vh;
}

.wpp-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.25);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.wpp-popup-close { opacity: 0.4; }
.wpp-popup-close:hover { background: rgba(0,0,0,0.45); opacity: 1; }

.wpp-popup .wpp-bg {
  flex: 1;
  min-height: 280px;
  max-height: 380px;
}

.wpp-popup-footer {
  background: white;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: none;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-popup-done {
  background: #7C3AED;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-popup-done:hover { opacity: 0.88; }

/* ===========================
   WPP SUCCESS SCREEN
   =========================== */
.wpp-success {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: white;
  border-radius: 20px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 24px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wpp-success-check {
  width: 72px;
  height: 72px;
  background: #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes successBounce {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.wpp-success-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #111827;
}

.wpp-success-sub {
  font-size: 15px;
  color: #6B7280;
  line-height: 1.5;
  max-width: 240px;
  margin-bottom: 4px;
}

.wpp-success-funcionalidade {
  font-size: 12px;
  font-weight: 600;
  color: #7C3AED;
  text-align: center;
  letter-spacing: 0.02em;
}

.wpp-success-transition {
  font-size: 13px;
  color: #6B7280;
  text-align: center;
  margin-bottom: 16px;
  max-width: 240px;
  line-height: 1.5;
}

.wpp-success-cta {
  display: block;
  width: 100%;
  text-decoration: none;
  max-width: 260px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.wpp-success-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.45);
}

.wpp-success-note {
  font-size: 11px;
  color: #9CA3AF;
  text-align: center;
  margin-top: 10px;
}

.wpp-success-skip {
  background: none;
  border: none;
  font-size: 12px;
  color: #9CA3AF;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 4px 0;
  margin-top: 4px;
  transition: color 0.2s;
}

.wpp-success-skip:hover { color: #6B7280; }

/* ===========================
   CARD FLASH VERDE
   =========================== */
.ag-card-flash {
  animation: flashGreen 0.45s ease 2;
}

@keyframes flashGreen {
  0%   { background: #EEF2FF; }
  50%  { background: #D1FAE5; box-shadow: 0 0 0 3px #10B981; }
  100% { background: #EEF2FF; }
}

/* ===========================
   CTA STRIP (pós-confirmação)
   =========================== */
.cta-strip {
  margin-top: 28px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  flex-wrap: wrap;
}

.cta-strip-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.cta-strip-left p {
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.btn-cta-strip {
  display: inline-block;
  background: white;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  padding: 13px 28px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn-cta-strip:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.cta-strip-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-cta-strip-secondary {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.btn-cta-strip-secondary:hover { color: white; }

@media (max-width: 600px) {
  .cta-strip { flex-direction: column; text-align: center; padding: 24px 20px; }
  .cta-strip-left { flex-direction: column; gap: 10px; }
  .cta-strip-right { width: 100%; }
  .btn-cta-strip { width: 100%; text-align: center; }
}

/* ===========================
   AGENDA INTRO (título + subtítulo)
   =========================== */
.agenda-intro {
  margin-bottom: 16px;
}

.agenda-intro-title {
  font-size: 44px;
  font-weight: 800;
  color: #1E1B4B;
  line-height: 1.2;
  margin-bottom: 4px;
}

.agenda-intro-sub {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.5;
}

/* ===========================
   AGENDA PREVIEW — GRADE SEMANAL
   =========================== */
.agenda-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.agenda-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-right: auto;
}

.agenda-week-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.agenda-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.agenda-nav-btn {
  height: 30px;
  padding: 0 10px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1;
}

.agenda-nav-btn:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  color: var(--blue);
}

.agenda-nav-hoje { font-size: 12px; }

.agenda-grid-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 480px;
  background: white;
  box-shadow: 0 2px 16px rgba(79,70,229,0.08);
}

.agenda-grid {
  display: grid;
  grid-template-columns: 64px repeat(7, minmax(90px, 1fr));
  min-width: 640px;
}

.ag-col-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 4px;
  text-align: center;
  border-right: 1px solid var(--border);
  border-bottom: 2px solid var(--border);
  background: white;
}

.ag-col-header:first-child {
  background: #FAFAFA;
  z-index: 3;
}

.ag-day-name {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.ag-day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  border-radius: 50%;
}

.ag-col-header.is-today .ag-day-name { color: var(--blue); }
.ag-col-header.is-today .ag-day-num  { background: var(--blue); color: white; }

.ag-time-cell {
  height: 86px;
  padding: 10px 8px 0;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  text-align: right;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #FAFAFA;
  white-space: nowrap;
}

.ag-slot {
  height: 86px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4px;
  position: relative;
}

.ag-slot-empty { background: white; }

.ag-slot-user {
  overflow: visible;
  z-index: 10;
}

/* ---- Cards: variantes ---- */
.ag-card {
  border-radius: 5px;
  padding: 4px 6px;
  height: 100%;
  overflow: hidden;
  animation: cardPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  cursor: default;
  transition: background 0.6s ease, border-left-color 0.6s ease;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.5), 0 0 0 1px rgba(124,58,237,0.15); }
  50%       { box-shadow: 0 0 0 8px rgba(124,58,237,0), 0 0 0 1px rgba(124,58,237,0.15); }
}

.ag-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1px;
}

.btn-card-play {
  width: 16px;
  height: 16px;
  background: #7C3AED;
  color: white;
  border: none;
  border-radius: 3px;
  font-size: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.15s;
  line-height: 1;
  animation: pulseBadge 1.8s ease-in-out infinite;
}

.btn-card-play:hover { opacity: 0.85; transform: scale(1.15); animation: none; }

.ag-card-confirmed {
  background: #EEF2FF;
  border-left: 3px solid #10B981;
  border-top: 1px solid #A7F3D0;
  border-right: 1px solid #A7F3D0;
  border-bottom: 1px solid #A7F3D0;
}

.ag-card-pending {
  background: #F3F4F6;
  border-left: 3px solid #9CA3AF;
  border-top: 1px solid #E5E7EB;
  border-right: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
}

.ag-card-user {
  background: #F5F3FF;
  border-left: 3px solid #7C3AED;
  border-top: 1px solid #DDD6FE;
  border-right: 1px solid #DDD6FE;
  border-bottom: 1px solid #DDD6FE;
  overflow: hidden;
  position: relative;
  padding: 8px;
  box-sizing: border-box;
  animation: cardPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both,
             pulse-border 1.5s 0.6s infinite;
}

/* Tooltip posicionado no .ag-slot-user (pai), não dentro do card */
.ag-card-tooltip {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: white;
  border: 1px solid #EDE9FE;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 600;
  color: #1E1B4B;
  white-space: nowrap;
  z-index: 50;
  pointer-events: none;
  max-width: min(220px, 90vw);
}

/* Seta aponta para cima (tooltip está abaixo) */
.ag-card-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 14px;
  border: 5px solid transparent;
  border-bottom-color: white;
}

.ag-card-bottom-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-card-check {
  width: 24px;
  height: 24px;
  background: #10B981;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  transition: transform 0.15s, opacity 0.2s;
  padding: 0;
}

.btn-card-check:hover { transform: scale(1.1); opacity: 0.9; }

.btn-card-hint {
  font-size: 11px;
  font-weight: 700;
  color: #7C3AED;
  white-space: nowrap;
  animation: pulse-hint 1.4s ease-in-out infinite;
  line-height: 1;
}

@keyframes pulse-hint {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

@keyframes cardPop {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.ag-card-time {
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1px;
}

.ag-card-user .ag-card-time { color: #7C3AED; }
.ag-card-confirmed .ag-card-time { color: #10B981; }

.ag-card-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-card-fisio {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.ag-card-badges {
  display: flex;
  gap: 3px;
  margin-top: 3px;
  align-items: center;
}

.ag-tag-pendente {
  font-size: 9px;
  font-weight: 700;
  color: #7C3AED;
  background: #EDE9FE;
  border-radius: 3px;
  padding: 1px 5px;
  animation: pulseBadge 1.4s ease-in-out infinite;
  display: inline-block;
  transition: opacity 0.25s ease;
}

.ag-badge-confirmado {
  font-size: 9px;
  font-weight: 700;
  color: white;
  background: #10B981;
  border-radius: 3px;
  padding: 1px 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: opacity 0.25s ease;
}

.ag-badge-check {
  width: 14px; height: 14px;
  background: #10B981;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ag-badge-wpp {
  width: 14px; height: 14px;
  background: #3B82F6;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===========================
   AGENDA ACTION (seta + botão)
   =========================== */
.agenda-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding-left: 16px;
}

.agenda-action-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FEE2E2;
  color: #DC2626;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  animation: pulseBadge 1.4s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.agenda-action-arrow {
  margin-left: 10px;
  animation: bounceArrow 1s ease-in-out infinite;
  color: #7C3AED;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

.btn-enviar-confirmacao {
  background: #7C3AED;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  padding: 10px 18px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(124,58,237,0.3);
}

.btn-enviar-confirmacao:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn-enviar-confirmacao:active { transform: translateY(0); }

/* ===========================
   WHATSAPP
   =========================== */
.wpp-header {
  background: var(--wpp-green);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wpp-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wpp-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #128C7E;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s;
}

.wpp-name {
  color: white;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}

.wpp-status {
  color: rgba(255,255,255,0.65);
  font-size: 11px;
}

.wpp-icons { display: flex; gap: 8px; }

.wpp-icon-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
}

.wpp-bg {
  flex: 1;
  min-height: 360px;
  background-color: var(--wpp-bg);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23B8A99A' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  position: relative;
  overflow-y: auto;
}

.wpp-messages {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 100%;
}

.wpp-msg-out {
  align-self: flex-end;
  background: var(--wpp-bubble-out);
  max-width: 85%;
  padding: 8px 11px 4px;
  border-radius: 12px 4px 12px 12px;
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.5;
  animation: msgPop 0.3s ease;
  margin-bottom: 2px;
}

.wpp-msg-in {
  align-self: flex-start;
  background: var(--wpp-bubble-in);
  max-width: 85%;
  padding: 8px 11px 4px;
  border-radius: 4px 12px 12px 12px;
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.5;
  animation: msgPop 0.3s ease;
  margin-bottom: 2px;
}

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

.wpp-msg-time {
  font-size: 10px;
  color: #8C8C8C;
  text-align: right;
  margin-top: 3px;
}

.wpp-msg-out .wpp-msg-time { color: #5F9A5F; }

.wpp-typing {
  align-self: flex-start;
  background: var(--wpp-bubble-in);
  padding: 10px 14px;
  border-radius: 4px 12px 12px 12px;
  display: flex;
  gap: 4px;
  animation: msgPop 0.25s ease;
  margin-bottom: 2px;
}

.wpp-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #AAAAAA;
  animation: wppBounce 1.2s infinite;
}

.wpp-dot:nth-child(2) { animation-delay: 0.2s; }
.wpp-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes wppBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

.wpp-date-separator {
  align-self: center;
  background: rgba(255,255,255,0.7);
  font-size: 11px;
  color: #6B7280;
  padding: 3px 12px;
  border-radius: 8px;
  margin: 8px 0;
}

.wpp-input-bar {
  background: #F0F0F0;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wpp-input-fake {
  flex: 1;
  background: white;
  border-radius: 20px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #AAAAAA;
}

.wpp-mic {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--wpp-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

/* ===========================
   MOBILE (≤640px)
   =========================== */
@media (max-width: 640px) {
  /* Ocultar navegação semanal; manter week-label com "Hoje, DD/MM" */
  .agenda-nav { display: none; }

  /* Grid wrapper: sem scroll horizontal, sem max-height */
  .agenda-grid-wrap {
    border: none;
    border-radius: 0;
    max-height: none;
    overflow: visible;
    box-shadow: none;
  }

  /* agenda-grid vira display:block — cada linha é um .ag-mobile-row */
  .agenda-grid { display: block; min-width: 0; }

  /* Linha do mobile: 56px horário + 1fr card */
  .ag-mobile-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    min-height: 80px;
    border-bottom: 1px solid var(--border);
    background: white;
  }

  .ag-mobile-time {
    display: flex;
    align-items: flex-start;
    padding: 10px 8px 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    border-right: 1px solid var(--border);
    background: #FAFAFA;
  }

  .ag-mobile-slot {
    padding: 6px;
    position: relative;
  }

  .ag-mobile-slot-empty { background: white; }

  /* Card do usuário: mais espaço para toque */
  .ag-card-user { min-height: 68px; padding: 10px; }

  /* Tooltip visível no mobile */
  .ag-slot-user { overflow: visible; z-index: 10; }

  /* Popup WPP: bottom sheet no mobile */
  .wpp-overlay { align-items: flex-end; }
  .wpp-popup {
    max-width: 100%;
    width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
  }

  /* CTA strip e título da agenda */
  .etapa2-wrap { padding: 24px 16px 48px; }
  .agenda-intro-title { font-size: 22px; }
}
