/* ============================================ */
/* cliente-perfil.css — v2                      */
/* Design: Dark Fintech Wallet                  */
/* ============================================ */

#page-container:has(.cperfil-screen) {
  padding: 0 !important;
  background-color: #f2f2f7 !important;
}

.cperfil-screen {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #f2f2f7;
  padding-bottom: 90px;
  width: 100%;
}

/* ============================================ */
/* HERO — fundo azul degradê padrão             */
/* ============================================ */
.cperfil-hero {
  background: linear-gradient(135deg, #1E4BFF 0%, #5E82FF 100%);
  padding: 20px 20px 24px;
  position: relative;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 4px 20px rgba(30, 75, 255, 0.15);
}

/* Nav topo */
.cperfil-hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cperfil-back-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}
.cperfil-back-btn i { width: 18px; height: 18px; }

.cperfil-nav-title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
}

.cperfil-hero-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

/* Caixa de saudação — branca arredondada */
.cperfil-greeting-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cperfil-greeting-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 900;
  color: var(--primary, #1E4BFF);
}

.cperfil-greeting-text {
  flex: 1;
}

.cperfil-greeting-hi {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.cperfil-greeting-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* Label "Total Produzido" */
/* Progressão circular de estoque e produção */
.cperfil-progress-container {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.cperfil-progress-circle-wrapper {
  position: relative;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cperfil-progress-circle-wrapper svg {
  width: 100%;
  height: 100%;
}

.cperfil-progress-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.cperfil-progress-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cperfil-progress-value-row {
  display: flex;
  align-items: baseline;
  color: #ffffff;
}

.cperfil-progress-val-main {
  font-size: 24px;
  font-weight: 800;
}

.cperfil-progress-val-unit {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-left: 3px;
}

.cperfil-progress-stock-row {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 4px;
}

.cperfil-progress-stock-lbl {
  font-weight: 500;
}

.cperfil-progress-stock-val {
  font-weight: 700;
  color: #ffffff;
}

.cperfil-total-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

/* Caixa do valor — mantida para compatibilidade se necessário, mas oculta ou adaptada */
.cperfil-total-box {
  display: none;
}

.cperfil-total-currency {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  align-self: center;
  margin-right: 4px;
}

.cperfil-total-integer {
  font-size: 44px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -1px;
  line-height: 1;
}

.cperfil-total-decimal {
  font-size: 22px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  align-self: flex-end;
  padding-bottom: 3px;
}

/* Badge percentual */
.cperfil-badge-row {
  margin-bottom: 20px;
}

.cperfil-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.cperfil-badge--up {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.cperfil-badge i { width: 12px; height: 12px; }

/* ============================================ */
/* BOTÕES Send / central / Request              */
/* ============================================ */
.cperfil-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.cperfil-action-side {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 11px 16px;
  cursor: pointer;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
  transition: opacity 0.15s;
}

.cperfil-action-side:active { opacity: 0.7; }
.cperfil-action-side i { width: 17px; height: 17px; color: #ffffff; }

.cperfil-action-center {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
}
.cperfil-action-center i { width: 20px; height: 20px; }

/* ============================================ */
/* DOIS CARDS LADO A LADO                       */
/* ============================================ */
.cperfil-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 16px 0;
  background: #f2f2f7;
}

/* Card base */
.cperfil-mini-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

/* Card esquerdo — Padeiros recentes */
.cperfil-bakers-label {
  font-size: 10px;
  font-weight: 600;
  color: #8e8e93;
  margin-bottom: 10px;
  line-height: 1.3;
}

.cperfil-bakers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cperfil-baker-bubble {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
}

.cperfil-baker-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card direito — Grafico */
.cperfil-chart-label {
  font-size: 10px;
  font-weight: 600;
  color: #8e8e93;
  margin-bottom: 6px;
}

.cperfil-chart-area {
  width: 100%;
  height: 64px;
  margin-bottom: 8px;
  position: relative;
}

.cperfil-chart-area svg {
  width: 100%;
  height: 100%;
}

.cperfil-chart-val {
  font-size: 15px;
  font-weight: 800;
  color: #1c1c1e;
  margin-bottom: 3px;
}

.cperfil-chart-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(34,197,94,0.14);
  color: #22C55E;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 8px;
}

/* ============================================ */
/* LISTA ULTIMOS ATENDIMENTOS                   */
/* ============================================ */
.cperfil-list-section {
  padding: 16px 16px 0;
  background: #f2f2f7;
}

.cperfil-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cperfil-list-title {
  font-size: 16px;
  font-weight: 700;
  color: #1c1c1e;
}

.cperfil-list-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary, #1E4BFF);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.cperfil-list-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.cperfil-order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f5;
}

.cperfil-order-item:last-child { border-bottom: none; }

.cperfil-order-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.cperfil-order-info { flex: 1; min-width: 0; }

.cperfil-order-name {
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1e;
}

.cperfil-order-date {
  font-size: 12px;
  color: #8e8e93;
  margin-top: 1px;
}

.cperfil-order-kg {
  font-size: 15px;
  font-weight: 700;
  color: #22C55E;
}

/* ====================================================
   MOBILE CLIENTS TAB - REFERENCE DESIGN (iOS HYBRID)
/* Strictly active on Mobile & Tablet (<= 1024px) */
/* Forbidden on Desktop (> 1024px) */
@media (min-width: 1025px) {
  .vmobile-clientes-container {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden;
    width: 100% !important;
    background: #f8fafc !important;
  }

  .app-layout,
  .main-content,
  .page-content,
  #page-container,
  #header-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    background: transparent !important;
  }

  .vdesktop-clientes-container {
    display: none !important;
  }

  .vmobile-clientes-container {
    display: block !important;
    padding: 14px 14px 130px 14px !important;
    background: #f4f6fb !important;
    min-height: 100vh;
    width: 100% !important;
    box-sizing: border-box;
  }

  .nu-vg-container {
    padding: 14px 14px 130px 14px !important;
    width: 100% !important;
    min-height: 100vh;
    background: #f8fafc !important;
    box-sizing: border-box;
    margin: 0 !important;
  }

  .top-header,
  #header-wrapper,
  body.quixotic-theme .top-header,
  body:has(.cronograma-viewport-wrapper) .top-header,
  body.cronograma-active .top-header,
  .quixotic-nav-links {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
  }
}

/* ====================================================
   CASCADE STAGGERED ENTRANCE ANIMATION
   ==================================================== */
@keyframes cascadeIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cascade-item {
  animation: cascadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--index, 0) * 0.05s) both !important;
  will-change: transform, opacity;
}

