/* ELYSSIA — identidade v3: a Fechadura + shh.
   Símbolo: fechadura (logo, selo de verificado, moldura de foto). Bordão: "shh." / "Aqui fica entre nós."
   Fontes: Gloock (títulos) + Instrument Sans (texto; OFL, hospedada aqui). Cores: creme, noir, bordô, ouro.
   Proibido: gradiente em texto, caixa alta espaçada, ícone em quadradinho colorido, brilho radial. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-ext-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Gloock"; src: url("../fonts/gloock.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ---------- Tokens ---------- */
:root, [data-theme="champanhe"] {
  --bg: #f6efe6; --bg-soft: #efe6da; --surface: #fffaf4; --surface-2: #f3ebe0; --border: #e2d5c5;
  --text: #1a1214; --muted: #4a3d41; --faint: #786866;
  --accent: #8c1d40; --accent-hover: #a3264c; --accent-text: #fff; --accent-soft: rgba(140, 29, 64, .08);
  --gold: #c9a25e; --gold-deep: #86642a;
  --accent-on-dark: #d9507a; /* MESMO bordô, clareado até dar leitura sobre o noir (4,7:1; com #a8264f era 2,7:1) */
  --noir: #1a1214; --noir-2: #251a1d; --noir-line: #3d2e32; --cream: #f6efe6;
  --ok: #2a7150; --warn: #8a5a12;
  --tile-1: #e9dccd; --tile-2: #e4d1d3; --tile-3: #efe3d2; --tile-4: #dccbc0;
  color-scheme: light;
}
[data-theme="vinho"] {
  --bg: #140b10; --bg-soft: #1b1016; --surface: #22141b; --surface-2: #2c1a23; --border: #3a2430;
  --text: #f4ecef; --muted: #bba9b1; --faint: #86717b; --accent: #d23c5e; --accent-hover: #e04f70; --accent-text: #fff;
  --accent-soft: rgba(210, 60, 94, .14); --gold: #d9b26b; --gold-deep: #d9b26b; --ok: #4cc38a; --warn: #e0a84a;
  --tile-1: #3b1c2a; --tile-2: #4a2233; --tile-3: #2f1a26; --tile-4: #452a1f; color-scheme: dark;
}
[data-theme="noite"] {
  --bg: #0b0e17; --bg-soft: #0f1320; --surface: #151a2a; --surface-2: #1c2236; --border: #283049;
  --text: #eef1f8; --muted: #a7afc4; --faint: #737c95; --accent: #ff4f6e; --accent-hover: #ff6a85; --accent-text: #fff;
  --accent-soft: rgba(255, 79, 110, .13); --gold: #8fb3ff; --gold-deep: #8fb3ff; --ok: #45c98f; --warn: #f0b04c;
  --tile-1: #1d2540; --tile-2: #2a2140; --tile-3: #1a2a3a; --tile-4: #33223a; color-scheme: dark;
}
/* Claro: telas de dentro (quem está logado). Branco, texto quase preto, um só destaque rosa; botão principal preto. */
[data-theme="claro"] {
  --bg: #fff; --bg-soft: #f7f7f8; --surface: #fff; --surface-2: #f4f4f5; --border: #e4e4e7;
  --text: #18181b; --muted: #52525b; --faint: #6b6b74;
  --accent: #e0004f; --accent-hover: #c40045; --accent-text: #fff; --accent-soft: rgba(224, 0, 79, .07);
  --gold: #e0004f; --gold-deep: #c40045; --accent-on-dark: #ff5c8f;
  --noir: #18181b; --noir-2: #27272a; --noir-line: #3f3f46; --cream: #fafafa;
  --ok: #15803d; --warn: #a16207;
  --tile-1: #ececee; --tile-2: #f6e3ea; --tile-3: #f1f1f3; --tile-4: #e6e6ea;
  --shadow: 0 1px 2px rgba(24, 24, 27, .05);
  color-scheme: light;
}
:root {
  --radius: 14px; --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(40, 20, 25, .06), 0 12px 32px rgba(40, 20, 25, .08);
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Gloock", Georgia, "Times New Roman", serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100svh; display: flex; flex-direction: column; margin: 0; background: var(--bg); color: var(--text); font: 400 .9375rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 .6rem; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3, .h3 { font: 600 1rem/1.3 var(--font); letter-spacing: -0.01em; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: .86rem; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 460px; }

/* ---------- Marca ---------- */
.mark { width: 30px; height: 30px; flex: none; color: var(--text); }
.dark-top .topbar .mark, .closing .mark, .gate .mark, .footer .mark, .auth-art .mark, .block.dark .mark { color: var(--gold); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.wordmark { font: 400 1.5rem/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.wm-i { position: relative; display: inline-block; }
.wm-i svg { position: absolute; left: 50%; top: -.06em; width: .27em; height: auto; transform: translateX(-50%); fill: currentColor; }
.dark-top .topbar .wm-i svg, .footer .wm-i svg, .gate .wm-i svg { fill: var(--gold); }
.brand:hover { color: var(--text); }
.keyhole-ic { width: 10px; height: 14px; fill: currentColor; flex: none; }
.link { color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Topo ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); }
.topbar .container { display: flex; align-items: center; gap: 32px; height: 68px; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--muted); font-size: .94rem; font-weight: 500; padding: 23px 0; border-bottom: 2px solid transparent; }
.nav a.active { color: var(--text); border-bottom-color: var(--accent); }
.nav a:hover { color: var(--text); }
.topbar .spacer { flex: 1; }
.topbar form { margin: 0; }
.me { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-size: .72rem; font-weight: 600; color: var(--muted); }

/* Topo escuro (home) */
.dark-top .topbar { position: absolute; left: 0; right: 0; background: transparent; border-bottom-color: rgba(246, 239, 230, .12); backdrop-filter: none; }
.dark-top .topbar .brand, .dark-top .topbar .brand:hover { color: var(--cream); }
.dark-top .topbar .btn-ghost { color: var(--cream); border-color: rgba(246, 239, 230, .35); }
.dark-top .topbar .btn-ghost:hover { border-color: var(--cream); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: 600 .93rem var(--font); cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:hover { border-color: var(--text); color: var(--text); }
.btn-primary, .btn-gold { background: var(--gold); border-color: var(--gold); color: var(--noir); }
.btn-primary:hover, .btn-gold:hover { background: #d8b273; border-color: #d8b273; color: var(--noir); }
.btn-line { background: transparent; border-color: rgba(246, 239, 230, .45); color: var(--cream); }
.btn-line:hover { border-color: var(--cream); color: var(--cream); }
.btn-ghost { background: transparent; }
.btn-lg { height: 54px; padding: 0 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
.btn-link:hover { color: var(--text); }

/* ---------- Formulários ---------- */
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-size: .86rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.input, select.input, textarea.input { width: 100%; height: 44px; padding: 0 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: 1fr 96px; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1px solid var(--text); border-radius: 2px; background: transparent; cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.login-row { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 8px 15px; border: 1px solid var(--border); background: var(--surface); border-radius: 2px;
  font-size: .88rem; font-weight: 500; color: var(--muted); cursor: pointer; }
.chips-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.chips-grid .chip span { display: block; text-align: center; padding: 10px 8px; }
.chip input:checked + span { border-color: var(--noir); background: var(--noir); color: var(--cream); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.error { color: var(--accent); font-size: .85rem; margin-top: 6px; }
.hint { color: var(--faint); font-size: .8rem; margin-top: 6px; }

/* ---------- Cartões e avisos ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.notice { border: 1px solid color-mix(in srgb, var(--gold-deep) 40%, var(--border)); background: color-mix(in srgb, var(--gold) 9%, var(--surface)); padding: 13px 16px; border-radius: var(--radius-sm); font-size: .9rem; }
.flash { margin: 18px 0; }

/* ---------- Home: a fechadura ---------- */
.door { position: relative; min-height: min(100svh, 760px); background: var(--noir); color: var(--cream); overflow: hidden; display: flex; align-items: center; }
.door-photo { position: absolute; inset: 0; background: url("../img/hero-tacas.webp") 50% 62% / cover;
  /* no topo da home: só a metade direita, para a fechadura enquadrar as taças */
  --kh: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 160'><circle cx='50' cy='45' r='30'/><path d='M42 68 L36.5 147 Q36 152 41 152 H59 Q64 152 63.5 147 L58 68 Z'/></svg>");
  -webkit-mask: var(--kh) center / auto 56% no-repeat; mask: var(--kh) center / auto 56% no-repeat; }
.door > .door-photo { inset: auto; top: 50%; left: auto; right: max(56px, calc((100vw - 1180px) / 2 + 96px)); transform: translateY(-44%);
  width: 300px; height: 480px; background: url("../img/hero-entrada-v3.webp") 62% 50% / auto 100% no-repeat;
  -webkit-mask: var(--kh) center / 100% 100% no-repeat; mask: var(--kh) center / 100% 100% no-repeat; }
.door-copy { position: relative; padding-top: 100px; padding-bottom: 56px; }
.door h1 { font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: .95; letter-spacing: -.025em; margin: 0 0 22px; max-width: 640px; }
.door p { font-size: 1.12rem; color: #cbbdb2; max-width: 430px; margin: 0 0 32px; }
.door-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Entrada: 3 versões para escolher (pesquisa 22/11: Feeld, Killing Kittens, JOYclub, Coco de Mer) ---------- */
.door { background: var(--noir); } /* noir subiu de #140c0e p/ #1a1214 (22/11): faixa Material #121212 / Radix degrau 2 */
.door::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .07;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.door-copy { z-index: 2; }
.door-a > .door-photo, .door-b > .door-photo { inset: 0; top: 0; left: 0; right: 0; width: auto; height: auto; transform: none; -webkit-mask: none; mask: none; }
.door-a > .door-photo { background: url("../img/hero-entrada-blur.webp") 62% 40% / cover no-repeat; }
.door-b > .door-photo { left: auto; width: 62%; background: url("../img/hero-entrada-silh.webp") right 32% / cover no-repeat;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 35%); mask: linear-gradient(90deg, transparent 0, #000 35%); }
.door-d > .door-photo { inset: 0; top: 0; right: 0; left: auto; width: 52%; height: auto; transform: none;
  background: url("../img/hero-entrada-renda-v2.webp") 50% 44% / cover no-repeat;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 30%); mask: linear-gradient(90deg, transparent 0, #000 30%); }
.door-d > .door-photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,18,20,.6) 0, transparent 18%), linear-gradient(0deg, rgba(26,18,20,.55), transparent 30%); }
.door-a > .door-photo::after, .door-b > .door-photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(26,18,20,.94) 0%, rgba(26,18,20,.72) 38%, rgba(26,18,20,.12) 78%), linear-gradient(0deg, rgba(26,18,20,.7), transparent 28%); }
.door-c { background: radial-gradient(ellipse 60% 75% at 74% 48%, #3b242a 0%, #241619 45%, #1a1214 75%); }
.door-c > .door-photo { width: 380px; height: 608px; transform: translateY(-46%); right: max(40px, calc((100vw - 1180px) / 2 + 60px));
  filter: drop-shadow(0 0 28px rgba(201, 162, 94, .18)); }

.steps h3 { font: 400 1.45rem/1.2 var(--display); letter-spacing: -.01em; margin-bottom: 8px; }

/* ---------- Home: prova do produto ---------- */

/* ---------- Home: blocos ---------- */
.block { padding: 128px 0; border-bottom: 1px solid var(--border); }
.block.dark { background: var(--noir); color: var(--cream); border-bottom: 0; }
.block.dark .steps li { border-top-color: rgba(246, 239, 230, .3); }
.block.dark .steps p { color: #cbbdb2; }
.block.dark .steps li::before { color: var(--gold); }
.cols { display: grid; grid-template-columns: 400px 1fr; gap: 64px; }
.block h2 { font-size: 3rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: passo; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: passo; border-top: 1px solid var(--text); padding-top: 18px; }
.steps li::before { content: counter(passo); display: block; font: 400 4rem/1 var(--display); color: var(--accent); margin-bottom: 18px; }
.steps p { color: var(--muted); font-size: 1rem; margin: 0; }
.rules { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--text); }
.rules > div { padding: 20px 28px 20px 0; border-bottom: 1px solid var(--border); }
.rules dt { font: 400 1.45rem/1.2 var(--display); margin-bottom: 6px; }
.rules dd { margin: 0; color: var(--muted); font-size: 1rem; }
.closing { background: var(--bg); color: var(--text); padding: 112px 0; }
.closing-row { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 40px; }
.closing-row::before { content: ""; position: absolute; top: 0; left: 28px; right: 28px; border-top: 1px solid var(--text); }
.closing .mark { color: var(--text); }
.closing-key .mark { width: 64px; height: 64px; margin: 0 auto 28px; }
.closing h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.15; margin: 0; max-width: 720px; }
/* ---------- Entrada: bilhete de quem abriu a casa ---------- */
.bilhete { padding: 96px 0 0; }
.bilhete .container { max-width: 760px; }
.bilhete p { font: 400 1.5rem/1.45 var(--display); letter-spacing: -.005em; margin: 0 0 1.1rem; color: var(--text); }
.bilhete .bilhete-ass { font-family: inherit; font-size: 1rem; font-weight: 500; line-height: 1.4; letter-spacing: 0; color: var(--muted); margin-top: 1.6rem; }
/* ---------- Entrada: regras numeradas e blocos de texto ---------- */
.door h1.door-h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.04; max-width: 620px; }
.door .door-h1 + p { max-width: 520px; }
.regras { list-style: none; margin: 0; padding: 0; counter-reset: regra; border-top: 1px solid var(--text); }
.regras li { counter-increment: regra; display: grid; grid-template-columns: 56px 1fr; column-gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.regras li::before { content: counter(regra); grid-row: span 2; font: 400 2.4rem/1 var(--display); color: var(--accent); }
.regras h3 { font: 400 1.45rem/1.2 var(--display); letter-spacing: -.01em; margin: 0 0 6px; }
.regras p { grid-column: 2; margin: 0; color: var(--muted); font-size: 1rem; }
.regras a, .texto a:not(.btn) { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.texto p { font-size: 1.08rem; color: var(--muted); margin: 0 0 1.1rem; max-width: 640px; }
.block.dark .texto p { color: #cbbdb2; }
.block.dark h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1.1; }
.rules.rules-1 > div { padding-right: 28px; }
/* Entrada enxuta (24/11): título em cima do conteúdo, sem coluna vazia; serifa só em h1 e h2 */
.sec { padding: 88px 0; border-bottom: 1px solid var(--border); }
.sec h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); margin: 0 0 12px; }
.sec-lead { font-size: 1.08rem; color: var(--muted); max-width: 640px; margin: 0 0 36px; }
.sec-dark { background: var(--noir); color: var(--cream); border-bottom: 0; }
.sec-dark .sec-lead { color: #cbbdb2; }
.sec-estreita { max-width: 800px; }
.door .door-promo { font-size: .95rem; margin: 22px 0 0; padding-left: 14px; border-left: 2px solid var(--gold); max-width: 480px; }
.sec .bilhete { padding: 0; margin-top: 56px; border-top: 1px solid var(--border); padding-top: 32px; }
.sec .bilhete p { font: 400 1.08rem/1.6 var(--font); letter-spacing: 0; color: var(--muted); margin: 0 0 .9rem; }
.sec .bilhete .bilhete-ass { font-size: .95rem; font-weight: 500; margin-top: 1.1rem; }
/* Entrada sóbria (24/11): sem rótulo em caixa alta, sem fio dourado, sem grade de 3 colunas repetida. Paleta inalterada. */
.door-d { min-height: min(100svh, 820px); }
.door h1.door-h1 { font-size: clamp(2.4rem, 4.8vw, 4.2rem); line-height: 1.02; letter-spacing: -.02em; margin-bottom: 26px; }
.faixa { margin: 0; background: var(--noir-2); color: #cbbdb2; border-top: 1px solid var(--noir-line); font-size: 1rem; }
.faixa .container { display: block; padding-top: 22px; padding-bottom: 22px; }
.sec { padding: 112px 0; }
.sec h2 { font-size: clamp(2.2rem, 3.8vw, 3.1rem); letter-spacing: -.02em; margin-bottom: 16px; }
.sec-lead { margin-bottom: 44px; }
/* privacidade: termo à esquerda, explicação à direita, uma linha por item */
.lista { list-style: none; margin: 0; padding: 0; max-width: 900px; border-top: 1px solid var(--border); counter-reset: regra; }
.lista > * { display: grid; grid-template-columns: 240px 1fr; gap: 8px 40px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.lista dt, .lista h3 { font: 600 1.08rem/1.35 var(--font); letter-spacing: 0; margin: 0; }
.lista dd, .lista p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.lista a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* regras: lista numerada de uma coluna */
.lista-num > li { grid-template-columns: 44px 1fr; gap: 6px 16px; counter-increment: regra; }
.lista-num > li::before { content: counter(regra); grid-row: span 2; font: 600 1.08rem/1.35 var(--font); color: var(--gold); }
.lista-num p { grid-column: 2; }
.sec-dark .lista, .sec-dark .lista > * { border-color: var(--noir-line); }
.sec-dark .lista p { color: #cbbdb2; }
.fecho { background: var(--noir); color: var(--cream); padding: 104px 0; border-bottom: 1px solid var(--noir-line); }
.fecho .container { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.fecho h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.15; max-width: 720px; margin: 0; }
.fecho :focus-visible { outline-color: var(--gold); }

/* ---------- Explorar ---------- */
.layout-explore { display: grid; grid-template-columns: 250px 1fr; gap: 40px; padding-block: 36px 72px; }
.filters { position: sticky; top: 92px; align-self: start; }
.filters .field { margin-bottom: 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.pcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; display: block; }
.pcard:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--shadow); }
.pcard .photo { aspect-ratio: 4 / 5; display: grid; place-items: center; position: relative; background: var(--tile-1); }
.pcard:nth-child(4n+2) .photo { background: var(--tile-2); }
.pcard:nth-child(4n+3) .photo { background: var(--tile-3); }
.pcard:nth-child(4n+4) .photo { background: var(--tile-4); }
.pcard .photo img { width: 100%; height: 100%; object-fit: cover; }
.pcard .photo .status { position: absolute; left: 10px; top: 10px; }
.pcard .meta { padding: 12px 14px 14px; }
.pcard .name { font-weight: 600; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .sub { color: var(--muted); font-size: .84rem; }
.initials { font: 400 2.2rem var(--display); color: color-mix(in srgb, var(--text) 60%, transparent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; flex: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.88); color: var(--text); }
[data-theme="vinho"] .pill, [data-theme="noite"] .pill { background: rgba(0,0,0,.45); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.badge.key { background: var(--noir); border-color: var(--noir); color: var(--gold); }
.badge.casa { background: var(--accent); border-color: var(--accent); color: var(--accent-text); white-space: nowrap; vertical-align: middle; }
.room-roteiro { flex: 0 0 auto; width: auto; max-width: 9.5rem; font-size: .85rem; }
.badge.ok { border-color: color-mix(in srgb, var(--ok) 50%, transparent); color: var(--ok); }
.badge.warn { border-color: color-mix(in srgb, var(--warn) 50%, transparent); color: var(--warn); }
.badge.gold { border-color: color-mix(in srgb, var(--gold) 55%, transparent); color: var(--gold-deep); }
.toolbar { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.toolbar h2 { margin: 0; }
.empty { padding: 28px 0; color: var(--muted); max-width: 52ch; }
.empty:has(.shh-small) { padding: 56px 0; text-align: center; max-width: none; }
.empty .shh-small { font: 400 3rem/1 var(--display); color: var(--text); display: block; margin-bottom: 10px; }
.pagination { display: flex; gap: 8px; margin-top: 28px; }

/* ---------- Perfil ---------- */
.profile-head { display: grid; grid-template-columns: 280px 1fr; gap: 44px; padding: 44px 0; }
.avatar-lg { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--tile-2); display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); }
.avatar-lg .initials { font-size: 3.6rem; }
.profile-head h1 { font-size: 2.6rem; overflow-wrap: anywhere; min-width: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-head h1 .badge { font: 600 .72rem/1.4 var(--font); letter-spacing: 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin-top: 22px; font-size: .93rem; border-top: 1px solid var(--border); padding-top: 18px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }

/* ---------- Perfil: identidade nas telas internas ---------- */
.eyebrow { font-size: .88rem; font-weight: 500; color: var(--gold-deep); margin: 0 0 8px; }
.plan-mark { font-size: .84rem; font-weight: 500; color: var(--gold-deep); }
.plan-featured .plan-mark { color: var(--gold); }
.headline { font: 400 1.4rem/1.35 var(--display); margin: 18px 0 0; max-width: 560px; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 8px; }
.profile-actions form { margin: 0; }
.profile-actions .keyhole-ic { fill: var(--gold-deep); }
.bio { white-space: pre-line; max-width: 620px; }
.section-h { font: 400 1.375rem/1.2 var(--display); display: flex; align-items: center; gap: 10px; margin: 0; }
.section-h .keyhole-ic { width: 13px; height: 19px; fill: var(--gold-deep); }
.profile-head .section-h { margin: 32px 0 10px; }
.section-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); padding-top: 18px; margin-bottom: 20px; }
.gallery-block { padding-bottom: 56px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gphoto { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--tile-1); }
.gphoto img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gphoto:hover img { transform: scale(1.03); }
.album-note { margin: -8px 0 16px; }
.locked { position: relative; background: var(--noir); color: var(--cream); border-radius: var(--radius); overflow: hidden; min-height: 300px; display: grid; place-items: center; text-align: center; padding: 40px 24px; }
.locked-tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; opacity: .55; }
.locked-tiles span { background: radial-gradient(120% 90% at 30% 20%, #5a2a36, #21171a 70%); filter: blur(6px); }
.locked-tiles span:nth-child(2) { background: radial-gradient(120% 90% at 70% 40%, #6b4a2c, #21171a 70%); }
.locked-tiles span:nth-child(3) { background: radial-gradient(120% 90% at 40% 70%, #4a2230, #21171a 70%); }
.locked-copy { position: relative; max-width: 420px; }
.locked-kh { width: 34px; height: 54px; fill: var(--gold); margin: 0 auto 18px; display: block; }
.locked h3, .locked .h3 { font: 400 2rem/1.1 var(--display); margin: 0 0 10px; }
.locked p { color: #cbbdb2; margin: 0; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(20, 12, 14, .92); }
.lightbox img { display: block; max-width: 94vw; max-height: 90vh; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-close { position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border: 0; background: none; color: var(--cream); font-size: 2rem; cursor: pointer; }

/* ---------- Meu perfil (edição) ---------- */
.edit-page { max-width: 820px; padding-top: 40px; padding-bottom: 72px; }
.edit-section { margin-top: 56px; }
.upload { margin: 18px 0 24px; }
.upload-drop { display: block; border: 1px dashed var(--text); border-radius: var(--radius-sm); padding: 22px; text-align: center; cursor: pointer; background: var(--surface); }
.upload-drop:hover { border-color: var(--accent); }
.upload-drop { position: relative; }
.upload-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-drop:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.upload-drop b { font: 400 1.25rem/1.6 var(--display); }
.upload-drop span { color: var(--muted); font-size: .88rem; }
.upload-drop b { color: var(--text); }
.upload-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; }
.editor { margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 16px; }
.editor-help { font-size: .88rem; color: var(--muted); margin: 0 0 12px; }
.editor-help b { color: var(--text); }
.editor-stage { position: relative; display: flex; justify-content: center; background: var(--noir); border-radius: 4px; overflow: hidden; }
.editor-stage canvas { display: block; max-width: 100%; max-height: 520px; cursor: crosshair; touch-action: none; }
.editor-marquee { display: none; position: absolute; border: 2px solid var(--gold); border-radius: 50%; background: rgba(201, 162, 94, .15); pointer-events: none; }
.editor-tools { display: flex; gap: 20px; margin-top: 10px; font-size: .88rem; }
.editor-tools .btn-link[disabled] { opacity: .4; cursor: default; }
.manage { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.mphoto { margin: 0; position: relative; }
.mphoto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; display: block; background: var(--tile-1); }
.mtags { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.mphoto figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 0 0; font-size: .8rem; }
.mphoto figcaption form { margin: 0; }
.btn-link.danger { color: var(--accent); }
.keylist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.keylist li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.keylist li form { margin: 0 0 0 auto; }

/* ---------- Mensagens ---------- */
.chat-page { max-width: 820px; padding-top: 40px; padding-bottom: 64px; }
.threads { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--border); }
.thread { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--border); color: var(--text); }
.thread:hover { background: var(--surface); color: var(--text); }
.thread .avatar-sm, .room-who .avatar-sm { width: 46px; height: 46px; overflow: hidden; flex: none; }
.avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm .initials { font-size: 1rem; }
.thread-main { flex: 1; min-width: 0; display: grid; }
.thread-name { font-weight: 600; }
.thread-last { color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread.unread .thread-last { color: var(--text); font-weight: 600; }
.thread-meta { display: grid; justify-items: end; gap: 4px; }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.nav .count { display: inline-grid; margin-left: 6px; vertical-align: 1px; }
.chat-room { display: flex; flex-direction: column; min-height: calc(100svh - 68px); padding-top: 20px; padding-bottom: 20px; }
.room-head { display: flex; justify-content: flex-start; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.room-who { display: flex; align-items: center; gap: 10px; color: var(--text); line-height: 1.25; }
.room-log { flex: 1; overflow-y: auto; padding: 20px 0; display: flex; flex-direction: column; gap: 8px; min-height: 300px; max-height: calc(100svh - 260px); }
.room-empty { text-align: center; margin: auto; }
.msg { max-width: min(78%, 520px); align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 14px 14px 14px 4px; padding: 9px 13px 6px; }
.msg.mine { align-self: flex-end; background: var(--noir); border-color: var(--noir); color: var(--cream); border-radius: 14px 14px 4px 14px; }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg time { display: block; text-align: right; font-size: .7rem; color: var(--faint); margin-top: 2px; }
.msg.mine time { color: #a99a90; }
.room-form { display: flex; gap: 10px; align-items: flex-end; padding-top: 12px; border-top: 1px solid var(--border); }
.room-form textarea { height: auto; min-height: 44px; max-height: 140px; padding: 10px 14px; resize: vertical; }
.room-locked { margin-top: 12px; }

/* ---------- Convites, visitas, padrinho ---------- */
.narrow-page { max-width: 820px; padding-top: 40px; padding-bottom: 72px; }
.narrow-page h1 { font-size: clamp(1.9rem, 5vw, 2.4rem); }
.narrow-page .lead { font-size: 1.02rem; }
.invite-box { margin-top: 28px; }
.invite-row { display: flex; gap: 10px; }
.invite-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 32px 0 0; border-top: 1px solid var(--border); }
.invite-stats > div { padding: 18px 0; border-bottom: 1px solid var(--border); }
.invite-stats dt { font: 400 2.6rem/1 var(--display); }
.invite-stats dd { margin: 6px 0 0; color: var(--muted); }
.visits-locked { margin-top: 24px; }
.sponsor-row { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-size: .88rem; }
.sponsor-row form { margin: 0; }
.pcard-destaque { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }

/* ---------- Planos ---------- */
.plans-page { padding-top: 48px; padding-bottom: 80px; }
.plans-page h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 10px; }
.plans-page .lead { max-width: 560px; font-size: 1.05rem; }
.current-plan { margin: 20px 0 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.current-plan form { margin: 0; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; margin-top: 36px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan-featured { background: var(--noir); color: var(--cream); border-color: var(--noir); }
.plan-featured .muted, .plan-featured .plan-features { color: #cbbdb2; }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan-head h2 { font: 400 2rem/1 var(--display); margin: 0; }
.periods { display: flex; gap: 6px; margin: 22px 0 18px; }
.period { position: relative; flex: 1; }
.period input { position: absolute; opacity: 0; }
.period span { display: block; text-align: center; padding: 9px 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .86rem; cursor: pointer; }
.plan-featured .period span { border-color: var(--noir-line); }
.period input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--noir); font-weight: 600; }
.period input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.price { margin: 0; display: flex; align-items: baseline; gap: 4px; }
.price b { font: 400 2.6rem/1 var(--display); }
.price span { color: var(--muted); }
.plan-featured .price span { color: #cbbdb2; }
.price-total { margin: 6px 0 18px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; flex: 1; align-content: start; font-size: .93rem; }
.plan-features li { display: flex; gap: 10px; }
.plan-features li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-top: .55em; flex: none; }
.plans-note { margin-top: 28px; max-width: 640px; }
.idade-lista { list-style: none; margin: 24px 0 0; padding: 0; }
.idade-lista li { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--border); }
.idade-lista li div { display: grid; gap: 4px; }
.idade-lista form { margin: 0; }
.plans-hist ul { list-style: none; margin: 12px 0 0; padding: 0; }
.plans-hist li { display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.plans-hist li span:first-child { color: var(--muted); min-width: 92px; }
.plans-hist li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.vip-tag { font-size: .66rem; font-weight: 700; letter-spacing: .04em; color: var(--gold-deep); border: 1px solid currentColor; border-radius: 2px; padding: 1px 5px; margin-left: 6px; }

/* ---------- Aviso de idade ---------- */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--noir); color: var(--cream); text-align: center; }
.gate .mark { width: 56px; height: 56px; margin: 0 auto 14px; }
.gate .gate-name { font: 400 1.5rem/1 var(--display); color: var(--cream); margin: 0 0 34px; }
.gate .shh-gate { font: 400 7.5rem/.8 var(--display); letter-spacing: -.04em; margin: 0 0 18px; max-width: none; color: var(--cream); }
.gate .shh-gate span { color: var(--accent-on-dark); }
.gate h1 { font: 500 1.25rem/1.4 var(--font); margin: 0 0 10px; }
.gate p { color: #b8aaa0; max-width: 400px; margin: 0 auto; }
.gate .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.gate-sign { margin-top: 56px; color: #cbbdb2; }
.gate-sign .wordmark { font-size: 1.2rem; }

/* ---------- Entrar / cadastro: tela dividida ---------- */
.auth { display: grid; grid-template-columns: 42% 1fr; min-height: calc(100svh - 68px); }
.auth-art { position: relative; background: var(--noir); color: var(--cream); display: flex; flex-direction: column; justify-content: flex-end; padding: 48px 28px 48px max(28px, calc((100vw - 1180px) / 2 + 28px)); overflow: hidden; }
.auth-art .door-photo { -webkit-mask-position: center 30%; mask-position: center 30%; -webkit-mask-size: auto 56%; mask-size: auto 56%; }
.auth-art p { position: relative; font: 400 2.2rem/1.05 var(--display); margin: 0; max-width: 360px; }
.auth-art p span { color: var(--accent-on-dark); }
.auth-form { padding: 64px 28px; width: 100%; max-width: 496px; margin-inline: auto; }
.auth-form h1 { font-size: 2.6rem; margin-bottom: 6px; }
.auth-form .input { background: transparent; border: 0; border-bottom: 1px solid var(--text); border-radius: 0; padding: 0 2px; }
.auth-form .input:focus { box-shadow: none; border-bottom: 2px solid var(--accent); }
.auth-form .btn-primary { height: 52px; }

/* ---------- Páginas legais ---------- */
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 96px; }
.legal h1 { font-size: 3rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.legal p { color: var(--muted); font-size: 1.02rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--muted); font-size: 1.02rem; }
.legal li { margin: .3rem 0; }

/* ---------- Comparar paletas ---------- */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 32px 0 64px; }
.theme-sample { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.swatches { display: flex; gap: 8px; margin: 14px 0 20px; }
.swatches span { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); }

/* ---------- Rodapé ---------- */
.footer { background: var(--noir); color: #9c8e86; padding: 30px 0; font-size: .86rem; }
.footer .container { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); margin-right: auto; }
.footer a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.foot-brand .mark { width: 26px; height: 26px; }
.foot-tag { margin-right: auto; color: #cbbdb2; }
.foot-tag b { font: 400 1.05rem var(--display); color: var(--cream); }
.foot-tag b i { font-style: normal; color: var(--accent-on-dark); }

@media (max-width: 900px) {
  .door { display: block; min-height: 0; padding-top: 72px; }
  .door > .door-photo { position: relative; inset: auto; right: auto; transform: none; width: 200px; height: 320px; margin: 8px auto 0; }
  .door-a, .door-b { min-height: 660px; display: flex; align-items: flex-end; padding-top: 0; }
  .door-a > .door-photo, .door-b > .door-photo { position: absolute; inset: 0; width: auto; height: auto; margin: 0; }
  .door-a > .door-photo::after, .door-b > .door-photo::after { background: linear-gradient(0deg, rgba(26,18,20,.96) 0%, rgba(26,18,20,.75) 42%, rgba(26,18,20,.1) 75%); }
  .door-c > .door-photo { width: 220px; height: 352px; transform: none; right: auto; }
  .door-d { min-height: 680px; display: flex; align-items: flex-end; padding-top: 0; }
  .door .door-copy { padding-bottom: 36px; }
  .door-d > .door-photo { position: absolute; inset: 0; width: auto; height: auto; margin: 0; background-position: 50% 22%; background-size: cover;
    -webkit-mask: none; mask: none; }
  /* o título e o parágrafo ficam sobre a foto: o escuro sobe até eles para o texto não disputar com o corpo */
  .door-d > .door-photo::after { background: linear-gradient(0deg, rgba(26,18,20,.97) 0%, rgba(26,18,20,.88) 42%, rgba(26,18,20,.56) 64%, rgba(26,18,20,.1) 86%); }
  .door-copy { padding-top: 28px; padding-bottom: 48px; }
  /* entrada no celular: a foto fica em cima e o texto embaixo, sem texto sobre o corpo da foto */
  .door-d { display: block; min-height: 0; padding-top: 0; }
  .door-d > .door-photo { position: relative; inset: auto; height: 320px; background-position: 50% 30%; }
  .door-d > .door-photo::after { background: linear-gradient(180deg, rgba(26,18,20,.6) 0, transparent 26%), linear-gradient(0deg, rgba(26,18,20,1) 0, transparent 34%); }
  .sec { padding: 72px 0; }
  .fecho { padding: 80px 0; }
  .fecho .container { flex-direction: column; align-items: flex-start; }
  .fecho .btn { width: 100%; }
  .lista > * { grid-template-columns: 1fr; gap: 6px; }
  .lista-num > li { grid-template-columns: 32px 1fr; }
  .door-d { min-height: 0; }
  .door-actions .btn { width: 100%; }
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .closing-row::before { left: 18px; right: 18px; }
  .auth-art { min-height: 0; padding: 26px 18px; text-align: center; }
  .auth-art .door-photo { display: none; }
  .auth-art p { font-size: 1.5rem; max-width: none; }
  .closing-row { flex-direction: column; align-items: flex-start; }
  .chips-grid { grid-template-columns: repeat(2, 1fr); }
  .block h2 { font-size: 2.3rem; }
  .auth-form { padding: 36px 18px; }
  .block, .closing { padding: 88px 0; }
  .cols, .steps, .rules, .themes { grid-template-columns: 1fr; gap: 26px; }
  .layout-explore { grid-template-columns: 1fr; }
  .filters { position: static; }
  .profile-head { grid-template-columns: 1fr; }
  /* celular: o menu vira barra fixa no rodapé (antes sumia e não havia como chegar a Mensagens/Planos) */
  .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-around; gap: 0;
    background: var(--bg); border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom); }
  .nav a { flex: 1; text-align: center; padding: 14px 4px; font-size: .82rem; border-bottom: 0; border-top: 2px solid transparent; }
  .nav a.active { border-top-color: var(--accent); border-bottom-color: transparent; }
  body:has(.nav) { padding-bottom: 56px; }
  .chat-room { min-height: calc(100svh - 60px - 56px); }
  .room-log { max-height: calc(100svh - 300px); }
  .container { padding-inline: 18px; } /* só as laterais: o padding vertical de cada página continua valendo */
  .topbar .container { gap: 10px; height: 60px; }
  .topbar .btn { height: 38px; padding: 0 14px; font-size: .88rem; }
  .brand span { font-size: 1.25rem; }
  .me span:not(.avatar-sm) { display: none; }
  .row { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .upload-row { flex-direction: column; align-items: stretch; }
  .profile-actions > *, .profile-actions .btn { flex: 1 1 100%; width: 100%; }
  .locked-tiles { grid-template-columns: repeat(2, 1fr); }
  .profile-head { gap: 24px; padding: 24px 0 40px; }
}

/* ---------- Sino e amizade ---------- */
.bell { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--muted); }
.bell:hover, .bell.active { color: var(--text); background: var(--surface-2, rgba(0,0,0,.04)); }
.bell svg { width: 21px; height: 21px; }
.bell .count { position: absolute; top: 1px; right: -2px; min-width: 18px; height: 18px; font-size: .66rem; padding: 0 5px; }
.thread-unread { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.thread-unread .thread-name { font-weight: 600; }
.dot-new { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; margin-left: 8px; }
.section-title { font-size: 1.375rem; margin: 34px 0 12px; display: flex; align-items: center; gap: 10px; }
.friend-req { display: flex; align-items: center; gap: 14px; }
.friend-req .thread-main { flex: 1; min-width: 0; }
.friend-btns { display: flex; gap: 8px; }
.btn-sm { padding: 8px 14px; font-size: .86rem; }
@media (max-width: 520px) { .friend-req { flex-wrap: wrap; } .friend-btns { width: 100%; } .friend-btns form, .friend-btns button { flex: 1; width: 100%; } }

/* ---------- Feed, contos, comentários, depoimentos ---------- */
.feed-page { max-width: 640px; padding-top: 34px; padding-bottom: 60px; }
.composer { background: var(--surface, #fffaf3); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin: 18px 0 26px; display: grid; gap: 10px; }
.composer-tabs { display: flex; gap: 18px; font-size: .92rem; }
.composer-tabs label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.composer-title { display: none; }
.composer.is-conto .composer-title { display: block; }
.composer.is-conto .composer-photo { display: none; }
.composer textarea, .composer-title { width: 100%; }
.composer-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.composer-bar select { flex: 1; min-width: 150px; }
.composer-photo { cursor: pointer; border: 1px solid var(--border); border-radius: 8px; padding: 9px 14px; font-size: .9rem; max-width: 180px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.composer-photo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.composer-hint { margin: 0; }
.post { background: var(--surface, #fffaf3); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 18px; overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.post-who { flex: 1; display: grid; }
.post-name { font-weight: 600; color: var(--text); }
.post-vis { color: var(--accent); }
.post-photo img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: cover; background: #eee3d6; }
.post-body { padding: 12px 16px 0; margin: 0; }
.conto-title { font-size: 1.45rem; padding: 0 16px; margin: 4px 0 8px; }
.conto-title a { color: var(--text); }
.conto-teaser { padding: 0 16px; margin: 0 0 8px; color: var(--muted); }
.conto-body { padding: 0 16px; font-size: 1.04rem; line-height: 1.75; }
.post > .link { padding: 0 16px; display: inline-block; }
.post-actions { display: flex; align-items: center; gap: 16px; padding: 10px 12px 12px; }
.like { display: flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--muted); font: inherit; }
.like svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.like.on { color: var(--accent); }
.like.on svg { fill: currentColor; }
.post-comments { color: var(--muted); font-size: .9rem; }
.comments { margin-top: 10px; }
.comment { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--border); }
.comment-name { font-weight: 600; color: var(--text); }
.comment-body { flex: 1 1 60%; overflow-wrap: anywhere; }
.comment-form { display: flex; gap: 10px; margin-top: 14px; }
.comment-form input { flex: 1; }
.profile-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 6px; }
.testimonial { padding: 18px 0; border-top: 1px solid var(--border); max-width: 62ch; }
.testimonial:first-of-type { border-top: 0; }
.testimonial p { font-family: var(--display); font-size: 1.18rem; line-height: 1.5; }
.testimonial p { margin: 0 0 4px; }
.testimonial-pending p { color: var(--muted); }
.testimonial-actions { display: flex; gap: 12px; }
.testimonial-form { display: grid; gap: 10px; margin-top: 14px; } .testimonial-form .btn { justify-self: start; }
.promo-tag { background: color-mix(in srgb, var(--gold, #C9A25E) 16%, transparent); border: 1px solid color-mix(in srgb, var(--gold, #C9A25E) 45%, transparent); border-radius: 10px; padding: 10px 14px; font-size: .9rem; margin: 10px 0 18px; }
.composer textarea.input { min-height: 0; }
.composer-bar select.input { width: auto; }
.composer-photo { height: 46px; display: inline-flex; align-items: center; }
.testimonial-form textarea.input { min-height: 90px; }
.avatar-sm { overflow: hidden; flex: none; }

/* ---------- Perfil: topo com números, abas, pessoas, menu ---------- */
.profile-sub { margin: 6px 0 0; font-size: .98rem; }
.profile-sub .ages { font-weight: 600; color: var(--text); }
.profile-counts { margin: 16px 0 6px; font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px 28px; }
.profile-counts > * { display: grid; justify-items: start; line-height: 1.25; }
.profile-counts strong { font-size: 1.25rem; font-weight: 600; color: var(--text); }
.profile-counts a { color: var(--muted); }
.profile-counts a:hover { color: var(--text); }
.profile-likes { margin: 16px 0 0; max-width: 60ch; }
.tabs { display: flex; gap: 4px; margin: 34px 0 0; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 14px 16px; color: var(--muted); font-weight: 500; font-size: .95rem; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a span { font-size: .78rem; color: var(--muted); margin-left: 4px; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
[data-panel][hidden] { display: none !important; }
.about .bio { font-size: 1.04rem; line-height: 1.7; max-width: 68ch; }
.people-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 48px; margin: 26px 0; max-width: 640px; }
.person-card { padding: 16px 0; border-top: 1px solid var(--text); }
.person-card .h3 { font-size: 1.3rem; margin: 0 0 10px; }
.person-card .h3 span { font-family: var(--font); font-size: .86rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.person-card dl { display: grid; grid-template-columns: 7.5em 1fr; gap: 5px 12px; margin: 0; font-size: .93rem; }
.person-card dt { color: var(--muted); }
.person-card dd { margin: 0; }
.feed-inline { max-width: 640px; }
.more { position: relative; }
.more summary { list-style: none; cursor: pointer; padding-inline: 14px; }
.more summary::-webkit-details-marker { display: none; }
.more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 15; min-width: 220px; background: var(--surface, #fffaf3); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(26, 18, 20, .14); padding: 6px; display: grid; }
.more-menu a, .more-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 8px; font: inherit; color: var(--text); cursor: pointer; }
.more-menu a:hover, .more-menu button:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.more-menu .danger { color: #a3261f; }
.completude { margin: 14px 0 4px; }
.completude-bar { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; max-width: 420px; }
.completude-bar span { display: block; height: 100%; background: var(--gold, #C9A25E); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 6px 0 4px; }
.person-box { border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px 4px; }
.person-box legend { font-weight: 600; padding: 0 6px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; cursor: pointer; }
@media (max-width: 900px) { .more-menu { right: auto; left: 0; } .tabs { margin-inline: -18px; padding-inline: 12px; } }
.avatar-sm .initials { font: 600 .72rem/1 var(--font); letter-spacing: 0; color: var(--muted); }
.me .avatar-sm span.initials { display: inline; } /* a regra de celular que esconde spans do .me pegava as iniciais */
.pcard .name { flex-wrap: wrap; white-space: normal; row-gap: 4px; }

/* ---------- Acabamento (revisão visual 22/11) ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* sobre fundo escuro o bordô dava 2,07:1; o ouro passa de 7:1 */
.door :focus-visible, .block.dark :focus-visible, .footer :focus-visible, .gate :focus-visible, .auth-art :focus-visible, .plan-featured :focus-visible { outline-color: var(--gold); }
input[type=radio], input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; }
select.input { appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238a7a72' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
textarea.input { resize: none; }
.input::placeholder { color: var(--faint, #7a6b64); opacity: 1; }
.flash { max-width: 760px; }
.notice.err, .composer .notice { border-color: color-mix(in srgb, #a3261f 45%, var(--border)); background: color-mix(in srgb, #a3261f 6%, var(--surface)); color: #7d1c17; }
.error-page { padding-top: 96px; padding-bottom: 120px; }
.feed-more { display: flex; gap: 12px; justify-content: center; margin-top: 8px; }
[data-panel] { padding-top: 28px; }
.more-post summary { padding: 10px 6px; color: var(--muted); }
.more-post .more-menu { min-width: 160px; }
.filters-drawer > summary { display: none; }
.like, .post-comments, .btn-link, .bell { min-height: 44px; }
.post-comments, .btn-link { display: inline-flex; align-items: center; }
.bell { width: 44px; height: 44px; }
.pcard .photo { aspect-ratio: 4 / 5; }
.pcard .photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard .meta { padding: 10px 10px 12px; }
  .pcard .name { font-size: .92rem; }
  .pcard .sub { font-size: .8rem; }
  .filters-drawer > summary { display: inline-flex; list-style: none; margin-bottom: 14px; }
  .filters-drawer > summary::-webkit-details-marker { display: none; }
  .tabs { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
  .tabs a { padding: 14px 12px; }
  .more-post .more-menu { right: 0; left: auto; }
}

/* ---------- Navegação: ícones na barra do celular, menu da conta no avatar ---------- */
.nav svg { display: none; }
.nav a { position: relative; }
.account summary.me { list-style: none; cursor: pointer; min-height: 44px; padding: 0 4px; border-radius: 22px; }
.account summary.me::-webkit-details-marker { display: none; }
.account summary.me:hover { color: var(--text); }
.account .more-menu { min-width: 232px; }
.account .more-menu form { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 4px; }
@media (max-width: 900px) {
  .nav a { display: grid; justify-items: center; gap: 3px; padding: 8px 2px 7px; font-size: .72rem; min-height: 56px; align-content: center; }
  .nav svg { display: block; width: 22px; height: 22px; }
  .nav .count { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; min-width: 17px; height: 17px; font-size: .62rem; padding: 0 4px; }
  .account .me-name { display: none; }
  .account .more-menu { right: 0; left: auto; }
}
.plans { justify-content: center; }
.plans-page > .eyebrow, .plans-page > h1, .plans-page > .lead, .plans-page > .notice, .plans-page > .promo-tag, .plans-page > .plans-note { max-width: 860px; margin-inline: auto; }

/* ---------- Menos caixa (22/11): feed e busca sem cartão em volta de tudo ---------- */
/* Feed: publicações separadas por fio, como página de revista; só o compositor é caixa. */
.post { background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; margin-bottom: 0; overflow: visible; padding: 6px 0 10px; }
.post > * { padding-left: 0; padding-right: 0; }
.post-photo img { border-radius: 6px; }
.post-actions { margin-left: -6px; }
/* Busca: folha de contato. A foto é o cartão; nome e cidade ficam soltos embaixo. */
.pcard, .pcard:hover { background: none; border: 0; border-radius: 0; box-shadow: none; transform: none; overflow: visible; }
.pcard .photo { border-radius: 6px; overflow: hidden; }
.pcard .photo img { transition: transform .35s ease; }
.pcard:hover .photo img { transform: scale(1.03); }
.pcard:hover .name { color: var(--accent); }
.pcard .meta { padding: 10px 2px 6px; }
.pcard-destaque { box-shadow: none; }
.pcard-destaque .photo { outline: 2px solid var(--gold); outline-offset: 3px; }
.grid { gap: 26px 20px; }
@media (max-width: 700px) { .grid { gap: 18px 12px; } }
@media (prefers-reduced-motion: reduce) { .pcard .photo img { transition: none; } .pcard:hover .photo img { transform: none; } }
.post > .link { padding: 0; }

/* ---------- Cadastro em passos ---------- */
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.steps-count { margin: 0 0 18px; font-variant-numeric: tabular-nums; }
.steps-nav { display: flex; gap: 10px; margin-top: 8px; }
.steps-nav .btn { height: 52px; flex: 1; }
.steps-nav #step-back { flex: 0 0 auto; padding-inline: 22px; }
.steps-nav.only-back { margin-top: 12px; }
.steps-nav.only-back #step-back { flex: 1; height: 44px; }
.steps-nav[hidden], .steps-nav [hidden], .steps-count[hidden] { display: none; }

/* ---------- Busca: filtros novos ---------- */
.age-range { display: flex; align-items: center; gap: 10px; }
.age-range .input { width: 84px; text-align: center; }
.filter-more { margin: 0 0 18px; }
.filter-more > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 4px 0 10px; }
.filter-more > summary::-webkit-details-marker { display: none; }
.filter-more > summary::after { content: "+"; font-weight: 400; color: var(--muted); }
.filter-more[open] > summary::after { content: "−"; }

/* ---------- Conta ---------- */
.conta-form { max-width: 420px; }
.conta-page .edit-section { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); }
.btn-danger { border-color: #a3261f; color: #7d1c17; background: transparent; }
.btn-danger:hover { background: #a3261f; color: #fff; }

/* ---------- Contador de caracteres ---------- */
.contador { display: block; text-align: right; margin-top: 4px; font-variant-numeric: tabular-nums; }
.contador.cheio { color: #7d1c17; }

/* ---------- Vídeo na publicação ---------- */
.post-video video { display: block; width: 100%; height: auto; max-height: 80vh; background: #1a1214; border-radius: 6px; }
.post-video-msg { margin: 6px 0 0; }
.composer.is-conto .composer-video { display: none; }

/* Pagamento por Pix */
.pix-card { display: grid; gap: 14px; max-width: 460px; }
.pix-card .field { margin: 0; }
.pix-qr { width: 240px; height: 240px; justify-self: center; background: #fff; border-radius: var(--radius-sm); }
.pix-codigo { font: .8rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; resize: none; }

/* Revisão de uso no celular */
.pcard .name, .room-who, .thread-name { overflow-wrap: anywhere; min-width: 0; }
.composer-photo:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.room-form textarea { resize: none; max-height: 9.5em; overflow-y: auto; }
@media (max-width: 900px) {
  /* abaixo de 16px o iPhone dá zoom ao tocar no campo e não volta */
  .input, select.input, textarea.input { font-size: 16px; }
  .chip span { min-height: 44px; display: inline-flex; align-items: center; }
  .period span { min-height: 44px; display: flex; align-items: center; justify-content: center; }
}

/* Assinar sempre à mão para quem não tem plano */
.btn-assinar { padding: 8px 16px; font-size: .9rem; min-height: 38px; }
@media (max-width: 900px) { .btn-assinar { padding: 7px 12px; font-size: .84rem; } }

/* ---------- Tema claro: o que não sai só das variáveis ---------- */
[data-theme="claro"] .btn-primary, [data-theme="claro"] .btn-gold { background: var(--text); border-color: var(--text); color: #fff; }
[data-theme="claro"] .btn-primary:hover, [data-theme="claro"] .btn-gold:hover { background: #3f3f46; border-color: #3f3f46; color: #fff; }
[data-theme="claro"] .btn-assinar, [data-theme="claro"] .btn-assinar:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="claro"] .btn-assinar:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
[data-theme="claro"] .period input:checked + span { color: #fff; }
[data-theme="claro"] .plan-featured .plan-mark, [data-theme="claro"] .badge.key, [data-theme="claro"] .locked-kh { color: var(--accent-on-dark); fill: var(--accent-on-dark); }
[data-theme="claro"] .nav a.active, [data-theme="claro"] .tabs a.active { border-color: var(--text); }
[data-theme="claro"] .post-photo img { background: var(--surface-2); }
[data-theme="claro"] :is(.card, .post, .composer) { box-shadow: none; }
/* ---------- Tema escuro: par do claro, escolhido pelo membro no menu da conta ---------- */
[data-theme="escuro"] {
  --bg: #0f0f12; --bg-soft: #16161a; --surface: #18181b; --surface-2: #222226; --border: #2e2e33;
  --text: #f4f4f5; --muted: #a1a1aa; --faint: #9494a0;
  --accent: #ff4f86; --accent-hover: #ff78a3; --accent-text: #18181b; --accent-soft: rgba(255, 79, 134, .14);
  --gold: #ff4f86; --gold-deep: #ff78a3; --accent-on-dark: #ff5c8f;
  --noir: #26262b; --noir-2: #2e2e33; --noir-line: #45454c; --cream: #fafafa;
  --ok: #4ade80; --warn: #fbbf24;
  --tile-1: #232327; --tile-2: #2b2027; --tile-3: #1f1f23; --tile-4: #28282d;
  --shadow: none;
  color-scheme: dark;
}
[data-theme="escuro"] .btn-primary, [data-theme="escuro"] .btn-gold { background: var(--text); border-color: var(--text); color: #fff; }
[data-theme="escuro"] .btn-primary:hover, [data-theme="escuro"] .btn-gold:hover { background: #3f3f46; border-color: #3f3f46; color: #fff; }
[data-theme="escuro"] .btn-assinar, [data-theme="escuro"] .btn-assinar:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="escuro"] .btn-assinar:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
[data-theme="escuro"] .period input:checked + span { color: #fff; }
[data-theme="escuro"] .plan-featured .plan-mark, [data-theme="escuro"] .badge.key, [data-theme="escuro"] .locked-kh { color: var(--accent-on-dark); fill: var(--accent-on-dark); }
[data-theme="escuro"] .nav a.active, [data-theme="escuro"] .tabs a.active { border-color: var(--text); }
[data-theme="escuro"] .post-photo img { background: var(--surface-2); }
[data-theme="escuro"] :is(.card, .post, .composer) { box-shadow: none; }
[data-theme="escuro"] .btn-primary, [data-theme="escuro"] .btn-gold { color: #18181b; }
[data-theme="escuro"] .btn-primary:hover, [data-theme="escuro"] .btn-gold:hover { background: #d4d4d8; border-color: #d4d4d8; color: #18181b; }
[data-theme="escuro"] :is(.btn-assinar, .btn-assinar:hover, .plan-featured .btn-primary, .count, .period input:checked + span) { color: #18181b; }
[data-theme="escuro"] .chip input:checked + span, [data-theme="escuro"] .chat-filter a.active { background: var(--text); border-color: var(--text); color: #18181b; }
[data-theme="escuro"] :is(.notice.err, .composer .notice, .more-menu .danger, .contador.cheio) { color: #fca5a5; }
[data-theme="escuro"] .btn-danger { border-color: #f87171; color: #fca5a5; }
[data-theme="escuro"] .footer { background: #09090b; }
.feed-tabs { margin: 0 0 18px; }
.feed-tabs a { flex: 1; text-align: center; }
.pcard .dist { color: var(--faint); white-space: nowrap; }
.pcard .dist::before { content: "· "; }
@media (max-width: 900px) { .pcard .dist { display: block; } .pcard .dist::before { content: none; } }
[data-theme="claro"] .plan-featured .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="claro"] .plan-featured .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
:where([data-theme="claro"], [data-theme="escuro"]) .notice { border-color: var(--border); background: var(--surface-2); }

/* ---------- Feed: coluna lateral (perfis perto e assinatura) ---------- */
.feed-layout { display: grid; grid-template-columns: minmax(0, 640px) 300px; gap: 56px; justify-content: center; align-items: start; padding-top: 34px; padding-bottom: 60px; }
.feed-main { min-width: 0; }
.feed-side { position: sticky; top: 96px; display: grid; gap: 18px; }
.side-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--surface); }
.side-card h2 { font: 600 .95rem/1.3 var(--font); letter-spacing: 0; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-list a { display: flex; align-items: center; gap: 12px; padding: 7px 6px; margin: 0 -6px; border-radius: 8px; color: var(--text); }
.side-list a:hover { background: var(--surface-2); }
.side-list .avatar-sm { width: 42px; height: 42px; }
.side-who { display: grid; min-width: 0; font-size: .9rem; line-height: 1.35; }
.side-who strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-who span { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-more { display: inline-block; margin-top: 12px; font-size: .88rem; font-weight: 600; color: var(--accent); }
.side-plan { background: var(--noir); border-color: var(--noir); color: var(--cream); }
.side-plan h2 { color: var(--cream); } .side-plan h2 .keyhole-ic { fill: var(--accent-on-dark); }
.side-plan ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 7px; font-size: .88rem; color: #d4d4d8; }
.side-plan li { display: flex; gap: 9px; } .side-plan li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-on-dark); margin-top: .6em; flex: none; }
.side-price { font-size: .86rem; color: #d4d4d8; margin: 0 0 14px; } .side-price strong { color: var(--cream); font-size: 1.05rem; }
.side-plan .btn-primary, [data-theme="claro"] .side-plan .btn-primary { width: 100%; background: var(--accent-on-dark); border-color: var(--accent-on-dark); color: var(--noir); }
.side-plan .btn-primary:hover, [data-theme="claro"] .side-plan .btn-primary:hover { background: var(--cream); border-color: var(--cream); color: var(--noir); }
@media (max-width: 1100px) { .feed-layout { grid-template-columns: minmax(0, 640px); } .feed-side { display: none; } }

/* Faixa "Perto de você": só onde a coluna lateral não cabe (celular e tablet). */
.near-strip { display: none; }
@media (max-width: 1100px) {
  .near-strip { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 14px -18px 4px; padding: 4px 18px 10px; scroll-snap-type: x proximity; }
  .near-strip::-webkit-scrollbar { display: none; }
  .near-strip a { flex: none; width: 76px; display: grid; justify-items: center; gap: 2px; color: var(--text); text-align: center; scroll-snap-align: start; }
  .near-strip .avatar-sm { width: 64px; height: 64px; margin-bottom: 4px; font-size: 1.3rem; color: var(--muted); }
  .near-strip strong, .near-strip a > span:last-child { max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .near-strip strong { font-size: .76rem; font-weight: 600; }
  .near-strip a > span:last-child { font-size: .7rem; color: var(--faint); }
}

/* ---------- Mensagens: caixa de entrada / arquivadas e filtro por tipo ---------- */
.chat-filter { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 14px 0 6px; }
.chat-filter::-webkit-scrollbar { display: none; }
.chat-filter a { flex: none; padding: 7px 14px; min-height: 36px; border: 1px solid var(--border); border-radius: 999px; font-size: .86rem; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; }
.chat-filter a.active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chat-page .threads li { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--border); }
.chat-page .threads li .thread { flex: 1; min-width: 0; border-bottom: 0; }
.thread-arq { margin: 0; flex: none; }
.thread-arq .btn-link { padding: 10px 8px; min-height: 44px; font-size: .82rem; font-weight: 500; color: var(--faint); }
.thread-arq .btn-link:hover { color: var(--accent); }

/* Escolha de tema no menu da conta */
.more-menu .tema-form button { display: flex; justify-content: space-between; gap: 12px; width: 100%; }
/* ---------- Entrada: dúvidas ---------- */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 34px 20px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-weight: 400; font-size: 1.4rem; color: var(--muted); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq-list p { margin: 0 0 20px; color: var(--muted); max-width: 62ch; }
.faq-list a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Páginas por cidade ---------- */
.city-page { max-width: 880px; padding-top: 56px; padding-bottom: 88px; }
.city-page h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 14px; }
.city-page .lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.city-counts { list-style: none; padding: 0; margin: 28px 0 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.city-counts li { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: var(--surface); display: grid; gap: 2px; }
.city-counts strong { font: 400 2rem/1.1 var(--display); }
.city-counts span { color: var(--muted); font-size: .9rem; }
.city-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin: 44px 0 36px; }
.city-how h2 { font: 600 1rem/1.3 var(--font); letter-spacing: 0; margin: 0 0 6px; }
.city-how p { margin: 0; color: var(--muted); font-size: .95rem; }
.city-more-h { font-size: 1.4rem; margin: 56px 0 14px; }
.city-links { list-style: none; padding: 0; margin: 0 0 36px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.city-links a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 4px; display: inline-block; padding: 6px 0; }
.city-links a:hover { color: var(--text); }

/* ---------- Perto agora (localização aproximada, opcional) ---------- */
.near-page { max-width: 820px; padding-top: 40px; padding-bottom: 72px; }
.near-intro { max-width: 640px; }
.near-rules { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; color: var(--muted); }
.near-rules strong { color: var(--text); }
.near-on { margin: 6px 0 26px; }
.near-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.near-actions form { margin: 0; }
.near-band { font: 600 1rem/1.3 var(--font); letter-spacing: 0; margin: 30px 0 14px; padding-top: 18px; border-top: 1px solid var(--border); }
.near-link { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
#perto-erro { margin-top: 14px; max-width: 640px; }

@media (max-width: 900px) { .chat-filter a { min-height: 44px; } }
.near-strip .near-more .avatar-sm { color: var(--accent); }

/* ---------- Viagens ("Vou viajar para…") ---------- */
.trips-page .conta-form { max-width: none; }
.trip-list { list-style: none; padding: 0; margin: 24px 0 8px; border-top: 1px solid var(--border); }
.trip-list li { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--border); }
.trip-list form { margin: 0; flex: none; }
.trip-list .btn-link { padding: 10px 8px; min-height: 44px; font-size: .86rem; color: var(--faint); }
.trip-list .btn-link:hover { color: var(--accent); }
.trip-main { flex: 1; min-width: 0; display: grid; }
.trip-main span { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.trip-form { margin-top: 34px; }
/* ===== agenda de festas ===== */
.agenda-ufs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.agenda-ufs a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; font-size: .88rem; }
.agenda-ufs a.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.agenda-list { list-style: none; padding: 0; margin: 24px 0 8px; border-top: 1px solid var(--border); }
.agenda-list li { display: flex; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--border); }
.agenda-list time { flex: none; width: 64px; display: grid; align-content: start; }
.agenda-list time b { font-size: 1.15rem; line-height: 1.2; }
.agenda-list time span { color: var(--muted); font-size: .8rem; }
.agenda-main { flex: 1; min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.agenda-main span { color: var(--muted); font-size: .9rem; }
.agenda-main p { margin: 6px 0 2px; font-size: .92rem; }
.agenda-main .link { justify-self: start; font-size: .9rem; padding: 8px 0; }
.agenda-vou { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0 0; }
.agenda-vou .btn { min-width: 96px; }
.agenda-vou span { font-size: .85rem; }
.trip-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trip-row:first-of-type { grid-template-columns: 1fr 110px; }
.profile-trips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 0; }
.trip-tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--text); font-size: .86rem; }
.passing { margin: 0 0 26px; }
.passing h2 { font: 600 1rem/1.3 var(--font); letter-spacing: 0; margin: 0 0 12px; }
.passing-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.passing-row::-webkit-scrollbar { display: none; }
.passing-card { flex: none; width: 230px; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.passing-card:hover { border-color: var(--text); }
.passing-card .avatar-sm { width: 46px; height: 46px; }

/* Caixa de seleção dentro de um campo: ".field label" (negrito, em bloco) ganhava de ".check" e quebrava a linha. */
.field label.check { display: flex; font-size: .9rem; font-weight: 400; color: var(--muted); margin-bottom: 0; }
.passing-card { width: 264px; }
.passing-card .side-who span:last-child { white-space: normal; }
.trip-row > .field { min-width: 0; }
.trip-row .input { width: 100%; min-width: 0; }
@media (max-width: 480px) { .trip-row:not(:first-of-type) { grid-template-columns: 1fr; gap: 0; } }

/* texto só para leitor de tela (o número de curtidas ganha o nome "Curtir" sem aparecer na tela) */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* carrossel de fotos do perfil */
.lb-nav{position:fixed;top:50%;transform:translateY(-50%);width:48px;height:64px;border:0;border-radius:10px;background:rgba(0,0,0,.45);color:#fff;font-size:2.2rem;line-height:1;cursor:pointer}
.lb-nav:hover,.lb-nav:focus-visible{background:rgba(0,0,0,.7)}
.lb-prev{left:10px}.lb-next{right:10px}
.lb-count{position:fixed;bottom:14px;left:0;right:0;margin:0;text-align:center;color:#fff;font-size:.9rem;text-shadow:0 1px 3px #000}
.lb-close{color:#fff}
.lb-uma .lb-nav,.lb-uma .lb-count{display:none}

/* ===== celular: correções da auditoria de 23/11 ===== */
/* Visitas: o botão tinha a mesma cor do cartão escuro no tema claro e sumia */
[data-theme="claro"] .locked .btn-primary, [data-theme="escuro"] .locked .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
/* título de seção colado no primeiro campo (Conta, Viagens) */
.conta-page .section-h, .trip-form .section-h, form .section-h { margin-bottom: 14px; }
/* link dentro de texto de apoio tem de parecer link */
.empty a:not(.btn), p.muted a:not(.btn), .hint a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* destaque do Premium na busca: selo em vez de contorno solto */
.pcard-destaque .photo { outline: 0; position: relative; }
.pcard-destaque .photo::after { content: "Destaque"; position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.city-links a { padding: 10px 0; color: var(--text); }
.pcard .sub { overflow-wrap: normal; }
@media (max-width: 900px) {
  body:has(.nav) { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .footer a { display: inline-block; padding: 10px 0; }
  .composer-bar select, .composer-bar select.input { flex: 1 1 100%; width: 100%; order: 3; }
  .profile-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
  .post-name, .comment-name { display: inline-block; padding: 8px 0; }
  .plans-hist li { display: grid; grid-template-columns: 92px 1fr auto; align-items: baseline; }
  .plans-hist li b { margin-left: 0; }
}
@media (max-width: 480px) { .person-box .row-2 { grid-template-columns: 1fr; } }
.empty p { margin: 14px 0 0; }
.plan-current .btn-link, .plans-page .btn-link { text-decoration: underline; text-underline-offset: 3px; }

/* ===== lote dos 7 (23/11) ===== */
/* feed: no celular a caixa de publicar fica recolhida numa linha e abre ao tocar */
.composer-open { display: none; }
@media (max-width: 900px) {
  .composer-wrap:not(.aberto) .composer { display: none; }
  .composer-wrap:not(.aberto) .composer-open { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 8px 8px 16px; margin: 0 0 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface, transparent); color: var(--muted); font: inherit; text-align: left; cursor: pointer; }
  .composer-open span { padding: 8px 14px; border-radius: 8px; background: var(--text); color: var(--bg, #fff); font-weight: 600; font-size: .9rem; }
  .feed-tabs { margin-bottom: 16px; }
}
/* explorar: Filtros e Perto agora lado a lado no celular; filtros ligados à vista */
.near-btn { display: none; }
.filtros-ativos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: .86rem; color: var(--text); }
.chip-x span { color: var(--muted); font-size: 1.1rem; line-height: 1; }
@media (max-width: 900px) {
  .filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
  .near-btn { display: inline-flex; order: 2; }
  .filters-drawer[open] { flex-basis: 100%; }
  .filters-drawer > summary { margin-bottom: 0; }
  .filters-drawer[open] > summary { margin-bottom: 14px; }
  .near-link { display: none; }
}
.invite-share { margin-top: 10px; width: 100%; }
/* notificações: responder na própria linha */
.notif-acao { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--border); }
.notif-acao .thread { flex: 1 1 260px; min-width: 0; border-bottom: 0; }
.notif-acao .friend-btns { padding: 0 4px 12px 64px; }
.notif .thread-name { font-weight: 400; }
.notif .thread-unread .thread-name { font-weight: 600; }
@media (max-width: 520px) { .notif-acao .friend-btns { width: 100%; padding-left: 64px; } }
/* Conta: cada assunto fechado, com o valor atual à vista */
.conta-sec > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; cursor: pointer; list-style: none; padding: 4px 0; }
.conta-sec > summary::-webkit-details-marker { display: none; }
.conta-sec > summary .section-h { margin: 0; font: 600 1rem/1.3 var(--font); letter-spacing: 0; }
.conta-sec > summary .section-h::after { content: "›"; display: inline-block; margin-left: 8px; color: var(--muted); transition: transform .15s; }
.conta-sec[open] > summary .section-h::after { transform: rotate(90deg); }
.conta-val { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.conta-sec[open] > summary { margin-bottom: 16px; }
.conta-page .edit-section.conta-sec { margin-top: 0; padding: 18px 0; }
.conta-page .conta-sec:first-of-type { margin-top: 24px; }
.senha-wrap { position: relative; }
.senha-wrap .input { padding-right: 84px; }
.ver-senha { position: absolute; right: 4px; top: 4px; bottom: 4px; padding: 0 12px; border: 0; background: none; color: var(--accent); font: inherit; font-size: .88rem; cursor: pointer; }
/* Editar perfil: atalhos e Salvar sempre à mão */
.edit-atalhos { display: flex; gap: 8px; overflow-x: auto; margin: 12px 0 4px; padding-bottom: 4px; scrollbar-width: none; }
.edit-atalhos a { flex: none; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: .88rem; color: var(--text); }
@media (max-width: 900px) {
  .save-bar { position: sticky; bottom: calc(61px + env(safe-area-inset-bottom)); z-index: 5; margin: 12px -16px -16px; padding: 10px 16px; background: var(--surface, #fff); border-top: 1px solid var(--border); }
  .save-bar .btn { width: 100%; }
  /* Perfil de outra pessoa: a ação principal inteira, as duas seguintes lado a lado e "Mais" como botão de três pontos */
  .profile-actions > * { flex: 1 1 100%; }
  .profile-actions > form:not(:first-child), .profile-actions > a:not(:first-child) { flex: 1 1 calc(50% - 40px); min-width: 0; width: auto; }
  .profile-actions > form:not(:first-child) .btn { white-space: normal; line-height: 1.2; padding-inline: 10px; }
  .profile-actions > .more { flex: 0 0 52px; width: 52px; }
  .profile-actions > .more > summary { padding-inline: 0; justify-content: center; }
  .profile-actions > .more .mais-txt { font-size: 0; }
  .profile-actions > .more .mais-txt::before { content: "⋯"; font-size: 1.5rem; line-height: 1; }
  .profile-actions > .more .more-menu { left: auto; right: 0; }
}

/* ===== perfil, 2ª rodada (23/11) ===== */
.avatar-lg[data-capa] { cursor: zoom-in; position: relative; }
.capa-n { position: absolute; right: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: .78rem; }
.profile-likes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.gosto { display: inline-block; padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; font-size: .84rem; color: var(--text); }
.gosto-mais { color: var(--muted); }
.bio-resumo { margin: 12px 0 0; max-width: 60ch; color: var(--muted); }
.more-foto { margin-top: 8px; }
.more-foto > summary { width: 100%; justify-content: center; }
.more-foto .more-menu { left: 0; right: auto; min-width: 200px; }
.gallery.manage .mphoto:nth-child(even) .more-menu { left: auto; right: 0; }
.mphoto figcaption { display: block; padding: 0; }
@media (max-width: 900px) {
  .profile-counts:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
  .profile-head { padding-bottom: 12px; }
  .profile-head + .tabs, .tabs[role="tablist"] { margin-top: 12px; }
  .tabs[role="tablist"] { gap: 0; }
  .tabs[role="tablist"] a { padding: 14px 7px; font-size: .86rem; }
  .tabs[role="tablist"] a span { margin-left: 2px; }
  .tabs[role="tablist"] + .gallery-block .section-row, [data-panel] > .section-row:first-child { border-top: 0; padding-top: 18px; margin-top: 0; }
}
.opener { margin: 18px 0 0; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--surface-2, #f4f4f5); border-radius: 0 10px 10px 0; display: grid; gap: 2px; max-width: 560px; }
.aparelhos { list-style: none; margin: 0 0 18px; padding: 0; }
.aparelhos li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.aparelhos li .badge { justify-self: start; }

/* ===== foto na conversa ===== */
.msg-foto { display: block; position: relative; margin: 2px 0 6px; border-radius: 10px; overflow: hidden; max-width: 260px; }
.msg-foto img { display: block; width: 100%; max-height: 340px; object-fit: cover; }
.msg-foto-ver { display: none; }
.msg-foto.borrada img { filter: blur(26px) brightness(.85); transform: scale(1.15); }
.msg-foto.borrada .msg-foto-ver { display: grid; place-items: center; position: absolute; inset: 0; color: #fff; font-weight: 600; font-size: .92rem; text-shadow: 0 1px 4px #000; }
.msg-alerta { margin: 6px 0 2px; padding: 8px 10px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font-size: .82rem; line-height: 1.45; }
.msg-alerta a { color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.msg-denunciar { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* em mensagem só de texto o link aparece ao passar o mouse, tocar ou focar: não polui a conversa */
.msg:not(:has(.msg-foto)) .msg-den { display: none; }
.msg:hover .msg-den, .msg:focus-within .msg-den, .msg.tocada .msg-den { display: inline; }
.room-foto { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-size: 1.4rem; color: var(--muted); position: relative; }
.room-foto input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.room-foto.tem { border-color: var(--accent); color: var(--accent); background: var(--accent-soft, transparent); }

/* ===== perfil, 3ª rodada: capa, foto redonda, números em faixa, dados com ícone ===== */
.profile-page { max-width: 820px; }
.profile-page .profile-head { display: block; position: relative; padding: 0 0 6px; gap: 0; }
.pf-banner { height: 190px; width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; background: linear-gradient(135deg, var(--accent), #18181b); }
.pf-banner img { display: block; width: 100%; height: 100%; object-fit: cover; filter: blur(24px) saturate(1.15) brightness(.78); transform: scale(1.3); }
.profile-page .avatar-lg { width: 136px; height: 136px; aspect-ratio: 1; border-radius: 50%; border: 4px solid var(--bg); margin: -68px auto 0; position: relative; z-index: 1; box-shadow: 0 6px 22px rgba(0,0,0,.18); }
.profile-page .avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.profile-page .avatar-lg .initials { font-size: 2.6rem; }
.pf-online { position: absolute; z-index: 2; top: 226px; left: calc(50% + 36px); width: 22px; height: 22px; border-radius: 50%; background: #16a34a; border: 3px solid var(--bg); }
.profile-page .profile-head h1 { justify-content: center; text-align: center; font-size: 2.1rem; margin: 12px 0 0; gap: 8px 10px; }
.profile-page .pf-onde { text-align: center; margin: 6px 0 0; color: var(--muted); font-weight: 400; }
.profile-page .profile-counts, .profile-page .profile-counts:has(> :nth-child(4):last-child) { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-columns: none; gap: 0; margin: 20px 0 0; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: .76rem; }
.profile-page .profile-counts > * { justify-items: center; text-align: center; padding: 0 2px; min-width: 0; }
.profile-page .profile-counts strong { font-size: 1.15rem; }
.pf-meta { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .93rem; }
.pf-meta li { display: inline-flex; align-items: center; gap: 7px; }
.pf-meta svg { width: 17px; height: 17px; flex: none; }
.pf-meta .pf-on { color: #15803d; font-weight: 600; }
.profile-page .headline { font-size: 1.3rem; margin-top: 20px; max-width: none; }
.profile-page .bio-resumo, .profile-page .profile-likes, .profile-page .opener { max-width: none; }
.profile-page .profile-actions { margin-top: 22px; }
@media (min-width: 901px) {
  .pf-banner { width: 100%; margin: 22px 0 0; height: 230px; border-radius: 18px; }
  .pf-online { top: 288px; }
  .profile-page .profile-actions > :first-child .btn, .profile-page .profile-actions > a.btn-primary:first-child { min-width: 220px; }
}
/* perfil: abas coladas no conteúdo, sem linha duplicada; fotos em grade justa */
.profile-page .tabs[role="tablist"] { margin-top: 24px; }
.profile-page [data-panel] { padding-top: 22px; }
.profile-page [data-panel] > .section-row, .profile-page .section-row { border-top: 0; padding-top: 0; margin-top: 0; }
.profile-page .section-row .section-h { font-size: 1.35rem; }
.profile-page .gallery:not(.manage) { grid-template-columns: repeat(3, 1fr); gap: 4px; }
.profile-page .gallery:not(.manage) .gphoto, .profile-page .gallery:not(.manage) .gphoto img { border-radius: 4px; }
@media (min-width: 901px) { .profile-page .gallery:not(.manage) { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
/* perfil: com 5 ou 6 números (perfil com conto, ou o próprio) a faixa quebra em 3 + 3 no celular */
@media (max-width: 900px) { .profile-page .profile-counts:has(> :nth-child(5)) { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 12px 0; } }
/* faixa do topo com foto escolhida pelo dono: nítida, só um degradê embaixo para a foto redonda se destacar */
.pf-banner-propria { position: relative; }
.pf-banner-propria img { filter: none; transform: none; }
.pf-banner-propria::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(0,0,0,.28)); }

/* Revisão de design 23/11: uma largura de coluna (820, a do perfil), listas sem fio preto, controles de 44 px */
.feed-tabs { -webkit-mask-image: none; mask-image: none; }
.conta-legal { display: none; }
@media (max-width: 900px) {
  h1 { font-size: 1.9rem; }
  .footer-logado { display: none; }                 /* logado no celular a barra de baixo já navega; os links legais vão para a Conta */
  .conta-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 32px; font-size: .86rem; }
  .conta-legal a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
  .visits-locked .btn, .near-page .btn-primary, .trips-page .conta-form .btn { width: 100%; }
}

/* Revisão de design 23/11 (parte 2): rosa só para dinheiro, estado vazio único, selo Membro como ícone */
[data-theme="claro"] .period input:checked + span { background: var(--text); border-color: var(--text); color: #fff; }
[data-theme="claro"] .plan-featured .period input:checked + span, [data-theme="escuro"] .plan-featured .period input:checked + span { background: #fff; border-color: #fff; color: #18181b; }
[data-theme="claro"] .eyebrow { color: var(--muted); }
.side-plan .btn-primary, [data-theme="claro"] .side-plan .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.side-plan .btn-primary:hover, [data-theme="claro"] .side-plan .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.page-sub { margin: 0 0 8px; color: var(--muted); }
.empty, .empty:has(.shh-small) { padding: 36px 20px; margin-top: 20px; max-width: none; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); }
.empty .empty-kh { display: block; width: 22px; height: 34px; margin: 0 auto 12px; fill: var(--faint); }
.empty h2 { font: 400 1.375rem/1.2 var(--display); color: var(--text); margin: 0 0 6px; }
.empty .empty-sec { display: block; margin-top: 12px; font-size: .9rem; }
.room-back { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; flex: none; color: var(--text); font-size: 1.3rem; }
.pcard .badge-ic { padding: 3px 6px; flex: none; }
.pcard .name { flex-wrap: nowrap; }
.pcard .name-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Revisão de design 23/11 (parte 3): Amigos, Mensagens, Conta e comentários */
.friend-um { flex-wrap: nowrap; }
.friend-um .friend-btns { width: auto; flex: none; }
.friend-um .friend-btns form, .friend-um .friend-btns button { flex: none; width: auto; }
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.page-head h1 { margin-bottom: 0; }
.conta-grupo { font: 600 .8rem/1.3 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 34px 0 0; }
.conta-grupo + .conta-sec, .conta-page .conta-grupo + .conta-sec:first-of-type { margin-top: 0; }
.conta-risco { color: #a3261f; }
[data-theme="escuro"] .conta-risco { color: #ff8a80; }
.comment { align-items: center; gap: 2px 10px; }
.comment .avatar-sm { width: 32px; height: 32px; }
.comment .comment-body { order: 5; flex: 1 1 100%; padding-left: 42px; }
.comment > .small.muted { margin-right: auto; }

/* Letra grande (23/11): o texto segue o tamanho escolhido no aparelho e nada sai da tela com ele em 200% */
.btn { height: auto; min-height: 44px; padding-block: 6px; white-space: normal; text-align: center; }
.btn-lg { height: auto; min-height: 54px; }
.periods { flex-wrap: wrap; }
.period { min-width: 5.5em; }
.plan, .plan-head { min-width: 0; }
.plan-head { flex-wrap: wrap; }
@media (max-width: 900px) {
  .nav a { font-size: min(.82rem, 13px); min-width: 0; white-space: nowrap; }   /* barra de baixo tem largura fixa por item: o rótulo não cresce além disto */
  .profile-page .profile-head h1 { font-size: min(2.1rem, 8.5vw); }
  .profile-page .profile-counts > * { overflow-wrap: anywhere; hyphens: auto; }
}

.pf-trocar { text-align: center; margin: 10px 0 0; }

/* ---------- Entrada, 24/11: exemplo de perfil ao lado dos pontos, regras em duas colunas, cidades ---------- */
.mostra { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 72px; align-items: start; margin-top: 8px; }
.mostra-so { grid-template-columns: minmax(0, 760px); }
.demo { margin: 0; position: sticky; top: 96px; }
.demo-cartao { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: 0 2px 4px rgba(40, 20, 25, .05), 0 28px 60px rgba(40, 20, 25, .14); }
.demo-faixa { height: 150px; overflow: hidden; }
.demo-faixa img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.demo-corpo { padding: 0 24px 24px; }
.demo-avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); margin-top: -46px; position: relative; }
.demo-nome { font: 600 1.25rem/1.3 var(--font); margin: 12px 0 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.demo-sub { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.demo-frase { font: 400 1.18rem/1.4 var(--display); margin: 0 0 18px; }
.demo-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo-fotos span { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--tile-1); }
.demo-fotos img { width: 100%; height: 100%; object-fit: cover; }
.demo-fotos .demo-chave { background: var(--noir); color: var(--gold); display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; }
.demo-chave svg { width: 18px; height: 28px; }
.demo-chave small { font-size: .7rem; font-weight: 600; color: var(--cream); }
.demo figcaption { color: var(--faint); font-size: .84rem; margin-top: 14px; }
.pontos { display: grid; gap: 36px; padding-top: 6px; }
.pontos h3 { font: 400 1.7rem/1.15 var(--display); letter-spacing: -.015em; margin: 0 0 8px; }
.pontos p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; margin: 0; max-width: 540px; }
.pontos .pontos-mais { font-size: .96rem; padding-top: 28px; border-top: 1px solid var(--border); }
.regras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 72px; counter-reset: regra; }
.regras li { counter-increment: regra; display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; padding: 30px 0; border-top: 1px solid var(--noir-line); align-content: start; }
.regras li::before { content: counter(regra); grid-row: span 2; font: 400 3rem/.9 var(--display); color: var(--gold); }
.regras h3 { font: 600 1.15rem/1.35 var(--font); margin: 0; }
.regras p { grid-column: 2; margin: 0; color: #cbbdb2; font-size: 1rem; line-height: 1.6; }
.regras a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cidades-linha { max-width: 900px; margin: 28px 0 0; line-height: 1.5; color: var(--faint); }
.cidades-linha a { display: inline-block; padding: 7px 0; color: var(--muted); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 5px; white-space: nowrap; }
.cidades-linha a:hover { color: var(--text); text-decoration-color: var(--text); }
.custo { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin: 40px 0 40px; padding-top: 36px; border-top: 1px solid var(--border); }
.custo p { margin: 0; color: var(--muted); line-height: 1.65; max-width: 46ch; }
.custo strong { display: block; font: 400 2rem/1.15 var(--display); letter-spacing: -.02em; color: var(--text); margin-bottom: 14px; }
@media (max-width: 760px) { .custo { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 900px) {
  .mostra { grid-template-columns: 1fr; gap: 40px; }
  .demo { position: static; max-width: 420px; }
  .pontos { gap: 28px; }
  .pontos h3 { font-size: 1.45rem; }
  .regras { grid-template-columns: 1fr; }
  .regras li { grid-template-columns: 48px 1fr; padding: 24px 0; }
  .regras li::before { font-size: 2.3rem; }
}

/* ---------- Página de cidade: festas e casas (só o que é público) ---------- */
.city-sec-h { font-size: 1.7rem; margin: 52px 0 16px; }
.city-festas { list-style: none; margin: 0 0 14px; padding: 0; border-top: 1px solid var(--border); }
.city-festas li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.city-festas time { color: var(--muted); text-transform: capitalize; }
.city-casas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.city-casas li { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 20px; display: grid; gap: 4px; }
.city-casas p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 640px) { .city-festas li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Editar perfil em blocos que abrem e fecham (24/11) ---------- */
.pf-grupo { border-top: 1px solid var(--border); }
.pf-grupo:first-of-type { border-top: 0; }
.pf-grupo > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 18px; flex-wrap: wrap; cursor: pointer; list-style: none; padding: 20px 0; }
.pf-grupo > summary::-webkit-details-marker { display: none; }
.pf-grupo-t { font: 600 1.08rem/1.3 var(--font); position: relative; padding-right: 22px; }
.pf-grupo-t::after { content: "›"; position: absolute; right: 4px; top: 0; color: var(--muted); transition: transform .15s; }
.pf-grupo[open] .pf-grupo-t::after { transform: rotate(90deg); }
.pf-grupo-r { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.pf-grupo[open] .pf-grupo-r { display: none; }
.pf-grupo-c { padding: 4px 0 24px; }
.pf-grupo > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.pf-grupo:last-of-type { border-bottom: 1px solid var(--border); margin-bottom: 20px; }

/* Página de convite */
.convite-pontos { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.convite-pontos li { position: relative; padding-left: 22px; line-height: 1.45; }
.convite-pontos li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Plano único: um cartão só, centrado */
.plans.plans-um { grid-template-columns: minmax(0, 460px); justify-content: center; }

/* Convites: marcador de origem */
.invite-origem { margin-top: 22px; }
.invite-origens { width: 100%; margin-top: 14px; border-collapse: collapse; }
.invite-origens th, .invite-origens td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.invite-origens th { font-weight: 600; font-size: .85em; }
.invite-origens td + td, .invite-origens th + th { text-align: right; }

/* Verificação de idade por Pix */
.idade-pix-form { flex: 1 1 100%; max-width: 420px; margin-top: 12px; }
.idade-pix-form .field { margin-bottom: 12px; }

/* botão ao lado do campo não quebra em duas linhas */
.invite-row .btn { flex: none; white-space: nowrap; }
.empty p:first-child { margin-top: 0; }

/* Fotos de membro: somem do foco quando a janela perde o foco (atrapalha captura de tela no computador) e não saem na impressão. */
.fora-de-foco img[src*="/foto/"], .fora-de-foco video { filter: blur(24px); }
@media print { img[src*="/foto/"], video { visibility: hidden; } }
img[src*="/foto/"] { -webkit-user-drag: none; -webkit-touch-callout: none; }
.conta-sair { margin-top: 28px; }
.chegada { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.chegada-quem { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chegada-passos { color: var(--muted); }
.chegada-passos .ok { color: var(--text); font-weight: 600; }
.aviso-casa { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.conto-serie { margin: -6px 0 10px; }
.contos-pub .conto-pub { padding: 18px 0; border-bottom: 1px solid var(--border); }
.contos-pub .conto-pub h2, .contos-pub .conto-pub h3 { margin: 0 0 4px; font-size: 1.15rem; }
.contos-pub .conto-trecho { font-size: 1.08rem; line-height: 1.7; margin: 18px 0 26px; }
.contos-pub .conto-resto { margin-bottom: 36px; }
