/* =====================================================
   DEU CRUSH — Identidade visual
   Mobile-first, sem dependências externas
   ===================================================== */

:root {
  --rosa-1:        #ff3b6f;
  --rosa-2:        #ff7ab6;
  --vermelho:      #e91e63;
  --roxo:          #6a11cb;
  --azul:          #2575fc;
  --grad-principal: linear-gradient(135deg, #ff3b6f 0%, #ff7ab6 50%, #ff3b6f 100%);
  --grad-romantico: linear-gradient(135deg, #ff3b6f 0%, #6a11cb 100%);

  --texto:         #1a1a2e;
  --texto-suave:   #5a5a7a;
  --texto-claro:   #9a9aae;
  --fundo:         #fdf6f9;
  --fundo-card:    #ffffff;
  --borda:         #ffe0eb;
  --sucesso:       #06d6a0;
  --aviso:         #ffd166;
  --erro:          #ef476f;

  --raio-pequeno:  10px;
  --raio-medio:    16px;
  --raio-grande:   24px;
  --sombra-card:   0 6px 24px rgba(255, 59, 111, 0.10);
  --sombra-hover:  0 10px 32px rgba(255, 59, 111, 0.18);

  --header-h:      62px;
  --bottomnav-h:   68px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--rosa-1); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}
.container-grande { max-width: 1100px; }

/* ========== HEADER ========== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--fundo-card);
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.app-header .logo {
  font-weight: 900;
  font-size: 20px;
  background: var(--grad-principal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}
.app-header .logo span { color: var(--texto); -webkit-text-fill-color: var(--texto); }
.app-header .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ========== BOTTOM NAV (mobile-first) ========== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottomnav-h);
  background: var(--fundo-card);
  border-top: 1px solid var(--borda);
  display: flex;
  z-index: 100;
}
.bottom-nav a {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-decoration: none;
  color: var(--texto-claro);
  font-size: 11px;
  font-weight: 600;
  gap: 2px;
  transition: color .15s;
}
.bottom-nav a.ativo, .bottom-nav a:hover {
  color: var(--rosa-1);
}
.bottom-nav .icone { font-size: 22px; line-height: 1; }
.tem-bottom-nav { padding-bottom: calc(var(--bottomnav-h) + 16px); }

/* ========== TIPOGRAFIA ========== */
h1, h2, h3 { margin: 0 0 12px; line-height: 1.2; }
h1 { font-size: 28px; font-weight: 900; letter-spacing: -0.5px; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
.texto-suave { color: var(--texto-suave); }
.texto-claro { color: var(--texto-claro); font-size: 14px; }
.texto-centro { text-align: center; }
.gradiente-texto {
  background: var(--grad-principal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ========== BOTÕES ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s, opacity .15s;
  text-decoration: none;
  min-height: 48px;
}
.btn:active { transform: scale(.97); }
.btn-primario {
  background: var(--grad-principal);
  color: white;
  box-shadow: 0 6px 20px rgba(255,59,111,.4);
}
.btn-primario:hover { box-shadow: 0 10px 28px rgba(255,59,111,.5); text-decoration: none; }
.btn-secundario {
  background: white;
  color: var(--rosa-1);
  border: 2px solid var(--rosa-1);
}
.btn-fantasma {
  background: transparent;
  color: var(--texto);
  border: 1px solid var(--borda);
}
.btn-bloco { width: 100%; }
.btn-pequeno { padding: 8px 14px; font-size: 14px; min-height: 36px; }

/* ========== FORMULÁRIOS ========== */
.form-grupo { margin-bottom: 18px; }
.form-grupo label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--texto);
}
.form-grupo input[type=text],
.form-grupo input[type=email],
.form-grupo input[type=password],
.form-grupo input[type=number],
.form-grupo input[type=date],
.form-grupo input[type=tel],
.form-grupo select,
.form-grupo textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--raio-medio);
  border: 1.5px solid var(--borda);
  background: white;
  font-size: 16px;
  color: var(--texto);
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.form-grupo input:focus,
.form-grupo select:focus,
.form-grupo textarea:focus {
  outline: none;
  border-color: var(--rosa-1);
  box-shadow: 0 0 0 4px rgba(255,59,111,.1);
}
.form-grupo .ajuda { font-size: 12px; color: var(--texto-claro); margin-top: 4px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Chip seletor (botões redondos para gostos) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--borda);
  background: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--texto-suave);
  user-select: none;
  transition: all .15s;
}
.chip input { display: none; }
.chip:hover { border-color: var(--rosa-2); }
.chip.selecionado, .chip input:checked + span {
  background: var(--grad-principal);
  color: white;
  border-color: transparent;
}