/* ====================================================
   VISÃO GERAL - DESIGN INSPIRADO NA IMAGEM DE REFERÊNCIA
   ==================================================== */
.nu-vg-container {
  background: #f8fafc;
  min-height: 100vh;
  padding: 16px 12px 130px 12px;
  width: 100%;
  box-sizing: border-box;
}

.nu-vg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 4px;
}

.nu-vg-back-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.nu-vg-month-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.nu-vg-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-align: right;
}

/* Full Month Grid (Squarish Rounded Style) */
.nu-vg-month-grid {
  background: #ffffff;
  border-radius: 28px;
  padding: 18px 14px 20px 14px;
  box-shadow: 0 10px 30px rgba(0, 119, 182, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 24px;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.nu-vg-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nu-vg-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 4px;
  text-align: center;
  flex: 1;
  align-items: center;
  margin-top: 6px;
}

.nu-vg-day-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.nu-vg-day-cell.other-month {
  color: #cbd5e1;
}

.nu-vg-day-cell.active {
  background: linear-gradient(135deg, #0077B6 0%, #00B4D8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(0, 119, 182, 0.35);
  transform: scale(1.08);
  z-index: 2;
}

.nu-vg-dot-indicator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin-top: 2px;
}

/* Floating Action Button (+) */
.nu-vg-fab-btn {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0077B6 0%, #00B4D8 100%);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 119, 182, 0.4);
  cursor: pointer;
  z-index: 100;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nu-vg-fab-btn:active {
  transform: scale(0.90);
}

/* Timeline Feed with Colored Left Line Indicator (Image 2 Replica) */
.nu-vg-timeline {
  position: relative;
  padding-left: 28px;
  margin-top: 10px;
}

.nu-vg-timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 20px;
  width: 3px;
  background: #cbd5e1;
  border-radius: 2px;
}

.nu-vg-timeline-group-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
  margin: 18px 0 12px -28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nu-vg-client-card {
  position: relative;
  background: #ffffff;
  border-radius: 22px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.nu-vg-client-card:active {
  transform: scale(0.98);
}

.nu-vg-node-circle {
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  background: #0077B6;
}

.nu-vg-client-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.nu-vg-squircle-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.nu-vg-client-name {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nu-vg-client-sub {
  font-size: 13px;
  color: #64748b;
  margin-top: 3px;
}

.nu-vg-client-right {
  text-align: right;
  flex-shrink: 0;
}

.nu-vg-client-val {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.nu-vg-client-val-sub {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

.nu-vg-client-val-sub {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
}

/* ====================================================
   NUBANK INTERNET BANKING STYLE - CALENDÁRIO
   ==================================================== */
.nu-hero-card {
  background: linear-gradient(135deg, #0077B6 0%, #00B4D8 50%, #0284C7 100%) !important;
  border-radius: 24px;
  padding: 22px 18px;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 119, 182, 0.25);
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
}

.nu-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.nu-avatar-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nu-avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.nu-eye-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.15s ease;
}
.nu-eye-btn:active {
  transform: scale(0.92);
}

.nu-balance-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
}

.nu-balance-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 10px;
}

.nu-sub-pills {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.nu-sub-pill {
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  padding: 5px 12px;
  border-radius: 14px;
  color: #ffffff;
  backdrop-filter: blur(8px);
}

/* Horizontal Shortcuts Carrousel (Nubank Action Strip) */
.nu-actions-strip {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px;
  padding: 6px 2px 14px 2px;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
}

.nu-actions-strip::-webkit-scrollbar {
  display: none;
}

.nu-action-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nu-action-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  color: #0077B6;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.nu-circle-agenda {
  background: linear-gradient(135deg, #0077B6 0%, #00B4D8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 119, 182, 0.25);
}
.nu-circle-agenda i,
.nu-circle-agenda svg {
  color: #ffffff;
  stroke: #ffffff;
}

.nu-circle-chamado {
  background: rgba(37, 70, 237, 0.08);
  color: #2546ED;
}
.nu-circle-chamado i,
.nu-circle-chamado svg {
  color: #2546ED;
  stroke: #2546ED;
}

/* Filtros ativos (feedback visual nos modos claros / padrão) */
.nu-action-item.active .nu-action-circle,
.nu-action-circle.active {
  background: #0077B6;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 119, 182, 0.35);
  transform: translateY(-2px);
}
.nu-action-item.active .nu-action-circle i,
.nu-action-item.active .nu-action-circle svg,
.nu-action-circle.active i,
.nu-action-circle.active svg {
  color: #ffffff;
  stroke: #ffffff;
}

.nu-action-item.active .nu-circle-fechado,
.nu-circle-fechado.active {
  background: #10B981;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.nu-action-item:active .nu-action-circle {
  transform: scale(0.92);
  background: #e0f2fe;
}

.nu-action-label {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: color 0.15s ease, font-weight 0.15s ease;
}

.nu-action-item.active .nu-action-label {
  color: #0f172a;
  font-weight: 800;
}

/* ====================================================
   CALENDÁRIO DE PROSPECÇÃO DE CLIENTES (VENDEDOR)
   ==================================================== */
.vcal-week-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 16px 12px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  width: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
  user-select: none;
  cursor: grab;
  margin-bottom: 16px;
}

.vcal-week-strip::-webkit-scrollbar {
  display: none;
}

.vcal-week-strip.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.vcal-day-item {
  flex: 0 0 54px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 6px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  cursor: pointer;
  transform: scale(0.88);
  opacity: 0.65;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
              opacity 0.25s ease, 
              background 0.3s ease, 
              box-shadow 0.3s ease;
  will-change: transform, opacity;
}

.vcal-day-item.active {
  transform: scale(1.15) translateY(-2px) !important;
  opacity: 1 !important;
  background: linear-gradient(135deg, #0077B6 0%, #00B4D8 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(0, 119, 182, 0.38);
  z-index: 5;
}

.vcal-day-name {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  transition: color 0.2s ease;
}

.vcal-day-item.active .vcal-day-name {
  color: rgba(255, 255, 255, 0.9);
}

.vcal-day-num {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  transition: color 0.2s ease;
}

.vcal-day-item.active .vcal-day-num {
  color: #ffffff;
}

.vcal-day-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.vcal-day-item.active .vcal-day-num {
  color: #ffffff;
}

.vcal-day-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

/* 1. Hero Banner Card (Cronograma Ocean Gradient) */
.vmobile-hero-card {
  background: linear-gradient(135deg, #0077B6 0%, #00B4D8 35%, #7DD3FC 75%, #CAF0F8 100%) !important;
  border-radius: 26px;
  padding: 22px 20px;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 119, 182, 0.22);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.vmobile-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.vmobile-hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: #0077B6;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.vmobile-hero-icon i {
  width: 22px;
  height: 22px;
}

.vmobile-hero-action {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.vmobile-hero-action i {
  width: 18px;
  height: 18px;
}

.vmobile-hero-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vmobile-hero-sub {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 6px;
}

.vmobile-hero-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.vmobile-add-client-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #0077B6;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-top: 0;
  flex: 1;
  transition: transform 0.15s ease;
}
.vmobile-add-client-btn:active {
  transform: scale(0.97);
}
.vmobile-add-client-btn i {
  width: 16px;
  height: 16px;
}

.vmobile-open-carteira-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  transition: transform 0.15s ease, background 0.2s ease;
  flex: 1;
}
.vmobile-open-carteira-btn:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.35);
}
.vmobile-open-carteira-btn i {
  width: 16px;
  height: 16px;
}

