/* ==========================================================================
   Aba de Compromissos (Mobile Vendedor) — Estilo Premium e Cores Brago
   ========================================================================== */

/* Remove outer double padding from system container when Compromissos screen is active */
body.vendedor-compromissos-active .app-layout {
  padding: 0 !important;
  background-color: #FAF9F6 !important;
}

body.vendedor-compromissos-active .main-content {
  padding: 0 !important;
  margin: 0 !important;
  height: 100vh !important;
}

body.vendedor-compromissos-active #page-container,
body.vendedor-compromissos-active .page-content {
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

.vd-compromissos-container {
  padding: 24px 20px 100px 20px;
  background-color: #FAF9F6;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1c1c1e;
  box-sizing: border-box;
}

.vd-compromissos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.vd-compromissos-greeting {
  font-size: 26px;
  font-weight: 700;
  color: #1c1c1e;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}

.vd-compromissos-subtitle {
  font-size: 13px;
  color: #8e8e93;
  margin: 0;
  font-weight: 500;
}

.vd-compromissos-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1E4BFF;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(30, 75, 255, 0.2);
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vd-compromissos-avatar:active {
  transform: scale(0.95);
}

/* MINI POP-UP FLUTUANTE DE USUÁRIO (PADRÃO APPLE HIG DO SISTEMA) */
.vd-user-popover-menu {
  position: fixed;
  width: 240px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.14), 0 4px 12px -2px rgba(0, 0, 0, 0.06);
  z-index: 999999;
  padding: 8px;
  box-sizing: border-box;
  opacity: 0;
  transform: scale(0.94) translateY(-6px);
  transition: opacity 0.16s cubic-bezier(0.16, 1, 0.3, 1), transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.vd-user-popover-menu.open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.vd-user-popover-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 10px 10px;
}
.vd-user-popover-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E4BFF 0%, #1032CC 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(30, 75, 255, 0.25);
}
.vd-user-popover-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.vd-user-popover-name {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vd-user-popover-role {
  font-size: 11.5px;
  color: #6B7280;
  font-weight: 500;
}
.vd-user-popover-divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.06);
  margin: 4px 6px;
}
.vd-user-popover-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}
.vd-user-popover-item:hover,
.vd-user-popover-item:active {
  background: rgba(30, 75, 255, 0.08);
  color: #1E4BFF;
}
.vd-user-popover-item svg {
  width: 17px;
  height: 17px;
  color: #6B7280;
  transition: color 0.12s ease;
  flex-shrink: 0;
}
.vd-user-popover-item:hover svg {
  color: #1E4BFF;
}
.vd-user-popover-item.danger {
  color: #EF4444;
}
.vd-user-popover-item.danger:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #DC2626;
}
.vd-user-popover-item.danger svg {
  color: #EF4444;
}

/* TELAS VAZIAS MOBILE (PERFIL E CONFIGURAÇÕES) */
.vd-mobile-subpage {
  padding: 20px 16px 80px 16px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-sizing: border-box;
}
.vd-mobile-subpage-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.vd-mobile-subpage-back {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: background 0.15s ease;
}
.vd-mobile-subpage-back:active {
  background: #F3F4F6;
}
.vd-mobile-subpage-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.vd-mobile-empty-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 48px 24px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.vd-mobile-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(30, 75, 255, 0.08);
  color: #1E4BFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.vd-mobile-empty-title {
  font-size: 17px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}
.vd-mobile-empty-desc {
  font-size: 13.5px;
  color: #6B7280;
  margin: 0 0 16px 0;
  line-height: 1.5;
  max-width: 280px;
}
.vd-mobile-empty-btn {
  background: linear-gradient(135deg, #1E4BFF 0%, #1032CC 100%);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(30, 75, 255, 0.3);
}

/* Calendar Row */
.vd-weekly-calendar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
  background: #FFFFFF;
  padding: 16px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.vd-calendar-day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  cursor: pointer;
}