/* Slider visual */
.slider-grupo { margin-bottom: 18px; }
.slider-grupo .topo {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; font-weight: 600; margin-bottom: 6px;
}
.slider-grupo .valor {
  background: var(--rosa-1); color: white;
  padding: 2px 10px; border-radius: 999px; font-size: 13px;
}
input[type=range] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--borda);
  border-radius: 999px;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  background: var(--rosa-1);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255,59,111,.4);
}
input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; background: var(--rosa-1);
  border-radius: 50%; cursor: pointer; border: 0;
}

/* ========== CARDS ========== */
.card {
  background: var(--fundo-card);
  border-radius: var(--raio-grande);
  padding: 20px;
  box-shadow: var(--sombra-card);
  margin-bottom: 16px;
}

/* Card de descoberta de Crush (usado no home) */
.crush-card {
  background: var(--fundo-card);
  border-radius: var(--raio-grande);
  overflow: hidden;
  box-shadow: var(--sombra-card);
  position: relative;
  margin-bottom: 18px;
}
.crush-card .foto {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #f0f0f5 center/cover no-repeat;
}
.crush-card .info { padding: 16px 18px 22px; }
.crush-card .info h3 { font-size: 22px; margin-bottom: 4px; }
.crush-card .info .subtitulo { color: var(--texto-suave); font-size: 14px; margin-bottom: 12px; }
.crush-card .motivos { list-style: none; padding: 0; margin: 0 0 12px; }
.crush-card .motivos li {
  font-size: 14px;
  color: var(--texto-suave);
  padding: 4px 0 4px 22px;
  position: relative;
}
.crush-card .motivos li::before {
  content: "✓";
  position: absolute; left: 0; top: 4px;
  color: var(--sucesso); font-weight: bold;
}
.crush-card .acoes {
  display: flex; gap: 10px; padding: 0 18px 18px;
}
.crush-card .acoes .btn { flex: 1; }

