/* ===== Base ===== */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background: #000;
  /* fundo preto do app */
  color: #fff;
  /* texto branco por padrão */
}

/* Tipografia base (mais legível) */
body,
button,
input,
.message,
.qc-choice {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-weight: 500;
}

/* Centraliza a moldura do “telefone” */
#root {
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* Moldura do “telefone” */
.phone-frame {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background: #111;
  /* fallback se não houver wallpaper */
}

/* Papel de parede e película escura */
.wallpaper {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1501785888041-af3ef285b470?q=80&w=1280&auto=format&fit=crop")
    center/cover no-repeat;
  filter: brightness(0.85);
}

.screen-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18),
    rgba(0, 0, 0, 0.55)
  );
  pointer-events: none;
}

/* Views: ficam abaixo da status bar (48px) e sem fundo sólido */
.view {
  position: absolute;
  inset: 48px 0 0 0;
  display: none !important;
  background: transparent;
  pointer-events: none !important;
  z-index: 0;
}

.view.active {
  display: flex !important;
  pointer-events: auto !important;
  z-index: 1;
}

/* Painel central (onboarding) */
.centered-panel {
  margin: auto;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  padding: 22px;
  border-radius: 18px;
  width: min(340px, 90%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Utilitários */
.app-title {
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.9;
}

.stack {
  display: flex;
  flex-direction: column;
}

.gap12 {
  gap: 12px;
}

.field-label {
  font-size: 13px;
  opacity: 0.95;
}

.input-field {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 15px;
  outline: none;
}

.input-field.is-invalid {
  border-color: rgba(248, 113, 113, 0.9);
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.35);
}

.field-error {
  min-height: 16px;
  font-size: 12px;
  line-height: 1.4;
  color: #fca5a5;
}

.field-error:empty {
  display: none;
}

.relationship-meter {
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  margin: 0 auto;
}

.relationship-meter-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.relationship-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: #34d399;
  transition: width 0.4s ease, background 0.4s ease;
}

.relationship-meter-label {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.92;
  text-align: center;
}

.badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.footer-small {
  font-size: 11px;
  opacity: 0.9;
  text-align: center;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.1s ease;
  appearance: none;
}

.back-btn:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.9);
  outline-offset: 2px;
}

.back-btn:active {
  transform: scale(0.97);
}

.back-btn::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-right: 2px;
}

.back-btn-label {
  line-height: 1;
}