.vd-calendar-day-lbl {
  font-size: 11px;
  color: #8e8e93;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.vd-calendar-day-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #1c1c1e;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.vd-calendar-day-circle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.vd-calendar-day-circle.active {
  background: #1c1c1e;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

/* Reminder Card */
.vd-reminder-card {
  background: linear-gradient(135deg, #1E4BFF 0%, #5E82FF 100%);
  border-radius: 24px;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(30, 75, 255, 0.15);
}

.vd-reminder-card-content {
  flex: 1;
  padding-right: 12px;
}

.vd-reminder-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF !important;
  margin: 0 0 6px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.vd-reminder-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.95) !important;
  margin: 0 0 16px 0;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.vd-reminder-btn {
  background: #FFFFFF;
  color: #1E4BFF;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease;
}

.vd-reminder-btn:active {
  transform: scale(0.96);
}

.vd-reminder-illustration {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vd-reminder-bell-wrapper {
  position: relative;
  z-index: 2;
  animation: bell-shake 3s infinite ease-in-out;
}

.vd-reminder-bell-icon {
  width: 48px;
  height: 48px;
  color: #FFFFFF;
  stroke-width: 2.2;
}

/* Daily Routine Timeline */
.vd-routine-section {
  width: 100%;
}

.vd-routine-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.vd-routine-title {
  font-size: 18px;
  font-weight: 700;
  color: #1c1c1e;
  margin: 0;
}

.vd-routine-see-all {
  font-size: 13px;
  color: #1E4BFF;
  font-weight: 600;
  text-decoration: none;
}

.vd-routine-timeline {
  display: flex;
  flex-direction: column;
  gap: 0px;
  position: relative;
}

.vd-timeline-item {
  display: flex;
  align-items: stretch;
  min-height: 90px;
  width: 100%;
  box-sizing: border-box;
}

.vd-timeline-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 32px;
  margin-right: 8px;
  position: relative;
}

.vd-timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #c7c7cc;
  background: #FAF9F6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  margin-top: 24px;
  transition: all 0.25s ease;
}

.vd-timeline-dot.checked {
  background: #1E4BFF;
  border-color: #1E4BFF;
  color: #FFFFFF;
}

.vd-timeline-dot.checked svg {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.vd-timeline-line {
  width: 2px;
  flex: 1;
  background-image: linear-gradient(to bottom, #d1d1d6 50%, rgba(255,255,255,0) 0%);
  background-position: right;
  background-size: 2px 8px;
  background-repeat: repeat-y;
  margin-top: 4px;
}

.vd-timeline-card {
  flex: 1;
  background: #FFFFFF;
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.vd-timeline-card:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.vd-timeline-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
}

.vd-timeline-icon-box svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* Colors for icon boxes matching reference styles */
.vd-color-blue {
  background: #EBF3FF;
  color: #1E4BFF;
}
.vd-color-green {
  background: #EAF9F1;
  color: #10B981;
}
.vd-color-orange {
  background: #FFEBE0;
  color: #E8450A;
}
.vd-color-purple {
  background: #F3EFFF;
  color: #8B5CF6;
}

.vd-timeline-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

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

.vd-timeline-obs {
  font-size: 12px;
  color: #8e8e93;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vd-timeline-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.vd-priority-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}

.vd-priority-badge.priority-alta {
  background: #FFE8E8;
  color: #FF453A;
}
.vd-priority-badge.priority-media {
  background: #FFF2E0;
  color: #FF9F0A;
}
.vd-priority-badge.priority-baixa {
  background: #E8F5E9;
  color: #34C759;
}

.vd-value-badge {
  font-size: 11px;
  font-weight: 700;
  color: #1c1c1e;
}

.vd-timeline-time-col {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #8e8e93;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid #f2f2f7;
  height: 32px;
  white-space: nowrap;
}

.vd-timeline-time-col svg {
  width: 14px;
  height: 14px;
}

/* Floating Action Button (FAB) */
.vd-compromissos-fab {
  position: fixed;
  bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1E4BFF;
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(30, 75, 255, 0.35);
  cursor: pointer;
  z-index: 99;
  transition: transform 0.2s ease, background 0.2s ease;
}

.vd-compromissos-fab:active {
  transform: scale(0.92);
}

.vd-compromissos-fab svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

.vd-compromissos-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #8e8e93;
}

.vd-empty-icon {
  width: 48px;
  height: 48px;
  stroke-width: 1.5;
  margin-bottom: 12px;
}

@keyframes bell-shake {
  0%, 100% { transform: rotate(0); }
  5% { transform: rotate(8deg); }
  10% { transform: rotate(-8deg); }
  15% { transform: rotate(6deg); }
  20% { transform: rotate(-6deg); }
  25% { transform: rotate(0); }
}

/* ==========================================================================
   MODAL DE CONFIGURAÇÕES MOBILE (ESTILO APPLE HIG / PROSPECT PRO)
   ========================================================================== */
.vd-settings-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.vd-settings-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.vd-settings-modal-sheet {
  background: #FFFFFF;
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  border-radius: 32px 32px 0 0;
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px)) 20px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.16);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.vd-settings-modal-overlay.active .vd-settings-modal-sheet {
  transform: translateY(0);
}