/* 2. Middle Row (2 KPI Cards) */
.vmobile-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.vmobile-stat-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vmobile-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #8e8e93;
  margin-bottom: 8px;
}

.vmobile-stat-icon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.vmobile-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef2ff;
  color: #1E4BFF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vmobile-stat-icon i {
  width: 20px;
  height: 20px;
}

.vmobile-stat-number {
  font-size: 20px;
  font-weight: 800;
  color: #1c1c1e;
}

.vmobile-stat-foot {
  font-size: 11px;
  font-weight: 600;
  color: #8e8e93;
}

/* 3. Segmented Tab Pills */
.vmobile-tabs-pill {
  background: rgba(120, 120, 128, 0.1);
  padding: 4px;
  border-radius: 16px;
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.vmobile-tab-btn {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #636366;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vmobile-tab-btn.active {
  background: #ffffff;
  color: #1c1c1e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 4. Client Cards List */
.vmobile-client-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vmobile-client-card:active {
  transform: scale(0.985);
}

.vmobile-client-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vmobile-client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f0f4ff;
  color: #0077B6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.vmobile-client-avatar i {
  width: 22px;
  height: 22px;
}

.vmobile-client-info {
  flex: 1;
  min-width: 0;
}

.vmobile-client-name {
  font-size: 15px;
  font-weight: 700;
  color: #1c1c1e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vmobile-client-sub {
  font-size: 12px;
  color: #8e8e93;
  margin-top: 2px;
}

.vmobile-client-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
.vmobile-client-badge.badge-high {
  background: #fef3c7;
  color: #b45309;
}
.vmobile-client-badge.badge-active {
  background: #e0f2fe;
  color: #0369a1;
}

.vmobile-client-card-divider {
  height: 1px;
  background: #f2f2f7;
  margin: 12px 0;
}

.vmobile-client-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vmobile-client-metric {
  display: flex;
  flex-direction: column;
}

.vmobile-metric-label {
  font-size: 11px;
  color: #8e8e93;
  font-weight: 500;
}

.vmobile-metric-val {
  font-size: 15px;
  font-weight: 800;
  color: #1c1c1e;
}
.vmobile-metric-val small {
  font-size: 12px;
  font-weight: 600;
  color: #8e8e93;
}

.vmobile-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  border: none;
  background: #f0f4ff;
  color: #0077B6;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}
.vmobile-details-btn:active {
  background: #e0e9ff;
}
.vmobile-details-btn i {
  width: 14px;
  height: 14px;
}

/* 5. Sub-Aba dentro da Aba Clientes (In-Tab Client Details Sub-Tab) */
.vmobile-detail-subtab {
  animation: fadeInSubTab 0.25s ease forwards;
}

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

.vmobile-detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.vmobile-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  border: none;
  background: #ffffff;
  color: #1c1c1e;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.vmobile-back-btn i {
  width: 16px;
  height: 16px;
}

