/* ==========================================================================
   Welcome / Auth (Action Sheet)
   ========================================================================== */

/* Garantir que o body no welcome não role caso a action sheet não seja fechada, opcional. 
   Aqui deixamos rolar para que o Espiar funcione ocultando a sheet. */

.welcome-action-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  /* Alinhado ao layout do profile */
  background: rgba(255, 255, 255, 0.7);
  /* Fallback para light mode */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top-left-radius: 1.75rem;
  border-top-right-radius: 1.75rem;
  border: 1px solid rgba(128, 128, 128, 0.15);
  border-bottom: none;
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.4s ease;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08);
  min-height: 26rem;
  /* Altura fixa para evitar saltos durante a troca de abas (Email/OTP) */
}

/* Suporte simplificado para Dark Mode global através de variável se existir, 
   ou media query nativa. */
@media (prefers-color-scheme: dark) {
  .welcome-action-sheet {
    background: rgba(18, 18, 18, 0.75);
    border-color: rgba(255, 255, 255, 0.1);
  }
}

/* Estado Minimizado ("Espiar") */
.welcome-action-sheet.hidden-sheet {
  transform: translate(-50%, 120%);
  opacity: 0;
  pointer-events: none;
}

.welcome-action-sheet-top {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: -0.5rem;
}

.welcome-step-handle {
  width: 2.75rem;
  height: 0.35rem;
  background: rgba(128, 128, 128, 0.3);
  border-radius: 1rem;
}

.welcome-step-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin: 0;
  line-height: 1;
}

.welcome-step-title strong {
  color: #000000;
}

.welcome-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.welcome-options-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Botões */
.welcome-action-sheet .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.95rem;
  background-color: var(--text-primary);
  color: #FFFFFF;
  border-radius: 1.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  font-family: inherit;
}

.welcome-action-sheet .btn-primary:active {
  transform: scale(0.96);
}

.welcome-action-sheet .btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.btn-provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.95rem;
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(128, 128, 128, 0.25);
  border-radius: 1.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: inherit;
}



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

.icon {
  width: 1.4rem;
  height: 1.4rem;
}

.welcome-divider-new {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
}

.welcome-divider-new::before,
.welcome-divider-new::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}

.welcome-divider-new span {
  padding: 0 0.75rem;
}

.welcome-guest-section {
  display: flex;
  justify-content: center;
}

.btn-guest {
  color: var(--text-secondary);
  margin-top: 0.5rem;
}



.welcome-footer-new {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1;
}

/* ==========================================================================
   Email & OTP Steps
   ========================================================================== */

.welcome-step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.hidden-step {
  display: none !important;
}

.hidden-element {
  display: none !important;
}

.welcome-action-sheet-top {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: -0.5rem;
}