.vd-settings-drag-handle {
  width: 38px;
  height: 5px;
  background: #E5E7EB;
  border-radius: 9999px;
  margin: 4px auto 14px auto;
  cursor: pointer;
}

.vd-settings-modal-header {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}

.vd-settings-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  letter-spacing: -0.3px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.vd-settings-modal-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #F3F4F6;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.15s;
}
.vd-settings-modal-close:active {
  background: #E5E7EB;
  transform: translateY(-50%) scale(0.92);
}

/* Card Pro (Banner Gradient) */
.vd-settings-pro-card {
  background: linear-gradient(135deg, #1E4BFF 0%, #00B2FE 100%);
  border-radius: 22px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(30, 75, 255, 0.28);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.vd-settings-pro-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.vd-settings-pro-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.vd-settings-pro-sparkle {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
}

.vd-settings-pro-sparkle svg {
  width: 20px;
  height: 20px;
}

.vd-settings-pro-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vd-settings-pro-title {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.3px;
  margin-bottom: 2px;
}

.vd-settings-pro-desc {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  line-height: 1.3;
}

.vd-settings-pro-btn {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 9999px;
  padding: 8px 15px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease;
}

.vd-settings-pro-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.35);
}

/* Lista de Configurações */
.vd-settings-list {
  display: flex;
  flex-direction: column;
}

.vd-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 4px;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.14);
  user-select: none;
  transition: background 0.1s;
}

.vd-settings-row.clickable {
  cursor: pointer;
}

.vd-settings-row.clickable:active {
  background: rgba(0, 0, 0, 0.02);
}

.vd-settings-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.vd-settings-row-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  flex-shrink: 0;
}

.vd-settings-row-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.vd-settings-row-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
}

.vd-settings-pro-badge {
  border: 1.5px solid #1E4BFF;
  color: #1E4BFF;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  margin-left: 8px;
  text-transform: uppercase;
  display: inline-block;
  line-height: 1.2;
}

.vd-settings-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.vd-settings-text-val {
  font-size: 14px;
  color: #9CA3AF;
  font-weight: 500;
}

