@import url('https://cdnjs.cloudflare.com/ajax/libs/tabler-icons/2.44.0/iconfont/tabler-icons.min.css');

* { box-sizing: border-box; }

html {
    overflow-x: hidden;
}
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f4f0;
    color: #1a1a18;
    overflow-x: hidden; /* evita rolagem horizontal acidental empurrar elementos fixed (modais) pra fora da tela visível no celular */
}

.tela {
    max-width: 420px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

.tela-centro { text-align: center; }

.topo-logo { margin-bottom: 1.5rem; }
.logo { font-weight: 600; font-size: 18px; }

h1 { font-size: 22px; font-weight: 500; margin: 0 0 4px; }
.subtitulo { font-size: 14px; color: #6b6a65; margin: 0 0 1.5rem; }
.label-muted { font-size: 13px; color: #6b6a65; margin: 0 0 6px; }

.card {
    background: #fff;
    border: 1px solid #e5e3db;
    border-radius: 12px;
    padding: 1.1rem;
    margin-bottom: 1.25rem;
}

.linha-padrinho { display: flex; align-items: center; gap: 10px; }
.avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: #e6f1fb; color: #0c447c;
    display: flex; align-items: center; justify-content: center;
    font-weight: 500; font-size: 14px;
    position: relative; flex-shrink: 0;
}
.nome { font-weight: 500; font-size: 15px; margin: 0; }
.sub { font-size: 12px; color: #6b6a65; margin: 0; }

.icone-circulo {
    width: 72px; height: 72px; border-radius: 50%;
    background: #e6f1fb; color: #0c447c;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; margin: 0 auto 1.25rem;
}

.lista-beneficios {
    list-style: none; padding: 0; margin: 0 0 1.5rem;
    text-align: left; display: flex; flex-direction: column; gap: 10px;
}
.lista-beneficios li { display: flex; gap: 10px; font-size: 13px; color: #6b6a65; }
.lista-beneficios i { color: #0c447c; font-size: 18px; flex-shrink: 0; }

.form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.25rem; }

input, select, textarea {
    width: 100%; height: 42px; padding: 0 12px;
    border: 1px solid #d8d6cc; border-radius: 8px;
    font-size: 14px; background: #fff;
}
textarea { height: auto; padding: 10px 12px; }

.botao-primario {
    display: block; width: 100%; text-align: center;
    background: #1a1a18; color: #fff; border: none;
    font-weight: 500; font-size: 14px; padding: 12px;
    border-radius: 8px; cursor: pointer; text-decoration: none;
}

.botao-texto {
    display: block; width: 100%; text-align: center;
    background: transparent; border: none; color: #6b6a65;
    font-size: 13px; padding: 8px; cursor: pointer;
}

.aviso-pendente {
    display: flex; gap: 8px; align-items: flex-start;
    font-size: 12px; color: #6b6a65; line-height: 1.5;
    margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #e5e3db;
}

.erro {
    background: #fcebeb; color: #791f1f; border-radius: 8px;
    padding: 10px 12px; font-size: 13px; margin-bottom: 1rem;
}

.sucesso {
    background: #eaf3de; color: #27500a; border-radius: 8px;
    padding: 10px 12px; font-size: 13px; margin-bottom: 1rem;
}

.badge-pendente {
    display: inline-flex; align-items: center; gap: 6px;
    color: #854f0b; font-size: 12px; margin-bottom: 4px;
}

.barra-progresso {
    background: #e5e3db; border-radius: 999px; height: 6px;
    margin-bottom: 1.5rem; overflow: hidden;
}
.barra-progresso-fill {
    height: 100%; background: #0c447c; transition: width .3s ease;
}

.secao-titulo {
    font-size: 13px; font-weight: 500; color: #6b6a65;
    margin: 1rem 0 8px;
}

.grid-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}

.ajuda { font-size: 11px; color: #9a988f; margin: -4px 0 0; }

.chips {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0.5rem;
}
.chip {
    display: inline-flex; align-items: center; gap: 4px;
    background: #fff; border: 1px solid #d8d6cc; border-radius: 999px;
    padding: 6px 12px; font-size: 12px; cursor: pointer;
}
.chip input { width: auto; height: auto; margin: 0; }

.card-aprovacao { text-align: left; }
.avatar-grande {
    width: 72px; height: 72px; border-radius: 50%;
    background: #e6f1fb; color: #0c447c;
    display: flex; align-items: center; justify-content: center;
    font-weight: 500; font-size: 22px; margin: 0 auto 12px;
}

.botao-secundario {
    background: #fff; border: 1px solid #d8d6cc; border-radius: 8px;
    font-weight: 500; font-size: 13px; padding: 11px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.botao-danger { border-color: #e24b4a; color: #a32d2d; }
.botao-success { background: #639922; border-color: #639922; color: #fff; }

.topo-feed {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 1rem;
}
.icone-link { color: #6b6a65; font-size: 20px; text-decoration: none; }

.vazio {
    text-align: center; padding: 3rem 1rem; color: #9a988f;
}
.vazio i { color: #d8d6cc; margin-bottom: 10px; display: block; }

.card-swipe {
    border-radius: 16px; overflow: hidden; background: #fff;
    border: 1px solid #e5e3db; margin-bottom: 1.25rem;
    cursor: grab; user-select: none; touch-action: none;
    position: relative;
}
/* Mesmo visual do card-swipe, mas SEM o touch-action:none — usado em
   telas que só exibem a foto (sem gesto de arrastar), como "meu perfil".
   Compartilhar a classe original travava o toque/scroll nessas telas. */
.card-perfil-estatico {
    border-radius: 16px; overflow: hidden; background: #fff;
    border: 1px solid #e5e3db; margin-bottom: 1.25rem;
    position: relative;
}
.card-swipe:active { cursor: grabbing; }
.card-swipe-foto {
    aspect-ratio: 3 / 4; background: #e6f1fb; position: relative;
    display: flex; align-items: center; justify-content: center; color: #0c447c;
}
.card-swipe-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center top; pointer-events: none; }

.selo-swipe {
    position: absolute; top: 20px; font-size: 22px; font-weight: 700;
    padding: 6px 14px; border-radius: 8px; opacity: 0;
    border: 3px solid; pointer-events: none;
    transform: rotate(-15deg);
}
.selo-curtir { left: 20px; color: #27500a; border-color: #27500a; background: rgba(255,255,255,0.85); }
.selo-passar { right: 20px; color: #791f1f; border-color: #791f1f; background: rgba(255,255,255,0.85); transform: rotate(15deg); }
.selo-ocultar {
    left: 50%; top: 20px; transform: translateX(-50%) rotate(0deg);
    color: #5f5e5a; border-color: #5f5e5a; background: rgba(255,255,255,0.9);
}

.badge-confianca {
    position: absolute; top: 12px; left: 12px;
    background: rgba(0,0,0,0.55); color: #fff; border-radius: 999px;
    padding: 5px 10px; font-size: 11px; display: flex; align-items: center; gap: 5px;
}

.card-swipe-info { padding: 1rem 1.1rem; }
.nome-idade { font-size: 19px; font-weight: 500; margin: 0 0 2px; }
.card-swipe-info .sub { font-size: 13px; color: #6b6a65; margin: 0 0 8px; display: flex; align-items: center; gap: 4px; }
.bio { font-size: 13px; color: #6b6a65; margin: 0; line-height: 1.5; }

.acoes-swipe {
    display: flex; justify-content: center; gap: 16px;
}
.botao-acao {
    width: 52px; height: 52px; border-radius: 50%; padding: 0;
    background: #fff; border: 1px solid #d8d6cc; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.botao-acao.botao-danger { border-color: #e24b4a; color: #a32d2d; }
.botao-acao.botao-accent { border-color: #378add; color: #185fa5; }
.botao-acao.botao-success { background: #639922; border-color: #639922; color: #fff; }
.simbolo-acao { font-size: 24px; line-height: 1; color: inherit; }

.modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    align-items: center; justify-content: center; z-index: 100;
}
.modal-conteudo {
    background: #fff; border-radius: 16px; padding: 2rem; text-align: center;
    max-width: 320px; width: 90%;
}

.topo-chat {
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 1rem; border-bottom: 1px solid #e5e3db;
    flex-shrink: 0; /* nunca encolhe nem sai da tela */
}

/* Layout de altura fixa, só pra tela de chat — cabeçalho e barra de
   envio ficam parados, só a lista de mensagens rola por dentro. */
/* Trava a altura do body só na tela de chat — sem isso, mesmo com o
   container interno certo, o navegador rolava a PÁGINA inteira em vez
   de deixar só a lista de mensagens rolar por dentro. Alguns navegadores
   de celular (principalmente Safari/iPhone) só respeitam isso direito
   se a tag <html> também estiver travada, por isso os dois juntos. */
html:has(body.body-chat) {
    height: 100vh; height: 100dvh;
    overflow: hidden;
}
.body-chat {
    height: 100vh; height: 100dvh;
    overflow: hidden;
    margin: 0;
    position: fixed; /* reforço extra pro iOS Safari, que às vezes ignora overflow:hidden sozinho */
    width: 100%;
}

.tela-chat {
    display: flex; flex-direction: column;
    height: 100vh; height: 100dvh; /* dvh cobre melhor celular com barra de endereço dinâmica */
    padding: 1.25rem 1.25rem 0; /* zera o padding de baixo da .tela genérica, que estourava a conta de altura */
}
.tela-chat .topo-chat {
    padding-top: 0;
}
.tela-chat .barra-envio {
    padding-bottom: 1rem;
}
.tela-chat .mensagens {
    flex: 1; overflow-y: auto; margin-bottom: 0; min-height: 0;
}
.tela-chat .barra-envio,
.tela-chat #barraGravacao {
    flex-shrink: 0;
}

.mensagens {
    display: flex; flex-direction: column; gap: 8px; margin-bottom: 1rem;
    min-height: 200px;
}
.msg {
    max-width: 75%; padding: 9px 13px; border-radius: 14px; font-size: 13px;
}
.msg-outro { align-self: flex-start; background: #f0efe9; border-radius: 14px 14px 14px 4px; }
.msg-minha { align-self: flex-end; background: #e6f1fb; color: #0c447c; border-radius: 14px 14px 4px 14px; }
.msg-presente { display: flex; align-items: center; gap: 6px; }
.msg-encontro { min-width: 200px; }

.card-evolucao {
    background: #fff; border: 1px solid #e5e3db; border-radius: 12px;
    padding: 12px; margin-bottom: 1rem; text-align: center;
}
.card-evolucao i { color: #185fa5; font-size: 18px; }

.barra-envio {
    display: flex; align-items: center; gap: 10px;
}
.form-envio { display: flex; flex: 1; gap: 8px; }
.form-envio input { flex: 1; }
.form-envio button {
    width: 42px; height: 42px; border-radius: 50%; border: none;
    background: #1a1a18; color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
}

.saldo-pill {
    display: flex; align-items: center; gap: 5px;
    background: #f0efe9; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 500;
}
.saldo-pill i { color: #854f0b; }

.grid-presentes {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 1.25rem;
}

/* Vitrine de coleção de presentes recebidos — cards compactos, 4 por
   linha, com selo de "vendido" pra quem já trocou por crédito */
.vitrine-presentes {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 1.5rem;
}
.card-presente-vitrine {
    background: #fff; border: 1px solid #e5e3db; border-radius: 12px;
    padding: 10px 6px; text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    display: flex; flex-direction: column; align-items: center;
}
.card-presente-vitrine.card-presente-vendido {
    background: #faf9f6; opacity: 0.7;
}
.card-presente-icone {
    font-size: 26px; margin-bottom: 4px;
}
.card-presente-nome {
    font-size: 11px; font-weight: 600; margin: 0; color: #1a1a18;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.card-presente-de {
    font-size: 9px; color: #fff; background: #185fa5; border-radius: 999px;
    padding: 2px 7px; margin: 4px 0; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 100%;
}
.card-presente-valor {
    font-size: 10px; color: #854f0b; font-weight: 600; margin: 0 0 4px;
}
.card-presente-data {
    font-size: 9px; color: #9a988f; margin: 0;
}
.card-presente-selo-vendido {
    margin-top: 6px; padding: 5px 2px; border-radius: 6px; width: 100%;
    background: #e6f1fb; color: #185fa5; font-size: 9px; font-weight: 600; line-height: 1.3;
}
.btn-vender-presente {
    margin-top: 6px !important; padding: 5px 2px !important; font-size: 10px !important; width: 100%;
}

.opcao-presente {
    background: #fff; border: 1px solid #d8d6cc; border-radius: 12px;
    padding: 0.9rem 0.5rem; text-align: center; cursor: pointer; position: relative;
}
.opcao-presente input { position: absolute; opacity: 0; }
.opcao-presente:has(input:checked) { border: 2px solid #378add; }
.opcao-presente i { font-size: 26px; color: #185fa5; }
.nome-presente { font-size: 12px; font-weight: 500; margin: 8px 0 2px; }
.valor-presente { font-size: 11px; color: #6b6a65; margin: 0; }

.lista-conversas { display: flex; flex-direction: column; gap: 2px; }
.item-conversa {
    display: flex; align-items: center; gap: 10px; padding: 12px 4px;
    text-decoration: none; color: inherit; border-bottom: 1px solid #ece9df;
}
.item-conversa-info { flex: 1; min-width: 0; }
.item-conversa-topo { display: flex; align-items: center; gap: 6px; }
.item-conversa-topo .nome { font-weight: 500; font-size: 14px; margin: 0; }
.icone-tipo { font-size: 12px; color: #9a988f; }
.item-conversa .sub { font-size: 12px; color: #9a988f; margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-nao-lida {
    background: #378add; color: #fff; font-size: 11px; font-weight: 500;
    min-width: 20px; height: 20px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.lista-pacotes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.25rem; }
.pacote-credito {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; border: 1px solid #d8d6cc; border-radius: 12px; padding: 12px 14px;
}

/* Navegação inferior fixa */
.tela-com-nav { padding-bottom: 90px; }

.nav-inferior {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-top: 1px solid #e5e3db;
    display: flex; justify-content: space-around;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    max-width: 420px; margin: 0 auto;
    z-index: 50;
}
.nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    text-decoration: none; color: #9a988f; font-size: 9px;
    padding: 4px 6px; flex: 1;
}
.nav-item i { font-size: 20px; }
.nav-item-ativo { color: #185fa5; }

/* Logo com marca */
.logo-marca { display: flex; align-items: center; gap: 6px; font-size: 17px; }
.logo-marca i { color: #185fa5; font-size: 18px; }

/* Estado vazio com mais presença visual */
.vazio-destaque {
    text-align: center; padding: 3rem 1.5rem 2rem;
    background: #fff; border: 1px solid #e5e3db; border-radius: 16px;
    margin-top: 1rem;
}
.vazio-icone {
    width: 64px; height: 64px; border-radius: 50%;
    background: #e6f1fb; color: #185fa5;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin: 0 auto 14px;
}
.vazio-titulo { font-size: 16px; font-weight: 500; margin: 0 0 6px; }
.vazio-destaque .ajuda { font-size: 13px; max-width: 260px; margin: 0 auto; }

/* Coluna lateral: quem curtiu/favoritou/visualizou você */
.coluna-interacoes {
    display: flex; flex-direction: column; gap: 10px;
    width: 46px; flex-shrink: 0; padding-top: 6px;
}
.avatar-mini-wrap { position: relative; display: block; text-decoration: none; }
.avatar-mini {
    width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
    background: #e6f1fb; color: #0c447c; display: flex; align-items: center;
    justify-content: center; font-size: 13px; font-weight: 500;
    border: 2px solid #fff; box-shadow: 0 0 0 1px #e5e3db;
}
.avatar-mini img { width: 100%; height: 100%; object-fit: cover; }
.avatar-mini-selo {
    position: absolute; bottom: -2px; right: -2px; font-size: 12px;
    background: #fff; border-radius: 50%; padding: 1px;
}

/* Marquee: lista de "pessoas que você curtiu" subindo devagar */
.marquee-wrap {
    height: 220px; overflow: hidden; position: relative;
    background: #fff; border: 1px solid #e5e3db; border-radius: 12px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
}
.marquee-conteudo {
    display: flex; flex-direction: column;
    animation: marquee-subir 18s linear infinite;
}
.marquee-wrap:hover .marquee-conteudo { animation-play-state: paused; }
@keyframes marquee-subir {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}
.marquee-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; text-decoration: none; color: inherit; font-size: 13px;
}

/* Avatar com foto real (fallback para iniciais já vem do .avatar/.avatar-grande) */
.avatar-foto { padding: 0; }
.avatar-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Status online/offline */
.status-dot {
    position: absolute; bottom: 0; right: 0;
    width: 11px; height: 11px; border-radius: 50%;
    border: 2px solid #f5f4f0;
}
.status-online { background: #2563eb; }
.status-offline { background: #dc2626; }

/* Variante maior, usada no card principal do feed (foto grande, não avatar) */
.status-dot-grande {
    position: absolute; top: 12px; right: 12px;
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.status-dot-grande.status-online { background: #2563eb; }
.status-dot-grande.status-offline { background: #dc2626; }

/* Ponto de mensagem não lida na navegação */
.ponto-nao-lido {
    position: absolute; top: 2px; right: 18px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #e24b4a; border: 1.5px solid #fff;
}

/* Cards da tela "no gelo" */
.card-gelo {
    background: #fff; border: 1px solid #e5e3db; border-radius: 12px;
    padding: 10px; text-align: center;
}
.card-gelo-foto {
    width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
    background: #e6f1fb; display: flex; align-items: center; justify-content: center;
    position: relative;
}
.card-gelo-foto img { width: 100%; height: 100%; object-fit: cover; }
.card-gelo-foto .status-dot { border-radius: 50%; }

/* Slide principal do perfil, com marca d'água de rastreabilidade */
.slide-principal {
    position: relative; width: 100%; aspect-ratio: 4/5;
    border-radius: 16px; overflow: hidden; background: #e6f1fb;
    margin-bottom: 8px; user-select: none;
}
.slide-principal img {
    width: 100%; height: 100%; object-fit: cover;
    -webkit-user-drag: none; user-select: none;
}
.marca-dagua {
    position: absolute; inset: 0; pointer-events: none;
    display: flex; flex-wrap: wrap; align-content: space-around;
    color: rgba(255,255,255,0.35); font-size: 11px; font-weight: 500;
    transform: rotate(-25deg) scale(1.4); overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.tira-miniaturas {
    display: flex; gap: 6px; overflow-x: auto; margin-bottom: 1.25rem; padding-bottom: 4px;
}
.miniatura {
    width: 56px; height: 70px; object-fit: cover; border-radius: 8px;
    flex-shrink: 0; cursor: pointer; opacity: 0.6; border: 2px solid transparent;
    user-select: none; -webkit-user-drag: none;
}
.miniatura-ativa { opacity: 1; border-color: #185fa5; }

.cabecalho-perfil {
    display: flex; align-items: center; gap: 12px; margin-bottom: 1rem;
}
.avatar-redondo-grande {
    width: 64px; height: 64px; border-radius: 50%; position: relative;
    background: #e6f1fb; color: #0c447c; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 500; font-size: 18px; border: 3px solid #fff; box-shadow: 0 0 0 1px #e5e3db;
}
.avatar-redondo-grande img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; user-select: none; -webkit-user-drag: none; }
