/* OnlyKith app — mesmo design da landing (rebrand 2026-08): bordeaux/creme/dourado, Cormorant Garamond, letra grande.
   NOTA: --green/--accent mantêm o nome antigo mas são agora o bordeaux (evita mexer em todas as regras). */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/static/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/static/fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
:root {
  --green: #8E2044;
  --green-dark: #3E1220;
  --cream: #FAF6EF;
  --cream-dark: #EFE7DA;
  --ink: #3A2E2A;
  --ink-soft: #6E5F58;
  --accent: #8E2044;
  --accent-dark: #6F1733;
  --gold: #E0A458;
  --warn: #C05621;
  --warn-dark: #9C4118;
  --white: #FFFFFF;
  --radius: 16px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 19px; line-height: 1.65; color: var(--ink); background: var(--cream);
  min-height: 100vh; display: flex; flex-direction: column;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--green); }
a { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}
.wrap { max-width: 900px; margin: 0 auto; padding: 0 22px; width: 100%; }

header { background: var(--green); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 14px; flex-wrap: wrap; }
.logo { font-family: var(--serif); font-size: 28px; font-weight: 500; color: #fff; text-decoration: none; letter-spacing: .5px; }
.logo span { color: inherit; }
.nav-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-link {
  color: rgba(255,255,255,.92); text-decoration: none; font-size: 17px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
}
.nav-link.active, .nav-link:hover { background: rgba(250,247,242,.16); color: #fff; }
.nav-btn { border: none; background: none; cursor: pointer; font-family: inherit; }
.inline-form { display: inline; }
.lang-toggle { display: inline-flex; align-items: center; gap: 2px; background: rgba(250,246,239,.92); border-radius: 999px; padding: 3px; margin-left: 8px; }
.lang-toggle a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; }
.lang-toggle a.active { background: var(--green); color: #fff; }

main { flex: 1; padding: 44px 0 64px; }
h1 { font-size: clamp(30px, 4.5vw, 40px); margin-bottom: 10px; }
.sub { color: var(--ink-soft); font-size: 19px; margin-bottom: 30px; max-width: 40em; }
h2 { font-size: 25px; margin: 34px 0 14px; }

.card {
  background: var(--white); border: 1px solid var(--cream-dark);
  border-radius: var(--radius); padding: 26px; margin-bottom: 16px;
}
.card h3 { font-size: 22px; margin-bottom: 6px; }
.card .meta { color: var(--ink-soft); font-size: 17px; margin-bottom: 4px; }

.notice {
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 26px; font-size: 18px;
}
.notice.warn { background: #FFF4E8; border: 2px solid var(--warn); }
.notice.ok { background: #F3E9ED; border: 2px solid var(--green); }
.notice h2, .notice h3 { margin: 0 0 8px; }

.btn {
  display: inline-block; background: var(--accent); color: var(--white);
  font-size: 18px; font-weight: 700; text-decoration: none; font-family: inherit;
  padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); }
.btn.secondary { background: var(--white); color: var(--green); border: 2px solid var(--green); }
.btn.secondary:hover { background: var(--cream-dark); }
.btn.small { font-size: 16px; padding: 9px 18px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }

/* Formulários */
form.stack { max-width: 560px; }
label { display: block; font-size: 18px; font-weight: 700; margin: 18px 0 6px; }
label .optional { font-weight: 400; color: var(--ink-soft); }
.hint { font-size: 16px; color: var(--ink-soft); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=datetime-local], input[type=number], textarea, select {
  width: 100%; font-size: 19px; padding: 13px 15px; font-family: inherit;
  border: 2px solid #C9CFD4; border-radius: 10px; background: var(--white); color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--green); }
form .btn { margin-top: 26px; }

.form-msg { margin: 18px 0; padding: 14px 16px; border-radius: 10px; font-size: 18px; font-weight: 600; }
.form-msg.err { background: #FBEAE4; color: var(--warn-dark); border: 2px solid var(--warn); }
.form-msg.ok { background: #F3E9ED; color: #6F1733; border: 2px solid var(--green); }

/* Interesses (checkboxes grandes) */
.interest-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.interest-grid label {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  background: var(--white); border: 2px solid var(--cream-dark); border-radius: 999px;
  padding: 10px 18px; font-size: 17px; font-weight: 600; cursor: pointer;
}
.interest-grid label:has(input:checked) { border-color: var(--green); background: #F3E9ED; }
.interest-grid input { width: 22px; height: 22px; accent-color: var(--green); }

/* Badges */
.badge {
  display: inline-block; font-size: 15px; font-weight: 700; border-radius: 999px; padding: 4px 14px;
}
.badge.invited { background: #FFF4E8; color: var(--warn-dark); border: 1.5px solid var(--warn); }
.badge.confirmed, .badge.active { background: #F3E9ED; color: var(--green); border: 1.5px solid var(--green); }
.badge.declined, .badge.suspended, .badge.cancelled { background: #EFE7DA; color: var(--ink-soft); border: 1.5px solid #CFC4B6; }
.badge.pending { background: #FBEAE4; color: var(--warn-dark); border: 1.5px solid var(--warn); }

/* Tabelas (admin) */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; font-size: 17px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--cream-dark); vertical-align: middle; }
th { background: var(--green); color: var(--cream); font-size: 16px; }
tr:last-child td { border-bottom: none; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 10px; }
.stat { background: var(--white); border: 1px solid var(--cream-dark); border-radius: var(--radius); padding: 20px; }
.stat .n { font-family: var(--serif); font-weight: 600; font-size: 40px; color: var(--green); line-height: 1.1; }
.stat .l { color: var(--ink-soft); font-size: 16px; }

/* Pessoas */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.person-card { display: flex; flex-direction: column; gap: 6px; margin-bottom: 0; }
.person-card .btn-row { margin-top: auto; padding-top: 12px; }
.avatar {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  background: var(--green); color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 26px; font-weight: 600;
}
.avatar.big { width: 84px; height: 84px; font-size: 40px; }
.person-header { display: flex; align-items: center; gap: 18px; }
.chips-line { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chip { background: var(--cream); border: 2px solid var(--cream-dark); border-radius: 999px; padding: 8px 16px; font-size: 16px; font-weight: 600; }
.interests-line { font-size: 15px; }

/* Conversas */
.convo { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.convo:hover { border-color: var(--green); }
.convo-main { min-width: 0; }
.convo-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Chat (grupo e 1:1) */
.chat-box {
  background: var(--white); border: 1px solid var(--cream-dark); border-radius: var(--radius);
  padding: 18px; max-height: 480px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
}
.chat-empty { color: var(--ink-soft); text-align: center; padding: 18px 0; }
.chat-msg {
  max-width: 78%; background: var(--cream); border-radius: 16px 16px 16px 4px;
  padding: 10px 16px; align-self: flex-start;
}
.chat-msg.mine { background: #F3E9ED; border-radius: 16px 16px 4px 16px; align-self: flex-end; }
.chat-msg p { font-size: 18px; overflow-wrap: break-word; }
.chat-author { font-size: 14px; font-weight: 700; color: var(--green); }
.chat-time { font-size: 13px; color: var(--ink-soft); }
.chat-form { display: flex; gap: 10px; margin-top: 14px; }
.chat-form input { flex: 1; }
.chat-form .btn { margin-top: 0; flex: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.nav-badge {
  display: inline-block; min-width: 22px; text-align: center; background: var(--gold); color: #3E1220;
  border-radius: 999px; font-size: 14px; font-weight: 700; padding: 1px 7px; margin-left: 4px;
}

footer { background: var(--green-dark); color: rgba(250,247,242,.75); padding: 28px 0; font-size: 16px; }
footer a { color: var(--cream); }
footer p { margin: 2px 0; }

@media (max-width: 700px) {
  body { font-size: 18px; }
  main { padding: 30px 0 44px; }
}

/* Linha de checkbox simples (preferências) */
.check-row { display: flex; align-items: flex-start; gap: 12px; font-size: 18px; margin-top: 18px; cursor: pointer; }
.check-row input { width: 22px; height: 22px; margin-top: 4px; flex: 0 0 auto; accent-color: var(--green); }

/* Selo de membro fundador */
.founder-banner {
  background: linear-gradient(135deg, #FBF1DE, #F6E4C2); border: 1px solid #E0A458; color: #5A3A10;
  border-radius: 14px; padding: 16px 20px; font-size: 18px; font-weight: 600; margin: 0 0 20px;
}
.founder-tag { display: inline-block; margin: 6px 0 0; font-size: 16px; font-weight: 600; color: #8A5A12; background: #FBF1DE; border: 1px solid #E0A458; border-radius: 999px; padding: 4px 12px; }

/* Zona de ações irreversíveis (fecho de conta) */
.danger-box { border: 1.5px solid #CFC4B6; border-radius: 14px; padding: 14px 20px; background: var(--white); }
.danger-box summary { cursor: pointer; font-weight: 600; font-size: 18px; color: var(--ink-soft); }
.danger-box[open] summary { margin-bottom: 10px; }
.btn.danger { background: #7A1F1F; border-color: #7A1F1F; color: #FAF6EF; }
.btn.danger:hover { background: #5E1717; }

/* Match & afinidade */
.affinity { color: #8A5A12; font-weight: 600; }
.chip.chip-shared { border-color: var(--gold); background: #FBF1DE; }
a.chip { text-decoration: none; }
.stat.stat-alert .n { color: #7A1F1F; }
.card.card-alert { border-color: #C05621; }

/* Foto de perfil */
img.avatar { object-fit: cover; display: inline-block; }
.photo-card { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.file-btn { position: relative; overflow: hidden; display: inline-block; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