.vd-settings-time-badge {
  background: #F3F4F6;
  color: #111827;
  font-size: 13.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.vd-settings-chevron {
  color: #9CA3AF;
  display: flex;
  align-items: center;
}
.vd-settings-chevron svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

/* iOS Toggle Switch (Cores Brago / Prospect) */
.vd-ios-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.vd-ios-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.vd-ios-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #E5E7EB;
  border-radius: 9999px;
  transition: background-color 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.vd-ios-toggle-slider::before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 2px;
  bottom: 2px;
  background-color: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.vd-ios-toggle input:checked + .vd-ios-toggle-slider {
  background-color: #1E4BFF;
}

.vd-ios-toggle input:checked + .vd-ios-toggle-slider::before {
  transform: translateX(20px);
}

/* iOS Home Indicator Bar */
.vd-settings-home-indicator {
  width: 134px;
  height: 5px;
  background: #111827;
  border-radius: 9999px;
  margin: 24px auto 6px auto;
  opacity: 0.85;
}

/* ==========================================================================
   SISTEMA DE TEMAS: WHITE | GRAFITE | MIDNIGHT | BEGE
   ========================================================================== */
:root {
  --app-bg: #FAF9F6;
  --app-card-bg: #FFFFFF;
  --app-card-border: rgba(0, 0, 0, 0.06);
  --app-text-main: #111827;
  --app-text-muted: #6B7280;
  --app-text-sub: #9CA3AF;
  --app-divider: rgba(0, 0, 0, 0.06);
  --app-accent: #1E4BFF;
  --app-accent-gradient: linear-gradient(135deg, #1E4BFF 0%, #00B2FE 100%);
  --app-row-hover: rgba(0, 0, 0, 0.03);
}

/* 1. White (Padrão) */
body.theme-white,
[data-theme="white"] {
  --app-bg: #FAF9F6;
  --app-card-bg: #FFFFFF;
  --app-card-border: rgba(0, 0, 0, 0.06);
  --app-text-main: #111827;
  --app-text-muted: #6B7280;
  --app-text-sub: #9CA3AF;
  --app-divider: rgba(0, 0, 0, 0.06);
  --app-accent: #1E4BFF;
  --app-accent-gradient: linear-gradient(135deg, #1E4BFF 0%, #00B2FE 100%);
}

/* 2. Escuro (Grafite com Branco Meio Creme e Azul Mantido) */
body.theme-grafite,
[data-theme="grafite"] {
  --app-bg: #181A1E;
  --app-card-bg: #22252B;
  --app-card-border: rgba(255, 255, 255, 0.08);
  --app-text-main: #F6F3EC; /* Branco meio creme */
  --app-text-muted: #B8B3A8;
  --app-text-sub: #7E796E;
  --app-divider: rgba(255, 255, 255, 0.08);
  --app-accent: #1E4BFF;
  --app-accent-gradient: linear-gradient(135deg, #1E4BFF 0%, #00B2FE 100%);
}
body.theme-grafite,
body.theme-grafite .vd-compromissos-container,
body.theme-grafite .vd-profile-page,
body.theme-grafite .app-layout,
body.theme-grafite .main-content {
  background-color: #181A1E !important;
  color: #F6F3EC !important;
}

/* 3. Midnight (Preto Profundo Noturno) */
body.theme-midnight,
[data-theme="midnight"] {
  --app-bg: #090B10;
  --app-card-bg: #121620;
  --app-card-border: rgba(30, 75, 255, 0.2);
  --app-text-main: #F0F6FC;
  --app-text-muted: #8B949E;
  --app-text-sub: #586069;
  --app-divider: rgba(255, 255, 255, 0.07);
  --app-accent: #1E4BFF;
  --app-accent-gradient: linear-gradient(135deg, #1E4BFF 0%, #38BDF8 100%);
}
body.theme-midnight,
body.theme-midnight .vd-compromissos-container,
body.theme-midnight .vd-profile-page,
body.theme-midnight .app-layout,
body.theme-midnight .main-content {
  background-color: #090B10 !important;
  color: #F0F6FC !important;
}

/* 4. Bege (Warm Luxury Editorial) */
body.theme-bege,
[data-theme="bege"] {
  --app-bg: #F5F1E9;
  --app-card-bg: #FCFAF6;
  --app-card-border: rgba(160, 140, 120, 0.14);
  --app-text-main: #24201D;
  --app-text-muted: #736B63;
  --app-text-sub: #A8A199;
  --app-divider: rgba(140, 120, 100, 0.1);
  --app-accent: #1E4BFF;
  --app-accent-gradient: linear-gradient(135deg, #1E4BFF 0%, #0284C7 100%);
}
body.theme-bege,
body.theme-bege .vd-compromissos-container,
body.theme-bege .vd-profile-page,
body.theme-bege .app-layout,
body.theme-bege .main-content {
  background-color: #F5F1E9 !important;
  color: #24201D !important;
}

/* ==========================================================================
   PÁGINA DE PERFIL MOBILE (ESTILO FIEL AO DESIGN APPLE HIG)
   ========================================================================== */
.vd-profile-page {
  min-height: 100vh;
  background-color: var(--app-bg);
  color: var(--app-text-main);
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Capa Panorâmica */
.vd-profile-cover {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: #111827;
}

.vd-profile-cover-city {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.vd-profile-back-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.15s ease, background 0.15s ease;
}
.vd-profile-back-btn:active {
  transform: scale(0.92);
  background: rgba(0, 0, 0, 0.65);
}

/* Área de Identificação */
.vd-profile-header {
  padding: 0 20px;
}

.vd-profile-avatar-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.vd-profile-avatar-wrap {
  margin-top: -44px;
  position: relative;
  z-index: 5;
}

.vd-profile-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E4BFF 0%, #1032CC 100%);
  border: 3.5px solid #1E4BFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.5px;
  overflow: hidden;
}

.vd-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vd-profile-edit-photo-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--app-card-border);
  color: var(--app-text-main);
  border-radius: 9999px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
  margin-bottom: 6px;
}
.vd-profile-edit-photo-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.15);
}

.vd-profile-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--app-text-main);
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}