/* Selo de compatibilidade (badge no card) */
.selo-crush {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  display: flex; align-items: center; gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.selo-crush .pct { color: var(--rosa-1); }

/* Faixas de Crush */
.crush-perfeito  { background: linear-gradient(135deg,#ff3b6f,#ff006e); color: white; }
.crush-forte     { background: linear-gradient(135deg,#ff7ab6,#ff3b6f); color: white; }
.crush-promissor { background: linear-gradient(135deg,#ffd166,#ff7ab6); color: white; }
.crush-fraco     { background: var(--borda); color: var(--texto-suave); }
.faixa-crush {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ========== ALERTAS / FLASH ========== */
.alerta {
  padding: 14px 16px;
  border-radius: var(--raio-medio);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}
.alerta-sucesso { background: #d4f7e8; color: #06684e; border-left: 4px solid var(--sucesso); }
.alerta-erro    { background: #ffe0e6; color: #a02745; border-left: 4px solid var(--erro); }
.alerta-aviso   { background: #fff5d6; color: #886500; border-left: 4px solid var(--aviso); }
.alerta-info    { background: #e3f2fd; color: #1565c0; border-left: 4px solid var(--azul); }

/* ========== CHAT ========== */
.chat-lista a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--borda);
  text-decoration: none; color: var(--texto);
}
.chat-lista a:hover { background: var(--fundo); text-decoration: none; }
.chat-lista .avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--borda) center/cover no-repeat;
  flex-shrink: 0;
}
.chat-lista .meio { flex: 1; min-width: 0; }
.chat-lista .nome { font-weight: 700; }
.chat-lista .preview { font-size: 14px; color: var(--texto-suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-lista .hora { font-size: 12px; color: var(--texto-claro); }

.chat-conversa {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-h));
}
.mensagens {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--fundo);
}
.mensagem {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4;
  word-wrap: break-word;
}
.mensagem.minha {
  align-self: flex-end;
  background: var(--grad-principal);
  color: white;
  border-bottom-right-radius: 4px;
}
.mensagem.dele {
  align-self: flex-start;
  background: white;
  color: var(--texto);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.mensagem .hora { display: block; font-size: 11px; opacity: .7; margin-top: 4px; }

.compositor {
  display: flex; gap: 8px;
  padding: 10px 12px;
  background: white;
  border-top: 1px solid var(--borda);
}
.compositor input {
  flex: 1;
  border: 1.5px solid var(--borda);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
  outline: none;
}
.compositor input:focus { border-color: var(--rosa-1); }
.compositor button {
  width: 48px; height: 48px;
  border-radius: 50%; border: 0;
  background: var(--grad-principal);
  color: white; font-size: 22px;
  cursor: pointer; flex-shrink: 0;
}

/* ========== UPLOAD DE FOTOS (grid de cards) ========== */
.fotos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.foto-slot {
  aspect-ratio: 3/4;
  border-radius: var(--raio-medio);
  background: var(--borda) center/cover no-repeat;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--rosa-2);
  overflow: hidden;
  cursor: pointer;
}
.foto-slot.com-foto { border: none; }
.foto-slot .placeholder {
  font-size: 28px; color: var(--rosa-2); font-weight: bold;
}
.foto-slot .remover {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: white; border: 0;
  font-size: 14px; cursor: pointer;
}
.foto-slot.principal::after {
  content: "Principal";
  position: absolute; bottom: 6px; left: 6px;
  background: var(--rosa-1); color: white;
  padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
}

/* ========== STEPS (passos do cadastro) ========== */
.steps {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}
.steps .step {
  flex: 1;
  height: 4px;
  background: var(--borda);
  border-radius: 999px;
}
.steps .step.feito,
.steps .step.atual {
  background: var(--grad-principal);
}

/* ========== LANDING (página inicial) ========== */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--grad-romantico);
  color: white;
  padding: 40px 20px;
}
.hero h1 {
  font-size: 44px;
  margin-bottom: 12px;
  font-weight: 900;
  letter-spacing: -1px;
}
.hero p { font-size: 18px; opacity: .95; margin-bottom: 28px; max-width: 560px; }
.hero .acoes { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero .btn-secundario { background: white; border-color: white; color: var(--rosa-1); }
.hero .btn-fantasma { color: white; border-color: rgba(255,255,255,.5); }

.beneficios {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 60px 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.beneficio {
  background: white;
  padding: 28px 22px;
  border-radius: var(--raio-grande);
  box-shadow: var(--sombra-card);
  text-align: center;
}
.beneficio .icone { font-size: 36px; margin-bottom: 12px; }

/* ========== UTILITÁRIOS ========== */
.flex { display: flex; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8  { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ========== RESPONSIVO (desktop) ========== */
@media (min-width: 768px) {
  .container { max-width: 720px; padding: 24px; }
  .hero h1 { font-size: 56px; }
  .hero p  { font-size: 20px; }
  .beneficios { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 36px; }
  .fotos-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (min-width: 1024px) {
  /* No desktop, descoberta vira grid */
  .grid-crushes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
  }
  .container-grande { padding: 24px; }
}