.btn-back-step {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.btn-back-step svg {
  width: 1.5rem;
  height: 1.5rem;
}



.welcome-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.welcome-input-group label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.welcome-input {
  width: 100%;
  padding: 1.15rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  background-color: rgba(128, 128, 128, 0.05);
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 1.25rem;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.welcome-input:focus {
  border-color: var(--text-primary);
  background-color: transparent;
}

.btn-provider:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: rgba(128, 128, 128, 0.1);
  color: var(--text-secondary);
  background-color: transparent;
}

/* ==========================================================================
   Onboarding Steps additions
   ========================================================================== */

.onboarding-progress {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.progress-dot {
  width: 2rem;
  height: 4px;
  border-radius: 2px;
  background-color: rgba(128, 128, 128, 0.2);
  transition: background-color 0.3s ease;
}

.progress-dot.active {
  background-color: var(--text-primary);
}

.onboarding-sublabel {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.label-group {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.onboarding-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  text-align: left;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(128, 128, 128, 0.4);
}

/* Onboarding Specific Overrides & Utilities */
.mb-0 {
  margin-bottom: 0 !important;
}

.mb-sm {
  margin-bottom: 0.5rem;
}

.mt-sm {
  margin-top: 0.5rem;
}

.mt-md {
  margin-top: 1rem;
}

.w-100 {
  width: 100%;
}

.onb-date-input {
  color: var(--text-primary);
  font-family: inherit;
}

.input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.welcome-input.has-prefix {
  padding-left: 2.5rem;
}

.onb-intro {
  font-size: 1rem;
}

.onb-lists {
  gap: 0.75rem;
}

.onb-rule-card {
  background: rgba(128, 128, 128, 0.05);
  border: 1px solid rgba(128, 128, 128, 0.15);
  color: var(--text-primary);
  text-align: left;
  padding: 1rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rule-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: var(--text-secondary);
  margin-top: 0;
}

.rule-icon svg {
  width: 100%;
  height: 100%;
}

.rule-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
}

.onb-success-step {
  text-align: center;
  gap: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.onb-fab-mockup {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.onb-fab-mockup .fab-btn-frame {
  transform: none;
  width: 4.5rem;
  height: 4.5rem;
  pointer-events: none;
  box-shadow: 0 0.8rem 2.5rem rgba(0, 0, 0, 0.3);
}

.onb-fab-mockup .fab-icon {
  width: 2.5rem;
  height: 2.5rem;
}

.onb-success-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
}

.onb-success-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.1;
  margin: 0;
}

.btn-link {
  text-decoration: none;
  text-align: center;
}

.otp-instruction-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
  line-height: 1;
  margin-bottom: 1rem;
}

.otp-instruction {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.otp-spam-alert {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
}

.otp-container {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.otp-input {
  width: calc(100% / 6 - 0.5rem);
  aspect-ratio: 1;
  padding: 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: inherit;
  color: var(--text-primary);
  background-color: rgba(128, 128, 128, 0.05);
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 0.75rem;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
}

.otp-input:focus {
  border-color: var(--text-primary);
  background-color: transparent;
  transform: scale(1.05);
}

/* ==========================================================================
   Ghost Mode Step
   ========================================================================== */

.ghost-mode-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  text-align: left;
  line-height: 1.4;
}

.ghost-intro {
  margin: 0;
  font-weight: 500;
  text-align: center;
  line-height: 1;
}

.ghost-warning {
  background: rgba(255, 60, 60, 0.1);
  color: #d32f2f;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  text-align: center;
  line-height: 1;
}

.ghost-lists {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ghost-lists h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.ghost-list-section ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.ghost-list-section ul.negative-list {
  color: #8a8a8a;
}

.ghost-list-section li {
  margin-bottom: 0.25rem;
}

.ghost-learn-more {
  text-align: center;
  color: var(--text-primary);
  font-weight: 500;
  display: block;
  margin-top: 0.5rem;
  text-decoration: none;
}

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

/* ==========================================================================
   Premium Frosted Glass Onboarding Toast Notification (Pure Black)
   ========================================================================== */
.onb-toast {
  position: fixed;
  top: 1.5rem;
  bottom: auto;
  /* Posicionado no topo para não ser coberto pelo teclado */
  left: 50%;
  transform: translate(-50%, -100px);
  background: #000000;
  /* Preto puro */
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1.5rem;
  color: #FFFFFF;
  /* Fonte branca */
  padding: 1.5rem 2rem 1.35rem 1.5rem;
  /* Espaço extra na direita para o botão Fechar */
  font-family: 'Darker Grotesque', sans-serif;
  font-size: 1.3rem;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.85);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.onb-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.onb-toast-close {
  position: absolute;
  top: 0.65rem;
  right: 0.9rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.5rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  padding: 0.15rem;
  transition: color 0.2s ease, transform 0.1s ease;
}



.onb-toast-close:active {
  transform: scale(0.9);
}

.onb-toast-content {
  display: flex;
  align-items: flex-start; /* Alinhado ao topo para texto longo */
  gap: 0.85rem;
  text-align: left;
}

.onb-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem; /* Ajuste para centralizar com a primeira linha do título */
}

.toast-emoji-icon {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
  animation: toast-emoji-pop 0.3s ease;
}

@keyframes toast-emoji-pop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }

  80% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.onb-toast-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  text-align: left;
}

.onb-toast-title {
  font-size: 1.35rem;
  font-weight: 850; /* Extra bold */
  color: #FFFFFF;
  line-height: 1.2; /* Aumentado para evitar colisão na fonte Darker Grotesque */
}

.onb-toast-desc {
  font-size: 1.15rem;
  font-weight: 500; /* Médio/Leve legível */
  line-height: 1.3; /* Aumentado para evitar colisão na fonte Darker Grotesque */
  color: rgba(255, 255, 255, 0.85); /* Mais visível no fundo preto */
}

.onb-toast-desc strong {
  font-weight: 800; /* Destaque */
  color: #FFFFFF;
}

.onb-toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.25rem;
  width: 100%;
}

.onb-toast-btn {
  background: #FFFFFF;
  color: #121212;
  border: none;
  padding: 0.6rem 1.4rem;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease, transform 0.1s ease;
}



.onb-toast-btn:active {
  transform: scale(0.95);
}

.onb-toast-btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.6rem 1.4rem;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease, transform 0.1s ease;
}



.onb-toast-btn-cancel:active {
  transform: scale(0.95);
}