.vmobile-nav-badge {
  font-size: 12px;
  font-weight: 600;
  color: #8e8e93;
}

.vmobile-detail-hero {
  background: linear-gradient(135deg, #0077B6 0%, #00B4D8 40%, #7DD3FC 80%, #CAF0F8 100%) !important;
  border-radius: 24px;
  padding: 20px;
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 119, 182, 0.2);
  margin-bottom: 18px;
}

.vmobile-detail-hero-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.vmobile-detail-hero-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 2px;
}

.vmobile-detail-hero-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}

.vmobile-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vmobile-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 12px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.vmobile-action-btn.primary {
  background: #ffffff;
  color: #0077B6;
}
.vmobile-action-btn.whatsapp {
  background: #25D366;
  color: #ffffff;
}
.vmobile-action-btn.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.vmobile-action-btn i {
  width: 14px;
  height: 14px;
}

.vmobile-detail-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #1c1c1e;
  margin: 16px 0 8px 4px;
}

.vmobile-detail-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.vmobile-detail-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.vmobile-detail-row:last-child {
  margin-bottom: 0;
}

.vmobile-detail-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef2ff;
  color: #0077B6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vmobile-detail-icon i {
  width: 18px;
  height: 18px;
}

.vmobile-detail-text {
  flex: 1;
}

.vmobile-detail-lbl {
  font-size: 11px;
  color: #8e8e93;
  font-weight: 600;
}