.vd-profile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.vd-profile-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--app-text-muted);
  font-weight: 500;
}
.vd-profile-meta-item svg {
  color: var(--app-text-sub);
}

.vd-profile-bio {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--app-text-muted);
  margin: 0 0 24px 0;
}

/* Seções de Cards */
.vd-profile-section {
  padding: 0 20px;
  margin-bottom: 24px;
}

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

.vd-profile-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--app-text-main);
  margin-bottom: 10px;
  display: block;
  letter-spacing: -0.2px;
}

.vd-profile-section-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--app-accent);
  background: rgba(30, 75, 255, 0.1);
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.vd-profile-card {
  background: var(--app-card-bg);
  border: 1px solid var(--app-card-border);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.vd-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  color: var(--app-text-main);
  user-select: none;
  transition: background 0.12s ease;
}

.vd-profile-row.clickable {
  cursor: pointer;
}
.vd-profile-row.clickable:active {
  background: var(--app-row-hover);
}

.vd-profile-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.vd-profile-row-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--app-text-main);
  flex-shrink: 0;
}
.vd-profile-row-icon svg {
  width: 20px;
  height: 20px;
}
.vd-profile-row-icon.danger {
  color: #EF4444;
}

.vd-profile-row-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--app-text-main);
}
.vd-profile-row-label.danger {
  color: #EF4444;
}

.vd-profile-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vd-profile-row-value {
  font-size: 13.5px;
  color: var(--app-text-muted);
  font-weight: 500;
}

.vd-profile-row-chevron {
  color: var(--app-text-sub);
  display: flex;
  align-items: center;
}
.vd-profile-row-chevron svg {
  width: 17px;
  height: 17px;
}

.vd-profile-row-sep {
  height: 1px;
  background-color: var(--app-divider);
  margin-left: 60px;
}

/* Seletor de Temas (Grid 2x2 Moderno) */
.vd-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.vd-theme-card {
  background: var(--app-card-bg);
  border: 1.5px solid var(--app-card-border);
  border-radius: 18px;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
}

.vd-theme-card:active {
  transform: scale(0.97);
}

.vd-theme-card.active {
  border-color: #1E4BFF;
  box-shadow: 0 4px 16px rgba(30, 75, 255, 0.2);
}

.vd-theme-preview {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.vd-theme-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.preview-white {
  background: #FAF9F6;
}
.preview-white .dot-bg { background: #FFFFFF; border: 1px solid #E5E7EB; }
.preview-white .dot-accent { background: #1E4BFF; }

.preview-grafite {
  background: #181A1E;
}
.preview-grafite .dot-bg { background: #22252B; }
.preview-grafite .dot-creme { background: #F6F3EC; }
.preview-grafite .dot-accent { background: #1E4BFF; }

.preview-midnight {
  background: #090B10;
}
.preview-midnight .dot-bg { background: #121620; }
.preview-midnight .dot-accent { background: #38BDF8; }

.preview-bege {
  background: #F5F1E9;
}
.preview-bege .dot-bg { background: #FFFFFF; border: 1px solid #E7DFD4; }
.preview-bege .dot-accent { background: #1E4BFF; }

.vd-theme-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.vd-theme-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--app-text-main);
  margin-bottom: 2px;
}

.vd-theme-card-desc {
  font-size: 11px;
  color: var(--app-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vd-theme-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1E4BFF;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.vd-theme-check svg {
  width: 12px;
  height: 12px;
}

.vd-theme-card.active .vd-theme-check {
  opacity: 1;
  transform: scale(1);
}