.vmobile-detail-val {
  font-size: 14px;
  font-weight: 700;
  color: #1c1c1e;
  margin-top: 1px;
}

.vmobile-detail-sub {
  font-size: 12px;
  color: #8e8e93;
}

.vmobile-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.vmobile-grid-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.vmobile-grid-lbl {
  font-size: 11px;
  color: #8e8e93;
  font-weight: 600;
}

.vmobile-grid-val {
  font-size: 18px;
  font-weight: 800;
  color: #1c1c1e;
  margin-top: 4px;
}
.vmobile-grid-val small {
  font-size: 12px;
  color: #8e8e93;
  font-weight: 600;
}

/* ====================================================
   EXTRATO / CARDS DE CLIENTES EM PROSPECÇÃO (REDESIGN)
   ==================================================== */
.vcard-prospect {
  background: var(--app-card-bg, #ffffff);
  border: 1px solid var(--app-card-border, #E2E8F0);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vcard-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.vcard-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0077B6 0%, #00B4D8 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 119, 182, 0.2);
}
.vcard-avatar.is-closed {
  background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}
.vcard-avatar i,
.vcard-avatar svg {
  width: 20px;
  height: 20px;
  color: #ffffff;
  stroke: #ffffff;
}

.vcard-title-wrap {
  flex: 1;
  min-width: 0;
}

.vcard-client-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--app-text-main, #0f172a);
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.vcard-badge-wrap {
  flex-shrink: 0;
  margin-left: 6px;
}

.vcard-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  white-space: nowrap;
}
.vcard-badge.badge-closed {
  background: rgba(16, 185, 129, 0.14);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.vcard-badge.badge-agendado {
  background: rgba(0, 119, 182, 0.12);
  color: #0077B6;
  border: 1px solid rgba(0, 119, 182, 0.3);
}
.vcard-badge.badge-urgent {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.vcard-badge.badge-progress {
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Metadata Box: Contato e Valor Estimado */
.vcard-meta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--app-input-bg, #F8FAFC);
  border: 1px solid var(--app-card-border, #E2E8F0);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.vcard-meta-contact {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vcard-contact-name,
.vcard-contact-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--app-text-muted, #475569);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vcard-contact-name i,
.vcard-contact-phone i,
.vcard-contact-name svg,
.vcard-contact-phone svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--app-text-sub, #64748B);
  stroke: var(--app-text-sub, #64748B);
}

.vcard-meta-value {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vcard-value-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--app-text-sub, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.vcard-value-number {
  font-size: 15px;
  font-weight: 800;
  color: #0077B6;
  letter-spacing: -0.2px;
}
.vcard-value-number.is-closed {
  color: #10B981;
}

/* Nota / Observação */
.vcard-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--app-text-muted, #475569);
  background: var(--app-input-bg, #F8FAFC);
  border-left: 3px solid #0077B6;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  line-height: 1.35;
}
.vcard-note.is-closed {
  border-left-color: #10B981;
}
.vcard-note i,
.vcard-note svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: #0077B6;
}
.vcard-note.is-closed i,
.vcard-note.is-closed svg {
  color: #10B981;
}

/* Divisor */
.vcard-divider {
  height: 1px;
  background: var(--app-divider, rgba(0, 0, 0, 0.06));
  margin: 8px 0 12px 0;
}

/* Toolbar de Ações */
.vcard-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.vcard-action-btn {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.vcard-action-btn:active {
  transform: scale(0.96);
}
.vcard-action-btn i,
.vcard-action-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.vcard-btn-whatsapp {
  background: #25D366;
  color: #ffffff !important;
  border: none;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25);
}
.vcard-btn-whatsapp i,
.vcard-btn-whatsapp svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.vcard-btn-agendar {
  background: rgba(0, 119, 182, 0.10);
  color: #0077B6 !important;
  border: 1px solid rgba(0, 119, 182, 0.35);
}
.vcard-btn-agendar i,
.vcard-btn-agendar svg {
  color: #0077B6 !important;
  stroke: #0077B6 !important;
}

.vcard-btn-fechar {
  background: #0077B6;
  color: #ffffff !important;
  border: none;
  box-shadow: 0 3px 10px rgba(0, 119, 182, 0.25);
}
.vcard-btn-fechar i,
.vcard-btn-fechar svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.vcard-btn-closed-status {
  background: rgba(16, 185, 129, 0.14);
  color: #10B981 !important;
  border: 1px solid rgba(16, 185, 129, 0.35);
  cursor: default;
}
.vcard-btn-closed-status i,
.vcard-btn-closed-status svg {
  color: #10B981 !important;
  stroke: #10B981 !important;
}

